Skip to content

Instantly share code, notes, and snippets.

@breezhang
Created February 3, 2014 13:24
Show Gist options
  • Save breezhang/8783742 to your computer and use it in GitHub Desktop.
Save breezhang/8783742 to your computer and use it in GitHub Desktop.
Event Sourcing defined

###Event Sourcing

Capture all changes to an application state as a sequence of events.

We can query an application's state to find out the current state of the world, and this answers many questions. However there are times when we don't just want to see where we are, we also want to know how we got there.

Event Sourcing ensures that all changes to application state are stored as a sequence of events. Not just can we query these events, we can also use the event log to reconstruct past states, and as a foundation to automatically adjust the state to cope with retroactive changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment