(Migrated) Subscription filtering?

(This message has been automatically imported from the retired mailing list)

Is there any way to have a subscriber pull messages from a pubsub topic
based on a filter pattern?

I have a client that publishes a request on a topic, which is handled by
a callback consumer which distributes the request to another service
based on the request attributes. The request has a unique ID that will
be used to track the response/results.

I would like the client to poll for a response on either the same or a
different topic, but filter on the unique ID so it doesn’t have to
reject other responses that it doesn’t want.

I’m assuming that multiple pull consumers would work, assuming they
reject messages they are not interested in, but multiple callback
consumers or combining pull consumers with one or more callback
consumers would not work, since once a message is handled by a callback
consumer it seems to disappear from the queue.

Thanks

Bob