I have a dead-letter queue for a pubsub cloud function that is receiving messages using PUSH subscription and at the moment the service is successfully sending those messages to the dead-letter topic and the dead-letter subscription when fails. However, I am uncertain on how to carry on once it reaches this dead-letter subscription.
I don't want to lose the messages that have been sent to the dead letter so my idea would be that in case of failures from the service to acknowledge the message after predefined delivery attempts, the message will be forwarded to a dead letter topic. The same service, when back to life, can pull the messages from the dead-letter topic as well to see what it missed during the times of unavailability.
There is a similar post in here but the answer only points to the options but not the solutions, and unfortunately, I haven't been able to find it.
There is also a mention in here about this issue where it's actually from where I have taken my question.
Please, could somebody point me in the right direction? Is there a better way?