Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Pub / Sub Filter by Custom Metadata

Hi All, 

Wondering if it is possible to filter pub / sub messages by custom metadata fields on files for cloud storage notifications?

Solved Solved
0 1 2,416
1 ACCEPTED SOLUTION

Yes it’s possible to filter pub / sub messages, but only from their attributes and not the data in the message, when you receive messages from a subscription with a filter, you only receive the messages that match the filter. The Pub/Sub service automatically acknowledges the messages that don't match the filter.

You can read more about this in the documentation i’m sharing with you.

View solution in original post

1 REPLY 1

Yes it’s possible to filter pub / sub messages, but only from their attributes and not the data in the message, when you receive messages from a subscription with a filter, you only receive the messages that match the filter. The Pub/Sub service automatically acknowledges the messages that don't match the filter.

You can read more about this in the documentation i’m sharing with you.