Assumed you use one stream per aggregate, and you have streams names like:
user-edb72b9e-1896-49bf-9fda-7c8306ca34b1
user-cb8c6891-8eb3-45e3-bffb-1ab4b0ec31b1
We could make a projection from those two streams to a new event stream users - that is also an event stream but combines both streams in one.
We could make another projection from all streams like
user-{id1} ,user-{id2}, blogpost-{id1}, blogpost-{id2} to a category streams like when contains: user and blogpost - the rule would be the first part of an stream name until the first - is the category name.
Next possibility would be one stream projection per event type.
Next possibility would be one stream for all stream names.
Most of them would be internal stream names (prefixed with _) and are optional to enable (maybe a distinct package, too, relying on amqp or pthreads?).
Assumed you use one stream per aggregate, and you have streams names like:
user-edb72b9e-1896-49bf-9fda-7c8306ca34b1user-cb8c6891-8eb3-45e3-bffb-1ab4b0ec31b1We could make a projection from those two streams to a new event stream users - that is also an event stream but combines both streams in one.
We could make another projection from all streams like
user-{id1},user-{id2},blogpost-{id1},blogpost-{id2}to a category streams like when contains:userandblogpost- the rule would be the first part of an stream name until the first-is the category name.Next possibility would be one stream projection per event type.
Next possibility would be one stream for all stream names.
Most of them would be internal stream names (prefixed with
_) and are optional to enable (maybe a distinct package, too, relying on amqp or pthreads?).