commanded / eventstore

Event store using PostgreSQL for persistence
MIT License
1.06k stars 146 forks source link

Link events to streams by category, event type, and correlation id #169

Open slashdotdash opened 5 years ago

slashdotdash commented 5 years ago

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".

andreapavoni commented 4 years ago

That would be very useful feature! It also makes a lot more sense for listeners.