Event Sourcing Class Diagram: EventStore, Aggregates, Command Bus, and Projections
This class diagram is used to clarify an event-sourced architecture by showing how CommandBus routes a Command to a CommandHandler, which loads and saves an AggregateRoot through an EventSourcedRepository backed by an EventStore. It helps teams reason about consistency, versioning, and event flow as AggregateRoot emits DomainEvent instances that the EventStore appends, loads, and publishes via an EventBus. Developers and architects use it to design write models and read models, where a Projector subscribes to even...