Event sourcing
Events as the system of record: append-only stores, projections, CQRS read models, snapshots and schema evolution.
Aggregate root and the event store
An order is the stream of its own events. One object owns every rule about it, appends at the version it loaded, decides again when it loses a race, and publishes only the events that are public.
Snapshots
A stream that grows without bound makes every load slower. A snapshot is a cache of the fold at one version: load it, replay only the events after it, and rebuild it from the events whenever it is wrong.
CQRS and projections
A reader asks questions the write model was not built for. A projection applies the public events to a table shaped for those questions, moves only forward, and tells the reader how current it is.
Aggregate replay or CQRS projection
Operations asks a question the model was not built for: orders shipped per carrier per day. Replay every aggregate on request, or build a projection from the whole history and keep it current. What each costs, and why a checkpoint must not trust commit order.
Schema evolution and upcasting
Customers can ask for express delivery, and OrderPlaced gains a field. Stored events keep the shape they were written in and are upcast when read; published events change only in ways the schema registry accepts against every earlier version.