Enable Google Pub/Sub exactly-once delivery on a subscription

domain: cloud.google.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Create or update a subscription with enable_exactly_once_delivery=true using the gcloud CLI or the Pub/Sub API
  2. Use a client library version that supports exactly-once delivery acknowledgement (check the library changelog for the feature flag)
  3. After processing, call ack() using the ack ID returned with the message; Pub/Sub guarantees not to redeliver if the ack is confirmed
  4. Handle AcknowledgementResult responses from the client to detect ack failures and retry the ack, not the processing
  5. Set the subscription ack deadline appropriately since Pub/Sub will not redeliver until the deadline expires even in exactly-once mode

Known gotchas

Related routes

Configure Google Pub/Sub exactly-once delivery on a pull subscription
gcp-pubsub · 6 steps · unrated
Configure Google Pub/Sub push subscription with ordering keys and dead-letter topic
gcp-pubsub · 6 steps · unrated
Enable Google Cloud Pub/Sub exactly-once delivery and understand minDurationPerAckExtension interaction with client libraries
cloud.google.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans