This guide gives an overview of the concepts which from the foundation of Sequent. Most of these Concepts are not specific to Sequent, but applicable to all CQRS and event sourced applications.
To illustrate the basic flow of an Sequent powered application let’s use creating a User from a webapplication as example:
- Webapp binds form elements to a
- Webapp passes the Command to the CommandService
- The CommandService validates the Command
- When the Command is valid the CommandService calls the registered CommandHandlers
- The CommandHandler creates the User as AggregateRoot and stores it in the EventStore using the AggregateRepository
- When the CommandHandler is finished the CommandService queries all affected AggregateRoots for new Event and stores them in the EventStore
- All Events are propagated to registered Projectors
- The Projectors update their Projections accordingly.
Good to know: Points 1,2,5,8 are the steps you as programmer need to implement. Sequent takes case of the rest.
This is basically how you do stuff in Sequent. Please checkout all concepts to get a complete overview.
Concepts regarding your Domain: