Maestro v0.0.2 Maestro.Schemas.Snapshot View Source
aggregate roots can commit state that has been computed from the application of events. this is useful if events are expensive to apply or if there are a sufficiently large number of events that replaying from sequence=1 would be impractical.
With events, :body is the necessary information to apply the event. In the
case of snapshots, the body is the actual computed state of the entity.
Link to this section Summary
Link to this section Types
Link to this type
t()
View Source
t() :: %Maestro.Schemas.Snapshot{
__meta__: term(),
aggregate_id: aggregate_id(),
body: map(),
sequence: sequence()
}