Choosing Event Streams for Projection
PHP Event Streams
Choosing Event Streams for Projection
The Projection
is deriving from Event Stream.
There may be situations when we will want to derive the projection from multiple streams however.
Let's see what options do we have:
From Single Stream
If we are interested in single stream, we can listen directly for specific aggregate
In here we are handling events from single Basket's Aggregate stream
. It will contain all the events in relation to this aggregate.
From Multiple Streams
There may be situations, when we will want to handle different streams together.
From Category
In that case we can make use of categories in order to target Domain\Ticket-*.
Handling Events By Names
If you want to avoid storing class names of your events in the Event Store
you may mark them with name.
And tell the projection to make use of it
Speeding Up Projection Restore
Last updated
Was this helpful?