What is Event Sourcing?
Event Sourcing stores events that have happened as the authoritative data, then derives the current state from that history. Each event records a business change, such as “item added to cart” or “order canceled.”
Instead of knowing only that a cart contains one book, the system can know that the customer added two and removed one. This history is used to reconstruct the cart, rather than merely being kept for reference.
