View Source Commanded (Commanded v1.4.1)
Use Commanded to build your own Elixir applications following the CQRS/ES pattern.
Provides support for:
- Defining applications.
- Command registration and dispatch.
- Hosting and delegation to aggregates.
- Event handling.
- Long running process managers.
Use Commanded with one of the following event stores for persistence:
- Elixir EventStore using Postgres for persistence
- EventStoreDB
Please check the Getting Started and Usage guides to learn more.
Link to this section Summary
Functions
Retrieve aggregate state of an aggregate.
Link to this section Functions
Link to this function
aggregate_state(application, aggregate_module, aggregate_uuid, timeout \\ 5000)
View Source@spec aggregate_state( application :: Commanded.Application.t(), aggregate_module :: module(), aggregate_uuid :: Commanded.Aggregates.Aggregate.uuid(), timeout :: integer() ) :: Commanded.Aggregates.Aggregate.state()
Retrieve aggregate state of an aggregate.
Retrieving aggregate state is done by calling to the opened aggregate, or querying the event store for an optional state snapshot and then replaying the aggregate's event stream.