I have a subscription in Google Pub/Sub where messages can be either acknowledged (acked) or not acknowledged (nacked). To handle the at-least-once delivery guarantee of Pub/Sub, I use an idempotent store to deduplicate messages that are delivered multiple times.
Currently, I nack duplicate messages. However, I'm curious: if I process a message that was previously in progress and then successfully ack it, will this acknowledgment also apply to the duplicate messages that I had nacked earlier?
I haven't found any related documentation. Any clarification on this behavior would be greatly appreciated.