modernice / goes

goes is an event-sourcing framework for Go.
https://goes.modernice.dev
Apache License 2.0
134 stars 12 forks source link

Wildcard Subscriptions #33

Closed bounoable closed 2 years ago

bounoable commented 2 years ago

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

WIP