modernice/goes

Wildcard Subscriptions

Closed this issue · 0 comments

Summary

Implement wildcard event subscriptions.

Motivation

While the event store has the capability of querying all events, the event bus requires explicit event names to be passed in order to subscribe to the events. Because of this, a projection cannot depend on all events of an application (it is possible but requires each event name to be passed when subscribing). Users should be able to subscribe to all events using a wildcard.

Proposal

Proposal is to define * as a wildcard for event subscriptions but as an optional feature of an event bus. Event bus implementations may choose to implement wildcard subscriptions but don't have to.

Notes

  • NATS supports wildcard subscriptions out of the box, so only the in-memory event bus must be changed to support wildcards

WIP