Event Sourcing
Event sourcing is an architectural pattern in which every change to an application's state is captured as an immutable sequence of events, and the current state is derived by replaying those events, rather than storing only the latest state directly.
8 resources across 2 libraries
Glossary Terms(3)
Observer Pattern
The Observer pattern is a behavioral design pattern in which an object (the subject) maintains a list of dependents (observers) and automatically notifies them…
Command Pattern
The Command pattern is a behavioral design pattern that encapsulates a request or action as a standalone object, allowing it to be parameterized, queued, logge…
Event Sourcing
Event sourcing is an architectural pattern in which every change to an application's state is captured as an immutable sequence of events, and the current stat…
Interview Questions(5)
What is Event Sourcing and How Does It Differ From Storing Current State?
Event sourcing stores every change to a system's data as an immutable, ordered sequence of events, and derives the current state by replaying those events, rat…
How Would You Design a Stock Exchange Matching Engine?
A stock exchange is designed around a single-threaded, in-memory matching engine per symbol that maintains a price-time-priority order book, sequences every in…
How to Design an Inventory Management System?
An inventory management system is designed around a source-of-truth stock ledger per SKU-per-warehouse with atomic reserve/commit/release operations, an event…
What is CQRS (Command Query Responsibility Segregation)?
CQRS is an architectural pattern that splits a system into two separate models — one for writes (commands) and one for reads (queries) — instead of using a sin…
What is Event Sourcing?
Event sourcing is a pattern where every change to application state is stored as an immutable sequence of events rather than overwriting a single row, and the…