Skip to content

Need to understand AggregateState better #108

Discussion options

You must be logged in to vote

The aggregate state is rebuilt from events, so you can add and remove new properties to the state instance at will, as long as you can restore the state from historical events. The approach of only keeping the properties you need for making decisions is a good one. You need, however, to ensure that your events contain enough information for both aggregate state and projections to be rebuilt without any need to reach out to external data sources, or use read models.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alexeyzimarev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants