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

[FEATURE] Allow a message to be filtered to specific consumers #54

Open
imyousuf opened this issue Jan 13, 2021 · 0 comments
Open

[FEATURE] Allow a message to be filtered to specific consumers #54

imyousuf opened this issue Jan 13, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@imyousuf
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
In a pub-sub system, channel may not be enough to provide sufficient context around message routing to a consumer. Take a Public API example of Github; it is possible to add multiple webhook endpoints to a "repository" but not all webhook endpoints is subscribed to the same events; so we need a way to distinguish within the "repository" (channel in webhook broker) context which "endpoints" (consumer in webhook broker) needs to be notified. The message producer does know who has subscribed to the events.

Describe the solution you'd like
In cases as such Github Repo Webhooks; the application will be storing endpoints and events it is subscribing to. It will create consumers one to one to endpoints in Webhook broker. Since the consumers are managed by the application, it already has context to which consumers should receive the message; so idea is to pass consumerId to message as query parameter.

Describe alternatives you've considered
Alternate was to allow for tags to Consumer and Message and then only sending the message to the consumer; but that then adds an implicit behavior of what tags were on a consumer at the time of message dispatch and all of that becomes obscure. Also consciously we do not want to become the source of truth for how filtering of consumers take place for a message.

@imyousuf imyousuf added the enhancement New feature or request label Jan 13, 2021
@imyousuf imyousuf added this to the v0.2 milestone Jan 13, 2021
@imyousuf imyousuf added this to Backlog in Broker Board via automation Jan 21, 2021
@imyousuf imyousuf modified the milestones: v0.2, v0.3 Apr 5, 2021
@imyousuf imyousuf modified the milestones: v0.2, v0.3 Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant