Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include support for subscription subchannels #318

Merged

Conversation

tom-binary
Copy link
Contributor

Emitters can define a subchannel_key which will be extracted (destructively) from each item and used to direct events to that subscription channel.

Receivers can specific a subchannel to listen to.

This combination allows a single emitter to fan out events to multiple separate receivers, e.g. for a webhook or incoming event stream that you want to split into more specific service handlers for each different event type.

Emitters can define a `subchannel_key` which will be extracted
(destructively) from each item and used to direct events to that
subscription channel.

Receivers can specific a `subchannel` to listen to.

This combination allows a single emitter to fan out events to multiple
separate receivers, e.g. for a webhook or incoming event stream that you
want to split into more specific service handlers for each different
event type.
@tom-binary tom-binary merged commit 259c8a0 into deriv-com:master May 30, 2024
1 check passed
@tom-binary tom-binary deleted the feature/subscription_subchannel branch May 30, 2024 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant