I am trying to configure dead letter topic for unack messages to handle failures gracefully, however, it doesn't seem to be working. I tried two approaches:
- I created a dead letter topic and subscription through google cloud console but it didn't work, though all the permissions were granted and under dead lettering tab everything was blue tick. Also, the topic is a different topic from main topic.
- Then, I tried to go completely through cloud shell. I created a new project and took a fresh start, still no luck. I followed each and every step mentioned in the documentation here. All the commands were successful and got all the blue ticks again under dead lettering tab.
In both approaches --max-delivery-attempts=5. My understanding is that after 5 attempts subscriber should forward the message to dead letter topic automatically. However, this isn't happening and the unack messages are hanging around in subscription only.
Any help would be highly appreciated.