A Python automation uses Cloud Pub/Sub to trigger work. You need to ensure that processing is effectively-once despite possible duplicate deliveries. Which approach is most appropriate?

Answer

Implement idempotent processing keyed by message ID or a dedup token persisted in durable storage

Explanation

Pub/Sub provides at-least-once delivery, so idempotent handlers with durable deduplication prevent double side effects.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list