Skip to main content

Event Sourcing

Definition

Event sourcing is an architectural pattern where all changes to application state are stored as a sequence of immutable events. Instead of storing the current state directly, the system records every action that has occurred. Reconstructing the current state involves replaying these recorded events from the beginning or a designated snapshot.