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

Topic filters for Projections over gRPC #916

Closed
patriknw opened this issue Jun 12, 2023 · 1 comment
Closed

Topic filters for Projections over gRPC #916

patriknw opened this issue Jun 12, 2023 · 1 comment
Assignees

Comments

@patriknw
Copy link
Member

patriknw commented Jun 12, 2023

Subscription filters based on topic hierarchies and wildcards are very common. For example MQTT topics https://www.hivemq.com/blog/mqtt-essentials-part-5-mqtt-topics-best-practices/ or NATS topics https://docs.nats.io/nats-concepts/subjects

We could easily build this on top of the tag based filters. The events would be tagged with a prefix like t:myhome/groundfloor/livingroom/temerature unless we want to expand the api in EventSourcedBehavior.
Filters can be defined with a new topic filter (maybe just implemented on top of tag filters) which may contain wildcards that are matched when evaluating the filter criteria.

It would still only be for one specific entity type (stream id).

@patriknw patriknw self-assigned this Jun 30, 2023
@patriknw
Copy link
Member Author

patriknw commented Jul 6, 2023

Implemented in #940

@patriknw patriknw closed this as completed Jul 6, 2023
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

No branches or pull requests

1 participant