I'm currently integrating PubSub using the following approach https://docs.spring.io/spring-cloud-gcp/docs/1.2.4.BUILD-SNAPSHOT/reference/html/#spring-integration
Basically I'm subscribed to a topic, I receive the message and do something with it.
I would like to, in case of any error scenario of my business rules (like not accept the message because X,Y,Z reason) send it to a dlq.
I see that just a month and a half ago Google came out with DLQ for PubSub: https://cloud.google.com/pubsub/docs/dead-letter-topics
But I'm not sure what the right way to integrate it with the spring integration approach should be.