From the course: Building Event-Driven Applications In Go
Unlock this course with a free trial
Join today to access over 24,500 courses taught by industry experts.
The event store
From the course: Building Event-Driven Applications In Go
The event store
- [Narrator] Let's talk about the event store. An event store is a specialized data store optimized for storing and accessing events. Unlike traditional databases that store the current state of an entity, an event store will capture every state changing event, that is, every update, every right, every change to a state of the event. So it captures it in such a way that it's easy for you as a user to reconstruct the entity state at any point in time. Let's talk a bit about some characteristics of an event store. Firstly, for an event store to be able to swiftly reconstruct an entity state at any point in time, it needs to be appended-only. What do we mean by that? We mean that events that are stored in an event store must be immutable and only appended to the store. So these events do not change previous events. They only describe the current change happening to the state of the data, and are appended to the event store. Temporal ordering. Events must be stored in the order they…