Google Cloud has made Spanner queues generally available, a messaging feature built directly into its Spanner database so an AI agent's saved state and its next actions commit together. Google Cloud says creating a message becomes another write inside the same transaction, which either succeeds completely or fails completely.
Google Cloud describes the problem this addresses. Agents often keep state in a database but send tasks through a separate queue system. If the database update succeeds and the dispatch fails, the agent decides to act but never does. If the dispatch succeeds and the update rolls back, the agent acts on invalid state. Developers have worked around this with outbox patterns, idempotency layers, and reconciliation workers.
Spanner queues lets an agent update its memory and enqueue tasks for other agents in one read-write transaction. Messages can be delivered immediately after commit or scheduled for later, which covers delayed retries, check-ins, and escalation timers without external cron schedulers. Agent workers pull tasks with streaming SQL reads and acknowledge completion inside a transaction.
Google Cloud says the feature guarantees at-least-once delivery and at-most-once acknowledgment, which allows exactly-once processing. It also handles timeouts natively: one transaction can record a pending human approval and schedule an automated escalation message.
Source: Google Cloud announcement.