Event Sourcing is an architectural pattern where the state of an application or workflow is derived from an immutable, append-only sequence of domain events, which serve as the system of record. Instead of storing only the current state, every state-changing action is captured as a discrete event object (e.g., TaskAssigned, PaymentProcessed). This event log becomes the primary source of truth, enabling the reconstruction of any past state by replaying the event sequence from the beginning.
