tapahtumalähteisiin
Tapahtumalähteisiin, or event sourcing in English, is an architectural pattern that centers around the idea of storing all changes to application state as a sequence of immutable events. Instead of directly updating a database with the current state, each action or event that modifies the state is recorded as a discrete event. These events are typically stored in an append-only log, often referred to as an event store.
The current state of the application is not stored directly but is derived by replaying the sequence
Key benefits of event sourcing include a complete audit trail of all actions, enabling easier debugging and