eventstore
eventstore copied to clipboard
Link events to streams by category, event type, and correlation id
Add support for linking appended events to streams using optional, built-in streams. This allows subscriptions to be created for a subset of all events (e.g. events of a given aggregate type, or event type, or by correlation id).
Category
Appending an event to a stream named "account-1234" would link the event to a stream named "$category-account".
Event type
Appending an AccountRegistered event to a stream would link the event to a stream named "$event-AccountRegistered".
Correlation id
Appending an event with a correlation id of "3ceb8ff0-95d7-45f1-8b6f-90b19c0db663"would link the event to a stream named "$correlation-3ceb8ff0-95d7-45f1-8b6f-90b19c0db663".
That would be very useful feature! It also makes a lot more sense for listeners.