Configuration
Setting up Projections
Projections are about deriving current state from the stream of events. Projections can be added in any moment of the application lifetime and be built up from existing history, till the current time. This is powerful concept as it allow for building views quickly and discarding them without pain, when they are not longer needed.
This tells
Ecotone
that specific class is Projection. The first parameter is thename of the projection
and the second is name of the stream (the default is thename of the Aggregate
) that this projection subscribes to.Events that this projection subscribes to
Optional Query Handlers for this projection. They can be placed in different classes depending on preference.
Document Store
Document Store is a great way to set up your projections. You can freely create DTO objects, or play with simple arrays and Ecotone will serialize/deserialize and store them for you.
For testing purposes you may use In Memory implementation, to speed up your tests or to simple test things out locally.
Last updated