nodejs-pubsub: add support for filtering #976
Labels
api: pubsub
Issues related to the googleapis/nodejs-pubsub API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Add an additional field for subscriptions that allows configuring a filter. Filters control what messages are sent to subscribers based on the message attributes.
As an example, if a message filter is the string attributes.event_type = "1", then messages with attributes of event_type=1 will be delivered, while everything else will be filtered out.
There will be more complicated filters to handle prefixes and non-exact matches, but any integration tests can just test the exact match case.
If empty, no messages are filtered out. Filtering can be configured only on subscription creation, not on updates.
Reference implementation in Go will be tracked under googleapis/google-cloud-go#1943
The text was updated successfully, but these errors were encountered: