Event Sourcing

3 important questions on Event Sourcing

What is the idea behind event sourcing ?

It stores the data as a sequence of events. Each event is based on an aggregate. So, when some part of the order changes, an event for that order gets processed and persisted as a new record in the event store. This is an atomic, append-only operation. That makes the write operation very efficient. You don’t need to worry about any concurrent modifications; you simply add the new event to the event store.

Disadvantage of event sourcing ?

you can‘t simply query the current state. You always need to process a set of events to get it. In the worst case, these are all events of that object since the beginning of time

2 common approaches to avoid the disadvantage of event sourcing


creating snapshots. To get the current state, you then just need to go back to the latest snapshot

different read projectionsCQRS pattern

The question on the page originate from the summary of the following study material:

  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
Remember faster, study better. Scientifically proven.
Trustpilot Logo