> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tensor9.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SQS (FIFO)

> AWS SQS (FIFO). FIFO queues preserve order within a message group and drop duplicates inside a five-minute deduplication window, at lower throughput than standard queues.

**On this page**

* [Coverage by target cloud](#coverage-by-target-cloud)
* [How the backends compare](#how-the-backends-compare)
  * [Max adaptation](#max-adaptation)
* [On Google Cloud](#on-google-cloud)
* [On Azure, OCI, and Private Kubernetes](#on-azure-oci-and-private-kubernetes)
  * [Via PostgreSQL](#via-postgresql)
* [On Azure](#on-azure)
  * [Via Azure Service Bus](#via-azure-service-bus)
  * [Via Azure Cosmos DB (queue)](#via-azure-cosmos-db-queue)
  * [Via PostgreSQL Flexible Server](#via-postgresql-flexible-server)
* [Costs](#costs)
* [Service level agreements](#service-level-agreements)
  * [SQS to Cosmos DB](#sqs-to-cosmos-db)
  * [SQS (Simple Queue Service, FIFO queues) to PostgreSQL Flexible Server](#sqs-40simple-queue-service-fifo-queues41-to-postgresql-flexible-server)
  * [SQS (Simple Queue Service, FIFO queues) to Azure Service Bus](#sqs-40simple-queue-service-fifo-queues41-to-azure-service-bus)
  * [SQS (Simple Queue Service, FIFO queues) to Cloud SQL for PostgreSQL](#sqs-40simple-queue-service-fifo-queues41-to-cloud-sql-for-postgresql)
  * [SQS (Simple Queue Service, FIFO queues) to PostgreSQL](#sqs-40simple-queue-service-fifo-queues41-to-postgresql)
  * [SQS (Simple Queue Service, FIFO queues) to Scaleway Managed Database for PostgreSQL](#sqs-40simple-queue-service-fifo-queues41-to-scaleway-managed-database-for-postgresql)
* [Debug this service](#debug-this-service)

## Coverage by target cloud

| Target cloud | Available |
| - | - |
| Google Cloud | ✓ |
| Azure | ✓ |
| OCI | ✓ |
| Private Kubernetes | ✓ |

## How the backends compare

Each row compares a capability of SQS (FIFO) with its adaptation on each backend.
A dash means this row is not stated for that backend.

### Max adaptation

| Capability | SQS (FIFO) | Google Cloud | Azure, OCI, and Private Kubernetes · PostgreSQL | Azure · Azure Service Bus | Azure · Azure Cosmos DB (queue) | Azure · PostgreSQL Flexible Server |
| - | - | - | - | - | - | - |
| Ordering · delivery order | Yes - per-group FIFO | Yes - oldest message of each group first; same contract (per-MessageGroupId, one in flight per group) | Yes - oldest message of each group first; same contract (per-MessageGroupId, one in flight per group) | Yes - broker-exclusive sessions (session = MessageGroupId), Service Bus coordinates session ownership across adapter instances | Yes - strict per-group order, one message in flight per group, cross-pod safe (server-arbitrated, never a wall-clock inversion) | Yes - oldest message of each group first; same contract on the managed server (per-MessageGroupId, one in flight per group) |
| Deduplication · dedup window | Yes - explicit MessageDeduplicationId + content-based, 5-min window | Yes - both modes, over a marker table in the same Postgres; 5-minute window | Yes - both modes, over a marker table in the same Postgres; 5-minute window | Partial - broker-native duplicate detection; fresh-id echo (not the original id) + no send-side SequenceNumber | Yes - both modes (explicit tag or content hash), 5-min window; echoes the original MessageId and SequenceNumber; reproduces the neither-tag-nor-dedup rejection | Yes - both modes, over a marker table in the same Postgres; 5-minute window |
| Message group · group ordering | ordered per group-id | per MessageGroupId (oldest message of each group first) | per MessageGroupId (oldest message of each group first) | session = MessageGroupId (broker-exclusive) | per group-id (the ordering unit) | per MessageGroupId (oldest message of each group first) |
| Delivery guarantee | ordered per group; duplicate sends suppressed for 5 minutes; consumer redelivery remains possible | at-least-once, in order per group | at-least-once, in order per group | at-least-once in order per group; duplicate sends suppressed by the broker within the window | at-least-once with in-window dedup (duplicate sends suppressed) | at-least-once, in order per group |
| Dead-letter | Yes - native redrive (maxReceiveCount) | Yes - native redrive (maxReceiveCount) | Yes - native redrive (maxReceiveCount) | Yes - native delivery-count limit + auto-forward to the declared (session-enabled) DLQ entity | Partial - moved into the declared FIFO DLQ container on receive (at-least-once); the group advances, the moved message keeps its group + order | Yes - native redrive (maxReceiveCount) |
| Visibility timeout · max hold | up to 12 h | honored (30 s default) | honored (30 s default) | ≤ 5 min (session-lock cap; longer is rejected with an error, extends via renewal) | uncapped (not a broker lock; unlike the Service Bus backend's 5-min cap) | honored (30 s default) |
| Receipt handle · restart durability | stateless, durable | a durable handle that survives an adapter restart | a durable handle that survives an adapter restart | - | - | a durable handle that survives an adapter restart |
| Max message size · per message | 1 MiB | 256 KB | 256 KB | 256 KB | 256 KB (well under the 2 MB Cosmos document cap) | 256 KB |
| Long-polling · receive wait | up to 20 s | bounded by WaitTimeSeconds (poll loop) | bounded by WaitTimeSeconds (poll loop) | native (session accept may overrun \~60 s worst case) | poll (the adapter checks Cosmos DB until a message arrives or the wait ends) | bounded by WaitTimeSeconds (poll loop) |
| Message retention · message lifetime | up to 14 d | retention enforced on message age (60 s..14 d) | retention enforced on message age (60 s..14 d) | - | native per-item Cosmos TTL; a TTL-dead head unblocks its group | retention enforced on message age (60 s..14 d) |
| API coverage | full | high | high (FIFO SQS semantics, subject to the selected PostgreSQL image/version, SQS SIP revision, FIFO schema and group/deduplication configuration. Registry version 1.0.0 is not the database version. Classic SQS installation/recovery evidence does not qualify FIFO; exact selected FIFO behavior and Kubernetes deployment require their own evidence.) | high | high | high |
| Duplicate-send echo | Yes - echoes the original MessageId/SequenceNumber | - | - | Partial - returns a fresh MessageId corresponding to no delivered message | Yes - echoes the original MessageId and SequenceNumber (crash-safe) | - |
| SequenceNumber on send | Yes - returned on every FIFO send | - | - | No - omitted (the broker sequence is asynchronous); receive-side sequence is real | Yes - the per-group sequence position, monotonic per group (the Service Bus backend omits it) | - |
| Receipt handle · restart durability | Yes - stateless, durable | - | - | Partial - session-lock-bound; an adapter restart invalidates in-flight handles | Yes - stateless data; survives an adapter restart, with no broker lock behind it (unlike the Service Bus backend) | - |
| Message retention · TTL scope | strictly per-message | - | - | expiry of the first message can expire its whole session | - | - |
| Single-group throughput | up to 10 msg per receive batch | - | - | 1 msg per round-trip per group (the one-in-flight strictness); scales with concurrent groups | - | - |
| Multi-pod clock skew · one-in-flight vs skew | n/a (single broker clock) | - | - | - | one active message per group is preserved; clock differences between pods can shorten the visibility window | - |
| FIFO / ordering | Yes - ordered per MessageGroupId; up to 10 messages in an ordered receive batch | - | - | - | - | Yes - oldest message of each group first; same contract on the managed server |
| Explicit deduplication | Yes - explicit MessageDeduplicationId | - | - | - | - | Yes - served (marker table, 5-minute window) |
| Content-based deduplication | Yes - SHA-256(body) dedup key | - | - | - | - | Yes - served (SHA-256 of the body, same marker table) |
| Durability · cluster-rebuild survival | SQS: managed, cross-AZ | - | - | - | - | queue data is stored on the managed Flexible Server outside the appliance cluster and survives a cluster rebuild |
| Shared-server tenancy · shared database | dedicated SQS | - | - | - | - | one shared Flexible Server + one shared database per appliance; every SQS queue on the appliance co-locates as a table-per-queue in that database, with no cross-appliance co-location |
| Server size · SKU / storage default | AWS-managed capacity | - | - | - | - | uses a fixed default server size and storage allocation because an SQS queue declares no source instance size |
| Maintenance and shared capacity · shared server | per-queue isolation | - | - | - | - | the shared server has one maintenance window and shared compute, so a heavy queue can affect neighbors on the same appliance server (the shared-server tradeoff) |

## On Google Cloud

| Operation | Area | Support | Depth | Notes |
| - | - | - | - | - |
| Dead-letter redrive | Dead-letter | Supported | Most usage | fires automatically once a message passes maxReceiveCount |
| Content/ID deduplication | FIFO | Supported | Most usage | both modes are served: an explicit MessageDeduplicationId takes precedence over the content hash (AWS's own rule), and a content-based queue derives a stable digest of the body. The message insert and deduplication marker share one transaction. A duplicate rolls back its new row and returns the original message identifiers |
| FIFO ordering | FIFO | Supported | Common | per-MessageGroupId strict order with one-in-flight per group (each receive takes the oldest message of each group, the same contract as the portable and Flexible Server FIFO tiers) |
| Message attributes | Messages | Supported | Common | - |
| GetQueueAttributes | Queues | Supported | Most usage | reads queue attributes, including approximate message counts |
| GetQueueUrl | Queues | Supported | Most usage | resolves the queue by name |
| DeleteMessage | Send / receive | Supported | Common | resolves by receipt handle; a stale handle returns ReceiptHandleIsInvalid |
| DeleteMessageBatch | Send / receive | Supported | Common | returns the result for each entry |
| ReceiveMessage | Send / receive | Supported | Common | long-poll (WaitTimeSeconds) honored; one message in flight per MessageGroupId |
| SendMessage | Send / receive | Supported | Common | MessageGroupId required on send (the AWS FIFO rule); MD5 checksums match what your SDK verifies |
| SendMessageBatch | Send / receive | Supported | Common | up to 10 messages per call, each with its MessageGroupId; returns the result for each entry |
| ChangeMessageVisibility | Visibility | Supported | Common | resolves by receipt handle; a stale handle is rejected rather than silently succeeding |

#### PostgreSQL hosting

Google operates Cloud SQL for PostgreSQL, including database backups and HA. The adapter uses short-lived Cloud SQL IAM tokens as database passwords, without an Auth Proxy or static password. Queue data stays outside the customer's Kubernetes cluster and survives its rebuild. Tensor9 operates the queue schema and adapter. Queues start empty; existing SQS messages are not migrated. Drain each message group before cutover to preserve order.

#### PostgreSQL queue behavior

Tensor9 adds an adapter, a proxy process, to your application pod and sets `AWS_ENDPOINT_URL_SQS` to its local address. Your application keeps its SQS SDK and its `SendMessage` and `ReceiveMessage` calls. The adapter performs them in PostgreSQL and returns SQS responses, error codes and MD5 checksums.

Each queue is a PostgreSQL table with one row per message. Sending, receiving, deleting, delays, visibility, dead-letter delivery and message counts all work on those rows. FIFO queues add ordering by message group, per-group sequence numbers and duplicate detection. Consumers can still receive a message more than once.

![Before: on AWS the application's SQS SDK calls Amazon SQS. After: in the target cloud the same application and SDK call a Tensor9 adapter, which implements the SQS API with one PostgreSQL table per queue.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMTgwIiB2aWV3Qm94PSIwIDAgODM2IDE4MCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJCZWZvcmU6IG9uIEFXUyB0aGUgYXBwbGljYXRpb24ncyBTUVMgU0RLIGNhbGxzIEFtYXpvbiBTUVMuIEFmdGVyOiBpbiB0aGUgdGFyZ2V0IGNsb3VkIHRoZSBzYW1lIGFwcGxpY2F0aW9uIGFuZCBTREsgY2FsbCBhIFRlbnNvcjkgYWRhcHRlciwgd2hpY2ggaW1wbGVtZW50cyB0aGUgU1FTIE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6I2NiZDVlMSIvPgo8dGV4dCB4PSI3NzQiIHk9IjEwOCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgc3R5bGU9ImZvbnQ6IDY1MCAxMy41cHggSW50ZXIsIHNhbnMtc2VyaWY7IGZpbGw6ICMwZjE3MmE7IGZvbnQtc2l6ZToxMXB4Ij5Qb3N0Z3JlczwvdGV4dD4KPHRleHQgeD0iNzc0IiB5PSIxMjYiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHN0eWxlPSJmb250OiAxMXB4IEludGVyLCBzYW5zLXNlcmlmOyBmaWxsOiAjNjQ3NDhiIj50YWJsZSBwZXIgcXVldWU8L3RleHQ+Cjwvc3ZnPg==)

![Before: on AWS the application's SQS SDK calls Amazon SQS. After: in the target cloud the same application and SDK call a Tensor9 adapter, which implements the SQS API with one PostgreSQL table per queue.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMTgwIiB2aWV3Qm94PSIwIDAgODM2IDE4MCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJCZWZvcmU6IG9uIEFXUyB0aGUgYXBwbGljYXRpb24ncyBTUVMgU0RLIGNhbGxzIEFtYXpvbiBTUVMuIEFmdGVyOiBpbiB0aGUgdGFyZ2V0IGNsb3VkIHRoZSBzYW1lIGFwcGxpY2F0aW9uIGFuZCBTREsgY2FsbCBhIFRlbnNvcjkgYWRhcHRlciwgd2hpY2ggaW1wbGVtZW50cyB0aGUgU1FTIEFQSSB3aXRoIG9uZSBQb3N0Z3JlU1FMIHRhYmxlIHBlciBxdWV1ZS4iPjxzdHlsZT50ZXh0e2ZvbnQtZmFtaWx5OkludGVyLC1hcHBsZS1zeXN0ZW0sQmxpbmtNYWNTeXN0ZW1Gb250LCdTZWdvZSBVSScsUm9ib3RvLCdIZWx2ZXRpY2EgTmV1ZScsQXJpYWwsc2Fucy1zZXJpZjtmaWxsOiNjYm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HRleHQtYW5jaG9yPSJtaWRkbGUiIHN0eWxlPSJmb250OiAxMXB4IEludGVyLCBzYW5zLXNlcmlmOyBmaWxsOiAjOTRhM2I4Ij50YWJsZSBwZXIgcXVldWU8L3RleHQ+Cjwvc3ZnPg==)

The application keeps its SQS SDK. The adapter stores each queue in a PostgreSQL table.

#### Architecture

The adapter keeps all queue state in PostgreSQL, including messages and receipt handles, so adapter instances can restart or scale out without losing track of in-flight messages. On Cloud SQL and Azure Flexible Server it signs in with short-lived Cloud SQL IAM or Microsoft Entra tokens used as database passwords, so no static secret is stored.

When the stack is deployed, Tensor9 creates one database per appliance and one table per declared queue. Each row holds the message body and attributes, its message group, its visibility time, its receipt handle, its receive count and the time it was sent. A FIFO queue orders messages within each message group; each row's arrival position gives its sequence number. A dead-letter queue is another queue table, and a background task deletes messages older than the queue's retention period.

CloudNativePG, Cloud SQL for PostgreSQL, Azure Flexible Server and Scaleway use the same adapter code and tables. They differ in where the data lives: the managed servers run outside your Kubernetes cluster, while CloudNativePG runs inside it. See the rebuild limitation below.

![The adapter stores messages, receipt handles, receive counts and visibility times in PostgreSQL: one table per queue, and another table for each dead-letter queue. A background task removes messages past their retention. FIFO messages also store their message group and sequence number, and each group has at most one message in flight.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMjQ0IiB2aWV3Qm94PSIwIDAgODM2IDI0NCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJUaGUgYWRhcHRlciBzdG9yZXMgbWVzc2FnZXMsIHJlY2VpcHQgaGFuZGxlcywgcmVjZWl2ZSBjb3VudHMgYW5kIHZpc2liaWxpdHkgdGltZXMgaW4gUG9zdGdyZVNRTDogb25lIHRhYmxlIHBlciBxdWV1ZSwgYW5kIGFub3RoZXIgdGFibGUgZm9yIGVhY2ggZGVhZC1sZXR0ZXIgcXVldWUuIEEgYmFja2dyb3VuZCB0YXNr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ryb2tlOiMwNDc4NTciLz4KPHRleHQgeD0iNzAxIiB5PSIxMzIiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHN0eWxlPSJmb250OiAxMC41cHggSW50ZXIsIHNhbnMtc2VyaWY7IGZpbGw6ICMwNDc4NTc7IGZvbnQtd2VpZ2h0OjcwMCI+RklGTyBncm91cHM8L3RleHQ+Cjx0ZXh0IHg9IjcwMSIgeT0iMTU0IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBzdHlsZT0iZm9udDogMTAuNXB4IEludGVyLCBzYW5zLXNlcmlmOyBmaWxsOiAjMDQ3ODU3Ij5ncm91cCBpZCDCtyBzZXF1ZW5jZSBudW1iZXI8L3RleHQ+Cjx0ZXh0IHg9IjcwMSIgeT0iMTcyIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBzdHlsZT0iZm9udDogMTAuNXB4IEludGVyLCBzYW5zLXNlcmlmOyBmaWxsOiAjMDQ3ODU3Ij5vbmUgbWVzc2FnZSBpbiBmbGlnaHQgcGVyIGdyb3VwPC90ZXh0Pgo8cmVjdCB4PSIzODAiIHk9IjE5MiIgd2lkdGg9IjQzNiIgaGVpZ2h0PSIyMiIgcng9IjYiIHN0cm9rZS13aWR0aD0iMSIgc3R5bGU9ImZpbGw6I2Y4ZmFmYztzdHJva2U6I2NiZDVlMSIvPgo8dGV4dCB4PSI1OTgiIHk9IjIwNyIgdGV4dC1hbmNob3I9Im1pZGRsZSIgc3R5bGU9ImZvbnQ6OS41cHggJ1NGIE1vbm8nLE1lbmxvLG1vbm9zcGFjZTtmaWxsOiMzMzQxNTUiPnNhbWUgYWRhcHRlciBvbiBldmVyeSBQb3N0Z3JlU1FMIGhvc3Q8L3RleHQ+Cjwvc3ZnPg==)

![The adapter stores messages, receipt handles, receive counts and visibility times in PostgreSQL: one table per queue, and another table for each dead-letter queue. A background task removes messages past their retention. FIFO messages also store their message group and sequence number, and each group has at most one message in flight.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0ia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Jva2U6IzQ3NTU2OSIvPgo8dGV4dCB4PSI1OTgiIHk9IjIwNyIgdGV4dC1hbmNob3I9Im1pZGRsZSIgc3R5bGU9ImZvbnQ6OS41cHggJ1NGIE1vbm8nLE1lbmxvLG1vbm9zcGFjZTtmaWxsOiNjYmQ1ZTEiPnNhbWUgYWRhcHRlciBvbiBldmVyeSBQb3N0Z3JlU1FMIGhvc3Q8L3RleHQ+Cjwvc3ZnPg==)

Each queue, including each dead-letter queue, is a PostgreSQL table. The same adapter runs on every supported PostgreSQL host.

#### Receiving messages

One database step selects messages whose visibility timeout has passed, oldest first, up to the requested batch size. In the same step it gives each a new receipt handle, hides it for the visibility timeout, adds one to its receive count and returns it. Messages another receiver is taking at that moment are skipped. FIFO queues return the next eligible message in each group, keeping one in flight per group. When the visibility timeout passes, the message can be delivered again; that does not stop a worker still processing the earlier copy.

`ApproximateReceiveCount` is the actual number of receives, not an estimate. The MD5 checksums of the body and attributes are recomputed, so your SDK's checks pass. `DelaySeconds` sets when a message first becomes visible. Long polling waits up to `WaitTimeSeconds` (at most 20 seconds) and returns as soon as a message is available. `SendMessageBatch` inserts all entries at once and reports a result for each entry. Message bodies are stored in the queue table.

![A receive takes the oldest visible messages and, in the same step, gives each a new receipt handle, hides it for the visibility timeout and adds one to its receive count. Two receivers at the same time get different messages. A message can be delivered again once its visibility timeout passes.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMjQwIiB2aWV3Qm94PSIwIDAgODM2IDI0MCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJBIHJlY2VpdmUgdGFrZXMgdGhlIG9sZGVzdCB2aXNpYmxlIG1lc3NhZ2VzIGFuZCwgaW4gdGhlIHNhbWUgc3RlcCwgZ2l2ZXMgZWFjaCBhIG5ldyByZWNlaXB0IGhhbmRsZSwgaGlkZXMgaXQgZm9yIHRoZSB2aXNpYmlsaXR5I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o8cmVjdCB4PSI0MDQiIHk9IjE5NiIgd2lkdGg9IjM5MiIgaGVpZ2h0PSIzMCIgcng9IjgiIHN0cm9rZS13aWR0aD0iMS4yIiBzdHlsZT0iZmlsbDojZWNmZGY1O3N0cm9rZTojMDQ3ODU3Ii8+Cjx0ZXh0IHg9IjYwMCIgeT0iMjE1IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBzdHlsZT0iZm9udDogMTAuNXB4IEludGVyLCBzYW5zLXNlcmlmOyBmaWxsOiAjMDQ3ODU3OyBmb250LXdlaWdodDo3MDAiPmVhY2ggcmVjZWl2ZXIgZ2V0cyBkaWZmZXJlbnQgbWVzc2FnZXM8L3RleHQ+Cjwvc3ZnPg==)

![A receive takes the oldest visible messages and, in the same step, gives each a new receipt handle, hides it for the visibility timeout and adds one to its receive count. Two receivers at the same time get different messages. A message can be delivered again once its visibility timeout passes.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMjQwIiB2aWV3Qm94PSIwIDAgODM2IDI0MCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJBIHJlY2VpdmUgdGFrZXMgdGhlIG9sZGVzdCB2aXNpYmxlIG1lc3NhZ2VzIGFuZCwgaW4gdGhlIHNhbWUgc3RlcCwgZ2l2ZXMgZWFjaCBhIG5ldyByZWNlaXB0IGhhbmRsZSwgaGlkZXMgaXQgZm9yIHRoZSB2aXNpYmlsaXR5IHRpbWVvdXQgYW5kIGFkZHMgb25lIHRvIGl0cyByZWNlaXZlIGNvdW50LiBUd28gcmVjZWl2ZXJzIGF0IHRoZSBzYW1lIHRpbWUgZ2V0IGRpZmZlcmVudCBtZXNzYWdlcy4gQSBtZXNzYWdlIGNhbiBiZSBkZWxpdmVyZWQgYWdhaW4gb25jZSBpdHMgdmlzaWJpbGl0eSB0aW1lb3V0IHBhc3Nlcy4iPjxzdHlsZT50ZXh0e2Z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LXNlcmlmOyBmaWxsOiAjNmVlN2I3OyBmb250LXdlaWdodDo3MDAiPmVhY2ggcmVjZWl2ZXIgZ2V0cyBkaWZmZXJlbnQgbWVzc2FnZXM8L3RleHQ+Cjwvc3ZnPg==)

Two receivers never get the same message at the same time. ApproximateReceiveCount is the actual receive count.

#### Receipt handles & visibility

Each receive saves a new receipt handle with the message. `DeleteMessage` and `ChangeMessageVisibility` find the message by that handle, including after an adapter restart or through another adapter instance.

A delete or visibility change whose handle matches no message returns `ReceiptHandleIsInvalid`. That includes a message already deleted, or received again under a newer handle. The visibility timeout defaults to 30 seconds. `ChangeMessageVisibility` can extend it with no lock-duration maximum, and zero makes the message available again immediately. Retention can delete a message while it is in flight.

![The receipt handle is saved with the message in PostgreSQL, so it still works after the adapter restarts: DeleteMessage and ChangeMessageVisibility find the message by it. The visibility timeout is a stored time with no cap, and ChangeMessageVisibility can keep extending it.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgODM2IDIwMCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJUaGUgcmVjZWlwdCBoYW5kbGUgaXMgc2F2ZWQgd2l0aCB0aGUgbWVzc2FnZSBpbiBQb3N0Z3JlU1FMLCBzbyBpdCBzdGlsbCB3b3JrcyBhZnRlciB0aGUgYWRhcHRlciByZXN0YXJ0czogRGVsZXRlTWVzc2FnZSBhbmQgQ2hhbmdlTWVzc2FnZVZpc2liaWxpdHkgZmluZCB0aGUgbWVzc2FnZSBieSBpdC4gVGhlIHZpc2liaWxpdHkgdGltZW91dCBpcyBhIHN0b3JlZCB0aW1lIHdpdGggbm8gY2FwLCBhbmQgQ2hhbmdlTWVzc2FnZVZpc2liaWxpdHkgY2FuIGtlZXAgZXh0ZW5kaW5nIGl0LiI+PHN0eWxlPnRleHR7Zm9udC1mYW1pbHk6SW50ZXIsLW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1lc3NhZ2UtbG9jayB0aW1lIGxpbWl0KTwvdGV4dD4KPC9zdmc+)

![The receipt handle is saved with the message in PostgreSQL, so it still works after the adapter restarts: DeleteMessage and ChangeMessageVisibility find the message by it. The visibility timeout is a stored time with no cap, and ChangeMessageVisibility can keep extending it.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgODM2IDIwMCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJUaGUgcmVjZWlwdCBoYW5kbGUgaXMgc2F2ZWQgd2l0aCB0aGUgbWVzc2FnZSBpbiBQb3N0Z3JlU1FMLCBzbyBpdCBzdGlsbCB3b3JrcyBhZnRlciB0aGUgYWRhcHRlciByZXN0YXJ0czogRGVsZXRlTWVzc2FnZSBhbmQgQ2hhbmdlTWVzc2FnZVZpc2liaWxpdHkgZmluZCB0aGUgbWVzc2FnZSBieSBpdC4gVGhlIHZpc2liaWxpdHkgdGltZW91dCBpcyBhIHN0b3JlZCB0aW1lIHdpdGggbm8gY2FwLCBhbmQgQ2hhbmdlTWVzc2FnZVZpc2liaWxpdHkgY2FuIGtlZXAgZXh0ZW5kaW5nIGl0LiI+PHN0eWxlPnRleHR7Zm9udC1mYW1pbHk6SW50ZXIsLWFwcGxlLXN5c3RlbSxCbGlua01hY1N5c3RlbUZvbnQsJ1NlZ29lIFVJJyxSb2JvdG8sJ0hlbHZldGljYSBOZXVlJyxBcmlhbCxzYW5zLXNlcmlmO2ZpbGw6I2NiZDVlMX08L3N0eWxlPgo8ZGVmcz48bWFya2VyIGlkPSJ2YSIgdmlld0JveD0iMCAwIDEwIDEwIiByZWZYPSI4IiByZWZZPSI1IiBtYXJrZXJXaWR0aD0iNyIgbWFya2VySGVpZ2h0PSI3IiBvcmllbnQ9ImF1dG8tc3RhcnQtcmV2ZXJzZSI+PHBhdGggZD0iTTAsMCBMMTA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0iODAiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHN0eWxlPSJmb250OiAxMHB4ICdTRiBNb25vJywgdWktbW9ub3NwYWNlLCAnSmV0QnJhaW5zIE1vbm8nLCBNZW5sbywgbW9ub3NwYWNlOyBmaWxsOiAjOTRhM2I4OyBmaWxsOiM2ZWU3YjciPitleHRlbmQ8L3RleHQ+Cjx0ZXh0IHg9Ijc3MiIgeT0iODAiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHN0eWxlPSJmb250OiAxMC41cHggSW50ZXIsIHNhbnMtc2VyaWY7IGZpbGw6ICM2ZWU3Yjc7IGZvbnQtd2VpZ2h0OjcwMCI+bm8gY2FwPC90ZXh0Pgo8dGV4dCB4PSI2MTciIHk9IjEzNCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgc3R5bGU9ImZvbnQ6IDExcHggSW50ZXIsIHNhbnMtc2VyaWY7IGZpbGw6ICM5NGEzYjgiPkNoYW5nZU1lc3NhZ2VWaXNpYmlsaXR5IGV4dGVuZHMgaXQsIHdpdGggbm8gY2FwPC90ZXh0Pgo8dGV4dCB4PSI2MTciIHk9IjE1NCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgc3R5bGU9ImZvbnQ6IDExcHggSW50ZXIsIHNhbnMtc2VyaWY7IGZpbGw6ICM5NGEzYjg7IGZpbGw6Izk0YTNiOCI+KG5vIG1lc3NhZ2UtbG9jayB0aW1lIGxpbWl0KTwvdGV4dD4KPC9zdmc+)

Receipt handles are saved with messages, so they still work after an adapter restart. Visibility has no lock-duration limit.

#### Dead-letter & retention

During a receive, one database transaction moves messages that have reached `maxReceiveCount` to the dead-letter queue and hands out the rest. Both happen or neither does, so an interrupted receive cannot remove a message from the source without its copy in the DLQ. The DLQ supports the same operations and retention cleanup. A FIFO move creates a new message in the DLQ, with a new `MessageId`, a receive count of zero and a new send time.

A background task deletes messages sent longer ago than the queue's retention period, including messages in flight; receiving does not reset that time. The retention period defaults to four days and is kept between 60 seconds and 14 days, so a missing or too-short value cannot delete new messages straight away. One worker per database removes expired messages in batches, pauses during database maintenance, and continues if one queue fails. Limits on rows per pass and time per batch cap the load.

![During a receive, one transaction moves messages that reached maxReceiveCount to the dead-letter queue and hands out the rest, so a message is never lost between the two queues. Consumers can still receive a message again after its visibility timeout. Separately, a background task removes messages sent longer ago than the queue's retention period, which is kept between 60 seconds and 14 days.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMjQwIiB2aWV3Qm94PSIwIDAgODM2IDI0MCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJEdXJpbmcgYSByZWNlaXZlLCBvbmUgdHJhbnNhY3Rpb24gbW92ZXMgbWVzc2FnZXMgdGhhdCByZWFjaGVkIG1heFJlY2VpdmVDb3VudCB0byB0aGUgZGVhZC1sZXR0ZXIgcXVldWUgYW5kIGhhbmRzIG91dCB0aGUgcmVzdCwgc28gYSBtZXNzYWdlIGlzIG5ldmVyIGxvc3QgYmV0d2VlbiB0aGUgdHdvIHF1ZXVlcy4gQ29uc3VtZXJzIGNhbiBzdGlsbCByZWNlaXZlIGEgbWVzc2FnZSBhZ2FpbiBhZnRlciBpdHMgdmlzaWJpbGl0eSB0aW1lb3V0LiBTZXBhcmF0ZWx5LCBhIGJhY2tncm91bmQgdGFzayByZW1vdmVzIG1lc3NhZ2VzIHNlbnQgbG9uZ2VyIGFnbyB0aGFuIHRoZSBxdWV1ZSdzIHJldGVudGlvbiBwZXJpb2QsIHdoaWNoIGlzIGtlcHQgYmV0d2VlbiA2MCBzZWNvbmRzIGFuZCAxNCBkYXlzLiI+PHN0eWxlPnRleHR7Zm9udC1mYW1pbHk6SW50ZXIsLWFwcGxlLXN5c3RlbSxCbGlua01hY1N5c3RlbUZvbnQsJ1NlZ29lIFVJJyxSb2JvdG8sJ0hlbHZldGljYSBOZXVlJyxBcmlhbCxzYW5zLXNlcmlmO2ZpbGw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MzNDE1NSI+bm93IOKIkiByZXRlbnRpb248L3RleHQ+Cjx0ZXh0IHg9IjI0MCIgeT0iMTgwIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBzdHlsZT0iZm9udDogMTFweCAnU0YgTW9ubycsIHVpLW1vbm9zcGFjZSwgJ0pldEJyYWlucyBNb25vJywgTWVubG8sIG1vbm9zcGFjZTsgZmlsbDogIzMzNDE1NTsgZmlsbDojZGMyNjI2Ij5zZW5kIHRpbWUgYmVmb3JlIGN1dG9mZiDihpIgcmVtb3ZlZDwvdGV4dD4KPHRleHQgeD0iNTk1IiB5PSIxODAiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHN0eWxlPSJmb250OiAxMXB4ICdTRiBNb25vJywgdWktbW9ub3NwYWNlLCAnSmV0QnJhaW5zIE1vbm8nLCBNZW5sbywgbW9ub3NwYWNlOyBmaWxsOiAjMzM0MTU1OyBmaWxsOiMwNDc4NTciPndpdGhpbiByZXRlbnRpb24g4oaSIGtlcHQ8L3RleHQ+Cjx0ZXh0IHg9IjQxOCIgeT0iMjE4IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBzdHlsZT0iZm9udDogMTFweCBJbnRlciwgc2Fucy1zZXJpZjsgZmlsbDogIzY0NzQ4YiI+cmV0ZW50aW9uIDYwcy0xNGQgwrcgYmF0Y2hlZCBjbGVhbnVwIMK3IG9uZSB3b3JrZXIgcGVyIGRhdGFiYXNlIMK3IGJhY2tzIG9mZiBkdXJpbmcgbWFpbnRlbmFuY2U8L3RleHQ+Cjwvc3ZnPg==)

![During a receive, one transaction moves messages that reached maxReceiveCount to the dead-letter queue and hands out the rest, so a message is never lost between the two queues. Consumers can still receive a message again after its visibility timeout. Separately, a background task removes messages sent longer ago than the queue's retention period, which is kept between 60 seconds and 14 days.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMjQwIiB2aWV3Q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0iNTk1IiB5PSIxODAiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHN0eWxlPSJmb250OiAxMXB4ICdTRiBNb25vJywgdWktbW9ub3NwYWNlLCAnSmV0QnJhaW5zIE1vbm8nLCBNZW5sbywgbW9ub3NwYWNlOyBmaWxsOiAjY2JkNWUxOyBmaWxsOiM2ZWU3YjciPndpdGhpbiByZXRlbnRpb24g4oaSIGtlcHQ8L3RleHQ+Cjx0ZXh0IHg9IjQxOCIgeT0iMjE4IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBzdHlsZT0iZm9udDogMTFweCBJbnRlciwgc2Fucy1zZXJpZjsgZmlsbDogIzk0YTNiOCI+cmV0ZW50aW9uIDYwcy0xNGQgwrcgYmF0Y2hlZCBjbGVhbnVwIMK3IG9uZSB3b3JrZXIgcGVyIGRhdGFiYXNlIMK3IGJhY2tzIG9mZiBkdXJpbmcgbWFpbnRlbmFuY2U8L3RleHQ+Cjwvc3ZnPg==)

One transaction moves failed messages to the DLQ and hands out the rest. A background task removes messages older than their retention period, kept between 60 seconds and 14 days.

#### FIFO ordering & dedup

A FIFO queue stores each message's `MessageGroupId` and orders delivery within each group. A receive returns only the oldest message of each group that has nothing in flight (no message in that group is currently received and still hidden). Because arrival positions only increase, that is always the group's next message, and exactly one message is in flight per group at a time. Groups are independent, so different receivers can process different groups at once, coordinated only by PostgreSQL. When a message's visibility timeout passes, it is first in its group again, so a redelivery stays in sequence.

Each FIFO send requires `MessageGroupId` and returns a `SequenceNumber`: the message's arrival position as a 20-digit, zero-padded number.

Deduplication markers live in a separate PostgreSQL table keyed by queue and deduplication ID. An explicit `MessageDeduplicationId` takes precedence; otherwise, on a queue with content-based deduplication, the key is the SHA-256 of the body, excluding attributes. The message insert and deduplication marker are part of one transaction. A duplicate within 5 minutes saves no new message and returns the original `MessageId` and `SequenceNumber`. Marker retention is independent of message retention, so receiving or deleting the original does not shorten the deduplication window.

While a message is in flight, no other message from its group is delivered until it is deleted or its visibility timeout passes. That does not stop a timed-out worker from finishing a message it already received, so consumers must make repeated processing safe.

![FIFO receives deliver the next message of each group that has nothing in flight. Each send returns a 20-digit, zero-padded sequence number. Explicit or content-based deduplication is recorded in a separate PostgreSQL table with a five-minute window; a repeated send returns the original message ID and sequence number.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMjQwIiB2aWV3Qm94PSIwIDAgODM2IDI0MCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJGSUZPIHJlY2VpdmVzIGRlbGl2ZXIgdGhlIG5leHQgbWVzc2FnZSBvZiBlYWNoIGdyb3VwIHRoYXQgaGFzIG5vdGhpbmcgaW4gZmxpZ2h0LiBFYWNoIHNlbmQgcmV0dXJucyBhIDIwLWRpZ2l0LCB6ZXJvLXBhZGRlZCBzZXF1ZW5jZSBudW1iZXIuIEV4cGxpY2l0IG9yIGNvbnRlbnQtYmFzZWQgZGVkdXBsaWNhdGlvbiBpcyByZWNvcmRlZCBpbiBhIHNlcGFyYXRlIFBvc3RncmVTUUwgdGFibGUgd2l0aCBhIGZpdmUtbWludXRlIHdpbmRvdzsgYSByZXBlYXRlZCBzZW5kIHJldHVybnMgdGhlIG9yaWdpbmFsIG1lc3NhZ2UgSUQgYW5kIHNlcXVlbmNlIG51bWJlci4iPjxzdHlsZT50ZXh0e2ZvbnQtZmFtaWx5OkludGVyLC1hcHBsZS1zeXN0ZW0sQmxpbmtNYWNTeXN0ZW1Gb250LCdTZWdvZSBVSScsUm9ib3RvLCdIZWx2ZXRpY2EgTmV1ZScsQXJpYWwsc2Fucy1zZXJpZjtmaWxsOiMzMzQxNTV9PC9zdHlsZT4KPGRlZnM+PG1hcmtlciBpZD0iZnMiIHZpZXdCb3g9IjAgMCAxMCAxMCIgcmVmWD0iOCIgcmVmWT0iNSIgbWFya2VyV2lkdGg9IjciIG1hcmtlckhlaWdodD0iNyIgb3JpZW50PSJh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ZWlnaHQ9IjQwIiByeD0iOSIgc3Ryb2tlLXdpZHRoPSIxLjQiIHN0eWxlPSJmaWxsOiNmZmZiZWI7c3Ryb2tlOiNmZGU2OGEiLz4KPHRleHQgeD0iNTYyIiB5PSIyMTQiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHN0eWxlPSJmb250OjYwMCAxMXB4IEludGVyLHNhbnMtc2VyaWY7ZmlsbDojYjQ1MzA5Ij5yZXBlYXQgcmV0dXJucyBvcmlnaW5hbCBJRHM8L3RleHQ+Cjx0ZXh0IHg9IjU2MiIgeT0iMjI5IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBzdHlsZT0iZm9udDogMTFweCBJbnRlciwgc2Fucy1zZXJpZjsgZmlsbDogIzY0NzQ4YjsgZmlsbDojYjQ1MzA5Ij5tZXNzYWdlIGFuZCBkZWR1cCBtYXJrZXIgc2F2ZWQgdG9nZXRoZXI8L3RleHQ+Cjwvc3ZnPg==)

![FIFO receives deliver the next message of each group that has nothing in flight. Each send returns a 20-digit, zero-padded sequence number. Explicit or content-based deduplication is recorded in a separate PostgreSQL table with a five-minute window; a repeated send returns the original message ID and sequence number.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMjQwIiB2aWV3Qm94PSIwIDAgODM2IDI0MCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJGSUZPIHJlY2VpdmVzIGRlbGl2ZXIgdGhlIG5leHQgbWVzc2FnZSBvZiBlYWNoIGdyb3VwIHRoYXQgaGFzIG5vdGhpbmcgaW4gZmxpZ2h0LiBFYWNoIHNlbmQgcmV0dXJucyBhIDIwLWRpZ2l0LCB6ZXJvLXBhZGRlZCBzZXF1ZW5jZSBudW1iZXIuIEV4cGxpY2l0IG9yIGNvbnRlbnQtYmFzZWQgZGVkdXBsaWNhdGlvbiBpcyByZWNvcmRlZCBpbiBhIHNlcGFyYXRlI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M2I7c3Ryb2tlOiM0NzU1NjkiLz4KPHRleHQgeD0iMTUxIiB5PSIyMjAiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHN0eWxlPSJmb250OiAxMXB4ICdTRiBNb25vJywgdWktbW9ub3NwYWNlLCAnSmV0QnJhaW5zIE1vbm8nLCBNZW5sbywgbW9ub3NwYWNlOyBmaWxsOiAjY2JkNWUxOyBmaWxsOiNjYmQ1ZTEiPmV4cGxpY2l0IElEIG9yIFNIQS0yNTYoYm9keSk8L3RleHQ+CjxsaW5lIHgxPSIyNzYiIHkxPSIyMTYiIHgyPSIzMTIiIHkyPSIyMTYiIHN0cm9rZS13aWR0aD0iMS44IiBtYXJrZXItZW5kPSJ1cmwoI2ZzKSIgc3R5bGU9InN0cm9rZTojNjQ3NDhiIi8+CjxyZWN0IHg9IjMxNCIgeT0iMTk2IiB3aWR0aD0iNDk2IiBoZWlnaHQ9IjQwIiByeD0iOSIgc3Ryb2tlLXdpZHRoPSIxLjQiIHN0eWxlPSJmaWxsOiM0MjIwMDY7c3Ryb2tlOiM5MjQwMGUiLz4KPHRleHQgeD0iNTYyIiB5PSIyMTQiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHN0eWxlPSJmb250OjYwMCAxMXB4IEludGVyLHNhbnMtc2VyaWY7ZmlsbDojZmJiZjI0Ij5yZXBlYXQgcmV0dXJucyBvcmlnaW5hbCBJRHM8L3RleHQ+Cjx0ZXh0IHg9IjU2MiIgeT0iMjI5IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBzdHlsZT0iZm9udDogMTFweCBJbnRlciwgc2Fucy1zZXJpZjsgZmlsbDogIzk0YTNiODsgZmlsbDojZmJiZjI0Ij5tZXNzYWdlIGFuZCBkZWR1cCBtYXJrZXIgc2F2ZWQgdG9nZXRoZXI8L3RleHQ+Cjwvc3ZnPg==)

FIFO receives deliver one message per group at a time. Sends return a SequenceNumber, and repeated sends within 5 minutes are suppressed, matched by an explicit ID or, with content-based deduplication, a body hash.

#### Limitations

Where SQS and the PostgreSQL adapter differ

* **Throughput behaves differently: one PostgreSQL server serves every queue.** All of an appliance's queues share one server, so its capacity bounds peak throughput and a heavy queue can affect the others. In Tensor9's round-trip test of a moderate-rate Standard queue, the adapter matched SQS throughput (about 300 vs 286 ops/s) with a lower p99 (140 ms vs 172 ms) but a slower median (p50 24 ms vs 15 ms). That is not a measured ceiling, and it does not cover FIFO queues or every host.
* **Queue data on CloudNativePG does not survive a cluster rebuild.** CloudNativePG keeps queue data inside the appliance cluster, so a full rebuild loses it. The managed hosts keep it on a provider-operated server outside the cluster, where it survives a rebuild. All hosts use the same queue implementation.
* **Messages are limited to 256 KiB by default.** The adapter's default limit is 262144 bytes, while native SQS now accepts up to 1 MiB. Sends are checked against the queue's declared limit.
* **FIFO send deduplication lasts 5 minutes.** A duplicate send within that window returns the original IDs. Reusing an ID after the window can create a new message. Consumer redelivery remains possible even within the window.
* **Stale receipt handles behave differently: they return an error.** `DeleteMessage` and `ChangeMessageVisibility` return `ReceiptHandleIsInvalid` when no message matches the handle.
* **Retention behaves differently: expired messages are removed periodically.** An expired message can remain until the next cleanup pass. Retention is kept between 60 seconds and 14 days; a too-short value is raised to 60 seconds so that new messages are not deleted.
* **Approximate counts behave differently: they are exact at query time.** `ApproximateNumberOfMessages` and `ApproximateNumberOfMessagesNotVisible` count the visible and hidden messages in the queue's table, though they can still change under concurrent traffic. `ApproximateNumberOfMessagesDelayed` is always zero.
* **Queue creation behaves differently: queues are created when the stack is deployed.** Tensor9 creates the database and each queue's table, and its dead-letter table, at deploy time. `CreateQueue`, `DeleteQueue` and `SetQueueAttributes` act on those tables. Switching a queue between Standard and FIFO is rejected, because it would replace the queue.

#### Other considerations

* **Moving from AWS.** The database and queue tables start empty, and existing SQS messages are not migrated. Drain each group before switching it, to preserve order.
* **Removing queues.** Each queue is created in one step, so a crash never leaves a half-created queue. When a queue is removed from the stack, Tensor9 deletes only queues it created; any other queue is detached and left in place. A queue that still holds messages is not deleted unless deletion is forced.
* **Who operates what.** On the managed hosts, the provider operates the database's durability, backups and high availability, and Tensor9 operates the adapter. On CloudNativePG, Tensor9 operates the database inside your cluster.

#### Example monthly charges

This Tensor9 BYOC scenario estimates service charges for the named origin and target services. Adapter hosting and commercial Tensor9 fees need separate allocations. [How Tensor9 estimates costs](https://docs.tensor9.com/byoc/costs/overview.md) explains the method and what the estimates include.

**Native or deployment mapping.** FIFO request-processing service levels have not been qualified for this mapping. Standard-queue measurements do not establish FIFO latency, throughput or availability. Cost estimates describe the selected service resources; operation coverage remains separate.

##### SQS FIFO · SQS request billing units

Feature: SQS FIFO.

Estimated monthly service charges by SQS request billing units. Adapter hosting and Tensor9 fees are excluded. Source: us-east-1; target: us-central1; currency: USD.

![SQS FIFO · SQS request billing units: monthly service charges by SQS request billing units. Exact values are in the following table.](https://docs.tensor9.com/images/diagrams/service-cost/dfe726f247b55b84a3039dfbb1b43a67b46ae0a1c38b9c2f2005038997da8f87-light.svg)

![SQS FIFO · SQS request billing units: monthly service charges by SQS request billing units. Exact values are in the following table.](https://docs.tensor9.com/images/diagrams/service-cost/f158bf2cf840855dc0368387034370246b08d95352748ec5e5297564a4633445-dark.svg)

Comparison pills describe all sampled scale points; amounts beside each service are for the named workload. Costs The Same means within 20% at every point. Costs Depend includes mixed results and unpriced samples.

Sampled monthly charges in USD, rounded to cents. Difference means target minus origin; a positive difference means the target costs more.

| SQS request billing units (per second) | SQS (Simple Queue Service, FIFO queues) | Target scenario | Cloud SQL for PostgreSQL | Difference |
| -: | -: | - | -: | -: |
| 0 | 0.00 | Cloud SQL for PostgreSQL (one copy) | 118.18 | 118.18 |
| 0 | 0.00 | Cloud SQL for PostgreSQL (two copies) | 236.36 | 236.36 |
| 1 | 1.31 | Cloud SQL for PostgreSQL (one copy) | 118.18 | 116.86 |
| 1 | 1.31 | Cloud SQL for PostgreSQL (two copies) | 236.36 | 235.04 |
| 10 | 13.14 | Cloud SQL for PostgreSQL (one copy) | 118.18 | 105.04 |
| 10 | 13.14 | Cloud SQL for PostgreSQL (two copies) | 236.36 | 223.22 |
| 100 | 131.40 | Cloud SQL for PostgreSQL (one copy) | 118.18 | -13.22 |
| 100 | 131.40 | Cloud SQL for PostgreSQL (two copies) | 236.36 | 104.96 |
| 1,000 | 1,314.00 | Cloud SQL for PostgreSQL (one copy) | 421.71 | -892.29 |
| 1,000 | 1,314.00 | Cloud SQL for PostgreSQL (two copies) | 843.42 | -470.58 |
| 10,000 | 13,140.00 | Cloud SQL for PostgreSQL (one copy) | 3,254.70 | -9,885.30 |
| 10,000 | 13,140.00 | Cloud SQL for PostgreSQL (two copies) | 6,509.39 | -6,630.61 |

Estimated allocation, not benchmark calibrated: sized from 2 vCPU, 8 GiB memory and 100 GiB SSD at 0 per second to 64 vCPU, 256 GiB memory and 100 GiB SSD at 10,000 per second.

**Curve assumptions**

| Target scenario | Assumption | Value | Unit |
| - | - | -: | - |
| Cloud SQL for PostgreSQL (one copy) | Origin list price · SQS billing units | 0.0000005 | USD/64-KiB request units |
| Cloud SQL for PostgreSQL (one copy) | Representative message size | 1,024 | bytes |
| Cloud SQL for PostgreSQL (one copy) | Origin send batch fill | 1 | messages/request |
| Cloud SQL for PostgreSQL (one copy) | Origin receive batch fill | 1 | messages/request |
| Cloud SQL for PostgreSQL (one copy) | Origin delete batch fill | 1 | messages/request |
| Cloud SQL for PostgreSQL (one copy) | Deliveries per message | 1 | attempts |
| Cloud SQL for PostgreSQL (one copy) | Empty receive calls per message | 0 | requests |
| Cloud SQL for PostgreSQL (one copy) | Queue residence window | 60 | seconds |
| Cloud SQL for PostgreSQL (one copy) | Ordering and dedup work multiplier | 2 | multiplier |
| Cloud SQL for PostgreSQL (one copy) | Target price guess · read | 0 | USD/read |
| Cloud SQL for PostgreSQL (one copy) | Target price guess · write | 0 | USD/write |
| Cloud SQL for PostgreSQL (one copy) | Target price guess · provider operation | 0 | USD/provider operation |
| Cloud SQL for PostgreSQL (one copy) | Target list price · GiB-month | 0.17 | USD/GiB-month |
| Cloud SQL for PostgreSQL (one copy) | Target price guess · published GiB | 0 | USD/published GiB |
| Cloud SQL for PostgreSQL (one copy) | Target price guess · delivered GiB | 0 | USD/delivered GiB |
| Cloud SQL for PostgreSQL (one copy) | Target list price · network GiB | 0.19 | USD/network GiB |
| Cloud SQL for PostgreSQL (one copy) | Target price guess · replica GiB-month | 0 | USD/replica GiB-month |
| Cloud SQL for PostgreSQL (one copy) | Target list price · vCPU-hour | 0.0413 | USD/vCPU-hour |
| Cloud SQL for PostgreSQL (one copy) | Target list price · GiB-hour | 0.007 | USD/GiB-hour |
| Cloud SQL for PostgreSQL (one copy) | Target price guess · resource-hour | 0 | USD/resource-hour |
| Cloud SQL for PostgreSQL (one copy) | Target price guess · resource-month | 0 | USD/resource-month |
| Cloud SQL for PostgreSQL (one copy) | Target price guess · input token | 0 | USD/input token |
| Cloud SQL for PostgreSQL (one copy) | Target price guess · output token | 0 | USD/output token |
| Cloud SQL for PostgreSQL (one copy) | Target monthly base charge | 0 | USD/month |
| Cloud SQL for PostgreSQL (one copy) | Target service minimum | 9.365 | USD/month |
| Cloud SQL for PostgreSQL (one copy) | Minimum primary CPU | 2 | vCPU |
| Cloud SQL for PostgreSQL (one copy) | Minimum primary RAM | 8 | GiB |
| Cloud SQL for PostgreSQL (one copy) | Minimum primary disk | 100 | GiB |
| Cloud SQL for PostgreSQL (one copy) | Additional full-price standby copy | 0 | 0 or 1 |
| Cloud SQL for PostgreSQL (one copy) | Allocated share of provisioned cost | 1 | fraction |
| Cloud SQL for PostgreSQL (one copy) | Read/write work per vCPU-second | 1,500 | operations/vCPU-second |
| Cloud SQL for PostgreSQL (one copy) | Planning peak / mean work | 2 | multiplier |
| Cloud SQL for PostgreSQL (one copy) | Planning primary CPU utilization | 0.7 | fraction |
| Cloud SQL for PostgreSQL (one copy) | Resident state reserved in RAM | 0.1 | fraction |
| Cloud SQL for PostgreSQL (one copy) | Planning disk utilization | 0.8 | fraction |
| Cloud SQL for PostgreSQL (one copy) | Maintenance and log disk reserve | 20 | GiB |
| Cloud SQL for PostgreSQL (one copy) | Staging database CPU unit-price guess | 0.0413 | USD/vCPU-hour |
| Cloud SQL for PostgreSQL (one copy) | Staging database RAM unit-price guess | 0.007 | USD/GiB-hour |
| Cloud SQL for PostgreSQL (one copy) | Staging database disk unit-price guess | 0.17 | USD/GiB-month |
| Cloud SQL for PostgreSQL (one copy) | Dependent object sink storage price guess | 0.023 | USD/GiB-month |
| Cloud SQL for PostgreSQL (one copy) | Dependent object sink write price guess | 0.000005 | USD/write |
| Cloud SQL for PostgreSQL (two copies) | Origin list price · SQS billing units | 0.0000005 | USD/64-KiB request units |
| Cloud SQL for PostgreSQL (two copies) | Representative message size | 1,024 | bytes |
| Cloud SQL for PostgreSQL (two copies) | Origin send batch fill | 1 | messages/request |
| Cloud SQL for PostgreSQL (two copies) | Origin receive batch fill | 1 | messages/request |
| Cloud SQL for PostgreSQL (two copies) | Origin delete batch fill | 1 | messages/request |
| Cloud SQL for PostgreSQL (two copies) | Deliveries per message | 1 | attempts |
| Cloud SQL for PostgreSQL (two copies) | Empty receive calls per message | 0 | requests |
| Cloud SQL for PostgreSQL (two copies) | Queue residence window | 60 | seconds |
| Cloud SQL for PostgreSQL (two copies) | Ordering and dedup work multiplier | 2 | multiplier |
| Cloud SQL for PostgreSQL (two copies) | Target price guess · read | 0 | USD/read |
| Cloud SQL for PostgreSQL (two copies) | Target price guess · write | 0 | USD/write |
| Cloud SQL for PostgreSQL (two copies) | Target price guess · provider operation | 0 | USD/provider operation |
| Cloud SQL for PostgreSQL (two copies) | Target list price · GiB-month | 0.17 | USD/GiB-month |
| Cloud SQL for PostgreSQL (two copies) | Target price guess · published GiB | 0 | USD/published GiB |
| Cloud SQL for PostgreSQL (two copies) | Target price guess · delivered GiB | 0 | USD/delivered GiB |
| Cloud SQL for PostgreSQL (two copies) | Target list price · network GiB | 0.19 | USD/network GiB |
| Cloud SQL for PostgreSQL (two copies) | Target price guess · replica GiB-month | 0 | USD/replica GiB-month |
| Cloud SQL for PostgreSQL (two copies) | Target list price · vCPU-hour | 0.0413 | USD/vCPU-hour |
| Cloud SQL for PostgreSQL (two copies) | Target list price · GiB-hour | 0.007 | USD/GiB-hour |
| Cloud SQL for PostgreSQL (two copies) | Target price guess · resource-hour | 0 | USD/resource-hour |
| Cloud SQL for PostgreSQL (two copies) | Target price guess · resource-month | 0 | USD/resource-month |
| Cloud SQL for PostgreSQL (two copies) | Target price guess · input token | 0 | USD/input token |
| Cloud SQL for PostgreSQL (two copies) | Target price guess · output token | 0 | USD/output token |
| Cloud SQL for PostgreSQL (two copies) | Target monthly base charge | 0 | USD/month |
| Cloud SQL for PostgreSQL (two copies) | Target service minimum | 9.365 | USD/month |
| Cloud SQL for PostgreSQL (two copies) | Minimum primary CPU | 2 | vCPU |
| Cloud SQL for PostgreSQL (two copies) | Minimum primary RAM | 8 | GiB |
| Cloud SQL for PostgreSQL (two copies) | Minimum primary disk | 100 | GiB |
| Cloud SQL for PostgreSQL (two copies) | Additional full-price standby copy | 1 | 0 or 1 |
| Cloud SQL for PostgreSQL (two copies) | Allocated share of provisioned cost | 1 | fraction |
| Cloud SQL for PostgreSQL (two copies) | Read/write work per vCPU-second | 1,500 | operations/vCPU-second |
| Cloud SQL for PostgreSQL (two copies) | Planning peak / mean work | 2 | multiplier |
| Cloud SQL for PostgreSQL (two copies) | Planning primary CPU utilization | 0.7 | fraction |
| Cloud SQL for PostgreSQL (two copies) | Resident state reserved in RAM | 0.1 | fraction |
| Cloud SQL for PostgreSQL (two copies) | Planning disk utilization | 0.8 | fraction |
| Cloud SQL for PostgreSQL (two copies) | Maintenance and log disk reserve | 20 | GiB |
| Cloud SQL for PostgreSQL (two copies) | Staging database CPU unit-price guess | 0.0413 | USD/vCPU-hour |
| Cloud SQL for PostgreSQL (two copies) | Staging database RAM unit-price guess | 0.007 | USD/GiB-hour |
| Cloud SQL for PostgreSQL (two copies) | Staging database disk unit-price guess | 0.17 | USD/GiB-month |
| Cloud SQL for PostgreSQL (two copies) | Dependent object sink storage price guess | 0.023 | USD/GiB-month |
| Cloud SQL for PostgreSQL (two copies) | Dependent object sink write price guess | 0.000005 | USD/write |

* 1-KiB messages, unbatched send/receive/delete; actual batch and delivery assumptions stay visible. Other native meters and workload assumptions retain their explicitly displayed default quantities. Workload translation and capacity assumptions are not benchmark measurements.
* Native monthly usage priced at the cited provider list prices; listed target allowances apply where present, excluding invoice credits, taxes and negotiated discounts. Rates as of 2026-10-22: us-east-1 → us-central1, USD/month.
* Source prices are reference charges, not an invoice. Target lines cover selected service usage/configuration only; adapter hosting and Tensor9 fees are excluded.
* Samples of explicit prices are not performance measurements or capacity qualification. No interpolation or break-even guarantee is implied.
* Variant assumptions show the first axis sample; any axis-dependent configuration is described by this curve's workload note.
* Rates are cited provider list prices, editable for discounts, commitments or another region. Workload translation and capacity coefficients remain editable planning assumptions, not benchmark measurements or a commercial quote.
* Default-zero rates are explicit assumptions, not evidence that the deployed service or resource is free.
* Provisioned-unit minimums use an editable approximate allocation floor. Modeled target service cost is max(usage/allocation, minimum), with billable network, durable staging and dependent sinks added separately; actual RU/TU sizing, scaling increments and throughput remain unqualified.
* Durable staging is priced once: provisioned targets include adapter state in their selected allocation; native targets add a separate staging allocation when required. Adapter hosting is a separate allocation and must exclude resources already priced as staging, workers or target capacity.
* A declared adapter mapping and cost model do not establish implementation availability or service equivalence.
* This is a declared directed mapping; a planning estimate does not establish deployment or request-serving support.
* Native/deployment comparison scope: FIFO request-processing service levels have not been qualified for this mapping. Standard-queue measurements do not establish FIFO latency, throughput or availability.
* Authored planning assumptions, not measured adapter capacity. Origin rates are cited first-tier list prices, before free allowances and discounts.
* A cost scenario does not establish backend availability, protocol fidelity or production readiness. Registry serving status remains independent.
* Storage follows resident original messages, not every monthly message. Broker delivery bytes include redeliveries.
* FIFO estimates do not qualify dedup support, group throughput or single-group latency; backend limitations remain applicable.
* Cloud SQL Enterprise edition (PostgreSQL) publishes separate vCPU, memory and SSD prices for zonal instances; a high-availability (regional) instance bills exactly twice each, which the standby copy reproduces. Enterprise Plus, committed-use discounts, backups (USD 0.08 per GiB-month) and idle IPv4 addresses (0.01 per hour) are not selected.
* Row-store throughput (capacityOpsPerVcpuSecond, default 1500) is measured-by-tensor9 as a lower bound: the DynamoDB adapter on Cloud SQL db-custom-2-7680 (2 vCPU, PostgreSQL 16, us-west1) served 2,974 ops/s of YCSB-A at 16 threads without recorded saturation (src/main/kotlin/t9/prime/equiv/generated/eval/CloudsqlPostgresqlYcsbAT16GoYcsbV1\_0\_0.kt). Published CPU-bound pgbench reaches 3,101 read-write transactions and 20,289 point reads per vCPU-second (AWS z1d.2xlarge, PostgreSQL 14.5), so actual capacity is likely higher. Reads and writes share one coefficient: at the same adapter version, read-only YCSB-C was not faster than 50%-update YCSB-A.
* Log-broker throughput (capacityStreamMiBPerVcpuSecond 20 at 0.5 utilization, 4 GiB RAM per vCPU) is provider-documented by Google Managed Service for Apache Kafka sizing ([https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/plan-cluster-size](https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/plan-cluster-size)): write-equivalent bytes are replicated writes plus a quarter of reads. Producer batches below 10 KB lower per-CPU throughput; that penalty is not modeled.
* Disk utilization 0.8 is provider-documented headroom below Cloud SQL automatic storage increase, which triggers near 91-95% full ([https://docs.cloud.google.com/sql/docs/postgres/instance-settings](https://docs.cloud.google.com/sql/docs/postgres/instance-settings)). The 20 GiB reserve exceeds PostgreSQL's 1 GB default max\_wal\_size; the remainder of that reserve is unmeasured.
* CPU tiers double from 2 vCPUs to the target's largest node at 4 GiB per vCPU; each target's documented largest node bounds CPU, RAM, RAM per vCPU and disk, and the durable staging database uses Cloud SQL Enterprise (96 vCPU, 6.5 GiB per vCPU, 624 GiB, 64 TiB). Targets billed per capacity unit or throughput unit are sized by their backend instead.
* No public evidence: peak/mean work (2) and the RAM working-set fraction (0.1). Proposed measurements: the p99 one-minute rate over the monthly mean from customer CloudWatch metrics; the buffer hit ratio while stepping RAM under a fixed YCSB-B load.
* Node bounds: Cloud SQL Enterprise allows 1-96 vCPUs at 0.9-6.5 GB per vCPU and up to 64 TB with a dedicated vCPU ([https://docs.cloud.google.com/sql/docs/postgres/instance-settings](https://docs.cloud.google.com/sql/docs/postgres/instance-settings)).
* Stored GiB already includes the origin family's physical footprint assumptions; no second storage amplification is applied.
* The operations/vCPU coefficient supplies the compute requirement alongside explicit resource-hour minima.
* Copies and allocation fractions change cost only; they do not increase modeled primary capacity.
* AWS Price List API, AWSQueueService offer: [https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AWSQueueService/current/us-east-1/index.json](https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AWSQueueService/current/us-east-1/index.json)
* Cloud SQL pricing: [https://cloud.google.com/sql/pricing](https://cloud.google.com/sql/pricing)

Cost scope: Modeled target native service and explicitly modeled state allocation; hosting and Tensor9 fees only when supplied.

Excluded costs and workload features:

* Additional network transfer, backups, KMS, one-time migration and operational labor unless an explicit meter includes them.
* Destination application execution and separately billed downstream services; supply those allocations separately.
* Taxes, discounts, credits and free-tier allowances not explicitly listed by this model.
* Unmodeled dependent services, task execution and operations outside the selected workload family.

List prices read: 2026-10-22. Model: `plan-c35b94f39c83dfc6e65b2063cdc3c7857cb28524` / `2026-10-22.planning.2`. Curve: `workload-1`.

Sources: [AWS Price List API, AWSQueueService offer](https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AWSQueueService/current/us-east-1/index.json), [Cloud SQL pricing](https://cloud.google.com/sql/pricing).

**SQS FIFO → Cloud SQL for PostgreSQL: Authored native-usage planning example.** Native monthly usage priced at the cited provider list prices; listed target allowances apply where present, excluding invoice credits, taxes and negotiated discounts.

Scenario source region: us-east-1. Scenario target region: us-central1. Currency: USD.

| Monthly component | USD |
| - | -: |
| Origin: SQS billing units | 0.00 |
| Target: Provisioned primary CPU | 60.30 |
| Target: Provisioned primary RAM | 40.88 |
| Target: Provisioned primary disk | 17.00 |
| Target: Selected billable network | 0.00 |
| Target: Independent provisioned resources | 0.00 |
| Target: Independent managed resources | 0.00 |
| **Origin service subtotal** | **0.00** |
| **Target service subtotal** | **118.18** |

Estimated allocation, not benchmark calibrated: sized at 2 vCPU, 8 GiB memory and 100 GiB SSD for this scenario.

Unestimated components: Adapter hosting, Tensor9 fees. A modeled adapted total and savings require these costs.

Cost scope: Modeled target native service and explicitly modeled state allocation; hosting and Tensor9 fees only when supplied.

Excluded costs and workload features:

* Additional network transfer, backups, KMS, one-time migration and operational labor unless an explicit meter includes them.
* Destination application execution and separately billed downstream services; supply those allocations separately.
* Taxes, discounts, credits and free-tier allowances not explicitly listed by this model.
* Unmodeled dependent services, task execution and operations outside the selected workload family.

**Scenario assumptions**

| Input | Value | Unit |
| - | -: | - |
| Origin list price · SQS billing units | 0.0000005 | USD/64-KiB request units |
| Representative message size | 1,024 | bytes |
| Origin send batch fill | 1 | messages/request |
| Origin receive batch fill | 1 | messages/request |
| Origin delete batch fill | 1 | messages/request |
| Deliveries per message | 1 | attempts |
| Empty receive calls per message | 0 | requests |
| Queue residence window | 60 | seconds |
| Ordering and dedup work multiplier | 2 | multiplier |
| Target price guess · read | 0 | USD/read |
| Target price guess · write | 0 | USD/write |
| Target price guess · provider operation | 0 | USD/provider operation |
| Target list price · GiB-month | 0.17 | USD/GiB-month |
| Target price guess · published GiB | 0 | USD/published GiB |
| Target price guess · delivered GiB | 0 | USD/delivered GiB |
| Target list price · network GiB | 0.19 | USD/network GiB |
| Target price guess · replica GiB-month | 0 | USD/replica GiB-month |
| Target list price · vCPU-hour | 0.0413 | USD/vCPU-hour |
| Target list price · GiB-hour | 0.007 | USD/GiB-hour |
| Target price guess · resource-hour | 0 | USD/resource-hour |
| Target price guess · resource-month | 0 | USD/resource-month |
| Target price guess · input token | 0 | USD/input token |
| Target price guess · output token | 0 | USD/output token |
| Target monthly base charge | 0 | USD/month |
| Target service minimum | 9.365 | USD/month |
| Minimum primary CPU | 2 | vCPU |
| Minimum primary RAM | 8 | GiB |
| Minimum primary disk | 100 | GiB |
| Additional full-price standby copy | 0 | 0 or 1 |
| Allocated share of provisioned cost | 1 | fraction |
| Read/write work per vCPU-second | 1,500 | operations/vCPU-second |
| Planning peak / mean work | 2 | multiplier |
| Planning primary CPU utilization | 0.7 | fraction |
| Resident state reserved in RAM | 0.1 | fraction |
| Planning disk utilization | 0.8 | fraction |
| Maintenance and log disk reserve | 20 | GiB |
| Staging database CPU unit-price guess | 0.0413 | USD/vCPU-hour |
| Staging database RAM unit-price guess | 0.007 | USD/GiB-hour |
| Staging database disk unit-price guess | 0.17 | USD/GiB-month |
| Dependent object sink storage price guess | 0.023 | USD/GiB-month |
| Dependent object sink write price guess | 0.000005 | USD/write |
| SQS billing units | 0 | 64-KiB request units |

* Translated reads: 0 operations.

* Translated writes: 0 operations.

* Translated resident physical data: 0 GiB-month.

* Native provider operations: 0 operations.

* Published payload: 0 GiB.

* Delivered payload: 0 GiB.

* Allocated execution CPU: 0 vCPU-hour.

* Allocated execution RAM: 0 GiB-hour.

* Independent resource allocation: 0 resource-hour.

* Independent inventory: 0 resource-month.

* Input tokens: 0 tokens.

* Output tokens: 0 tokens.

* Billable network: 0 GiB.

* Dependent object sink retained data: 0 GiB-month.

* Dependent object sink writes: 0 writes.

* Rates are cited provider list prices, editable for discounts, commitments or another region. Workload translation and capacity coefficients remain editable planning assumptions, not benchmark measurements or a commercial quote.

* Default-zero rates are explicit assumptions, not evidence that the deployed service or resource is free.

* Provisioned-unit minimums use an editable approximate allocation floor. Modeled target service cost is max(usage/allocation, minimum), with billable network, durable staging and dependent sinks added separately; actual RU/TU sizing, scaling increments and throughput remain unqualified.

* Durable staging is priced once: provisioned targets include adapter state in their selected allocation; native targets add a separate staging allocation when required. Adapter hosting is a separate allocation and must exclude resources already priced as staging, workers or target capacity.

* A declared adapter mapping and cost model do not establish implementation availability or service equivalence.

* This is a declared directed mapping; a planning estimate does not establish deployment or request-serving support.

* Native/deployment comparison scope: FIFO request-processing service levels have not been qualified for this mapping. Standard-queue measurements do not establish FIFO latency, throughput or availability.

* Authored planning assumptions, not measured adapter capacity. Origin rates are cited first-tier list prices, before free allowances and discounts.

* A cost scenario does not establish backend availability, protocol fidelity or production readiness. Registry serving status remains independent.

* Storage follows resident original messages, not every monthly message. Broker delivery bytes include redeliveries.

* FIFO estimates do not qualify dedup support, group throughput or single-group latency; backend limitations remain applicable.

* Cloud SQL Enterprise edition (PostgreSQL) publishes separate vCPU, memory and SSD prices for zonal instances; a high-availability (regional) instance bills exactly twice each, which the standby copy reproduces. Enterprise Plus, committed-use discounts, backups (USD 0.08 per GiB-month) and idle IPv4 addresses (0.01 per hour) are not selected.

* Row-store throughput (capacityOpsPerVcpuSecond, default 1500) is measured-by-tensor9 as a lower bound: the DynamoDB adapter on Cloud SQL db-custom-2-7680 (2 vCPU, PostgreSQL 16, us-west1) served 2,974 ops/s of YCSB-A at 16 threads without recorded saturation (src/main/kotlin/t9/prime/equiv/generated/eval/CloudsqlPostgresqlYcsbAT16GoYcsbV1\_0\_0.kt). Published CPU-bound pgbench reaches 3,101 read-write transactions and 20,289 point reads per vCPU-second (AWS z1d.2xlarge, PostgreSQL 14.5), so actual capacity is likely higher. Reads and writes share one coefficient: at the same adapter version, read-only YCSB-C was not faster than 50%-update YCSB-A.

* Log-broker throughput (capacityStreamMiBPerVcpuSecond 20 at 0.5 utilization, 4 GiB RAM per vCPU) is provider-documented by Google Managed Service for Apache Kafka sizing ([https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/plan-cluster-size](https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/plan-cluster-size)): write-equivalent bytes are replicated writes plus a quarter of reads. Producer batches below 10 KB lower per-CPU throughput; that penalty is not modeled.

* Disk utilization 0.8 is provider-documented headroom below Cloud SQL automatic storage increase, which triggers near 91-95% full ([https://docs.cloud.google.com/sql/docs/postgres/instance-settings](https://docs.cloud.google.com/sql/docs/postgres/instance-settings)). The 20 GiB reserve exceeds PostgreSQL's 1 GB default max\_wal\_size; the remainder of that reserve is unmeasured.

* CPU tiers double from 2 vCPUs to the target's largest node at 4 GiB per vCPU; each target's documented largest node bounds CPU, RAM, RAM per vCPU and disk, and the durable staging database uses Cloud SQL Enterprise (96 vCPU, 6.5 GiB per vCPU, 624 GiB, 64 TiB). Targets billed per capacity unit or throughput unit are sized by their backend instead.

* No public evidence: peak/mean work (2) and the RAM working-set fraction (0.1). Proposed measurements: the p99 one-minute rate over the monthly mean from customer CloudWatch metrics; the buffer hit ratio while stepping RAM under a fixed YCSB-B load.

* Node bounds: Cloud SQL Enterprise allows 1-96 vCPUs at 0.9-6.5 GB per vCPU and up to 64 TB with a dedicated vCPU ([https://docs.cloud.google.com/sql/docs/postgres/instance-settings](https://docs.cloud.google.com/sql/docs/postgres/instance-settings)).

* Stored GiB already includes the origin family's physical footprint assumptions; no second storage amplification is applied.

* The operations/vCPU coefficient supplies the compute requirement alongside explicit resource-hour minima.

* Copies and allocation fractions change cost only; they do not increase modeled primary capacity.

List prices read: 2026-10-22. Model: `plan-c35b94f39c83dfc6e65b2063cdc3c7857cb28524` / `2026-10-22.planning.2`. Scenario: `planning-example`.

Sources: [AWS Price List API, AWSQueueService offer](https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AWSQueueService/current/us-east-1/index.json), [Cloud SQL pricing](https://cloud.google.com/sql/pricing).

## On Azure, OCI, and Private Kubernetes

### Via PostgreSQL

| Operation | Area | Support | Depth | Notes |
| - | - | - | - | - |
| Dead-letter redrive | Dead-letter | Supported | Most usage | fires automatically once a message passes maxReceiveCount |
| Content/ID deduplication | FIFO | Supported | Most usage | both modes are served: an explicit MessageDeduplicationId takes precedence over the content hash (AWS's own rule), and a content-based queue derives a stable digest of the body. The message insert and deduplication marker share one transaction. A duplicate rolls back its new row and returns the original message identifiers |
| FIFO ordering | FIFO | Supported | Common | per-MessageGroupId strict order with one message in flight per group; each receive takes the oldest message of each group |
| Message attributes | Messages | Supported | Common | - |
| GetQueueAttributes | Queues | Supported | Most usage | reads queue attributes, including approximate message counts |
| GetQueueUrl | Queues | Supported | Most usage | resolves the queue by name |
| DeleteMessage | Send / receive | Supported | Common | resolves by receipt handle; a stale handle returns ReceiptHandleIsInvalid |
| DeleteMessageBatch | Send / receive | Supported | Common | returns the result for each entry |
| ReceiveMessage | Send / receive | Supported | Common | long-poll (WaitTimeSeconds) honored; one message in flight per MessageGroupId |
| SendMessage | Send / receive | Supported | Common | MessageGroupId required on send (the AWS FIFO rule); MD5 checksums match what your SDK verifies |
| SendMessageBatch | Send / receive | Supported | Common | up to 10 messages per call, each with its MessageGroupId; returns the result for each entry |
| ChangeMessageVisibility | Visibility | Supported | Common | resolves by receipt handle; a stale handle is rejected rather than silently succeeding |

#### PostgreSQL hosting

Tensor9 operates CloudNativePG inside the customer's Kubernetes cluster. Queue data is stored on that cluster's volumes and does not survive a full cluster rebuild. Plan recovery and message cutover before replacing the cluster. Tensor9 operates the queue schema and adapter. Queues start empty; existing SQS messages are not migrated. Drain each message group before cutover to preserve order.

#### Queue behavior

Queues use the same PostgreSQL tables, receive steps, stored receipt handles and single-transaction dead-letter moves described in [PostgreSQL queue behavior](https://docs.tensor9.com/byoc/service-adapters/aws/messaging-streaming/sqs-fifo.md#postgresql-queue-behavior). Receipt handles survive adapter restarts; stale receipt handles return an error. Retention still removes messages in flight. All queues share database capacity, so a busy queue can affect others. The documented Standard-queue benchmark does not establish this host's capacity or FIFO throughput. Duplicate sends are suppressed for five minutes; consumers must still handle redelivery.

#### Example monthly charges

This Tensor9 BYOC scenario estimates service charges for the named origin and target services. Adapter hosting and commercial Tensor9 fees need separate allocations. [How Tensor9 estimates costs](https://docs.tensor9.com/byoc/costs/overview.md) explains the method and what the estimates include.

**Native or deployment mapping.** FIFO request-processing service levels have not been qualified for this mapping. Standard-queue measurements do not establish FIFO latency, throughput or availability. Cost estimates describe the selected service resources; operation coverage remains separate.

##### SQS FIFO · SQS request billing units

Feature: SQS FIFO.

Estimated monthly service charges by SQS request billing units. Adapter hosting and Tensor9 fees are excluded. Source: us-east-1; target: us-central1; currency: USD.

![SQS FIFO · SQS request billing units: monthly service charges by SQS request billing units. Exact values are in the following table.](https://docs.tensor9.com/images/diagrams/service-cost/2036a1f06226eb37931bb17817a26968fa5905bccb912a41ffaddd1fdbe107e7-light.svg)

![SQS FIFO · SQS request billing units: monthly service charges by SQS request billing units. Exact values are in the following table.](https://docs.tensor9.com/images/diagrams/service-cost/a68e1eb256c0c009a0132052e78d3708566cde63f564b31b494e069b9138cb56-dark.svg)

Comparison pills describe all sampled scale points; amounts beside each service are for the named workload. Costs The Same means within 20% at every point. Costs Depend includes mixed results and unpriced samples.

Sampled monthly charges in USD, rounded to cents. Difference means target minus origin; a positive difference means the target costs more.

| SQS request billing units (per second) | SQS (Simple Queue Service, FIFO queues) | Target scenario | PostgreSQL | Difference |
| -: | -: | - | -: | -: |
| 0 | 0.00 | PostgreSQL (one copy) | 80.90 | 80.90 |
| 0 | 0.00 | PostgreSQL (two copies) | 161.79 | 161.79 |
| 1 | 1.31 | PostgreSQL (one copy) | 80.90 | 79.58 |
| 1 | 1.31 | PostgreSQL (two copies) | 161.79 | 160.48 |
| 10 | 13.14 | PostgreSQL (one copy) | 80.90 | 67.76 |
| 10 | 13.14 | PostgreSQL (two copies) | 161.79 | 148.65 |
| 100 | 131.40 | PostgreSQL (one copy) | 80.90 | -50.50 |
| 100 | 131.40 | PostgreSQL (two copies) | 161.79 | 30.39 |
| 1,000 | 1,314.00 | PostgreSQL (one copy) | 293.58 | -1,020.42 |
| 1,000 | 1,314.00 | PostgreSQL (two copies) | 587.17 | -726.83 |
| 10,000 | 13,140.00 | PostgreSQL (one copy) | 2,278.68 | -10,861.32 |
| 10,000 | 13,140.00 | PostgreSQL (two copies) | 4,557.35 | -8,582.65 |

Estimated allocation, not benchmark calibrated: sized from 2 vCPU, 8 GiB memory and 100 GiB SSD at 0 per second to 64 vCPU, 256 GiB memory and 100 GiB SSD at 10,000 per second.

**Curve assumptions**

| Target scenario | Assumption | Value | Unit |
| - | - | -: | - |
| PostgreSQL (one copy) | Origin list price · SQS billing units | 0.0000005 | USD/64-KiB request units |
| PostgreSQL (one copy) | Representative message size | 1,024 | bytes |
| PostgreSQL (one copy) | Origin send batch fill | 1 | messages/request |
| PostgreSQL (one copy) | Origin receive batch fill | 1 | messages/request |
| PostgreSQL (one copy) | Origin delete batch fill | 1 | messages/request |
| PostgreSQL (one copy) | Deliveries per message | 1 | attempts |
| PostgreSQL (one copy) | Empty receive calls per message | 0 | requests |
| PostgreSQL (one copy) | Queue residence window | 60 | seconds |
| PostgreSQL (one copy) | Ordering and dedup work multiplier | 2 | multiplier |
| PostgreSQL (one copy) | Target price guess · read | 0 | USD/read |
| PostgreSQL (one copy) | Target price guess · write | 0 | USD/write |
| PostgreSQL (one copy) | Target price guess · provider operation | 0 | USD/provider operation |
| PostgreSQL (one copy) | Target list price · GiB-month | 0.1 | USD/GiB-month |
| PostgreSQL (one copy) | Target price guess · published GiB | 0 | USD/published GiB |
| PostgreSQL (one copy) | Target price guess · delivered GiB | 0 | USD/delivered GiB |
| PostgreSQL (one copy) | Target list price · network GiB | 0.12 | USD/network GiB |
| PostgreSQL (one copy) | Target price guess · replica GiB-month | 0 | USD/replica GiB-month |
| PostgreSQL (one copy) | Target list price · vCPU-hour | 0.031611 | USD/vCPU-hour |
| PostgreSQL (one copy) | Target list price · GiB-hour | 0.004237 | USD/GiB-hour |
| PostgreSQL (one copy) | Target price guess · resource-hour | 0 | USD/resource-hour |
| PostgreSQL (one copy) | Target price guess · resource-month | 0 | USD/resource-month |
| PostgreSQL (one copy) | Target price guess · input token | 0 | USD/input token |
| PostgreSQL (one copy) | Target price guess · output token | 0 | USD/output token |
| PostgreSQL (one copy) | Target monthly base charge | 0 | USD/month |
| PostgreSQL (one copy) | Approximate target service minimum | 0 | USD/month |
| PostgreSQL (one copy) | Minimum primary CPU | 2 | vCPU |
| PostgreSQL (one copy) | Minimum primary RAM | 8 | GiB |
| PostgreSQL (one copy) | Minimum primary disk | 100 | GiB |
| PostgreSQL (one copy) | Additional full-price standby copy | 0 | 0 or 1 |
| PostgreSQL (one copy) | Allocated share of provisioned cost | 1 | fraction |
| PostgreSQL (one copy) | Read/write work per vCPU-second | 1,500 | operations/vCPU-second |
| PostgreSQL (one copy) | Planning peak / mean work | 2 | multiplier |
| PostgreSQL (one copy) | Planning primary CPU utilization | 0.7 | fraction |
| PostgreSQL (one copy) | Resident state reserved in RAM | 0.1 | fraction |
| PostgreSQL (one copy) | Planning disk utilization | 0.8 | fraction |
| PostgreSQL (one copy) | Maintenance and log disk reserve | 20 | GiB |
| PostgreSQL (one copy) | Staging database CPU unit-price guess | 0.0413 | USD/vCPU-hour |
| PostgreSQL (one copy) | Staging database RAM unit-price guess | 0.007 | USD/GiB-hour |
| PostgreSQL (one copy) | Staging database disk unit-price guess | 0.17 | USD/GiB-month |
| PostgreSQL (one copy) | Dependent object sink storage price guess | 0.023 | USD/GiB-month |
| PostgreSQL (one copy) | Dependent object sink write price guess | 0.000005 | USD/write |
| PostgreSQL (two copies) | Origin list price · SQS billing units | 0.0000005 | USD/64-KiB request units |
| PostgreSQL (two copies) | Representative message size | 1,024 | bytes |
| PostgreSQL (two copies) | Origin send batch fill | 1 | messages/request |
| PostgreSQL (two copies) | Origin receive batch fill | 1 | messages/request |
| PostgreSQL (two copies) | Origin delete batch fill | 1 | messages/request |
| PostgreSQL (two copies) | Deliveries per message | 1 | attempts |
| PostgreSQL (two copies) | Empty receive calls per message | 0 | requests |
| PostgreSQL (two copies) | Queue residence window | 60 | seconds |
| PostgreSQL (two copies) | Ordering and dedup work multiplier | 2 | multiplier |
| PostgreSQL (two copies) | Target price guess · read | 0 | USD/read |
| PostgreSQL (two copies) | Target price guess · write | 0 | USD/write |
| PostgreSQL (two copies) | Target price guess · provider operation | 0 | USD/provider operation |
| PostgreSQL (two copies) | Target list price · GiB-month | 0.1 | USD/GiB-month |
| PostgreSQL (two copies) | Target price guess · published GiB | 0 | USD/published GiB |
| PostgreSQL (two copies) | Target price guess · delivered GiB | 0 | USD/delivered GiB |
| PostgreSQL (two copies) | Target list price · network GiB | 0.12 | USD/network GiB |
| PostgreSQL (two copies) | Target price guess · replica GiB-month | 0 | USD/replica GiB-month |
| PostgreSQL (two copies) | Target list price · vCPU-hour | 0.031611 | USD/vCPU-hour |
| PostgreSQL (two copies) | Target list price · GiB-hour | 0.004237 | USD/GiB-hour |
| PostgreSQL (two copies) | Target price guess · resource-hour | 0 | USD/resource-hour |
| PostgreSQL (two copies) | Target price guess · resource-month | 0 | USD/resource-month |
| PostgreSQL (two copies) | Target price guess · input token | 0 | USD/input token |
| PostgreSQL (two copies) | Target price guess · output token | 0 | USD/output token |
| PostgreSQL (two copies) | Target monthly base charge | 0 | USD/month |
| PostgreSQL (two copies) | Approximate target service minimum | 0 | USD/month |
| PostgreSQL (two copies) | Minimum primary CPU | 2 | vCPU |
| PostgreSQL (two copies) | Minimum primary RAM | 8 | GiB |
| PostgreSQL (two copies) | Minimum primary disk | 100 | GiB |
| PostgreSQL (two copies) | Additional full-price standby copy | 1 | 0 or 1 |
| PostgreSQL (two copies) | Allocated share of provisioned cost | 1 | fraction |
| PostgreSQL (two copies) | Read/write work per vCPU-second | 1,500 | operations/vCPU-second |
| PostgreSQL (two copies) | Planning peak / mean work | 2 | multiplier |
| PostgreSQL (two copies) | Planning primary CPU utilization | 0.7 | fraction |
| PostgreSQL (two copies) | Resident state reserved in RAM | 0.1 | fraction |
| PostgreSQL (two copies) | Planning disk utilization | 0.8 | fraction |
| PostgreSQL (two copies) | Maintenance and log disk reserve | 20 | GiB |
| PostgreSQL (two copies) | Staging database CPU unit-price guess | 0.0413 | USD/vCPU-hour |
| PostgreSQL (two copies) | Staging database RAM unit-price guess | 0.007 | USD/GiB-hour |
| PostgreSQL (two copies) | Staging database disk unit-price guess | 0.17 | USD/GiB-month |
| PostgreSQL (two copies) | Dependent object sink storage price guess | 0.023 | USD/GiB-month |
| PostgreSQL (two copies) | Dependent object sink write price guess | 0.000005 | USD/write |

* 1-KiB messages, unbatched send/receive/delete; actual batch and delivery assumptions stay visible. Other native meters and workload assumptions retain their explicitly displayed default quantities. Workload translation and capacity assumptions are not benchmark measurements.
* Native monthly usage priced at the cited provider list prices; listed target allowances apply where present, excluding invoice credits, taxes and negotiated discounts. Rates as of 2026-10-22: us-east-1 → us-central1, USD/month.
* Source prices are reference charges, not an invoice. Target lines cover selected service usage/configuration only; adapter hosting and Tensor9 fees are excluded.
* Samples of explicit prices are not performance measurements or capacity qualification. No interpolation or break-even guarantee is implied.
* Variant assumptions show the first axis sample; any axis-dependent configuration is described by this curve's workload note.
* Rates are cited provider list prices, editable for discounts, commitments or another region. Workload translation and capacity coefficients remain editable planning assumptions, not benchmark measurements or a commercial quote.
* Default-zero rates are explicit assumptions, not evidence that the deployed service or resource is free.
* Provisioned-unit minimums use an editable approximate allocation floor. Modeled target service cost is max(usage/allocation, minimum), with billable network, durable staging and dependent sinks added separately; actual RU/TU sizing, scaling increments and throughput remain unqualified.
* Durable staging is priced once: provisioned targets include adapter state in their selected allocation; native targets add a separate staging allocation when required. Adapter hosting is a separate allocation and must exclude resources already priced as staging, workers or target capacity.
* A declared adapter mapping and cost model do not establish implementation availability or service equivalence.
* This is a declared directed mapping; a planning estimate does not establish deployment or request-serving support.
* Native/deployment comparison scope: FIFO request-processing service levels have not been qualified for this mapping. Standard-queue measurements do not establish FIFO latency, throughput or availability.
* Authored planning assumptions, not measured adapter capacity. Origin rates are cited first-tier list prices, before free allowances and discounts.
* A cost scenario does not establish backend availability, protocol fidelity or production readiness. Registry serving status remains independent.
* Storage follows resident original messages, not every monthly message. Broker delivery bytes include redeliveries.
* FIFO estimates do not qualify dedup support, group throughput or single-group latency; backend limitations remain applicable.
* Self-hosted target: PostgreSQL (PostgreSQL License, [https://www.postgresql.org/about/licence/](https://www.postgresql.org/about/licence/)). Selected CPU, RAM and physical disk allocation grow with workload; no per-operation price is assumed. No vendor charge: the target runs on the customer's Kubernetes nodes, so CPU, RAM and disk bill at the Kubernetes node reference rates, Compute Engine N2 in us-central1 (USD 0.031611/vCPU-hour, 0.004237/GiB-hour) with pd-balanced disk (0.10/GiB-month) and Premium Tier egress. The cost-optimized E2 series lists 0.02181159/vCPU-hour and 0.00292353/GiB-hour; AWS m6i/r6i and Azure D2s v5/E2s v5 both decompose to 0.033/vCPU-hour and 0.00375/GiB-hour. Requested CPU and RAM are billed; node bin-packing waste, system reservations and the cluster control-plane fee are not.
* Row-store throughput (capacityOpsPerVcpuSecond, default 1500) is measured-by-tensor9 as a lower bound: the DynamoDB adapter on Cloud SQL db-custom-2-7680 (2 vCPU, PostgreSQL 16, us-west1) served 2,974 ops/s of YCSB-A at 16 threads without recorded saturation (src/main/kotlin/t9/prime/equiv/generated/eval/CloudsqlPostgresqlYcsbAT16GoYcsbV1\_0\_0.kt). Published CPU-bound pgbench reaches 3,101 read-write transactions and 20,289 point reads per vCPU-second (AWS z1d.2xlarge, PostgreSQL 14.5), so actual capacity is likely higher. Reads and writes share one coefficient: at the same adapter version, read-only YCSB-C was not faster than 50%-update YCSB-A.
* Log-broker throughput (capacityStreamMiBPerVcpuSecond 20 at 0.5 utilization, 4 GiB RAM per vCPU) is provider-documented by Google Managed Service for Apache Kafka sizing ([https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/plan-cluster-size](https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/plan-cluster-size)): write-equivalent bytes are replicated writes plus a quarter of reads. Producer batches below 10 KB lower per-CPU throughput; that penalty is not modeled.
* Disk utilization 0.8 is provider-documented headroom below Cloud SQL automatic storage increase, which triggers near 91-95% full ([https://docs.cloud.google.com/sql/docs/postgres/instance-settings](https://docs.cloud.google.com/sql/docs/postgres/instance-settings)). The 20 GiB reserve exceeds PostgreSQL's 1 GB default max\_wal\_size; the remainder of that reserve is unmeasured.
* CPU tiers double from 2 vCPUs to the target's largest node at 4 GiB per vCPU; each target's documented largest node bounds CPU, RAM, RAM per vCPU and disk, and the durable staging database uses Cloud SQL Enterprise (96 vCPU, 6.5 GiB per vCPU, 624 GiB, 64 TiB). Targets billed per capacity unit or throughput unit are sized by their backend instead.
* No public evidence: peak/mean work (2) and the RAM working-set fraction (0.1). Proposed measurements: the p99 one-minute rate over the monthly mean from customer CloudWatch metrics; the buffer hit ratio while stepping RAM under a fixed YCSB-B load.
* Node bounds: Compute Engine n2-highmem-128 has 128 vCPUs and 864 GB ([https://docs.cloud.google.com/compute/docs/general-purpose-machines](https://docs.cloud.google.com/compute/docs/general-purpose-machines)); a Persistent Disk volume holds up to 64 TiB ([https://docs.cloud.google.com/compute/docs/disks/persistent-disks](https://docs.cloud.google.com/compute/docs/disks/persistent-disks)).
* Stored GiB already includes the origin family's physical footprint assumptions; no second storage amplification is applied.
* The operations/vCPU coefficient supplies the compute requirement alongside explicit resource-hour minima.
* Copies and allocation fractions change cost only; they do not increase modeled primary capacity.
* AWS Price List API, AWSQueueService offer: [https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AWSQueueService/current/us-east-1/index.json](https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AWSQueueService/current/us-east-1/index.json)
* Compute Engine general-purpose machine pricing: [https://cloud.google.com/products/compute/pricing/general-purpose](https://cloud.google.com/products/compute/pricing/general-purpose)
* Disk and image pricing: [https://cloud.google.com/compute/disks-image-pricing](https://cloud.google.com/compute/disks-image-pricing)
* Network pricing: [https://cloud.google.com/vpc/network-pricing](https://cloud.google.com/vpc/network-pricing)

Cost scope: Modeled target native service and explicitly modeled state allocation; hosting and Tensor9 fees only when supplied.

Excluded costs and workload features:

* Additional network transfer, backups, KMS, one-time migration and operational labor unless an explicit meter includes them.
* Destination application execution and separately billed downstream services; supply those allocations separately.
* Taxes, discounts, credits and free-tier allowances not explicitly listed by this model.
* Unmodeled dependent services, task execution and operations outside the selected workload family.

List prices read: 2026-10-22. Model: `plan-2205b0bb4fecd035329ea8f524e1a885b9bdcdab` / `2026-10-22.planning.2`. Curve: `workload-1`.

Sources: [AWS Price List API, AWSQueueService offer](https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AWSQueueService/current/us-east-1/index.json), [Compute Engine general-purpose machine pricing](https://cloud.google.com/products/compute/pricing/general-purpose), [Disk and image pricing](https://cloud.google.com/compute/disks-image-pricing), [Network pricing](https://cloud.google.com/vpc/network-pricing).

**SQS FIFO → PostgreSQL: Authored native-usage planning example.** Native monthly usage priced at the cited provider list prices; listed target allowances apply where present, excluding invoice credits, taxes and negotiated discounts.

Scenario source region: us-east-1. Scenario target region: us-central1. Currency: USD.

| Monthly component | USD |
| - | -: |
| Origin: SQS billing units | 0.00 |
| Target: Provisioned primary CPU | 46.15 |
| Target: Provisioned primary RAM | 24.74 |
| Target: Provisioned primary disk | 10.00 |
| Target: Selected billable network | 0.00 |
| Target: Independent provisioned resources | 0.00 |
| Target: Independent managed resources | 0.00 |
| **Origin service subtotal** | **0.00** |
| **Target service subtotal** | **80.90** |

Estimated allocation, not benchmark calibrated: sized at 2 vCPU, 8 GiB memory and 100 GiB SSD for this scenario.

Unestimated components: Adapter hosting, Tensor9 fees. A modeled adapted total and savings require these costs.

Cost scope: Modeled target native service and explicitly modeled state allocation; hosting and Tensor9 fees only when supplied.

Excluded costs and workload features:

* Additional network transfer, backups, KMS, one-time migration and operational labor unless an explicit meter includes them.
* Destination application execution and separately billed downstream services; supply those allocations separately.
* Taxes, discounts, credits and free-tier allowances not explicitly listed by this model.
* Unmodeled dependent services, task execution and operations outside the selected workload family.

**Scenario assumptions**

| Input | Value | Unit |
| - | -: | - |
| Origin list price · SQS billing units | 0.0000005 | USD/64-KiB request units |
| Representative message size | 1,024 | bytes |
| Origin send batch fill | 1 | messages/request |
| Origin receive batch fill | 1 | messages/request |
| Origin delete batch fill | 1 | messages/request |
| Deliveries per message | 1 | attempts |
| Empty receive calls per message | 0 | requests |
| Queue residence window | 60 | seconds |
| Ordering and dedup work multiplier | 2 | multiplier |
| Target price guess · read | 0 | USD/read |
| Target price guess · write | 0 | USD/write |
| Target price guess · provider operation | 0 | USD/provider operation |
| Target list price · GiB-month | 0.1 | USD/GiB-month |
| Target price guess · published GiB | 0 | USD/published GiB |
| Target price guess · delivered GiB | 0 | USD/delivered GiB |
| Target list price · network GiB | 0.12 | USD/network GiB |
| Target price guess · replica GiB-month | 0 | USD/replica GiB-month |
| Target list price · vCPU-hour | 0.031611 | USD/vCPU-hour |
| Target list price · GiB-hour | 0.004237 | USD/GiB-hour |
| Target price guess · resource-hour | 0 | USD/resource-hour |
| Target price guess · resource-month | 0 | USD/resource-month |
| Target price guess · input token | 0 | USD/input token |
| Target price guess · output token | 0 | USD/output token |
| Target monthly base charge | 0 | USD/month |
| Approximate target service minimum | 0 | USD/month |
| Minimum primary CPU | 2 | vCPU |
| Minimum primary RAM | 8 | GiB |
| Minimum primary disk | 100 | GiB |
| Additional full-price standby copy | 0 | 0 or 1 |
| Allocated share of provisioned cost | 1 | fraction |
| Read/write work per vCPU-second | 1,500 | operations/vCPU-second |
| Planning peak / mean work | 2 | multiplier |
| Planning primary CPU utilization | 0.7 | fraction |
| Resident state reserved in RAM | 0.1 | fraction |
| Planning disk utilization | 0.8 | fraction |
| Maintenance and log disk reserve | 20 | GiB |
| Staging database CPU unit-price guess | 0.0413 | USD/vCPU-hour |
| Staging database RAM unit-price guess | 0.007 | USD/GiB-hour |
| Staging database disk unit-price guess | 0.17 | USD/GiB-month |
| Dependent object sink storage price guess | 0.023 | USD/GiB-month |
| Dependent object sink write price guess | 0.000005 | USD/write |
| SQS billing units | 0 | 64-KiB request units |

* Translated reads: 0 operations.

* Translated writes: 0 operations.

* Translated resident physical data: 0 GiB-month.

* Native provider operations: 0 operations.

* Published payload: 0 GiB.

* Delivered payload: 0 GiB.

* Allocated execution CPU: 0 vCPU-hour.

* Allocated execution RAM: 0 GiB-hour.

* Independent resource allocation: 0 resource-hour.

* Independent inventory: 0 resource-month.

* Input tokens: 0 tokens.

* Output tokens: 0 tokens.

* Billable network: 0 GiB.

* Dependent object sink retained data: 0 GiB-month.

* Dependent object sink writes: 0 writes.

* Rates are cited provider list prices, editable for discounts, commitments or another region. Workload translation and capacity coefficients remain editable planning assumptions, not benchmark measurements or a commercial quote.

* Default-zero rates are explicit assumptions, not evidence that the deployed service or resource is free.

* Provisioned-unit minimums use an editable approximate allocation floor. Modeled target service cost is max(usage/allocation, minimum), with billable network, durable staging and dependent sinks added separately; actual RU/TU sizing, scaling increments and throughput remain unqualified.

* Durable staging is priced once: provisioned targets include adapter state in their selected allocation; native targets add a separate staging allocation when required. Adapter hosting is a separate allocation and must exclude resources already priced as staging, workers or target capacity.

* A declared adapter mapping and cost model do not establish implementation availability or service equivalence.

* This is a declared directed mapping; a planning estimate does not establish deployment or request-serving support.

* Native/deployment comparison scope: FIFO request-processing service levels have not been qualified for this mapping. Standard-queue measurements do not establish FIFO latency, throughput or availability.

* Authored planning assumptions, not measured adapter capacity. Origin rates are cited first-tier list prices, before free allowances and discounts.

* A cost scenario does not establish backend availability, protocol fidelity or production readiness. Registry serving status remains independent.

* Storage follows resident original messages, not every monthly message. Broker delivery bytes include redeliveries.

* FIFO estimates do not qualify dedup support, group throughput or single-group latency; backend limitations remain applicable.

* Self-hosted target: PostgreSQL (PostgreSQL License, [https://www.postgresql.org/about/licence/](https://www.postgresql.org/about/licence/)). Selected CPU, RAM and physical disk allocation grow with workload; no per-operation price is assumed. No vendor charge: the target runs on the customer's Kubernetes nodes, so CPU, RAM and disk bill at the Kubernetes node reference rates, Compute Engine N2 in us-central1 (USD 0.031611/vCPU-hour, 0.004237/GiB-hour) with pd-balanced disk (0.10/GiB-month) and Premium Tier egress. The cost-optimized E2 series lists 0.02181159/vCPU-hour and 0.00292353/GiB-hour; AWS m6i/r6i and Azure D2s v5/E2s v5 both decompose to 0.033/vCPU-hour and 0.00375/GiB-hour. Requested CPU and RAM are billed; node bin-packing waste, system reservations and the cluster control-plane fee are not.

* Row-store throughput (capacityOpsPerVcpuSecond, default 1500) is measured-by-tensor9 as a lower bound: the DynamoDB adapter on Cloud SQL db-custom-2-7680 (2 vCPU, PostgreSQL 16, us-west1) served 2,974 ops/s of YCSB-A at 16 threads without recorded saturation (src/main/kotlin/t9/prime/equiv/generated/eval/CloudsqlPostgresqlYcsbAT16GoYcsbV1\_0\_0.kt). Published CPU-bound pgbench reaches 3,101 read-write transactions and 20,289 point reads per vCPU-second (AWS z1d.2xlarge, PostgreSQL 14.5), so actual capacity is likely higher. Reads and writes share one coefficient: at the same adapter version, read-only YCSB-C was not faster than 50%-update YCSB-A.

* Log-broker throughput (capacityStreamMiBPerVcpuSecond 20 at 0.5 utilization, 4 GiB RAM per vCPU) is provider-documented by Google Managed Service for Apache Kafka sizing ([https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/plan-cluster-size](https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/plan-cluster-size)): write-equivalent bytes are replicated writes plus a quarter of reads. Producer batches below 10 KB lower per-CPU throughput; that penalty is not modeled.

* Disk utilization 0.8 is provider-documented headroom below Cloud SQL automatic storage increase, which triggers near 91-95% full ([https://docs.cloud.google.com/sql/docs/postgres/instance-settings](https://docs.cloud.google.com/sql/docs/postgres/instance-settings)). The 20 GiB reserve exceeds PostgreSQL's 1 GB default max\_wal\_size; the remainder of that reserve is unmeasured.

* CPU tiers double from 2 vCPUs to the target's largest node at 4 GiB per vCPU; each target's documented largest node bounds CPU, RAM, RAM per vCPU and disk, and the durable staging database uses Cloud SQL Enterprise (96 vCPU, 6.5 GiB per vCPU, 624 GiB, 64 TiB). Targets billed per capacity unit or throughput unit are sized by their backend instead.

* No public evidence: peak/mean work (2) and the RAM working-set fraction (0.1). Proposed measurements: the p99 one-minute rate over the monthly mean from customer CloudWatch metrics; the buffer hit ratio while stepping RAM under a fixed YCSB-B load.

* Node bounds: Compute Engine n2-highmem-128 has 128 vCPUs and 864 GB ([https://docs.cloud.google.com/compute/docs/general-purpose-machines](https://docs.cloud.google.com/compute/docs/general-purpose-machines)); a Persistent Disk volume holds up to 64 TiB ([https://docs.cloud.google.com/compute/docs/disks/persistent-disks](https://docs.cloud.google.com/compute/docs/disks/persistent-disks)).

* Stored GiB already includes the origin family's physical footprint assumptions; no second storage amplification is applied.

* The operations/vCPU coefficient supplies the compute requirement alongside explicit resource-hour minima.

* Copies and allocation fractions change cost only; they do not increase modeled primary capacity.

List prices read: 2026-10-22. Model: `plan-2205b0bb4fecd035329ea8f524e1a885b9bdcdab` / `2026-10-22.planning.2`. Scenario: `planning-example`.

Sources: [AWS Price List API, AWSQueueService offer](https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AWSQueueService/current/us-east-1/index.json), [Compute Engine general-purpose machine pricing](https://cloud.google.com/products/compute/pricing/general-purpose), [Disk and image pricing](https://cloud.google.com/compute/disks-image-pricing), [Network pricing](https://cloud.google.com/vpc/network-pricing).

## On Azure

### Via Azure Service Bus

| Operation | Area | Support | Depth | Notes |
| - | - | - | - | - |
| Dead-letter redrive | Dead-letter | Supported | Most usage | Service Bus moves a message at the delivery-count limit to the declared session-enabled DLQ, then allows the next message in its group to proceed |
| Content-based deduplication | FIFO | Supported | Most usage | broker-native duplicate detection over a content-hash message id, 5-minute window (the SQS constant), honored at apply-time when your queue declares content-based deduplication |
| Dedup echo (suppressed-send response) | FIFO | Partial | Most usage | a dedup-suppressed send returns a fresh MessageId rather than echoing the original's MessageId/SequenceNumber as SQS does, so do not correlate on it |
| FIFO ordering | FIFO | Supported | Common | sessions are broker-exclusive per group, so ordering holds across horizontally scaled consumers with session ownership stored in Service Bus |
| MessageDeduplicationId | FIFO | Supported | Most usage | the explicit tag takes precedence over the content hash (AWS's own rule) |
| SequenceNumber (send response) | FIFO | Out of scope | Most usage | Service Bus cannot return the broker sequence synchronously, so the send response omits it; the receive-side sequence number is real (queue-monotonic, which contains per-group monotonic) |
| DeleteQueue / ListQueues / SetQueueAttributes / tags | Queues | Partial | Full surface | Max manages logical queues, tags and supported edits; session-enabled entities remain provisioned through Terraform. Broker-owned policy changes are rejected |
| GetQueueAttributes (live message counts) | Queues | Out of scope | Full surface | live counts are unavailable through AMQP and omitted; declared configuration is read separately from the Max catalog |
| PurgeQueue | Queues | Supported | Most usage | a bounded accept/drain/dispose session loop (the same documented raciness window as SQS's own purge) |
| DelaySeconds (per message) | Send / receive | Out of scope | Common | rejected exactly as real SQS rejects per-message delay on a FIFO queue (a scheduled enqueue would break in-group order) |
| DeleteMessage | Send / receive | Supported | Common | completes the group head within its held session |
| ReceiveMessage | Send / receive | Supported | Common | session receivers: strict per-MessageGroupId order, one message in flight per group; receives are bounded by your MaxNumberOfMessages budget (extra messages are not received and discarded) |
| SendMessage | Send / receive | Supported | Common | MessageGroupId required (the AWS FIFO rule) and used as the session id |
| SendMessageBatch | Send / receive | Supported | Common | runs as sequential individual sends to preserve entry order and return a result for each entry |
| ChangeMessageVisibility | Visibility | Partial | Common | extend = session-lock renewal, zero = in-session immediate redelivery (order preserved); the visibility timeout is capped at 5 minutes, longer is rejected with an error |

#### How it works

Tensor9 adds an adapter, a proxy process, to your application pod and sets `AWS_ENDPOINT_URL_SQS` to its local address. Your application keeps its SQS SDK and its `SendMessage` and `ReceiveMessage` calls. The adapter translates them to Azure Service Bus and returns SQS responses, error codes and MD5 checksums.

For a `.fifo` queue, Tensor9 provisions a Service Bus queue with sessions enabled. The adapter uses the `MessageGroupId` as the session ID, and the `.fifo` suffix tells it to receive by session. Service Bus gives each session to one consumer at a time, and the adapter delivers one message per group at a time, so send order holds across many consumer instances.

![Before: on AWS the application's SQS SDK calls Amazon SQS FIFO. After: in the target cloud the same application and SDK call a Tensor9 adapter, which implements the SQS FIFO API with Azure Service Bus sessions.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMTgwIiB2aWV3Qm94PSIwIDAgODM2IDE4MCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJCZWZvcmU6IG9uIEFXUyB0aGUgYXBwbGljYXRpb24ncyBTUVMgU0RLIGNhbGxzIEFtYXpvbiBTUVMgRklGTy4gQWZ0ZX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dHJva2U6Izk0YTNiOCIvPgo8cmVjdCB4PSI3MzIiIHk9IjgwIiB3aWR0aD0iODQiIGhlaWdodD0iNjYiIHJ4PSIxMSIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0eWxlPSJmaWxsOiNmZmZmZmY7c3Ryb2tlOiNjYmQ1ZTEiLz4KPHRleHQgeD0iNzc0IiB5PSIxMDciIHRleHQtYW5jaG9yPSJtaWRkbGUiIHN0eWxlPSJmb250OiA2NTAgMTMuNXB4IEludGVyLCBzYW5zLXNlcmlmOyBmaWxsOiAjMGYxNzJhOyBmb250LXNpemU6MTBweCI+U2VydmljZSBCdXM8L3RleHQ+Cjx0ZXh0IHg9Ijc3NCIgeT0iMTI1IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBzdHlsZT0iZm9udDogMTFweCBJbnRlciwgc2Fucy1zZXJpZjsgZmlsbDogIzY0NzQ4YiI+c2Vzc2lvbnM8L3RleHQ+Cjwvc3ZnPg==)

![Before: on AWS the application's SQS SDK calls Amazon SQS FIFO. After: in the target cloud the same application and SDK call a Tensor9 adapter, which implements the SQS FIFO API with Azure Service Bus sessions.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMTgwIiB2aWV3Qm94PSIwIDAgODM2IDE4MCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJCZWZvcmU6IG9uIEFXUyB0aGUgYXBwbGljYXRpb24ncyBTUVMgU0RLIGNhbGxzIEFtYXpvbiBTUVMgRklGTy4gQWZ0ZXI6IGluIHRoZSB0YXJnZXQgY2xvdWQgdGhlIHNhbWUgYXBwbGljYXRpb24gYW5kIFNESyBjYWxsIGEgVGVuc29yOSBhZGFwdGVyLCB3aGljaCBpbXBsZW1lbnRzIHRoZSBTUVMgRklGTyBBUEkgd2l0aCBBenVyZSBTZXJ2aWNlIEJ1cyBzZXNzaW9ucy4iPjxzdHlsZT50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leHQtYW5jaG9yPSJtaWRkbGUiIHN0eWxlPSJmb250OiA2NTAgMTMuNXB4IEludGVyLCBzYW5zLXNlcmlmOyBmaWxsOiAjZjFmNWY5OyBmb250LXNpemU6MTBweCI+U2VydmljZSBCdXM8L3RleHQ+Cjx0ZXh0IHg9Ijc3NCIgeT0iMTI1IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBzdHlsZT0iZm9udDogMTFweCBJbnRlciwgc2Fucy1zZXJpZjsgZmlsbDogIzk0YTNiOCI+c2Vzc2lvbnM8L3RleHQ+Cjwvc3ZnPg==)

The application keeps its SQS SDK. A Tensor9 adapter translates FIFO queue calls to Service Bus sessions.

#### Architecture

The adapter talks to Service Bus Standard over AMQP 1.0. On send, it sets the session ID from `MessageGroupId`. On receive, it delivers one message per group, renews the session lock while the visibility timeout runs, and completes or releases messages so their delivery counts stay correct. It signs in with your AKS Workload Identity, with no static secret.

Session receives run separately from sending and from standard-queue receives, so a FIFO receive never blocks them.

Tensor9 creates the queue when the stack is deployed, before the first message arrives, with sessions enabled, duplicate detection over a 5-minute window, a 5-minute session lock (ten times the adapter's lock-renewal interval), dead-lettering of expired messages, and automatic forwarding to your dead-letter queue. Microsoft operates Service Bus's durability, backups and high availability; Tensor9 operates the adapter.

![The app's SQS SDK calls the Tensor9 adapter in its pod. The adapter implements the SQS FIFO API with an Azure Service Bus queue that has sessions enabled, using the MessageGroupId as the session ID. Each group keeps strict order with one message in flight, even with many consumers, and FIFO receives never block sends or standard receives.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMjUwIiB2aWV3Qm94PSIwIDAgODM2IDI1MCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJUaGUgYXBwJ3MgU1FTIFNESyBjYWxscyB0aGUgVGVuc29yOSBhZGFwdGVyIGluIGl0cyBwb2QuIFRoZSBhZGFwdGVyIGltcGxlbWVudHMg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3QgeD0iNDgwIiB5PSIxNTIiIHdpZHRoPSIzMTYiIGhlaWdodD0iMjgiIHJ4PSI2IiBzdHJva2Utd2lkdGg9IjEuMiIgc3R5bGU9ImZpbGw6I2Y4ZmFmYztzdHJva2U6I2NiZDVlMSIvPgo8dGV4dCB4PSI0OTIiIHk9IjE3MCIgc3R5bGU9ImZvbnQ6MTBweCAnU0YgTW9ubycsTWVubG8sbW9ub3NwYWNlO2ZpbGw6IzA0Nzg1NyI+c2Vzc2lvbiBCPC90ZXh0Pgo8dGV4dCB4PSI3OTIiIHk9IjE3MCIgdGV4dC1hbmNob3I9ImVuZCIgc3R5bGU9ImZvbnQ6MTBweCAnU0YgTW9ubycsTWVubG8sbW9ub3NwYWNlO2ZpbGw6IzMzNDE1NSI+bTEg4oaSIG0yPC90ZXh0Pgo8cmVjdCB4PSI0ODAiIHk9IjE4NCIgd2lkdGg9IjMxNiIgaGVpZ2h0PSIyOCIgcng9IjYiIHN0cm9rZS13aWR0aD0iMS4yIiBzdHlsZT0iZmlsbDojZjhmYWZjO3N0cm9rZTojY2JkNWUxIi8+Cjx0ZXh0IHg9IjQ5MiIgeT0iMjAyIiBzdHlsZT0iZm9udDoxMHB4ICdTRiBNb25vJyxNZW5sbyxtb25vc3BhY2U7ZmlsbDojMDQ3ODU3Ij5zZXNzaW9uIEM8L3RleHQ+Cjx0ZXh0IHg9Ijc5MiIgeT0iMjAyIiB0ZXh0LWFuY2hvcj0iZW5kIiBzdHlsZT0iZm9udDoxMHB4ICdTRiBNb25vJyxNZW5sbyxtb25vc3BhY2U7ZmlsbDojMzM0MTU1Ij5tMSDihpIgbTIg4oaSIG0zPC90ZXh0Pgo8L3N2Zz4=)

![The app's SQS SDK calls the Tensor9 adapter in its pod. The adapter implements the SQS FIFO API with an Azure Service Bus queue that has sessions enabled, using the MessageGroupId as the session ID. Each group keeps strict order with one message in flight, even with many consumers, and FIFO receives never block sends or standard receives.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0c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ojY2JkNWUxIj5tMSDihpIgbTIg4oaSIG0zPC90ZXh0Pgo8L3N2Zz4=)

Each session is one MessageGroupId , so each group keeps strict order with one message in flight.

#### How sessions preserve group order

A Service Bus session groups messages under one ID and gives one consumer exclusive access to it. While that consumer holds the session, no other consumer can receive its messages. Messages arrive in the order they were queued, and the adapter allows one message in flight per group. Service Bus assigns each active group to one consumer even when several application pods receive from the same queue, so your pods need no shared lock table, leader election or partition assignment.

* **One message in flight per group.** A group's next message is delivered only after the current one is deleted, as with the PostgreSQL FIFO option. This limits a single group to one message per round trip, in exchange for strict order.
* **A slow consumer keeps its group.** The adapter renews the session lock while your visibility timeout runs. `ChangeMessageVisibility` with a longer timeout renews the lock; zero makes the message available again at once, in order.
* **Receive counts stay accurate.** When the adapter gives up a session, it first releases the in-flight message so its delivery count goes up, moving a failing message toward its redrive limit instead of resetting it. It also receives no more messages than the remaining `MaxNumberOfMessages`, so no message is received and dropped, which would raise its count.

![Each MessageGroupId is a Service Bus session. Service Bus gives each session to one consumer at a time, so two consumer pods hold different groups, with one message in flight per group. Service Bus tracks which consumer holds each session; the adapters share no lock table.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMjY0IiB2aWV3Qm94PSIwIDAgODM2IDI2NCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJFYWNoIE1lc3NhZ2VHcm91cElkIGlzIGEgU2VydmljZSBCdXMgc2Vzc2lvbi4gU2VydmljZSBCdXMgZ2l2ZXMgZWFjaCBzZXNzaW9uIHRvIG9uZSBjb25zdW1lciBhdCBhIHRpbWUsIHNvIHR3byBjb25zdW1lciBwb2RzIGhvbGQgZGlmZmVyZW50IGdyb3Vwcywgd2l0aCBvbmUgbWVzc2FnZSBpbiBmbGlnaHQgcGVyIGdyb3VwLiBTZXJ2aWNlIEJ1cyB0cmFja3Mgd2hpY2ggY29uc3VtZXIgaG9sZH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ZXh0LWFuY2hvcj0ibWlkZGxlIiBzdHlsZT0iZm9udDogMTFweCAnU0YgTW9ubycsIHVpLW1vbm9zcGFjZSwgJ0pldEJyYWlucyBNb25vJywgTWVubG8sIG1vbm9zcGFjZTsgZmlsbDogIzMzNDE1NTsgZmlsbDojMDQ3ODU3Ij5zZXNzaW9uIEM8L3RleHQ+Cjx0ZXh0IHg9IjcwMCIgeT0iMjA3IiBzdHlsZT0iZm9udDogMTFweCBJbnRlciwgc2Fucy1zZXJpZjsgZmlsbDogIzY0NzQ4YjsgZmlsbDojMDQ3ODU3Ij5leGNsdXNpdmU8L3RleHQ+Cjwvc3ZnPg==)

![Each MessageGroupId is a Service Bus session. Service Bus gives each session to one consumer at a time, so two consumer pods hold different groups, with one message in flight per group. Service Bus tracks which consumer holds each session; the adapters share no lock table.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMjY0IiB2aWV3Qm94PSIwIDAgODM2IDI2NCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJFYWNoIE1lc3NhZ2VHcm91cElkIGlzIGEgU2VydmljZSBCdXMgc2Vzc2lvbi4gU2VydmljZSBCdXMgZ2l2ZXMgZWFjaCBzZXNzaW9uIHRvIG9uZSBjb25zdW1lciBhdCBhIHRpbWUsIHNvIHR3byBjb25zdW1lciBwb2RzIGhvbGQgZGlmZmVyZW50IGdyb3Vwcywgd2l0aCBvbmUgbWVzc2FnZSBpbiBmbGlnaHQgcGVyIGdyb3VwLiBTZXJ2aWNlIEJ1cyB0cmFja3Mgd2hpY2ggY29uc3VtZXIgaG9sZHMgZWFjaCBzZXNzaW9uOyB0aGUgYWRhcHRlcnMgc2hhcmUgbm8gbG9jayB0YWJsZS4iPjxzdHlsZT50ZXh0e2ZvbnQtZmFtaWx5OkludGVyLC1hcHBsZS1zeXN0ZW0sQmxpbmtNYWNTeXN0ZW1Gb250LCdT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NzaW9uIEM8L3RleHQ+Cjx0ZXh0IHg9IjcwMCIgeT0iMjA3IiBzdHlsZT0iZm9udDogMTFweCBJbnRlciwgc2Fucy1zZXJpZjsgZmlsbDogIzk0YTNiODsgZmlsbDojNmVlN2I3Ij5leGNsdXNpdmU8L3RleHQ+Cjwvc3ZnPg==)

Service Bus gives each group's session to exactly one consumer, so order holds as you add consumer pods.

#### Duplicate detection

Service Bus duplicate detection keeps a 5-minute history. Sends with the same deduplication key within that window queue one message. A consumer can still receive that message again after its visibility timeout. Service Bus keeps the deduplication history, so the adapter tracks nothing extra.

An explicit `MessageDeduplicationId` takes precedence. Otherwise the adapter uses a hash of the body on every `.fifo` send. It always sets this hash because its messaging permissions cannot read whether content-based deduplication is on. With duplicate detection enabled, Service Bus uses the hash to drop retries; with it disabled, the hash is only an ID. The adapter stores the SQS `MessageId` separately, as an application property, and returns it on receive, so equal-body messages sent outside the window keep distinct SQS IDs.

![On a .fifo send the adapter uses the MessageDeduplicationId, or a hash of the body, as the Service Bus message ID. Service Bus duplicate detection, with a 5-minute window, drops a repeated send instead of queuing it twice. Consumers can still receive a message again after its visibility timeout. The SQS MessageId is kept as an application property.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMjMyIiB2aWV3Qm94PSIwIDAgODM2IDIzMiIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJPbiBhIC5maWZvIHNlbmQgdGhlIGFkYXB0ZXIgdXNlcyB0aGUgTWVzc2FnZURlZHVwbGljYXRpb25JZCwgb3IgYSBoYXNoIG9mIHRoZSBib2R5LCBhcyB0aGUgU2VydmljZSBCdXMgbWVzc2FnZSBJRC4gU2VydmljZSBCdXMgZHVwbGljYXRlIGRldGVjdGlvbiwgd2l0aCBhIDUtbWludXRlIHdpbmRvdywgZHJvcHMgYSByZXBlYXRlZCBzZW5kIGluc3RlYWQgb2YgcXVldWluZyB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WxlPSJmb250OjYwMCAxMXB4IEludGVyLHNhbnMtc2VyaWY7ZmlsbDojYjQ1MzA5Ij5kcm9wcGVkIGJ5IFNlcnZpY2UgQnVzPC90ZXh0Pgo8L3N2Zz4=)

![On a .fifo send the adapter uses the MessageDeduplicationId, or a hash of the body, as the Service Bus message ID. Service Bus duplicate detection, with a 5-minute window, drops a repeated send instead of queuing it twice. Consumers can still receive a message again after its visibility timeout. The SQS MessageId is kept as an application property.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMjMyIiB2aWV3Qm94PSIwIDAgODM2IDIzMiIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJPbiBhIC5maWZvIHNlbmQgdGhlIGFkYXB0ZXIgdXNlcyB0aGUgTWVzc2FnZURlZHVwbGljYXRpb25JZCwgb3IgYSBoYXNoIG9mIHRoZSBib2R5LCBhcyB0aGUgU2VydmljZSBCdXMgbWVzc2FnZSBJRC4gU2VydmljZSBCdXMgZHVwbGljYXRlIGRldGVjdGlvbiwgd2l0aCBhIDUtbWludXRlIHdpbmRvdywgZHJvcHMgYSByZXBlYXRlZCBzZW5kIGluc3RlYWQgb2YgcXVldWluZyBpdCB0d2ljZS4gQ29uc3VtZXJzIGNhbiBzdGlsbCByZWNlaXZlIGEgbWVzc2FnZSBhZ2FpbiBhZnRlciBpdHMgdmlzaWJpbGl0eSB0aW1lb3V0LiBUaGUgU1FTIE1lc3NhZ2VJZCBpcyBrZXB0IGFzIGFuIGFwcGxpY2F0aW9uIHByb3BlcnR5LiI+PHN0eWxlPnRleHR7Zm9udC1mYW1pbHk6SW50ZXIsLWFwcGxlLXN5c3RlbSxCbGlua01hY1N5c3RlbUZvbnQsJ1NlZ29lIFVJJyxSb2JvdG8sJ0hlbHZldGljYSBOZXVlJyxBcmlhbCxzYW5zLXNlcmlmO2ZpbGw6I2NiZDVlMX08L3N0eWxlPgo8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HggJ1NGIE1vbm8nLCB1aS1tb25vc3BhY2UsICdKZXRCcmFpbnMgTW9ubycsIE1lbmxvLCBtb25vc3BhY2U7IGZpbGw6ICNjYmQ1ZTE7IGZpbGw6I2NiZDVlMSI+bTwvdGV4dD4KPHRleHQgeD0iNzgyIiB5PSIxMjAiIHRleHQtYW5jaG9yPSJlbmQiIHN0eWxlPSJmb250OiA2MDAgMTFweCBJbnRlciwgc2Fucy1zZXJpZjsgZmlsbDogIzZlZTdiNyI+b25lIGVucXVldWUg4pyTPC90ZXh0Pgo8cmVjdCB4PSI0OTYiIHk9IjE0MiIgd2lkdGg9IjMwMCIgaGVpZ2h0PSIzMiIgcng9IjciIHN0cm9rZS13aWR0aD0iMS4zIiBzdHlsZT0iZmlsbDojNDIyMDA2O3N0cm9rZTojOTI0MDBlIi8+Cjx0ZXh0IHg9IjUxMCIgeT0iMTYyIiBzdHlsZT0iZm9udDogMTFweCAnU0YgTW9ubycsIHVpLW1vbm9zcGFjZSwgJ0pldEJyYWlucyBNb25vJywgTWVubG8sIG1vbm9zcGFjZTsgZmlsbDogI2NiZDVlMTsgZmlsbDojY2JkNWUxIj5yZXRyeTwvdGV4dD4KPHRleHQgeD0iNzgyIiB5PSIxNjIiIHRleHQtYW5jaG9yPSJlbmQiIHN0eWxlPSJmb250OjYwMCAxMXB4IEludGVyLHNhbnMtc2VyaWY7ZmlsbDojZmJiZjI0Ij5kcm9wcGVkIGJ5IFNlcnZpY2UgQnVzPC90ZXh0Pgo8L3N2Zz4=)

The adapter uses the MessageDeduplicationId, or a body hash, as the Service Bus message ID. Service Bus drops repeats within 5 minutes.

#### Dead-lettering

Service Bus dead-letters a message when its delivery count reaches the limit set by `maxReceiveCount`. The next message in that group can then be delivered.

The adapter cannot receive from Service Bus's built-in dead-letter subqueue, so Tensor9 sets up automatic forwarding to the dead-letter queue (DLQ) you declared, keeping the session ID. A FIFO queue needs a FIFO DLQ, which is created with sessions enabled. Messages whose time to live (TTL) expires are dead-lettered too, so you can inspect or recover them from the DLQ.

Declaring a non-`.fifo` DLQ for a `.fifo` queue stops the build with a clear error, rather than creating a queue whose dead letters would have nowhere valid to go.

![A message that fails delivery maxReceiveCount times is dead-lettered by Service Bus, and its group moves on. The dead-lettered message is forwarded to your declared FIFO dead-letter queue with its session ID, and expired messages go there too.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMjI2IiB2aWV3Qm94PSIwIDAgODM2IDIyNiIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJBIG1lc3NhZ2UgdGhhdCBmYWlscyBkZWxpdmVyeSBtYXhSZWNlaXZlQ291bnQgdGltZXMgaXMgZGVhZC1sZXR0ZXJlZCBieSBTZXJ2aWNlIEJ1cywgYW5kIGl0cyBncm91cCBtb3ZlcyBvbi4gVGhlIGRlYWQtbGV0dGVyZWQgbWVzc2FnZSBpcyBmb3J3YXJkZWQgdG8geW91ciBkZWNsYXJlZCBGSUZPIGRlYWQtbGV0dGVyIHF1ZXVlIHdpdGggaXRzIHNlc3Npb24gSUQsIGFuZCBleHBpcmVkIG1lc3NhZ2VzIGdvIHRoZXJlIHRvby4iPjxzdHlsZT50ZXh0e2ZvbnQtZmFtaWx5OkludGVyLC1hcHBsZS1zeXN0ZW0sQmxpbmtNYWNTeXN0ZW1Gb250LCdTZWdvZSBVSScsUm9ib3RvLCdIZWx2ZXRpY2EgTmV1ZScsQXJpYWwsc2Fucy1zZXJpZjtmaWxsOiMzMzQxNTV9PC9zdHlsZT4KPGRlZnM+CjxtYXJrZXIgaWQ9ImRsIiB2aWV3Qm94PSIwIDAgMTAgMTAiIHJlZlg9IjgiIHJlZlk9IjUiIG1hcmtlcldpZHRoPSI3IiBtYXJrZXJIZWlnaHQ9IjciIG9yaWVudD0iYXV0by1zdGFydC1yZXZlcnNlIj48cGF0aCBkPSJNMCwwIEwxMCw1IEwwLDEwIHoiIHN0eWxlP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iIgbWFya2VyLWVuZD0idXJsKCNkbCkiIHN0eWxlPSJzdHJva2U6Izk0YTNiOCIvPgo8dGV4dCB4PSI0ODkiIHk9IjkyIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBzdHlsZT0iZm9udDogMTBweCAnU0YgTW9ubycsIHVpLW1vbm9zcGFjZSwgJ0pldEJyYWlucyBNb25vJywgTWVubG8sIG1vbm9zcGFjZTsgZmlsbDogIzY0NzQ4YiI+Zm9yd2FyZDwvdGV4dD4KPHJlY3QgeD0iNTE2IiB5PSI0NiIgd2lkdGg9IjI5NiIgaGVpZ2h0PSIxNDAiIHJ4PSIxMyIgc3Ryb2tlLXdpZHRoPSIxLjciIHN0eWxlPSJmaWxsOiNlY2ZkZjU7c3Ryb2tlOiMwNDc4NTciLz4KPHRleHQgeD0iNjY0IiB5PSI5NCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgc3R5bGU9ImZvbnQ6IDcwMCAxMy41cHggSW50ZXIsIHNhbnMtc2VyaWY7IGZpbGw6ICMwNDc4NTc7IGZvbnQtc2l6ZToxMnB4Ij55b3VyIGRlY2xhcmVkIERMUTwvdGV4dD4KPHRleHQgeD0iNjY0IiB5PSIxMjAiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHN0eWxlPSJmb250OiAxMC41cHggSW50ZXIsIHNhbnMtc2VyaWY7IGZpbGw6ICMwNDc4NTciPnNlc3Npb24tZW5hYmxlZCDCtyBGSUZPIMK3IHNlc3Npb24gaWQga2VwdDwvdGV4dD4KPHRleHQgeD0iNjY0IiB5PSIxNDQiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHN0eWxlPSJmb250OiAxMC41cHggSW50ZXIsIHNhbnMtc2VyaWY7IGZpbGw6ICMwNDc4NTciPmV4cGlyZWQgbWVzc2FnZXMgYXJlIGZvcndhcmRlZCB0b288L3RleHQ+Cjwvc3ZnPg==)

![A message that fails delivery maxReceiveCount times is dead-lettered by Service Bus, and its group moves on. The dead-lettered message is forwarded to your declared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Zm9udDogMTBweCAnU0YgTW9ubycsIHVpLW1vbm9zcGFjZSwgJ0pldEJyYWlucyBNb25vJywgTWVubG8sIG1vbm9zcGFjZTsgZmlsbDogIzk0YTNiOCI+Zm9yd2FyZDwvdGV4dD4KPHJlY3QgeD0iNTE2IiB5PSI0NiIgd2lkdGg9IjI5NiIgaGVpZ2h0PSIxNDAiIHJ4PSIxMyIgc3Ryb2tlLXdpZHRoPSIxLjciIHN0eWxlPSJmaWxsOiMwNjRlM2I7c3Ryb2tlOiM2ZWU3YjciLz4KPHRleHQgeD0iNjY0IiB5PSI5NCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgc3R5bGU9ImZvbnQ6IDcwMCAxMy41cHggSW50ZXIsIHNhbnMtc2VyaWY7IGZpbGw6ICM2ZWU3Yjc7IGZvbnQtc2l6ZToxMnB4Ij55b3VyIGRlY2xhcmVkIERMUTwvdGV4dD4KPHRleHQgeD0iNjY0IiB5PSIxMjAiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHN0eWxlPSJmb250OiAxMC41cHggSW50ZXIsIHNhbnMtc2VyaWY7IGZpbGw6ICM2ZWU3YjciPnNlc3Npb24tZW5hYmxlZCDCtyBGSUZPIMK3IHNlc3Npb24gaWQga2VwdDwvdGV4dD4KPHRleHQgeD0iNjY0IiB5PSIxNDQiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHN0eWxlPSJmb250OiAxMC41cHggSW50ZXIsIHNhbnMtc2VyaWY7IGZpbGw6ICM2ZWU3YjciPmV4cGlyZWQgbWVzc2FnZXMgYXJlIGZvcndhcmRlZCB0b288L3RleHQ+Cjwvc3ZnPg==)

Service Bus forwards messages that reach maxReceiveCount to your declared DLQ, where the adapter can receive them.

#### Limitations

Where SQS FIFO and Service Bus differ

* **Duplicate sends behave differently: the dropped send returns a new `MessageId`.** SQS returns the original message's `MessageId` (and `SequenceNumber`) for a duplicate. Here the duplicate is still dropped (consumers can still get redeliveries), but its response contains a new ID that matches no delivered message. Do not wait for that ID.
* **`SequenceNumber` is not returned on send.** Service Bus cannot return its sequence number when a message is sent. Receive responses include it; it increases across the queue, and so within each group.
* **Visibility timeouts above 5 minutes are not supported.** The visibility timeout maps to the session lock, which Tensor9 sets to 5 minutes, ten times the adapter's renewal interval. A longer value returns an error rather than being shortened. `ChangeMessageVisibility` renews the lock.
* **Receipt handles behave differently: they stop working when the adapter restarts.** A handle needs a live session lock. After a restart, old handles are invalid, and the group's in-flight message is delivered again, in order, when its session lock expires, within 5 minutes.
* **Expiry behaves differently: it can affect a whole session.** SQS retention applies to each message. On Service Bus, an expired message at the front can expire its whole session. Expired messages are dead-lettered and can be recovered from the DLQ, but more may expire together than on SQS.
* **Single-group throughput behaves differently: one message per round trip.** Strict order allows one message in flight per group, against up to 10 per receive on SQS. Total throughput grows with the number of groups, so parallelism comes from many groups, not from batching within one.
* **Receives on an empty queue behave differently: they can wait longer than `WaitTimeSeconds`.** Service Bus controls how long accepting a session takes, and the adapter never cancels it partway, because that could leave a session lock held. A FIFO receive on an empty queue can overrun its wait by up to one accept window, about 60 seconds at worst; your monitoring shows the real figure on Azure.
* **Per-message `DelaySeconds` is not supported.** It is rejected, as SQS rejects it on a FIFO queue, because a delayed message would arrive after later messages in its group. For queue-level settings, Max adaptation manages the logical queue settings, but the messaging backend rejects a nonzero queue delay and new dead-letter routes.
* **You must drain a queue before changing its FIFO or deduplication settings.** Sessions and duplicate detection are fixed when the queue is created. Changing between standard and FIFO, or turning content-based deduplication on or off, deletes and re-creates the queue and loses its messages. Every FIFO build warns about this.
* **Sends without a deduplication ID behave differently: they are accepted.** SQS requires `MessageDeduplicationId` when content-based deduplication is off. The adapter cannot read that setting with its messaging permissions, so it accepts the send. Group order is kept, but you do not get the SQS validation error.

#### Other considerations

* **Moving from AWS.** The Service Bus namespace and queue start empty, and messages in SQS are not migrated. Switch over when the queue is drained, or write to both queues for a while, and drain each group so none switches partway through.
* **Who operates what.** Tensor9 creates the namespace and the queue, configured as described under Architecture, from your queue declarations, and runs the adapter next to your application. The declared `maxReceiveCount` sets when messages are forwarded to the DLQ. Microsoft operates Service Bus Standard: durability, backups and high availability. You operate the Azure subscription, cluster patching and monitoring. Sending and receiving need no queue-management credential.
* **FIFO must be selected explicitly.** Older deployments that used the earlier combined SQS-to-Service-Bus option supported standard queues only. Tensor9 does not convert them to FIFO; declare and select a FIFO queue to use sessions.

#### Example monthly charges

This Tensor9 BYOC scenario estimates service charges for the named origin and target services. Adapter hosting and commercial Tensor9 fees need separate allocations. [How Tensor9 estimates costs](https://docs.tensor9.com/byoc/costs/overview.md) explains the method and what the estimates include.

##### SQS FIFO · SQS request billing units

Feature: SQS FIFO.

Estimated monthly service charges by SQS request billing units. Adapter hosting and Tensor9 fees are excluded. Source: us-east-1; target: East US; currency: USD.

![SQS FIFO · SQS request billing units: monthly service charges by SQS request billing units. Exact values are in the following table.](https://docs.tensor9.com/images/diagrams/service-cost/8b0963a17ccc87d604bb96148a9803f3354f1bfeeeb3cd5e20f95e2ec3c67c74-light.svg)

![SQS FIFO · SQS request billing units: monthly service charges by SQS request billing units. Exact values are in the following table.](https://docs.tensor9.com/images/diagrams/service-cost/b4aa01d0d6ac13e23e4ecc79f445b64853e7d726e43773c705cf8b18a3da091a-dark.svg)

Comparison pills describe all sampled scale points; amounts beside each service are for the named workload. Costs The Same means within 20% at every point. Costs Depend includes mixed results and unpriced samples.

Sampled monthly charges in USD, rounded to cents. Difference means target minus origin; a positive difference means the target costs more.

| SQS request billing units (per second) | SQS (Simple Queue Service, FIFO queues) | Azure Service Bus | Difference |
| -: | -: | -: | -: |
| 0 | 0.00 | 9.81 | 9.81 |
| 1 | 1.31 | 9.81 | 8.50 |
| 10 | 13.14 | 20.44 | 7.30 |
| 100 | 131.40 | 160.81 | 29.41 |
| 1,000 | 1,314.00 | 1,305.01 | -8.99 |
| 10,000 | 13,140.00 | 6,035.41 | -7,104.59 |

**Curve assumptions**

| Assumption | Value | Unit |
| - | -: | - |
| Origin list price · SQS billing units | 0.0000005 | USD/64-KiB request units |
| Representative message size | 1,024 | bytes |
| Origin send batch fill | 1 | messages/request |
| Origin receive batch fill | 1 | messages/request |
| Origin delete batch fill | 1 | messages/request |
| Deliveries per message | 1 | attempts |
| Empty receive calls per message | 0 | requests |
| Queue residence window | 60 | seconds |
| Ordering and dedup work multiplier | 2 | multiplier |
| Target price guess · read | 0 | USD/read |
| Target price guess · write | 0 | USD/write |
| Target list price · provider operation | 0.0000008 | USD/provider operation |
| Target price guess · GiB-month | 0 | USD/GiB-month |
| Target price guess · published GiB | 0 | USD/published GiB |
| Target price guess · delivered GiB | 0 | USD/delivered GiB |
| Target price guess · network GiB | 0 | USD/network GiB |
| Target price guess · replica GiB-month | 0 | USD/replica GiB-month |
| Target price guess · vCPU-hour | 0 | USD/vCPU-hour |
| Target price guess · GiB-hour | 0 | USD/GiB-hour |
| Target price guess · resource-hour | 0 | USD/resource-hour |
| Target price guess · resource-month | 0 | USD/resource-month |
| Target price guess · input token | 0 | USD/input token |
| Target price guess · output token | 0 | USD/output token |
| Included before billing · provider operation | 13,000,000 | provider operation |
| Target monthly base charge · list price | 9.81193 | USD/month |
| Approximate target service minimum | 0 | USD/month |
| Minimum primary CPU | 2 | vCPU |
| Minimum primary RAM | 8 | GiB |
| Minimum primary disk | 100 | GiB |
| Additional full-price standby copy | 0 | 0 or 1 |
| Allocated share of provisioned cost | 1 | fraction |
| Read/write work per vCPU-second | 1,500 | operations/vCPU-second |
| Planning peak / mean work | 2 | multiplier |
| Planning primary CPU utilization | 0.7 | fraction |
| Resident state reserved in RAM | 0.1 | fraction |
| Planning disk utilization | 0.8 | fraction |
| Maintenance and log disk reserve | 20 | GiB |
| Staging database CPU unit-price guess | 0.0413 | USD/vCPU-hour |
| Staging database RAM unit-price guess | 0.007 | USD/GiB-hour |
| Staging database disk unit-price guess | 0.17 | USD/GiB-month |
| Dependent object sink storage price guess | 0.023 | USD/GiB-month |
| Dependent object sink write price guess | 0.000005 | USD/write |

* 1-KiB messages, unbatched send/receive/delete; actual batch and delivery assumptions stay visible. Other native meters and workload assumptions retain their explicitly displayed default quantities. Workload translation and capacity assumptions are not benchmark measurements.
* Native monthly usage priced at the cited provider list prices; listed target allowances apply where present, excluding invoice credits, taxes and negotiated discounts. Rates as of 2026-10-22: us-east-1 → East US, USD/month.
* Source prices are reference charges, not an invoice. Target lines cover selected service usage/configuration only; adapter hosting and Tensor9 fees are excluded.
* Samples of explicit prices are not performance measurements or capacity qualification. No interpolation or break-even guarantee is implied.
* Variant assumptions show the first axis sample; any axis-dependent configuration is described by this curve's workload note.
* Rates are cited provider list prices, editable for discounts, commitments or another region. Workload translation and capacity coefficients remain editable planning assumptions, not benchmark measurements or a commercial quote.
* Default-zero rates are explicit assumptions, not evidence that the deployed service or resource is free.
* Provisioned-unit minimums use an editable approximate allocation floor. Modeled target service cost is max(usage/allocation, minimum), with billable network, durable staging and dependent sinks added separately; actual RU/TU sizing, scaling increments and throughput remain unqualified.
* Durable staging is priced once: provisioned targets include adapter state in their selected allocation; native targets add a separate staging allocation when required. Adapter hosting is a separate allocation and must exclude resources already priced as staging, workers or target capacity.
* A declared adapter mapping and cost model do not establish implementation availability or service equivalence.
* This is a declared directed mapping; a planning estimate does not establish deployment or request-serving support.
* Authored planning assumptions, not measured adapter capacity. Origin rates are cited first-tier list prices, before free allowances and discounts.
* A cost scenario does not establish backend availability, protocol fidelity or production readiness. Registry serving status remains independent.
* Storage follows resident original messages, not every monthly message. Broker delivery bytes include redeliveries.
* FIFO estimates do not qualify dedup support, group throughput or single-group latency; backend limitations remain applicable.
* Azure Service Bus Standard bills a namespace base charge that includes 13 million operations a month, then graduated per-operation prices: USD 0.80 per million to 100 million, 0.50 to 2,500 million and 0.20 beyond. An operation is any API call (send, receive, complete) per 64 KB of message; the family's managed operations count calls, not 64 KB units. Standard has no storage charge (queue size quota up to 5 GB is included). More than 1,000 brokered connections bill USD 0.03 per connection-month, which this profile does not model.
* AWS Price List API, AWSQueueService offer: [https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AWSQueueService/current/us-east-1/index.json](https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AWSQueueService/current/us-east-1/index.json)
* Azure Retail Prices API: [https://prices.azure.com/api/retail/prices](https://prices.azure.com/api/retail/prices)

Cost scope: Modeled target native service and explicitly modeled state allocation; hosting and Tensor9 fees only when supplied.

Excluded costs and workload features:

* Additional network transfer, backups, KMS, one-time migration and operational labor unless an explicit meter includes them.
* Destination application execution and separately billed downstream services; supply those allocations separately.
* Taxes, discounts, credits and free-tier allowances not explicitly listed by this model.
* Unmodeled dependent services, task execution and operations outside the selected workload family.

List prices read: 2026-10-22. Model: `plan-41a96e9bd678520a179bd0f5bb232496011160b0` / `2026-10-22.planning.2`. Curve: `workload-1`.

Sources: [AWS Price List API, AWSQueueService offer](https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AWSQueueService/current/us-east-1/index.json), [Azure Retail Prices API](https://prices.azure.com/api/retail/prices).

**SQS FIFO → Azure Service Bus: Authored native-usage planning example.** Native monthly usage priced at the cited provider list prices; listed target allowances apply where present, excluding invoice credits, taxes and negotiated discounts.

Scenario source region: us-east-1. Scenario target region: East US. Currency: USD.

| Monthly component | USD |
| - | -: |
| Origin: SQS billing units | 0.00 |
| Target: Target retained physical data | 0.00 |
| Target: Additional broker replica storage | 0.00 |
| Target: Published bytes | 0.00 |
| Target: Delivered bytes | 0.00 |
| Target: Target native provider operations after 13000000 included | 0.00 |
| Target: Execution or worker CPU | 0.00 |
| Target: Execution or worker RAM | 0.00 |
| Target: Selected billable network | 0.00 |
| Target: Independent native resources | 0.00 |
| Target: Independent native resources | 0.00 |
| Target: Target monthly base charge | 9.81 |
| **Origin service subtotal** | **0.00** |
| **Target service subtotal** | **9.81** |

Unestimated components: Adapter hosting, Tensor9 fees. A modeled adapted total and savings require these costs.

Cost scope: Modeled target native service and explicitly modeled state allocation; hosting and Tensor9 fees only when supplied.

Excluded costs and workload features:

* Additional network transfer, backups, KMS, one-time migration and operational labor unless an explicit meter includes them.
* Destination application execution and separately billed downstream services; supply those allocations separately.
* Taxes, discounts, credits and free-tier allowances not explicitly listed by this model.
* Unmodeled dependent services, task execution and operations outside the selected workload family.

**Scenario assumptions**

| Input | Value | Unit |
| - | -: | - |
| Origin list price · SQS billing units | 0.0000005 | USD/64-KiB request units |
| Representative message size | 1,024 | bytes |
| Origin send batch fill | 1 | messages/request |
| Origin receive batch fill | 1 | messages/request |
| Origin delete batch fill | 1 | messages/request |
| Deliveries per message | 1 | attempts |
| Empty receive calls per message | 0 | requests |
| Queue residence window | 60 | seconds |
| Ordering and dedup work multiplier | 2 | multiplier |
| Target price guess · read | 0 | USD/read |
| Target price guess · write | 0 | USD/write |
| Target list price · provider operation | 0.0000008 | USD/provider operation |
| Target price guess · GiB-month | 0 | USD/GiB-month |
| Target price guess · published GiB | 0 | USD/published GiB |
| Target price guess · delivered GiB | 0 | USD/delivered GiB |
| Target price guess · network GiB | 0 | USD/network GiB |
| Target price guess · replica GiB-month | 0 | USD/replica GiB-month |
| Target price guess · vCPU-hour | 0 | USD/vCPU-hour |
| Target price guess · GiB-hour | 0 | USD/GiB-hour |
| Target price guess · resource-hour | 0 | USD/resource-hour |
| Target price guess · resource-month | 0 | USD/resource-month |
| Target price guess · input token | 0 | USD/input token |
| Target price guess · output token | 0 | USD/output token |
| Included before billing · provider operation | 13,000,000 | provider operation |
| Target monthly base charge · list price | 9.81193 | USD/month |
| Approximate target service minimum | 0 | USD/month |
| Minimum primary CPU | 2 | vCPU |
| Minimum primary RAM | 8 | GiB |
| Minimum primary disk | 100 | GiB |
| Additional full-price standby copy | 0 | 0 or 1 |
| Allocated share of provisioned cost | 1 | fraction |
| Read/write work per vCPU-second | 1,500 | operations/vCPU-second |
| Planning peak / mean work | 2 | multiplier |
| Planning primary CPU utilization | 0.7 | fraction |
| Resident state reserved in RAM | 0.1 | fraction |
| Planning disk utilization | 0.8 | fraction |
| Maintenance and log disk reserve | 20 | GiB |
| Staging database CPU unit-price guess | 0.0413 | USD/vCPU-hour |
| Staging database RAM unit-price guess | 0.007 | USD/GiB-hour |
| Staging database disk unit-price guess | 0.17 | USD/GiB-month |
| Dependent object sink storage price guess | 0.023 | USD/GiB-month |
| Dependent object sink write price guess | 0.000005 | USD/write |
| SQS billing units | 0 | 64-KiB request units |

* Translated reads: 0 operations.

* Translated writes: 0 operations.

* Translated resident physical data: 0 GiB-month.

* Native provider operations: 0 operations.

* Published payload: 0 GiB.

* Delivered payload: 0 GiB.

* Allocated execution CPU: 0 vCPU-hour.

* Allocated execution RAM: 0 GiB-hour.

* Independent resource allocation: 0 resource-hour.

* Independent inventory: 0 resource-month.

* Input tokens: 0 tokens.

* Output tokens: 0 tokens.

* Billable network: 0 GiB.

* Dependent object sink retained data: 0 GiB-month.

* Dependent object sink writes: 0 writes.

* Rates are cited provider list prices, editable for discounts, commitments or another region. Workload translation and capacity coefficients remain editable planning assumptions, not benchmark measurements or a commercial quote.

* Default-zero rates are explicit assumptions, not evidence that the deployed service or resource is free.

* Provisioned-unit minimums use an editable approximate allocation floor. Modeled target service cost is max(usage/allocation, minimum), with billable network, durable staging and dependent sinks added separately; actual RU/TU sizing, scaling increments and throughput remain unqualified.

* Durable staging is priced once: provisioned targets include adapter state in their selected allocation; native targets add a separate staging allocation when required. Adapter hosting is a separate allocation and must exclude resources already priced as staging, workers or target capacity.

* A declared adapter mapping and cost model do not establish implementation availability or service equivalence.

* This is a declared directed mapping; a planning estimate does not establish deployment or request-serving support.

* Authored planning assumptions, not measured adapter capacity. Origin rates are cited first-tier list prices, before free allowances and discounts.

* A cost scenario does not establish backend availability, protocol fidelity or production readiness. Registry serving status remains independent.

* Storage follows resident original messages, not every monthly message. Broker delivery bytes include redeliveries.

* FIFO estimates do not qualify dedup support, group throughput or single-group latency; backend limitations remain applicable.

* Azure Service Bus Standard bills a namespace base charge that includes 13 million operations a month, then graduated per-operation prices: USD 0.80 per million to 100 million, 0.50 to 2,500 million and 0.20 beyond. An operation is any API call (send, receive, complete) per 64 KB of message; the family's managed operations count calls, not 64 KB units. Standard has no storage charge (queue size quota up to 5 GB is included). More than 1,000 brokered connections bill USD 0.03 per connection-month, which this profile does not model.

List prices read: 2026-10-22. Model: `plan-41a96e9bd678520a179bd0f5bb232496011160b0` / `2026-10-22.planning.2`. Scenario: `planning-example`.

Sources: [AWS Price List API, AWSQueueService offer](https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AWSQueueService/current/us-east-1/index.json), [Azure Retail Prices API](https://prices.azure.com/api/retail/prices).

### Via Azure Cosmos DB (queue)

| Operation | Area | Support | Depth | Notes |
| - | - | - | - | - |
| Dead-letter redrive | Dead-letter | Partial | Most usage | on receive, the oldest message of a group that is past maxReceiveCount moves to the declared (FIFO) DLQ and the group advances; the moved message keeps its group and order, at-least-once into the DLQ |
| Content-based deduplication | FIFO | Supported | Most usage | a content-hash dedup key over a 5-minute window (the SQS constant); content-based deduplication is honored when your queue declares it |
| Dedup echo (suppressed-send response) | FIFO | Supported | Most usage | a dedup-suppressed send echoes the original MessageId and SequenceNumber, matching the SQS response; Service Bus returns a new ID |
| FIFO ordering | FIFO | Supported | Common | per-group order is server-arbitrated, so it holds across horizontally scaled consumers even under clock skew (never a wall-clock inversion); exactly one message is in flight per group, and the invariant holds under any number of concurrent consumers |
| MessageDeduplicationId | FIFO | Supported | Most usage | the explicit tag takes precedence over the content hash (AWS's own rule); a FIFO send with neither a tag nor content-based-dedup is InvalidParameterValue, matching the AWS rejection; Service Bus does not reproduce this check |
| SequenceNumber (send response) | FIFO | Supported | Most usage | returned on every FIFO send: the per-group sequence position, monotonic per group (Service Bus omits it) |
| CreateQueue / DeleteQueue / SetQueueAttributes / tags | Queues | Partial | Full surface | Max manages logical queues on provisioned containers, tags and supported defaults. Terraform owns the account, database and containers; nonzero queue delay and new dead-letter routes are rejected |
| GetQueueAttributes (approximate counts) | Queues | Partial | Full surface | approximate depth, cached about 5 s; recent sends, settlements and expiry may not yet be reflected |
| DelaySeconds (per message) | Send / receive | Out of scope | Common | rejected exactly as real SQS rejects per-message delay on a FIFO queue (a scheduled enqueue would break in-group order) |
| DeleteMessage | Send / receive | Supported | Common | deletes the group head by a stateless receipt handle, so a stale handle no-ops just as SQS does; deletion advances the group |
| ReceiveMessage | Send / receive | Supported | Common | strict per-MessageGroupId order: exactly one message is in flight per group; a per-group lock document in Cosmos DB coordinates scaled consumers, while independent groups are concurrent |
| SendMessage | Send / receive | Supported | Common | MessageGroupId required (the AWS FIFO rule) and is the ordering unit; each send returns a real SequenceNumber (the per-group sequence position) |
| SendMessageBatch | Send / receive | Supported | Common | per-entry sends with a result for each entry |
| ChangeMessageVisibility | Visibility | Supported | Common | extends the in-flight message's visibility with no cap (there is no broker lock ceiling); zero = immediate redelivery (the message returns to the front of its group in order). A stale or superseded receipt handle is accepted silently: the call succeeds and changes nothing |

#### How it works

Tensor9 adds an adapter, a proxy process, to your application pod and sets `AWS_ENDPOINT_URL_SQS` to its local address. Your application keeps its SQS SDK and its `SendMessage` and `ReceiveMessage` calls. The adapter performs them in Cosmos DB and returns SQS responses, error codes and MD5 checksums.

Each queue is a Cosmos DB container with one document per message. Sending, receiving, deleting, delays, visibility, dead-letter delivery and message counts all work on those documents. FIFO queues add ordering by message group and duplicate detection, described below.

![Before: on AWS the application's SQS SDK calls Amazon SQS. After: in the target cloud the same application and SDK call a Tensor9 adapter, which implements the SQS API on Azure Cosmos DB.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMTgwIiB2aWV3Qm94PSIwIDAgODM2IDE4MCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJCZWZvcmU6IG9uIEFXUyB0aGUgYXBwbGljYXRpb24ncyBTUVMgU0RLIGNhbGxzIEFtYXpvbiBTUVMuIEFmdGVyOiBpbiB0aGUgdGFyZ2V0IGNsb3VkIHRoZSBzYW1lIGFwcGxpY2F0aW9uIGFuZCBTREsgY2FsbCBhIFR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ZmZmY7c3Ryb2tlOiNjYmQ1ZTEiLz4KPHRleHQgeD0iNzc0IiB5PSIxMTAiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHN0eWxlPSJmb250OiA2NTAgMTMuNXB4IEludGVyLCBzYW5zLXNlcmlmOyBmaWxsOiAjMGYxNzJhOyBmb250LXNpemU6MTFweCI+Q29zbW9zIERCPC90ZXh0Pgo8dGV4dCB4PSI3NzQiIHk9IjEyOCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgc3R5bGU9ImZvbnQ6IDExcHggSW50ZXIsIHNhbnMtc2VyaWY7IGZpbGw6ICM2NDc0OGIiPkNvcmUgU1FMPC90ZXh0Pgo8L3N2Zz4=)

![Before: on AWS the application's SQS SDK calls Amazon SQS. After: in the target cloud the same application and SDK call a Tensor9 adapter, which implements the SQS API on Azure Cosmos DB.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMTgwIiB2aWV3Qm94PSIwIDAgODM2IDE4MCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJCZWZvcmU6IG9uIEFXUyB0aGUgYXBwbGljYXRpb24ncyBTUVMgU0RLIGNhbGxzIEFtYXpvbiBTUVMuIEFmdGVyOiBpbiB0aGUgdGFyZ2V0IGNsb3VkIHRoZSBzYW1lIGFwcGxpY2F0aW9uIGFuZCBTREsgY2FsbCBhIFRlbnNvcjkgYWRhcHRlciwgd2hpY2ggaW1wbGVtZW50cyB0aGUgU1FTIEFQSSBvbiBBenVyZSBDb3Ntb3MgREIuIj48c3R5bGU+dGV4dHtmb250LWZhbWlseTpJbnRlciwtYXBwbGUtc3lzdGVtLEJsaW5rTWFjU3lzdGVtRm9udCwnU2Vnb2UgVUknLFJvYm90bywnSGVsdmV0aWNhIE5ldWUnLEFyaWFsLHNhbnMtc2VyaWY7ZmlsbDojY2JkNWUxfTwvc3R5bGU+CjxkZWZzPgo8bW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ExcHggSW50ZXIsIHNhbnMtc2VyaWY7IGZpbGw6ICM5NGEzYjgiPkNvcmUgU1FMPC90ZXh0Pgo8L3N2Zz4=)

The application keeps its SQS SDK. The adapter stores and reads messages in Azure Cosmos DB.

#### Architecture

The adapter keeps all queue state in Cosmos DB, including which receiver has each message, so adapter instances can restart or scale out without losing it. It signs in through your AKS Workload Identity, with no static secret. Microsoft operates Cosmos DB's durability, backups and high availability; Tensor9 operates the adapter.

When the stack is deployed, Tensor9 creates one serverless Cosmos DB account and one database per appliance, and one container per declared queue, named after the queue. Each message document holds the body, attributes, receive count and visibility time. FIFO queues order messages by `MessageGroupId`, with one message in flight per group, as described in the FIFO section. Retention uses Cosmos DB's own per-item time to live (TTL), so Cosmos DB deletes expired messages itself.

![The adapter stores SQS messages in Azure Cosmos DB: one serverless account and database, with one container per declared queue. Cosmos DB also records which receiver has each message. FIFO queues keep strict order within each group, with one message in flight per group.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMjUwIiB2aWV3Qm94PSIwIDAgODM2IDI1MCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJUaGUgYWRhcHRlciBzdG9yZXMgU1FTIG1lc3NhZ2VzIGluIEF6dXJlIENvc21vcyBEQjogb25lIHNlcnZlcmxlc3MgYWNjb3VudCBhbmQgZGF0YWJhc2UsIHdpdGggb25lIGNvbnRhaW5lciBwZXIgZGVjbGFyZWQgcXVldWUuIENvc21vcyBEQiBhbHNvIHJlY29yZHMgd2hpY2ggcmVjZWl2ZXIgaGFzIGVhY2ggbWVzc2FnZS4gRklGTyBxdWV1ZXMga2VlcCBzdHJpY3Qgb3JkZXIgd2l0aGluIGVhY2ggZ3JvdXAsIHdpdGggb25lIG1lc3NhZ2UgaW4gZmxpZ2h0IHBlciBncm91cC4iPjxzdHlsZT50ZXh0e2ZvbnQtZmFtaWx5OkludGVyLC1hcHBsZ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h0LWFuY2hvcj0ibWlkZGxlIiBzdHlsZT0iZm9udDogMTAuNXB4IEludGVyLCBzYW5zLXNlcmlmOyBmaWxsOiAjMDQ3ODU3Ij5zdHJpY3Qgb3JkZXIgcGVyIGdyb3VwPC90ZXh0Pgo8dGV4dCB4PSI3MDEiIHk9IjE5MCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgc3R5bGU9ImZvbnQ6IDEwLjVweCBJbnRlciwgc2Fucy1zZXJpZjsgZmlsbDogIzA0Nzg1NyI+b25lIG1lc3NhZ2UgaW4gZmxpZ2h0IHBlciBncm91cDwvdGV4dD4KPC9zdmc+)

![The adapter stores SQS messages in Azure Cosmos DB: one serverless account and database, with one container per declared queue. Cosmos DB also records which receiver has each message. FIFO queues keep strict order within each group, with one message in flight per group.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMjUwIiB2aWV3Qm94PSIwIDAgODM2IDI1MCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJUaGUgYWRhcHRlciBzdG9yZXMgU1FTIG1lc3NhZ2VzIGluIEF6dXJlIENvc21vcyBEQjogb25lIHNlcnZlcmxlc3MgYWNjb3VudCBhbmQgZGF0YWJhc2UsIHdpdGggb25lIGNvbnRhaW5lciBwZXIgZGVjbGFyZWQgcXVldWUuIENvc21vcyBEQiBhbHNvIHJlY29yZHMgd2hpY2ggcmVjZWl2ZXIgaGFzIGVhY2ggbWVzc2FnZS4gRklGTyBxdWV1ZXMga2VlcCBzdHJpY3Qgb3JkZXIgd2l0aGluIGVhY2ggZ3JvdXAsIHdpdGggb25lIG1lc3NhZ2UgaW4gZmxpZ2h0IHBlciBncm91cC4iPjxzdHlsZT50ZXh0e2ZvbnQtZmFtaWx5OkludGVyLC1hcHBsZS1zeXN0ZW0sQmxpbmtNYWNTeXN0ZW1Gb250LCdTZWdvZSBVSScsUm9ib3RvLCdIZWx2Z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mOyBmaWxsOiAjNmVlN2I3Ij5zdHJpY3Qgb3JkZXIgcGVyIGdyb3VwPC90ZXh0Pgo8dGV4dCB4PSI3MDEiIHk9IjE5MCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgc3R5bGU9ImZvbnQ6IDEwLjVweCBJbnRlciwgc2Fucy1zZXJpZjsgZmlsbDogIzZlZTdiNyI+b25lIG1lc3NhZ2UgaW4gZmxpZ2h0IHBlciBncm91cDwvdGV4dD4KPC9zdmc+)

Each queue is one Cosmos DB container and each message a document; a FIFO queue keeps strict order within each group, with one message in flight per group.

#### Receiving messages

A receive takes the oldest visible message in one conditional write, hides it from other receivers and adds one to its receive count. If another receiver takes it first, the adapter moves on to the next message, so each message goes to one receiver at a time. When the visibility timeout passes, it can be delivered again.

FIFO queues take the next message in each message group and allow one message in flight per group. A message can be delivered again after its visibility timeout passes. `ApproximateReceiveCount` is the actual number of receives, not an estimate, and the MD5 checksums of the body and attributes are recomputed, so your SDK's checks pass. FIFO rejects per-message `DelaySeconds`, including zero; omit the parameter. `SendMessageBatch` writes each entry separately and reports a result for each entry.

![A receive takes the oldest visible message with a conditional write, so only one receiver gets it. A receiver that loses the race tries the next message. A message can be delivered again after its visibility timeout.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMjQwIiB2aWV3Qm94PSIwIDAgODM2IDI0MCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJBIHJlY2VpdmUgdGFrZXMgdGhlIG9sZGVzdCB2aXNpYmxlIG1lc3NhZ2Ugd2l0aCBhIGNvbmRpdGlvbmFsIHdyaXRlLCBzbyBvbmx5IG9uZSByZWNlaXZlciBnZXRzIGl0LiBBIHJlY2VpdmVyIHRoYXQgbG9zZXMgdGhlIHJhY2UgdHJpZXMgdGhlIG5leHQgbWVzc2FnZS4gQSBtZXNzYWdlIGNhbiBiZSBkZWxpdmVyZWQgY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ImZpbGw6I2VjZmRmNTtzdHJva2U6IzA0Nzg1NyIvPgo8dGV4dCB4PSI2MDAiIHk9IjExOCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgc3R5bGU9ImZvbnQ6IDcwMCAxMy41cHggSW50ZXIsIHNhbnMtc2VyaWY7IGZpbGw6ICMwNDc4NTc7IGZvbnQtc2l6ZToxMnB4Ij50YWtlbiDihpIgbWVzc2FnZSBkZWxpdmVyZWQ8L3RleHQ+Cjx0ZXh0IHg9IjYwMCIgeT0iMTM0IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBzdHlsZT0iZm9udDogMTAuNXB4IEludGVyLCBzYW5zLXNlcmlmOyBmaWxsOiAjMDQ3ODU3Ij5yZWNlaXB0IGhhbmRsZSByZXR1cm5lZCB0byB5b3VyIGNvbnN1bWVyPC90ZXh0Pgo8cmVjdCB4PSIzODgiIHk9IjE3NCIgd2lkdGg9IjQyNCIgaGVpZ2h0PSI0NCIgcng9IjEwIiBzdHJva2Utd2lkdGg9IjEuNSIgc3R5bGU9ImZpbGw6I2ZmZmJlYjtzdHJva2U6I2ZkZTY4YSIvPgo8dGV4dCB4PSI2MDAiIHk9IjE5MiIgdGV4dC1hbmNob3I9Im1pZGRsZSIgc3R5bGU9ImZvbnQ6NjAwIDEycHggSW50ZXIsc2Fucy1zZXJpZjtmaWxsOiNiNDUzMDkiPmFscmVhZHkgdGFrZW4gYnkgYW5vdGhlciBjb25zdW1lcjwvdGV4dD4KPHRleHQgeD0iNjAwIiB5PSIyMDgiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHN0eWxlPSJmb250OiAxMXB4IEludGVyLCBzYW5zLXNlcmlmOyBmaWxsOiAjNjQ3NDhiOyBmaWxsOiNiNDUzMDkiPnRyeSB0aGUgbmV4dCBtZXNzYWdlPC90ZXh0Pgo8L3N2Zz4=)

![A receive takes the oldest visible message with a conditional write, so only one receiver gets it. A receiver that loses the race tries the next message. A message can be delivered again after its visibility timeout.](data:image/svg+xml;base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ImZvbnQ6NjAwIDEycHggSW50ZXIsc2Fucy1zZXJpZjtmaWxsOiNmYmJmMjQiPmFscmVhZHkgdGFrZW4gYnkgYW5vdGhlciBjb25zdW1lcjwvdGV4dD4KPHRleHQgeD0iNjAwIiB5PSIyMDgiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHN0eWxlPSJmb250OiAxMXB4IEludGVyLCBzYW5zLXNlcmlmOyBmaWxsOiAjOTRhM2I4OyBmaWxsOiNmYmJmMjQiPnRyeSB0aGUgbmV4dCBtZXNzYWdlPC90ZXh0Pgo8L3N2Zz4=)

A receive delivers the oldest visible message to exactly one consumer; if another consumer takes it first, the receive tries the next one. ApproximateReceiveCount is the actual receive count.

#### Receipt handles & visibility

Your consumer uses the receipt handle to delete a message or change its visibility. Here the handle refers to receive state stored in Cosmos DB, not to anything in the adapter's memory, so a current handle works the same before and after a restart: `DeleteMessage` and `ChangeMessageVisibility` keep working.

A stale handle, for a message already deleted or received again under a newer handle, is accepted and has no effect, both on delete (as on SQS) and on a visibility change. The consumer cannot tell from the response that it no longer has the message. A handle from another queue, or one that cannot be read, is rejected with `ReceiptHandleIsInvalid`.

`ChangeMessageVisibility` updates the stored visibility time with no lock-duration maximum, and zero makes the message available again immediately. Retention can expire a message while it is in flight; extending visibility does not extend its lifetime. A visibility timeout does not stop a worker that is still processing an earlier receive.

![The receipt handle refers to state stored in Cosmos DB, so it still works after the adapter restarts. The visibility timeout has no cap: ChangeMessageVisibility can keep extending it.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgODM2IDIwMCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJUaGUgcmVjZWlwdCBoYW5kbGUgcmVmZXJzIHRvIHN0YXRlIHN0b3JlZCBpbiBDb3Ntb3MgREIsIHNvIGl0IHN0aWxsIHdvcmtzIGFmdGVyIHRoZ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+Cjx0ZXh0IHg9IjYxNyIgeT0iMTU0IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBzdHlsZT0iZm9udDogMTFweCBJbnRlciwgc2Fucy1zZXJpZjsgZmlsbDogIzY0NzQ4YjsgZmlsbDojNjQ3NDhiIj4obm8gbWVzc2FnZS1sb2NrIHRpbWUgbGltaXQpPC90ZXh0Pgo8L3N2Zz4=)

![The receipt handle refers to state stored in Cosmos DB, so it still works after the adapter restarts. The visibility timeout has no cap: ChangeMessageVisibility can keep extending it.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgODM2IDIwMCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJUaGUgcmVjZWlwdCBoYW5kbGUgcmVmZXJzIHRvIHN0YXRlIHN0b3JlZCBpbiBDb3Ntb3MgREIsIHNvIGl0IHN0aWxsIHdvcmtzIGFmdGVyIHRoZSBhZGFwdGVyIHJlc3RhcnRzLiBUaGUgdmlzaWJpbGl0eSB0aW1lb3V0IGhhcyBubyBjYXA6IENoYW5nZU1lc3NhZ2VWaXNpYmlsaXR5IGNhbiBrZWVwIGV4dGVuZGluZyBpdC4iPjxzdHlsZT50ZXh0e2ZvbnQtZmFtaWx5OkludGVyLC1hcHBsZS1zeXN0ZW0sQmxpbmtNYWNTeXN0ZW1Gb250LCdTZWdvZSBVSScsUm9ib3RvLCdIZWx2ZXRpY2EgTmV1ZScsQXJpYWwsc2Fucy1zZXJpZjtmaWxsOiNjYmQ1ZTF9PC9zdHlsZT4KPGRlZnM+PG1hcmtlciBpZD0idmEiIHZpZXdCb3g9IjAgMCAxMCAxMCIgcmVmWD0iOCIgcmVmWT0iNSIgbWFya2VyV2lkdGg9IjciIG1hcmtlckhlaWdodD0iNyIgb3JpZW50PSJhdXRvLXN0YXJ0LXJldmVyc2UiPjxwYXRoIGQ9Ik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Im1pZGRsZSIgc3R5bGU9ImZvbnQ6IDEwcHggJ1NGIE1vbm8nLCB1aS1tb25vc3BhY2UsICdKZXRCcmFpbnMgTW9ubycsIE1lbmxvLCBtb25vc3BhY2U7IGZpbGw6ICM5NGEzYjg7IGZpbGw6IzZlZTdiNyI+K2V4dGVuZDwvdGV4dD4KPHRleHQgeD0iNzcyIiB5PSI4MCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgc3R5bGU9ImZvbnQ6IDEwLjVweCBJbnRlciwgc2Fucy1zZXJpZjsgZmlsbDogIzZlZTdiNzsgZm9udC13ZWlnaHQ6NzAwIj5ubyBjYXA8L3RleHQ+Cjx0ZXh0IHg9IjYxNyIgeT0iMTM0IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBzdHlsZT0iZm9udDogMTFweCBJbnRlciwgc2Fucy1zZXJpZjsgZmlsbDogIzk0YTNiOCI+Q2hhbmdlTWVzc2FnZVZpc2liaWxpdHkgZXh0ZW5kcyBpdCwgd2l0aCBubyBjYXA8L3RleHQ+Cjx0ZXh0IHg9IjYxNyIgeT0iMTU0IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBzdHlsZT0iZm9udDogMTFweCBJbnRlciwgc2Fucy1zZXJpZjsgZmlsbDogIzk0YTNiODsgZmlsbDojOTRhM2I4Ij4obm8gbWVzc2FnZS1sb2NrIHRpbWUgbGltaXQpPC90ZXh0Pgo8L3N2Zz4=)

Receipt handles still work after an adapter restart. Visibility is stored in Cosmos DB and has no lock-duration limit.

#### FIFO ordering & dedup

FIFO queues order messages by `MessageGroupId` and detect duplicate sends. Standard queues have neither feature.

Cosmos DB gives each message its position in its group before the message is queued, so concurrent senders share one order without relying on their clocks. Each FIFO send returns that position as `SequenceNumber`. Sequence numbers increase but can have gaps; a gap does not hold up the group.

A receive takes the next message of a group only if no message in that group is in flight. This holds across concurrent receivers, including when a slow send arrives late. Different groups can be processed at the same time with no coordination between consumers. When a visibility timeout passes, delivery resumes from the same message in its group.

Within the 5-minute deduplication window, a repeated send is suppressed and returns the original `MessageId` and `SequenceNumber`, even after a crash during the send. The key is an explicit `MessageDeduplicationId`, or a hash of the body when content-based deduplication is enabled. A FIFO send with neither returns `InvalidParameterValue`. Standard queues reject `MessageDeduplicationId` because they do not support deduplication.

* **Sending does not hold up receiving.** Assigning sequence positions does not block receivers, so producers and consumers proceed independently.

![FIFO on Cosmos DB: each group is delivered in strict send order with exactly one message in flight per group, even with many consumers; duplicate sends are suppressed and return the original MessageId and SequenceNumber.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMjU2IiB2aWV3Qm94PSIwIDAgODM2IDI1NiIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJGSUZPIG9uIENvc21vcyBEQjogZWFjaCBncm91cCBpcyBkZWxpdmVyZWQgaW4gc3RyaWN0IHNlbmQgb3JkZXIgd2l0aCBleGFjdGx5IG9uZSBtZXNzYWdlIGluIGZsaWdodCBwZXIgZ3JvdXAsIGV2ZW4gd2l0aCBtYW55IGNvbnN1bWVyczsgZHVwbGljYXRlIHNlbmRzIGFyZSBzdXBwcmVzc2VkIGFuZCByZXR1cm4gdGhlIG9yaWdpbmFsIE1lc3NhZ2VJZCBhbmQgU2VxdWVuY2VOdW1iZXIuIj48c3R5bGU+dGV4dHtmb250LWZhbWlseTpJbnRlciwtYXBwbGUtc3lzdGVtLEJsaW5rTWFjU3lzdGVtRm9udCwnU2Vnb2UgVUknLFJvYm90bywnSGVsdmV0aWNhIE5ldWUnLEFyaWFsLHNhbnMtc2VyaWY7ZmlsbDojMzM0MTU1fTwvc3R5bGU+CjxkZWZzPgo8bWFya2VyIGlkPSJmYSIgdmlld0JveD0iMCAwIDEwIDEwIiByZWZYPSI4IiByZWZZPSI1IiBtYXJrZXJXaWR0aD0iNyIgbWFya2VySGVpZ2h0PSI3IiBvcmllbnQ9ImF1dG8tc3RhcnQt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m9udDo2MDAgMTFweCBJbnRlcixzYW5zLXNlcmlmO2ZpbGw6I2I0NTMwOSI+ZHVwbGljYXRlIHNlbmQ8L3RleHQ+Cjx0ZXh0IHg9IjY3NiIgeT0iMjM0IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBzdHlsZT0iZm9udDogMTFweCBJbnRlciwgc2Fucy1zZXJpZjsgZmlsbDogIzY0NzQ4YjsgZmlsbDojYjQ1MzA5Ij5lY2hvZXMgdGhlIG9yaWdpbmFsIE1lc3NhZ2VJZCArIFNlcXVlbmNlTnVtYmVyPC90ZXh0Pgo8L3N2Zz4=)

![FIFO on Cosmos DB: each group is delivered in strict send order with exactly one message in flight per group, even with many consumers; duplicate sends are suppressed and return the original MessageId and SequenceNumber.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMjU2IiB2aWV3Qm94PSIwIDAgODM2IDI1NiIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJGSUZPIG9uIENvc21vcyBEQjogZWFjaCBncm91cCBpcyBkZWxpdmVyZWQgaW4gc3RyaWN0IHNlbmQgb3JkZXIgd2l0aCBleGFjdGx5IG9uZSBtZXNzYWdlIGluIGZsaWdodCBwZXIgZ3JvdXAsIGV2ZW4gd2l0aCBtYW55IGNvbnN1bWVyczsgZHVwbGljYXRlIHNlbmRzIGFyZSBzdXBwcmVzc2VkIGFuZCByZXR1cm4gdGhlIG9yaWdpbmFsIE1lc3NhZ2VJZCBhbmQgU2VxdWVuY2VOdW1iZXIuIj48c3R5bGU+dGV4dHtmb250LWZhbWlseTpJbnRlciwtYXBwbGUtc3lzdGVtLEJsaW5rTWFjU3lzdGVtRm9udCwnU2Vnb2UgVUknLFJvYm90bywnSGVsdmV0aWNhIE5ldWUnLEFyaWFsLHNhbnMtc2VyaWY7ZmlsbDojY2JkNWUxfTwvc3R5bGU+CjxkZWZzPgo8bWFya2Vy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aD0iMS40IiBzdHlsZT0iZmlsbDojNDIyMDA2O3N0cm9rZTojOTI0MDBlIi8+Cjx0ZXh0IHg9IjY3NiIgeT0iMjE4IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBzdHlsZT0iZm9udDo2MDAgMTFweCBJbnRlcixzYW5zLXNlcmlmO2ZpbGw6I2ZiYmYyNCI+ZHVwbGljYXRlIHNlbmQ8L3RleHQ+Cjx0ZXh0IHg9IjY3NiIgeT0iMjM0IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBzdHlsZT0iZm9udDogMTFweCBJbnRlciwgc2Fucy1zZXJpZjsgZmlsbDogIzk0YTNiODsgZmlsbDojZmJiZjI0Ij5lY2hvZXMgdGhlIG9yaWdpbmFsIE1lc3NhZ2VJZCArIFNlcXVlbmNlTnVtYmVyPC90ZXh0Pgo8L3N2Zz4=)

Order within a group is strict send order, with exactly one message in flight per group. Duplicate sends are suppressed and return the original MessageId and SequenceNumber. This section applies to FIFO queues only.

#### Dead-letter queues

A message received more than `maxReceiveCount` times is moved to the declared dead-letter queue. The copy reaches the DLQ before the message is removed from the source, and if the adapter crashes during the move, a retry finishes it. That retry can put a duplicate in the DLQ, so consumers of the DLQ must handle at-least-once delivery.

The adapter moves a message that exceeded its receive limit to the DLQ before delivering another message from its group. In the FIFO DLQ the moved message keeps its group and order, and its receive count starts again at 0. If a message expires under retention instead, it is removed and the next message in its group becomes available.

![A failed message is copied to its dead-letter queue and then removed from the source. If the adapter crashes between those steps, a retry finishes the move, so the dead-letter queue can receive a duplicate.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgODM2IDIwMCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJBIGZhaWxlZCBtZXNzYWdlIGlzIGNvcGllZCB0byBpdHMgZGVhZC1sZXR0ZXIgcXVldWUgYW5kIH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MT0iOTYiIHgyPSIxMjYiIHkyPSIxMjgiIHN0cm9rZS13aWR0aD0iMS44IiBtYXJrZXItZW5kPSJ1cmwoI2R4KSIgc3R5bGU9InN0cm9rZTojZGMyNjI2Ii8+Cjx0ZXh0IHg9IjE0MCIgeT0iMTE4IiBzdHlsZT0iZm9udDogMTFweCBJbnRlciwgc2Fucy1zZXJpZjsgZmlsbDogIzY0NzQ4YjsgZmlsbDojZGMyNjI2Ij4yIMK3IHJlbW92ZSBmcm9tIHNvdXJjZTwvdGV4dD4KPHJlY3QgeD0iMjYiIHk9IjE0NiIgd2lkdGg9Ijc4NCIgaGVpZ2h0PSI0MCIgcng9IjEwIiBzdHJva2Utd2lkdGg9IjEuMyIgc3R5bGU9ImZpbGw6I2ZmZmJlYjtzdHJva2U6I2ZkZTY4YSIvPgo8dGV4dCB4PSI0MTgiIHk9IjE3MSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgc3R5bGU9ImZvbnQ6IDExcHggSW50ZXIsIHNhbnMtc2VyaWY7IGZpbGw6ICM2NDc0OGI7IGZpbGw6I2I0NTMwOSI+UmV0cnkgY29tcGxldGVzIGEgbW92ZSBpbnRlcnJ1cHRlZCBiZXR3ZWVuIHRoZXNlIHN0ZXBzOyB0aGUgZGVhZC1sZXR0ZXIgcXVldWUgY2FuIHJlY2VpdmUgYSBkdXBsaWNhdGUuPC90ZXh0Pgo8L3N2Zz4=)

![A failed message is copied to its dead-letter queue and then removed from the source. If the adapter crashes between those steps, a retry finishes the move, so the dead-letter queue can receive a duplicate.](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MzYiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgODM2IDIwMCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJBIGZhaWxlZCBtZXNzYWdlIGlzIGNvcGllZCB0byBpdHMgZGVhZC1sZXR0ZXIgcXVldWUgYW5kIHRoZW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YiIHgyPSIxMjYiIHkyPSIxMjgiIHN0cm9rZS13aWR0aD0iMS44IiBtYXJrZXItZW5kPSJ1cmwoI2R4KSIgc3R5bGU9InN0cm9rZTojZjg3MTcxIi8+Cjx0ZXh0IHg9IjE0MCIgeT0iMTE4IiBzdHlsZT0iZm9udDogMTFweCBJbnRlciwgc2Fucy1zZXJpZjsgZmlsbDogIzk0YTNiODsgZmlsbDojZjg3MTcxIj4yIMK3IHJlbW92ZSBmcm9tIHNvdXJjZTwvdGV4dD4KPHJlY3QgeD0iMjYiIHk9IjE0NiIgd2lkdGg9Ijc4NCIgaGVpZ2h0PSI0MCIgcng9IjEwIiBzdHJva2Utd2lkdGg9IjEuMyIgc3R5bGU9ImZpbGw6IzQyMjAwNjtzdHJva2U6IzkyNDAwZSIvPgo8dGV4dCB4PSI0MTgiIHk9IjE3MSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgc3R5bGU9ImZvbnQ6IDExcHggSW50ZXIsIHNhbnMtc2VyaWY7IGZpbGw6ICM5NGEzYjg7IGZpbGw6I2ZiYmYyNCI+UmV0cnkgY29tcGxldGVzIGEgbW92ZSBpbnRlcnJ1cHRlZCBiZXR3ZWVuIHRoZXNlIHN0ZXBzOyB0aGUgZGVhZC1sZXR0ZXIgcXVldWUgY2FuIHJlY2VpdmUgYSBkdXBsaWNhdGUuPC90ZXh0Pgo8L3N2Zz4=)

The adapter finishes interrupted dead-letter moves. Delivery to the DLQ is at least once, so a crash can cause a duplicate.

#### Limitations

Where SQS and Cosmos DB differ

* **Approximate counts behave differently: they can lag by about 5 seconds.** The adapter caches counts briefly, so recent sends, deletes and expirations may not show at once. Use Azure monitoring to watch counts after deployment.
* **Dead-letter delivery behaves differently: it can produce duplicates.** A move interrupted by an adapter crash is finished without losing the message, but the DLQ can receive it more than once.
* **Each appliance supports about 499 queues.** All of an appliance's queues share one serverless Cosmos DB account, which allows about 500 containers, one per queue. Beyond that, the build stops with a clear error instead of creating some of the queues. The account is serverless by design, which suits fleets of mostly idle queues.
* **Geo-replication is not supported.** The account is in a single region, the appliance's region, with no geo-replica.
* **FIFO visibility behaves differently: clock differences can shorten it.** The one-message-per-group check does not use clocks, but visibility does. Clock differences between consumers can cause early redelivery, while still allowing only one message in flight per group.
* **Expiry behaves differently: Cosmos DB removes expired messages in the background.** Per-item TTL is enforced by Cosmos DB's background cleanup, and a message can expire while a consumer is processing it. Removing an expired first message lets the next message in its group proceed.
* **Per-message delay is not supported.** FIFO queues reject a supplied `DelaySeconds`, including zero. Omit it from individual messages.
* **You must manage the Cosmos DB account, database and containers in Terraform.** Separate logical queue management from container provisioning: with Max adaptation, queue API calls manage logical queues on the provisioned containers, listings, tags and supported defaults, including retention. Terraform owns the account, database and containers; deleting a logical queue does not delete its container. Nonzero queue-level delay and new dead-letter routes are rejected.

#### Other considerations

* **Moving from AWS.** The Cosmos DB account, database and queue containers start empty, and messages in SQS are not migrated. Drain each group before cutover so no group switches partway through.
* **Who operates what.** Tensor9 creates the account, database and one container per declared queue from your queue declarations, and runs the adapter next to your application. Microsoft operates Cosmos DB's durability, backups and high availability. You operate the Azure subscription, cluster patching and monitoring.
* **What to monitor.** Use Azure monitoring to track Cosmos DB request units and latency.
* **Retention uses whole seconds.** Each message's TTL is set to its remaining retention in whole seconds, at least one second, so Cosmos DB never deletes a message before its retention ends. The adapter runs no cleanup of its own.

#### Example monthly charges

This Tensor9 BYOC scenario estimates service charges for the named origin and target services. Adapter hosting and commercial Tensor9 fees need separate allocations. [How Tensor9 estimates costs](https://docs.tensor9.com/byoc/costs/overview.md) explains the method and what the estimates include.

##### SQS FIFO · SQS request billing units

Feature: SQS FIFO.

Estimated monthly service charges by SQS request billing units. Adapter hosting and Tensor9 fees are excluded. Source: us-east-1; target: East US; currency: USD.

![SQS FIFO · SQS request billing units: monthly service charges by SQS request billing units. Exact values are in the following table.](https://docs.tensor9.com/images/diagrams/service-cost/06bc831a6318c02d7f0a5318b1a7f92ccbb8128f16bbbf322171d3029aa11e02-light.svg)

![SQS FIFO · SQS request billing units: monthly service charges by SQS request billing units. Exact values are in the following table.](https://docs.tensor9.com/images/diagrams/service-cost/e86c8026f4d8d5aaaf400559783cdafebf4ddcbb2fe4d79a5ccd9c8f319d4b0b-dark.svg)

Comparison pills describe all sampled scale points; amounts beside each service are for the named workload. Costs The Same means within 20% at every point. Costs Depend includes mixed results and unpriced samples.

Sampled monthly charges in USD, rounded to cents. Difference means target minus origin; a positive difference means the target costs more.

| SQS request billing units (per second) | SQS (Simple Queue Service, FIFO queues) | Azure Cosmos DB (queue) | Difference |
| -: | -: | -: | -: |
| 0 | 0.00 | 23.36 | 23.36 |
| 1 | 1.31 | 23.36 | 22.05 |
| 10 | 13.14 | 23.36 | 10.22 |
| 100 | 131.40 | 140.16 | 8.76 |
| 1,000 | 1,314.00 | 1,366.56 | 52.56 |
| 10,000 | 13,140.00 | 13,630.61 | 490.61 |

**Curve assumptions**

| Assumption | Value | Unit |
| - | -: | - |
| Origin list price · SQS billing units | 0.0000005 | USD/64-KiB request units |
| Representative message size | 1,024 | bytes |
| Origin send batch fill | 1 | messages/request |
| Origin receive batch fill | 1 | messages/request |
| Origin delete batch fill | 1 | messages/request |
| Deliveries per message | 1 | attempts |
| Empty receive calls per message | 0 | requests |
| Queue residence window | 60 | seconds |
| Ordering and dedup work multiplier | 2 | multiplier |
| Target price guess · read | 0 | USD/read |
| Target price guess · write | 0 | USD/write |
| Target price guess · provider operation | 0 | USD/provider operation |
| Target list price · GiB-month | 0.25 | USD/GiB-month |
| Target price guess · published GiB | 0 | USD/published GiB |
| Target price guess · delivered GiB | 0 | USD/delivered GiB |
| Target price guess · network GiB | 0 | USD/network GiB |
| Target price guess · replica GiB-month | 0 | USD/replica GiB-month |
| Target price guess · vCPU-hour | 0 | USD/vCPU-hour |
| Target price guess · GiB-hour | 0 | USD/GiB-hour |
| Target list price · resource-hour | 0.008 | USD/resource-hour |
| Target price guess · resource-month | 0 | USD/resource-month |
| Target price guess · input token | 0 | USD/input token |
| Target price guess · output token | 0 | USD/output token |
| Target monthly base charge | 0 | USD/month |
| Approximate target service minimum | 0 | USD/month |
| Minimum primary CPU | 2 | vCPU |
| Minimum primary RAM | 8 | GiB |
| Minimum primary disk | 100 | GiB |
| Additional full-price standby copy | 0 | 0 or 1 |
| Allocated share of provisioned cost | 1 | fraction |
| Read/write work per vCPU-second | 1,500 | operations/vCPU-second |
| Planning peak / mean work | 2 | multiplier |
| Planning primary CPU utilization | 0.7 | fraction |
| Resident state reserved in RAM | 0.1 | fraction |
| Planning disk utilization | 0.8 | fraction |
| Maintenance and log disk reserve | 20 | GiB |
| Staging database CPU unit-price guess | 0.0413 | USD/vCPU-hour |
| Staging database RAM unit-price guess | 0.007 | USD/GiB-hour |
| Staging database disk unit-price guess | 0.17 | USD/GiB-month |
| Dependent object sink storage price guess | 0.023 | USD/GiB-month |
| Dependent object sink write price guess | 0.000005 | USD/write |

* 1-KiB messages, unbatched send/receive/delete; actual batch and delivery assumptions stay visible. Other native meters and workload assumptions retain their explicitly displayed default quantities. Workload translation and capacity assumptions are not benchmark measurements.
* Native monthly usage priced at the cited provider list prices; listed target allowances apply where present, excluding invoice credits, taxes and negotiated discounts. Rates as of 2026-10-22: us-east-1 → East US, USD/month.
* Source prices are reference charges, not an invoice. Target lines cover selected service usage/configuration only; adapter hosting and Tensor9 fees are excluded.
* Samples of explicit prices are not performance measurements or capacity qualification. No interpolation or break-even guarantee is implied.
* Variant assumptions show the first axis sample; any axis-dependent configuration is described by this curve's workload note.
* Rates are cited provider list prices, editable for discounts, commitments or another region. Workload translation and capacity coefficients remain editable planning assumptions, not benchmark measurements or a commercial quote.
* Default-zero rates are explicit assumptions, not evidence that the deployed service or resource is free.
* Provisioned-unit minimums use an editable approximate allocation floor. Modeled target service cost is max(usage/allocation, minimum), with billable network, durable staging and dependent sinks added separately; actual RU/TU sizing, scaling increments and throughput remain unqualified.
* Durable staging is priced once: provisioned targets include adapter state in their selected allocation; native targets add a separate staging allocation when required. Adapter hosting is a separate allocation and must exclude resources already priced as staging, workers or target capacity.
* A declared adapter mapping and cost model do not establish implementation availability or service equivalence.
* This is a declared directed mapping; a planning estimate does not establish deployment or request-serving support.
* Authored planning assumptions, not measured adapter capacity. Origin rates are cited first-tier list prices, before free allowances and discounts.
* A cost scenario does not establish backend availability, protocol fidelity or production readiness. Registry serving status remains independent.
* Storage follows resident original messages, not every monthly message. Broker delivery bytes include redeliveries.
* FIFO estimates do not qualify dedup support, group throughput or single-group latency; backend limitations remain applicable.
* Azure Cosmos DB provisioned throughput bills 100-RU/s blocks per hour and stored GB-months; operations within the provisioned RU/s have no separate charge. Blocks are sized from the family's reads at 1 RU and writes at 5.5 RU (1 KB items, no extra indexing) at full utilization after the planning peak factor, with the 400 RU/s smallest manual allocation as the floor (USD 23.36/month). Larger messages, indexing and query-based receives raise the RU charge; autoscale (USD 0.012 per 100 RU/s-hour) and serverless (USD 0.25 per million RUs) are not selected.
* AWS Price List API, AWSQueueService offer: [https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AWSQueueService/current/us-east-1/index.json](https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AWSQueueService/current/us-east-1/index.json)
* Azure Retail Prices API: [https://prices.azure.com/api/retail/prices](https://prices.azure.com/api/retail/prices)

Cost scope: Modeled target native service and explicitly modeled state allocation; hosting and Tensor9 fees only when supplied.

Excluded costs and workload features:

* Additional network transfer, backups, KMS, one-time migration and operational labor unless an explicit meter includes them.
* Destination application execution and separately billed downstream services; supply those allocations separately.
* Taxes, discounts, credits and free-tier allowances not explicitly listed by this model.
* Unmodeled dependent services, task execution and operations outside the selected workload family.

List prices read: 2026-10-22. Model: `plan-4f4f008a52eb766d518aa4f34d3302fdb02b1a67` / `2026-10-22.planning.2`. Curve: `workload-1`.

Sources: [AWS Price List API, AWSQueueService offer](https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AWSQueueService/current/us-east-1/index.json), [Azure Retail Prices API](https://prices.azure.com/api/retail/prices).

**SQS FIFO → Azure Cosmos DB (queue): Authored native-usage planning example.** Native monthly usage priced at the cited provider list prices; listed target allowances apply where present, excluding invoice credits, taxes and negotiated discounts.

Scenario source region: us-east-1. Scenario target region: East US. Currency: USD.

| Monthly component | USD |
| - | -: |
| Origin: SQS billing units | 0.00 |
| Target: Target retained physical data | 0.00 |
| Target: Additional broker replica storage | 0.00 |
| Target: Published bytes | 0.00 |
| Target: Delivered bytes | 0.00 |
| Target: Target native provider operations | 0.00 |
| Target: Execution or worker CPU | 0.00 |
| Target: Execution or worker RAM | 0.00 |
| Target: Selected billable network | 0.00 |
| Target: Independent native resources | 0.00 |
| Target: 100-RU/s blocks at planning peak | 23.36 |
| **Origin service subtotal** | **0.00** |
| **Target service subtotal** | **23.36** |

Unestimated components: Adapter hosting, Tensor9 fees. A modeled adapted total and savings require these costs.

Cost scope: Modeled target native service and explicitly modeled state allocation; hosting and Tensor9 fees only when supplied.

Excluded costs and workload features:

* Additional network transfer, backups, KMS, one-time migration and operational labor unless an explicit meter includes them.
* Destination application execution and separately billed downstream services; supply those allocations separately.
* Taxes, discounts, credits and free-tier allowances not explicitly listed by this model.
* Unmodeled dependent services, task execution and operations outside the selected workload family.

**Scenario assumptions**

| Input | Value | Unit |
| - | -: | - |
| Origin list price · SQS billing units | 0.0000005 | USD/64-KiB request units |
| Representative message size | 1,024 | bytes |
| Origin send batch fill | 1 | messages/request |
| Origin receive batch fill | 1 | messages/request |
| Origin delete batch fill | 1 | messages/request |
| Deliveries per message | 1 | attempts |
| Empty receive calls per message | 0 | requests |
| Queue residence window | 60 | seconds |
| Ordering and dedup work multiplier | 2 | multiplier |
| Target price guess · read | 0 | USD/read |
| Target price guess · write | 0 | USD/write |
| Target price guess · provider operation | 0 | USD/provider operation |
| Target list price · GiB-month | 0.25 | USD/GiB-month |
| Target price guess · published GiB | 0 | USD/published GiB |
| Target price guess · delivered GiB | 0 | USD/delivered GiB |
| Target price guess · network GiB | 0 | USD/network GiB |
| Target price guess · replica GiB-month | 0 | USD/replica GiB-month |
| Target price guess · vCPU-hour | 0 | USD/vCPU-hour |
| Target price guess · GiB-hour | 0 | USD/GiB-hour |
| Target list price · resource-hour | 0.008 | USD/resource-hour |
| Target price guess · resource-month | 0 | USD/resource-month |
| Target price guess · input token | 0 | USD/input token |
| Target price guess · output token | 0 | USD/output token |
| Target monthly base charge | 0 | USD/month |
| Approximate target service minimum | 0 | USD/month |
| Minimum primary CPU | 2 | vCPU |
| Minimum primary RAM | 8 | GiB |
| Minimum primary disk | 100 | GiB |
| Additional full-price standby copy | 0 | 0 or 1 |
| Allocated share of provisioned cost | 1 | fraction |
| Read/write work per vCPU-second | 1,500 | operations/vCPU-second |
| Planning peak / mean work | 2 | multiplier |
| Planning primary CPU utilization | 0.7 | fraction |
| Resident state reserved in RAM | 0.1 | fraction |
| Planning disk utilization | 0.8 | fraction |
| Maintenance and log disk reserve | 20 | GiB |
| Staging database CPU unit-price guess | 0.0413 | USD/vCPU-hour |
| Staging database RAM unit-price guess | 0.007 | USD/GiB-hour |
| Staging database disk unit-price guess | 0.17 | USD/GiB-month |
| Dependent object sink storage price guess | 0.023 | USD/GiB-month |
| Dependent object sink write price guess | 0.000005 | USD/write |
| SQS billing units | 0 | 64-KiB request units |

* Translated reads: 0 operations.

* Translated writes: 0 operations.

* Translated resident physical data: 0 GiB-month.

* Native provider operations: 0 operations.

* Published payload: 0 GiB.

* Delivered payload: 0 GiB.

* Allocated execution CPU: 0 vCPU-hour.

* Allocated execution RAM: 0 GiB-hour.

* Independent resource allocation: 0 resource-hour.

* Independent inventory: 0 resource-month.

* Input tokens: 0 tokens.

* Output tokens: 0 tokens.

* Billable network: 0 GiB.

* Dependent object sink retained data: 0 GiB-month.

* Dependent object sink writes: 0 writes.

* Rates are cited provider list prices, editable for discounts, commitments or another region. Workload translation and capacity coefficients remain editable planning assumptions, not benchmark measurements or a commercial quote.

* Default-zero rates are explicit assumptions, not evidence that the deployed service or resource is free.

* Provisioned-unit minimums use an editable approximate allocation floor. Modeled target service cost is max(usage/allocation, minimum), with billable network, durable staging and dependent sinks added separately; actual RU/TU sizing, scaling increments and throughput remain unqualified.

* Durable staging is priced once: provisioned targets include adapter state in their selected allocation; native targets add a separate staging allocation when required. Adapter hosting is a separate allocation and must exclude resources already priced as staging, workers or target capacity.

* A declared adapter mapping and cost model do not establish implementation availability or service equivalence.

* This is a declared directed mapping; a planning estimate does not establish deployment or request-serving support.

* Authored planning assumptions, not measured adapter capacity. Origin rates are cited first-tier list prices, before free allowances and discounts.

* A cost scenario does not establish backend availability, protocol fidelity or production readiness. Registry serving status remains independent.

* Storage follows resident original messages, not every monthly message. Broker delivery bytes include redeliveries.

* FIFO estimates do not qualify dedup support, group throughput or single-group latency; backend limitations remain applicable.

* Azure Cosmos DB provisioned throughput bills 100-RU/s blocks per hour and stored GB-months; operations within the provisioned RU/s have no separate charge. Blocks are sized from the family's reads at 1 RU and writes at 5.5 RU (1 KB items, no extra indexing) at full utilization after the planning peak factor, with the 400 RU/s smallest manual allocation as the floor (USD 23.36/month). Larger messages, indexing and query-based receives raise the RU charge; autoscale (USD 0.012 per 100 RU/s-hour) and serverless (USD 0.25 per million RUs) are not selected.

List prices read: 2026-10-22. Model: `plan-4f4f008a52eb766d518aa4f34d3302fdb02b1a67` / `2026-10-22.planning.2`. Scenario: `planning-example`.

Sources: [AWS Price List API, AWSQueueService offer](https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AWSQueueService/current/us-east-1/index.json), [Azure Retail Prices API](https://prices.azure.com/api/retail/prices).

### Via PostgreSQL Flexible Server

| Operation | Area | Support | Depth | Notes |
| - | - | - | - | - |
| Dead-letter redrive | Dead-letter | Supported | Most usage | fires automatically once a message passes maxReceiveCount |
| Content/ID deduplication | FIFO | Supported | Most usage | both modes are served: an explicit MessageDeduplicationId takes precedence over the content hash (AWS's own rule), and a content-based queue derives a stable digest of the body. The message insert and deduplication marker share one transaction. A duplicate rolls back its new row and returns the original message identifiers |
| FIFO ordering | FIFO | Supported | Common | per-MessageGroupId strict order with one message in flight per group; each receive takes the oldest message of each group, the same contract as the portable and Cloud SQL FIFO tiers |
| Message attributes | Messages | Supported | Common | - |
| GetQueueAttributes | Queues | Supported | Most usage | reads queue attributes, including approximate message counts |
| GetQueueUrl | Queues | Supported | Most usage | resolves the queue by name |
| DeleteMessage | Send / receive | Supported | Common | resolves by receipt handle; a stale handle returns ReceiptHandleIsInvalid |
| DeleteMessageBatch | Send / receive | Supported | Common | returns the result for each entry |
| ReceiveMessage | Send / receive | Supported | Common | long-poll (WaitTimeSeconds) honored; one message in flight per MessageGroupId |
| SendMessage | Send / receive | Supported | Common | MessageGroupId required on send (the AWS FIFO rule); MD5 checksums match what your SDK verifies |
| SendMessageBatch | Send / receive | Supported | Common | up to 10 messages per call, each with its MessageGroupId; returns the result for each entry |
| ChangeMessageVisibility | Visibility | Supported | Common | resolves by receipt handle; a stale handle is rejected rather than silently succeeding |

#### PostgreSQL hosting

Microsoft operates PostgreSQL Flexible Server, including zone-redundant HA and point-in-time recovery backups. The adapter uses short-lived Microsoft Entra tokens as database passwords. Queue data stays outside the customer's Kubernetes cluster and survives its rebuild. One server and database hold all queues for the deployment, sharing capacity and maintenance; the default server size is fixed because SQS supplies no source instance size. Tensor9 operates the queue schema and adapter. Queues start empty; existing SQS messages are not migrated. Drain each message group before cutover to preserve order.

#### Queue behavior

Queues use the same PostgreSQL tables, receive steps, stored receipt handles and single-transaction dead-letter moves described in [PostgreSQL queue behavior](https://docs.tensor9.com/byoc/service-adapters/aws/messaging-streaming/sqs-fifo.md#postgresql-queue-behavior). Receipt handles survive adapter restarts; stale receipt handles return an error. Retention still removes messages in flight. All queues share database capacity, so a busy queue can affect others. The documented Standard-queue benchmark does not establish this host's capacity or FIFO throughput. Duplicate sends are suppressed for five minutes; consumers must still handle redelivery.

#### Example monthly charges

This Tensor9 BYOC scenario estimates service charges for the named origin and target services. Adapter hosting and commercial Tensor9 fees need separate allocations. [How Tensor9 estimates costs](https://docs.tensor9.com/byoc/costs/overview.md) explains the method and what the estimates include.

##### SQS FIFO · SQS request billing units

Feature: SQS FIFO.

Estimated monthly service charges by SQS request billing units. Adapter hosting and Tensor9 fees are excluded. Source: us-east-1; target: eastus; currency: USD.

![SQS FIFO · SQS request billing units: monthly service charges by SQS request billing units. Exact values are in the following table.](https://docs.tensor9.com/images/diagrams/service-cost/b449bc775941bb2111209219c8c8937fce73962aadf983ce5ff3338faeea6951-light.svg)

![SQS FIFO · SQS request billing units: monthly service charges by SQS request billing units. Exact values are in the following table.](https://docs.tensor9.com/images/diagrams/service-cost/e75fa1cd33f68d8167ed8125f99e3ed3eebc336a88ffb31fe1842bd19da58384-dark.svg)

Comparison pills describe all sampled scale points; amounts beside each service are for the named workload. Costs The Same means within 20% at every point. Costs Depend includes mixed results and unpriced samples.

Sampled monthly charges in USD, rounded to cents. Difference means target minus origin; a positive difference means the target costs more.

| SQS request billing units (per second) | SQS (Simple Queue Service, FIFO queues) | Target scenario | PostgreSQL Flexible Server | Difference |
| -: | -: | - | -: | -: |
| 0 | 0.00 | PostgreSQL Flexible Server (one copy) | 141.44 | 141.44 |
| 0 | 0.00 | PostgreSQL Flexible Server (two copies) | 282.88 | 282.88 |
| 1 | 1.31 | PostgreSQL Flexible Server (one copy) | 141.44 | 140.13 |
| 1 | 1.31 | PostgreSQL Flexible Server (two copies) | 282.88 | 281.57 |
| 10 | 13.14 | PostgreSQL Flexible Server (one copy) | 141.44 | 128.30 |
| 10 | 13.14 | PostgreSQL Flexible Server (two copies) | 282.88 | 269.74 |
| 100 | 131.40 | PostgreSQL Flexible Server (one copy) | 141.44 | 10.04 |
| 100 | 131.40 | PostgreSQL Flexible Server (two copies) | 282.88 | 151.48 |
| 1,000 | 1,314.00 | PostgreSQL Flexible Server (one copy) | 531.26 | -782.74 |
| 1,000 | 1,314.00 | PostgreSQL Flexible Server (two copies) | 1,062.52 | -251.48 |
| 10,000 | 13,140.00 | PostgreSQL Flexible Server (one copy) | 4,169.58 | -8,970.42 |
| 10,000 | 13,140.00 | PostgreSQL Flexible Server (two copies) | 8,339.16 | -4,800.84 |

Estimated allocation, not benchmark calibrated: sized from 2 vCPU, 8 GiB memory and 100 GiB SSD at 0 per second to 64 vCPU, 256 GiB memory and 100 GiB SSD at 10,000 per second.

**Curve assumptions**

| Target scenario | Assumption | Value | Unit |
| - | - | -: | - |
| PostgreSQL Flexible Server (one copy) | Origin list price · SQS billing units | 0.0000005 | USD/64-KiB request units |
| PostgreSQL Flexible Server (one copy) | Representative message size | 1,024 | bytes |
| PostgreSQL Flexible Server (one copy) | Origin send batch fill | 1 | messages/request |
| PostgreSQL Flexible Server (one copy) | Origin receive batch fill | 1 | messages/request |
| PostgreSQL Flexible Server (one copy) | Origin delete batch fill | 1 | messages/request |
| PostgreSQL Flexible Server (one copy) | Deliveries per message | 1 | attempts |
| PostgreSQL Flexible Server (one copy) | Empty receive calls per message | 0 | requests |
| PostgreSQL Flexible Server (one copy) | Queue residence window | 60 | seconds |
| PostgreSQL Flexible Server (one copy) | Ordering and dedup work multiplier | 2 | multiplier |
| PostgreSQL Flexible Server (one copy) | Target price guess · read | 0 | USD/read |
| PostgreSQL Flexible Server (one copy) | Target price guess · write | 0 | USD/write |
| PostgreSQL Flexible Server (one copy) | Target price guess · provider operation | 0 | USD/provider operation |
| PostgreSQL Flexible Server (one copy) | Target list price · GiB-month | 0.115 | USD/GiB-month |
| PostgreSQL Flexible Server (one copy) | Target price guess · published GiB | 0 | USD/published GiB |
| PostgreSQL Flexible Server (one copy) | Target price guess · delivered GiB | 0 | USD/delivered GiB |
| PostgreSQL Flexible Server (one copy) | Target list price · network GiB | 0.087 | USD/network GiB |
| PostgreSQL Flexible Server (one copy) | Target price guess · replica GiB-month | 0 | USD/replica GiB-month |
| PostgreSQL Flexible Server (one copy) | Target list price · vCPU-hour | 0.053 | USD/vCPU-hour |
| PostgreSQL Flexible Server (one copy) | Target list price · GiB-hour | 0.009 | USD/GiB-hour |
| PostgreSQL Flexible Server (one copy) | Target price guess · resource-hour | 0 | USD/resource-hour |
| PostgreSQL Flexible Server (one copy) | Target price guess · resource-month | 0 | USD/resource-month |
| PostgreSQL Flexible Server (one copy) | Target price guess · input token | 0 | USD/input token |
| PostgreSQL Flexible Server (one copy) | Target price guess · output token | 0 | USD/output token |
| PostgreSQL Flexible Server (one copy) | Target monthly base charge | 0 | USD/month |
| PostgreSQL Flexible Server (one copy) | Target service minimum | 16.09 | USD/month |
| PostgreSQL Flexible Server (one copy) | Minimum primary CPU | 2 | vCPU |
| PostgreSQL Flexible Server (one copy) | Minimum primary RAM | 8 | GiB |
| PostgreSQL Flexible Server (one copy) | Minimum primary disk | 100 | GiB |
| PostgreSQL Flexible Server (one copy) | Additional full-price standby copy | 0 | 0 or 1 |
| PostgreSQL Flexible Server (one copy) | Allocated share of provisioned cost | 1 | fraction |
| PostgreSQL Flexible Server (one copy) | Read/write work per vCPU-second | 1,500 | operations/vCPU-second |
| PostgreSQL Flexible Server (one copy) | Planning peak / mean work | 2 | multiplier |
| PostgreSQL Flexible Server (one copy) | Planning primary CPU utilization | 0.7 | fraction |
| PostgreSQL Flexible Server (one copy) | Resident state reserved in RAM | 0.1 | fraction |
| PostgreSQL Flexible Server (one copy) | Planning disk utilization | 0.8 | fraction |
| PostgreSQL Flexible Server (one copy) | Maintenance and log disk reserve | 20 | GiB |
| PostgreSQL Flexible Server (one copy) | Staging database CPU unit-price guess | 0.0413 | USD/vCPU-hour |
| PostgreSQL Flexible Server (one copy) | Staging database RAM unit-price guess | 0.007 | USD/GiB-hour |
| PostgreSQL Flexible Server (one copy) | Staging database disk unit-price guess | 0.17 | USD/GiB-month |
| PostgreSQL Flexible Server (one copy) | Dependent object sink storage price guess | 0.023 | USD/GiB-month |
| PostgreSQL Flexible Server (one copy) | Dependent object sink write price guess | 0.000005 | USD/write |
| PostgreSQL Flexible Server (two copies) | Origin list price · SQS billing units | 0.0000005 | USD/64-KiB request units |
| PostgreSQL Flexible Server (two copies) | Representative message size | 1,024 | bytes |
| PostgreSQL Flexible Server (two copies) | Origin send batch fill | 1 | messages/request |
| PostgreSQL Flexible Server (two copies) | Origin receive batch fill | 1 | messages/request |
| PostgreSQL Flexible Server (two copies) | Origin delete batch fill | 1 | messages/request |
| PostgreSQL Flexible Server (two copies) | Deliveries per message | 1 | attempts |
| PostgreSQL Flexible Server (two copies) | Empty receive calls per message | 0 | requests |
| PostgreSQL Flexible Server (two copies) | Queue residence window | 60 | seconds |
| PostgreSQL Flexible Server (two copies) | Ordering and dedup work multiplier | 2 | multiplier |
| PostgreSQL Flexible Server (two copies) | Target price guess · read | 0 | USD/read |
| PostgreSQL Flexible Server (two copies) | Target price guess · write | 0 | USD/write |
| PostgreSQL Flexible Server (two copies) | Target price guess · provider operation | 0 | USD/provider operation |
| PostgreSQL Flexible Server (two copies) | Target list price · GiB-month | 0.115 | USD/GiB-month |
| PostgreSQL Flexible Server (two copies) | Target price guess · published GiB | 0 | USD/published GiB |
| PostgreSQL Flexible Server (two copies) | Target price guess · delivered GiB | 0 | USD/delivered GiB |
| PostgreSQL Flexible Server (two copies) | Target list price · network GiB | 0.087 | USD/network GiB |
| PostgreSQL Flexible Server (two copies) | Target price guess · replica GiB-month | 0 | USD/replica GiB-month |
| PostgreSQL Flexible Server (two copies) | Target list price · vCPU-hour | 0.053 | USD/vCPU-hour |
| PostgreSQL Flexible Server (two copies) | Target list price · GiB-hour | 0.009 | USD/GiB-hour |
| PostgreSQL Flexible Server (two copies) | Target price guess · resource-hour | 0 | USD/resource-hour |
| PostgreSQL Flexible Server (two copies) | Target price guess · resource-month | 0 | USD/resource-month |
| PostgreSQL Flexible Server (two copies) | Target price guess · input token | 0 | USD/input token |
| PostgreSQL Flexible Server (two copies) | Target price guess · output token | 0 | USD/output token |
| PostgreSQL Flexible Server (two copies) | Target monthly base charge | 0 | USD/month |
| PostgreSQL Flexible Server (two copies) | Target service minimum | 16.09 | USD/month |
| PostgreSQL Flexible Server (two copies) | Minimum primary CPU | 2 | vCPU |
| PostgreSQL Flexible Server (two copies) | Minimum primary RAM | 8 | GiB |
| PostgreSQL Flexible Server (two copies) | Minimum primary disk | 100 | GiB |
| PostgreSQL Flexible Server (two copies) | Additional full-price standby copy | 1 | 0 or 1 |
| PostgreSQL Flexible Server (two copies) | Allocated share of provisioned cost | 1 | fraction |
| PostgreSQL Flexible Server (two copies) | Read/write work per vCPU-second | 1,500 | operations/vCPU-second |
| PostgreSQL Flexible Server (two copies) | Planning peak / mean work | 2 | multiplier |
| PostgreSQL Flexible Server (two copies) | Planning primary CPU utilization | 0.7 | fraction |
| PostgreSQL Flexible Server (two copies) | Resident state reserved in RAM | 0.1 | fraction |
| PostgreSQL Flexible Server (two copies) | Planning disk utilization | 0.8 | fraction |
| PostgreSQL Flexible Server (two copies) | Maintenance and log disk reserve | 20 | GiB |
| PostgreSQL Flexible Server (two copies) | Staging database CPU unit-price guess | 0.0413 | USD/vCPU-hour |
| PostgreSQL Flexible Server (two copies) | Staging database RAM unit-price guess | 0.007 | USD/GiB-hour |
| PostgreSQL Flexible Server (two copies) | Staging database disk unit-price guess | 0.17 | USD/GiB-month |
| PostgreSQL Flexible Server (two copies) | Dependent object sink storage price guess | 0.023 | USD/GiB-month |
| PostgreSQL Flexible Server (two copies) | Dependent object sink write price guess | 0.000005 | USD/write |

* 1-KiB messages, unbatched send/receive/delete; actual batch and delivery assumptions stay visible. Other native meters and workload assumptions retain their explicitly displayed default quantities. Workload translation and capacity assumptions are not benchmark measurements.
* Native monthly usage priced at the cited provider list prices; listed target allowances apply where present, excluding invoice credits, taxes and negotiated discounts. Rates as of 2026-10-22: us-east-1 → eastus, USD/month.
* Source prices are reference charges, not an invoice. Target lines cover selected service usage/configuration only; adapter hosting and Tensor9 fees are excluded.
* Samples of explicit prices are not performance measurements or capacity qualification. No interpolation or break-even guarantee is implied.
* Variant assumptions show the first axis sample; any axis-dependent configuration is described by this curve's workload note.
* Rates are cited provider list prices, editable for discounts, commitments or another region. Workload translation and capacity coefficients remain editable planning assumptions, not benchmark measurements or a commercial quote.
* Default-zero rates are explicit assumptions, not evidence that the deployed service or resource is free.
* Provisioned-unit minimums use an editable approximate allocation floor. Modeled target service cost is max(usage/allocation, minimum), with billable network, durable staging and dependent sinks added separately; actual RU/TU sizing, scaling increments and throughput remain unqualified.
* Durable staging is priced once: provisioned targets include adapter state in their selected allocation; native targets add a separate staging allocation when required. Adapter hosting is a separate allocation and must exclude resources already priced as staging, workers or target capacity.
* A declared adapter mapping and cost model do not establish implementation availability or service equivalence.
* This is a declared directed mapping; a planning estimate does not establish deployment or request-serving support.
* Authored planning assumptions, not measured adapter capacity. Origin rates are cited first-tier list prices, before free allowances and discounts.
* A cost scenario does not establish backend availability, protocol fidelity or production readiness. Registry serving status remains independent.
* Storage follows resident original messages, not every monthly message. Broker delivery bytes include redeliveries.
* FIFO estimates do not qualify dedup support, group throughput or single-group latency; backend limitations remain applicable.
* Azure Database for PostgreSQL Flexible Server bills vCores with a fixed memory ratio per series; the vCPU and memory rates decompose the General Purpose and Memory Optimized v5 prices. High availability bills the standby's compute and storage as a second copy. The minimum is the smallest Burstable server, which does not support high availability; the smallest General Purpose server (2 vCores) costs USD 133.62 per month. Additional IOPS, backup storage and reserved capacity are not selected.
* Row-store throughput (capacityOpsPerVcpuSecond, default 1500) is measured-by-tensor9 as a lower bound: the DynamoDB adapter on Cloud SQL db-custom-2-7680 (2 vCPU, PostgreSQL 16, us-west1) served 2,974 ops/s of YCSB-A at 16 threads without recorded saturation (src/main/kotlin/t9/prime/equiv/generated/eval/CloudsqlPostgresqlYcsbAT16GoYcsbV1\_0\_0.kt). Published CPU-bound pgbench reaches 3,101 read-write transactions and 20,289 point reads per vCPU-second (AWS z1d.2xlarge, PostgreSQL 14.5), so actual capacity is likely higher. Reads and writes share one coefficient: at the same adapter version, read-only YCSB-C was not faster than 50%-update YCSB-A.
* Log-broker throughput (capacityStreamMiBPerVcpuSecond 20 at 0.5 utilization, 4 GiB RAM per vCPU) is provider-documented by Google Managed Service for Apache Kafka sizing ([https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/plan-cluster-size](https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/plan-cluster-size)): write-equivalent bytes are replicated writes plus a quarter of reads. Producer batches below 10 KB lower per-CPU throughput; that penalty is not modeled.
* Disk utilization 0.8 is provider-documented headroom below Cloud SQL automatic storage increase, which triggers near 91-95% full ([https://docs.cloud.google.com/sql/docs/postgres/instance-settings](https://docs.cloud.google.com/sql/docs/postgres/instance-settings)). The 20 GiB reserve exceeds PostgreSQL's 1 GB default max\_wal\_size; the remainder of that reserve is unmeasured.
* CPU tiers double from 2 vCPUs to the target's largest node at 4 GiB per vCPU; each target's documented largest node bounds CPU, RAM, RAM per vCPU and disk, and the durable staging database uses Cloud SQL Enterprise (96 vCPU, 6.5 GiB per vCPU, 624 GiB, 64 TiB). Targets billed per capacity unit or throughput unit are sized by their backend instead.
* No public evidence: peak/mean work (2) and the RAM working-set fraction (0.1). Proposed measurements: the p99 one-minute rate over the monthly mean from customer CloudWatch metrics; the buffer hit ratio while stepping RAM under a fixed YCSB-B load.
* Node bounds: E96ds\_v5 has 96 vCores and 672 GiB ([https://learn.microsoft.com/en-us/azure/postgresql/compute-storage/concepts-compute](https://learn.microsoft.com/en-us/azure/postgresql/compute-storage/concepts-compute)); Premium SSD storage holds up to 32,767 GiB ([https://learn.microsoft.com/en-us/azure/postgresql/compute-storage/concepts-storage](https://learn.microsoft.com/en-us/azure/postgresql/compute-storage/concepts-storage)).
* Stored GiB already includes the origin family's physical footprint assumptions; no second storage amplification is applied.
* The operations/vCPU coefficient supplies the compute requirement alongside explicit resource-hour minima.
* Copies and allocation fractions change cost only; they do not increase modeled primary capacity.
* AWS Price List API, AWSQueueService offer: [https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AWSQueueService/current/us-east-1/index.json](https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AWSQueueService/current/us-east-1/index.json)
* Azure Retail Prices API: [https://prices.azure.com/api/retail/prices](https://prices.azure.com/api/retail/prices)

Cost scope: Modeled target native service and explicitly modeled state allocation; hosting and Tensor9 fees only when supplied.

Excluded costs and workload features:

* Additional network transfer, backups, KMS, one-time migration and operational labor unless an explicit meter includes them.
* Destination application execution and separately billed downstream services; supply those allocations separately.
* Taxes, discounts, credits and free-tier allowances not explicitly listed by this model.
* Unmodeled dependent services, task execution and operations outside the selected workload family.

List prices read: 2026-10-22. Model: `plan-d6e6756733e57b05fe1084c81427de33e78217f0` / `2026-10-22.planning.2`. Curve: `workload-1`.

Sources: [AWS Price List API, AWSQueueService offer](https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AWSQueueService/current/us-east-1/index.json), [Azure Retail Prices API](https://prices.azure.com/api/retail/prices).

**SQS FIFO → PostgreSQL Flexible Server: Authored native-usage planning example.** Native monthly usage priced at the cited provider list prices; listed target allowances apply where present, excluding invoice credits, taxes and negotiated discounts.

Scenario source region: us-east-1. Scenario target region: eastus. Currency: USD.

| Monthly component | USD |
| - | -: |
| Origin: SQS billing units | 0.00 |
| Target: Provisioned primary CPU | 77.38 |
| Target: Provisioned primary RAM | 52.56 |
| Target: Provisioned primary disk | 11.50 |
| Target: Selected billable network | 0.00 |
| Target: Independent provisioned resources | 0.00 |
| Target: Independent managed resources | 0.00 |
| **Origin service subtotal** | **0.00** |
| **Target service subtotal** | **141.44** |

Estimated allocation, not benchmark calibrated: sized at 2 vCPU, 8 GiB memory and 100 GiB SSD for this scenario.

Unestimated components: Adapter hosting, Tensor9 fees. A modeled adapted total and savings require these costs.

Cost scope: Modeled target native service and explicitly modeled state allocation; hosting and Tensor9 fees only when supplied.

Excluded costs and workload features:

* Additional network transfer, backups, KMS, one-time migration and operational labor unless an explicit meter includes them.
* Destination application execution and separately billed downstream services; supply those allocations separately.
* Taxes, discounts, credits and free-tier allowances not explicitly listed by this model.
* Unmodeled dependent services, task execution and operations outside the selected workload family.

**Scenario assumptions**

| Input | Value | Unit |
| - | -: | - |
| Origin list price · SQS billing units | 0.0000005 | USD/64-KiB request units |
| Representative message size | 1,024 | bytes |
| Origin send batch fill | 1 | messages/request |
| Origin receive batch fill | 1 | messages/request |
| Origin delete batch fill | 1 | messages/request |
| Deliveries per message | 1 | attempts |
| Empty receive calls per message | 0 | requests |
| Queue residence window | 60 | seconds |
| Ordering and dedup work multiplier | 2 | multiplier |
| Target price guess · read | 0 | USD/read |
| Target price guess · write | 0 | USD/write |
| Target price guess · provider operation | 0 | USD/provider operation |
| Target list price · GiB-month | 0.115 | USD/GiB-month |
| Target price guess · published GiB | 0 | USD/published GiB |
| Target price guess · delivered GiB | 0 | USD/delivered GiB |
| Target list price · network GiB | 0.087 | USD/network GiB |
| Target price guess · replica GiB-month | 0 | USD/replica GiB-month |
| Target list price · vCPU-hour | 0.053 | USD/vCPU-hour |
| Target list price · GiB-hour | 0.009 | USD/GiB-hour |
| Target price guess · resource-hour | 0 | USD/resource-hour |
| Target price guess · resource-month | 0 | USD/resource-month |
| Target price guess · input token | 0 | USD/input token |
| Target price guess · output token | 0 | USD/output token |
| Target monthly base charge | 0 | USD/month |
| Target service minimum | 16.09 | USD/month |
| Minimum primary CPU | 2 | vCPU |
| Minimum primary RAM | 8 | GiB |
| Minimum primary disk | 100 | GiB |
| Additional full-price standby copy | 0 | 0 or 1 |
| Allocated share of provisioned cost | 1 | fraction |
| Read/write work per vCPU-second | 1,500 | operations/vCPU-second |
| Planning peak / mean work | 2 | multiplier |
| Planning primary CPU utilization | 0.7 | fraction |
| Resident state reserved in RAM | 0.1 | fraction |
| Planning disk utilization | 0.8 | fraction |
| Maintenance and log disk reserve | 20 | GiB |
| Staging database CPU unit-price guess | 0.0413 | USD/vCPU-hour |
| Staging database RAM unit-price guess | 0.007 | USD/GiB-hour |
| Staging database disk unit-price guess | 0.17 | USD/GiB-month |
| Dependent object sink storage price guess | 0.023 | USD/GiB-month |
| Dependent object sink write price guess | 0.000005 | USD/write |
| SQS billing units | 0 | 64-KiB request units |

* Translated reads: 0 operations.

* Translated writes: 0 operations.

* Translated resident physical data: 0 GiB-month.

* Native provider operations: 0 operations.

* Published payload: 0 GiB.

* Delivered payload: 0 GiB.

* Allocated execution CPU: 0 vCPU-hour.

* Allocated execution RAM: 0 GiB-hour.

* Independent resource allocation: 0 resource-hour.

* Independent inventory: 0 resource-month.

* Input tokens: 0 tokens.

* Output tokens: 0 tokens.

* Billable network: 0 GiB.

* Dependent object sink retained data: 0 GiB-month.

* Dependent object sink writes: 0 writes.

* Rates are cited provider list prices, editable for discounts, commitments or another region. Workload translation and capacity coefficients remain editable planning assumptions, not benchmark measurements or a commercial quote.

* Default-zero rates are explicit assumptions, not evidence that the deployed service or resource is free.

* Provisioned-unit minimums use an editable approximate allocation floor. Modeled target service cost is max(usage/allocation, minimum), with billable network, durable staging and dependent sinks added separately; actual RU/TU sizing, scaling increments and throughput remain unqualified.

* Durable staging is priced once: provisioned targets include adapter state in their selected allocation; native targets add a separate staging allocation when required. Adapter hosting is a separate allocation and must exclude resources already priced as staging, workers or target capacity.

* A declared adapter mapping and cost model do not establish implementation availability or service equivalence.

* This is a declared directed mapping; a planning estimate does not establish deployment or request-serving support.

* Authored planning assumptions, not measured adapter capacity. Origin rates are cited first-tier list prices, before free allowances and discounts.

* A cost scenario does not establish backend availability, protocol fidelity or production readiness. Registry serving status remains independent.

* Storage follows resident original messages, not every monthly message. Broker delivery bytes include redeliveries.

* FIFO estimates do not qualify dedup support, group throughput or single-group latency; backend limitations remain applicable.

* Azure Database for PostgreSQL Flexible Server bills vCores with a fixed memory ratio per series; the vCPU and memory rates decompose the General Purpose and Memory Optimized v5 prices. High availability bills the standby's compute and storage as a second copy. The minimum is the smallest Burstable server, which does not support high availability; the smallest General Purpose server (2 vCores) costs USD 133.62 per month. Additional IOPS, backup storage and reserved capacity are not selected.

* Row-store throughput (capacityOpsPerVcpuSecond, default 1500) is measured-by-tensor9 as a lower bound: the DynamoDB adapter on Cloud SQL db-custom-2-7680 (2 vCPU, PostgreSQL 16, us-west1) served 2,974 ops/s of YCSB-A at 16 threads without recorded saturation (src/main/kotlin/t9/prime/equiv/generated/eval/CloudsqlPostgresqlYcsbAT16GoYcsbV1\_0\_0.kt). Published CPU-bound pgbench reaches 3,101 read-write transactions and 20,289 point reads per vCPU-second (AWS z1d.2xlarge, PostgreSQL 14.5), so actual capacity is likely higher. Reads and writes share one coefficient: at the same adapter version, read-only YCSB-C was not faster than 50%-update YCSB-A.

* Log-broker throughput (capacityStreamMiBPerVcpuSecond 20 at 0.5 utilization, 4 GiB RAM per vCPU) is provider-documented by Google Managed Service for Apache Kafka sizing ([https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/plan-cluster-size](https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/plan-cluster-size)): write-equivalent bytes are replicated writes plus a quarter of reads. Producer batches below 10 KB lower per-CPU throughput; that penalty is not modeled.

* Disk utilization 0.8 is provider-documented headroom below Cloud SQL automatic storage increase, which triggers near 91-95% full ([https://docs.cloud.google.com/sql/docs/postgres/instance-settings](https://docs.cloud.google.com/sql/docs/postgres/instance-settings)). The 20 GiB reserve exceeds PostgreSQL's 1 GB default max\_wal\_size; the remainder of that reserve is unmeasured.

* CPU tiers double from 2 vCPUs to the target's largest node at 4 GiB per vCPU; each target's documented largest node bounds CPU, RAM, RAM per vCPU and disk, and the durable staging database uses Cloud SQL Enterprise (96 vCPU, 6.5 GiB per vCPU, 624 GiB, 64 TiB). Targets billed per capacity unit or throughput unit are sized by their backend instead.

* No public evidence: peak/mean work (2) and the RAM working-set fraction (0.1). Proposed measurements: the p99 one-minute rate over the monthly mean from customer CloudWatch metrics; the buffer hit ratio while stepping RAM under a fixed YCSB-B load.

* Node bounds: E96ds\_v5 has 96 vCores and 672 GiB ([https://learn.microsoft.com/en-us/azure/postgresql/compute-storage/concepts-compute](https://learn.microsoft.com/en-us/azure/postgresql/compute-storage/concepts-compute)); Premium SSD storage holds up to 32,767 GiB ([https://learn.microsoft.com/en-us/azure/postgresql/compute-storage/concepts-storage](https://learn.microsoft.com/en-us/azure/postgresql/compute-storage/concepts-storage)).

* Stored GiB already includes the origin family's physical footprint assumptions; no second storage amplification is applied.

* The operations/vCPU coefficient supplies the compute requirement alongside explicit resource-hour minima.

* Copies and allocation fractions change cost only; they do not increase modeled primary capacity.

List prices read: 2026-10-22. Model: `plan-d6e6756733e57b05fe1084c81427de33e78217f0` / `2026-10-22.planning.2`. Scenario: `planning-example`.

Sources: [AWS Price List API, AWSQueueService offer](https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AWSQueueService/current/us-east-1/index.json), [Azure Retail Prices API](https://prices.azure.com/api/retail/prices).

## Costs

Estimated monthly service charges for each backend with a published cost model, at one sampled workload from that model's cost curve. Adapter hosting and Tensor9 fees are excluded. [How Tensor9 estimates costs](https://docs.tensor9.com/byoc/costs/overview.md) explains the method, what the estimates include and how to read their qualifications.

| Backend | Sampled workload | Price basis | Origin USD/month | Backend USD/month | Difference | Mapping |
| - | - | - | -: | -: | -: | - |
| Azure Cosmos DB (queue) | SQS request billing units: 100 per second | Cited list prices, 2026-10-22 | 131.40 | 140.16 | +8.76 | Service adapter |
| Azure Service Bus | SQS request billing units: 100 per second | Cited list prices, 2026-10-22 | 131.40 | 160.81 | +29.41 | Service adapter |
| Cloud SQL for PostgreSQL | SQS request billing units: 100 per second; one copy | Cited list prices, 2026-10-22 | 131.40 | 118.18 | -13.22 | Native or deployment |
| PostgreSQL | SQS request billing units: 100 per second; one copy | Cited list prices, 2026-10-22 | 131.40 | 80.90 | -50.50 | Native or deployment |
| PostgreSQL Flexible Server | SQS request billing units: 100 per second; one copy | Cited list prices, 2026-10-22 | 131.40 | 141.44 | +10.04 | Service adapter |
| Scaleway Managed Database for PostgreSQL | SQS request billing units: 100 per second; one copy | Cited list prices, 2026-10-22 | 131.40 | 101.10 | -30.30 | Service adapter |

Difference means backend minus origin; a positive difference means the backend costs more. Workloads and target configurations differ by model, so compare each row's difference at its stated workload rather than charges across rows.
Cost curves across workload sizes, with every assumption and exclusion: [Amazon SQS costs](https://docs.tensor9.com/byoc/costs/sqs.md).

## Service level agreements

> [!WARNING]
>
> These tables show Tensor9's standard service levels and adapters whose standard terms are still being defined. Your signed agreement determines the SLAs, covered adapters and operations, limits, remedies and support terms that apply to your deployment.

Listed terms cover requests sent through this service adapter. They do not cover direct connections to the target service or replace the cloud provider's own SLA. Each origin-to-target pair has its own terms or an explicit pending status.

See the [SLA tables](https://docs.tensor9.com/byoc/support/service-adapter-slas.md), [measurement rules](https://docs.tensor9.com/byoc/support/service-levels.md), and [scaling conditions](https://docs.tensor9.com/byoc/support/scaling-and-limits.md).

### SQS to Cosmos DB

| SLA | Service level | What is covered | Conditions |
| - | - | - | - |
| Endpoint reachability | 99.9% per calendar month | Adapter endpoint reachability | Tests whether the endpoint can be reached, separately from whether requests complete correctly. Measure each queue type separately. |
| SendMessage, DeleteMessage, ChangeMessageVisibility adapter-added latency | +20 ms monthly p99 | `aws::1.0.0::sqs`: `SendMessage`, `DeleteMessage`, `ChangeMessageVisibility` | Message body ≤1 KiB and attributes ≤1 KiB. Use supported request options. |
| SendMessageBatch adapter-added latency | +200 ms monthly p99 | `aws::1.0.0::sqs`: `SendMessageBatch` | ≤10 entries, each within the body, attribute and API limits. `DeleteMessageBatch` is not covered. |
| ReceiveMessage: ready-message pickup adapter-added latency | +500 ms monthly p99 | `aws::1.0.0::sqs`: `ReceiveMessage` | One available message and one waiting request for a single message; body/attributes ≤1 KiB. No competing backlog, receiver, or earlier FIFO message blocking delivery. |
| ReceiveMessage: delay after the requested wait adapter-added latency | +500 ms monthly p99 | `aws::1.0.0::sqs`: `ReceiveMessage` | Count adapter delay after the requested waiting period ends, not the time spent waiting for a message. |
| Saving messages and completed processing | Save the required data durably before returning success | `aws::1.0.0::sqs`: `SendMessage`, `DeleteMessage`, `ChangeMessageVisibility`, `SendMessageBatch`, `ReceiveMessage` | Safely assign messages to receivers and preserve visibility, expiration, completed processing and dead-letter handling after a failure. The adapter must not lose accepted messages. |
| Delivery, ordering and deduplication | Delivery behavior as documented for this adapter | `aws::1.0.0::sqs`: `SendMessage`, `DeleteMessage`, `ChangeMessageVisibility`, `SendMessageBatch`, `ReceiveMessage` | Standard queues may deliver a message again. FIFO preserves the documented order and duplicate handling within each message group. Your application must still handle retries without repeating business actions. |
| Adapter autoscaling and limits | Automatic scaling within agreed traffic and deployment limits | Adapter behavior across requests | Set separate limits for Standard and FIFO queues. Include completed send/receive/delete cycles, message sizes and attributes, partitions, conditional message claims, FIFO groups, traffic growth and bursts, and spare capacity for failures. The standard service level promises no fixed request rate, reserved throughput or unlimited scaling. Backend capacity is separate. Adapter scaling delays still count toward the SLA while traffic stays within the agreed limits. |

**Adapter-added latency.** A + prefix marks time added by the adapter, not the total time your application waits. Total request time includes adapter processing, backend service time and network time. The backend provider's SLA applies independently. Only separately measured target-service wait may be subtracted, and only when your agreement permits it; internal metadata, coordination and retry processing still count. For one request, 12 ms of adapter processing plus 90 ms waiting for the backend means at least 102 ms total. This example does not add monthly p99 values.

**What Tensor9 covers.** Latency targets measure the time Tensor9's adapter adds to backend processing, not the application's total elapsed time. They do not replace the backend provider's SLA. Adapter time covers permission checks, deciding whether to accept a request, time waiting inside the adapter, request handling, coordination, retries, internal storage and response handling. Waiting for the backend service is excluded only when that wait is measured separately and the agreement allows the exclusion. Your agreement must name the covered deployment, operations, request limits and traffic limits. Unlisted operations are not automatically covered. Correct data and authorization behavior is required for every supported request; endpoint reachability does not excuse incorrect results.

**How queue timing works.** Time spent waiting for a message in an empty queue does not count as adapter delay. Adapter delays after a message becomes available, or after the requested wait ends, do count. The message-pickup target is not a deadline for clearing a backlog. Measure Standard and FIFO queues separately, and check each batch entry's result. Empty receives and internal retries do not count as successfully delivered messages.

**Scaling limits.** Tensor9 automatically adds adapter capacity within the traffic growth, burst size and infrastructure limits in your agreement. The standard service level does not promise a fixed request rate or unlimited scaling. Capacity depends on request sizes and types, how traffic is distributed across keys or message groups, backend configuration and spare capacity for failures. More adapter processes cannot speed up every shared or sequential step. You remain responsible for backend-service capacity; failures caused independently by the provider are outside this SLA.

**Read the details.** Each linked service page lists the covered operations, request limits, measurement rules, data guarantees, scaling limits and examples. This summary does not add coverage beyond those terms. Your signed agreement determines the service levels that apply to your deployment.

#### Why these latency targets differ

The shared Standard/FIFO point-operation target is 20 ms, with 200 ms for a batch of up to ten sends. Cosmos FIFO uses a per-group sequence counter, a durable deduplication marker and an in-flight ownership slot. Their conditional reads/writes are adapter coordination; the clock cannot exclude them merely because they use Cosmos DB. The shared target preserves room for that work instead of advertising the cost of a simple native queue forwarder.

Ready-message pickup and delay after the requested wait remain at 500 ms. Discovery, candidate inspection, conditional claims and polling can dominate this path even for a tiny message. The target is not an end-to-end promise for clearing a backlog, and Standard and FIFO observations must remain separate.

#### Adapter and scope

| Origin | Backend |
| - | - |
| `aws::1.0.0::sqs::classic` | `azure::1.0.0::cosmosdb::queue` |
| `aws::1.0.0::sqs::fifo` | `azure::1.0.0::cosmosdb::queue` |

This is the queue-specific Cosmos DB profile, using its serverless account and per-queue container arrangement. It is **not** the provisioned Cosmos DB backend used by the DynamoDB service level. Capacity settings and performance results cannot be transferred between those profiles by matching the provider name.

#### Receive timing

Two phases of `ReceiveMessage` have separate measurements:

* **Ready-message pickup:** time from a message becoming available to a waiting receiver until the adapter sends the response. Only separately measured time spent waiting for the backend service is excluded.
* **Delay after the requested wait:** extra adapter time after the requested wait for a message has ended.

The pickup target applies when one message becomes ready for one waiting receiver that requested a single message. No other messages or receivers may compete for that delivery. For FIFO, an earlier message in the same group must not still be waiting for deletion. The message must be visible, unexpired, past any delivery delay, and available to that consumer.

One ready message and 64 waiting receivers require one delivery, not 64. Ten thousand messages and one outstanding receive do not create ten thousand immediate delivery deadlines. This target does not set a deadline for processing an entire backlog.

Waiting on an empty queue for the requested 20 seconds is intentional. If the adapter sleeps between queue checks after a message becomes available or after the wait deadline, that delay counts toward adapter latency. Waiting for a connection from the adapter's pool also counts. The pickup clock does not start while a message is delayed or invisible.

#### Message guarantees

A send can return success only after the message state has been durably saved. A deduplication marker alone must not produce success for a message that was never committed. The adapter must use the same record of accepted messages when returning success, checking for duplicates, and recovering from a crash.

Standard queues can redeliver messages. FIFO preserves the profile's per-group ordering and supported deduplication behavior; it does not promise global order across groups or exactly-once effects in your application. A consumer can perform a business action and fail before deleting the message, so application-side idempotency still matters.

The adapter follows its documented rules for visibility, expiration, message deletion, and movement to a dead-letter queue. Successfully completed changes must survive the process failures covered by the agreement. An expired receipt handle produces the result documented for that adapter; different backends need not return the same error. Approximate queue counts help with troubleshooting but are not guaranteed to show the exact current queue depth.

#### Useful throughput

Count completed API calls separately from message work. A valid empty `ReceiveMessage` completes an API call but delivers no message. One successful send, nonempty receive and delete form a message lifecycle involving at least three API calls. Redelivery and internal retries must not inflate the count of distinct messages processed.

Measure Standard and FIFO separately. FIFO group distribution, time between receive and delete, visibility timeout, delayed messages and dead-letter traffic change the scaling limit. A large number of consumers cannot make a single serialized group behave like many independent groups.

These standard service levels do not reserve a fixed message rate or specify a maximum throughput. Tensor9 and the customer must agree on limits for the actual workload and production deployment, including how quickly traffic can grow and how large a burst can be. Autoscaling is intended to maintain the stated latency and endpoint reachability within those limits. It cannot remove ordering requirements or backend-service limits.

#### Operation terms

The named operations retain their documented behavior with supported request options. The 1 KiB limits apply to the latency targets. `DeleteMessageBatch`, `ChangeMessageVisibilityBatch`, queue management, tagging and approximate-count reads have no numerical SLA under these standard terms. A capability in the service profile does not automatically receive another operation's SLA.

The pickup service level differs from the Cloud SQL service level. These targets apply to their respective receive paths; they are not comparative benchmark results or a recommendation to choose one backend.

#### Scaling on Cosmos DB

Partition distribution, conditional message claims, deduplication and FIFO group serialization affect useful throughput. Native request-unit consumption and throttling need to be considered alongside adapter scheduling, repeated scans and retry amplification.

Additional replicas can process independent work. They do not remove contention around the same message claim or FIFO group, and they do not grant additional native serverless capacity. Track completed message lifecycles, native calls per lifecycle and repeated failed claims separately.

Once a message expires, the queue must treat it as expired even if the cloud provider has not yet removed its stored data. Do not count expired messages as available work merely because they still appear in a storage view. Time the adapter takes to find an available message, including waits between queue checks, also counts toward adapter latency. It is not automatically excluded as cloud-provider time.

#### Example: two receivers see the same candidate

Two receivers discover a message. The adapter must use a conditional update to assign the message to a receiver under the documented queue rules. It must not give both receivers conflicting ownership just to meet a latency target. Record the claim outcomes and native conditional responses, along with local retries and scheduling.

A later redelivery after visibility expires can be legitimate. It is different from simultaneous ownership caused by a broken claim. Inspect receipt timing and the selected queue semantics before calling either event data loss or a duplicate-delivery defect.

#### Example: restart during a dead-letter transition

A message is copied to the dead-letter queue, then the process restarts before removing the source copy. Recovery must preserve the supported message semantics without adapter-induced loss. A valid redelivery is not the same as a missing accepted message.

Preserve source and destination observations and identifiers before changing either queue. Do not delete both copies to make the counts agree, and do not replay a send solely to generate an Explain report.

If Cosmos DB also reports throttling, investigate serverless/partition pressure and the adapter's call/retry pattern. Backend throttling does not excuse an incorrect recovery algorithm or excessive local retries.

#### Evidence for support

Record Standard versus FIFO, group distribution, message and attribute sizes, conditional-claim outcomes, wait/visibility settings, dead-letter configuration and the affected time window. Include native request IDs, request-unit/throttling observations and available adapter timing. Keep sensitive bodies and receipt handles out of shared reports. You can contact support before you know what caused the problem.

### SQS (Simple Queue Service, FIFO queues) to PostgreSQL Flexible Server

| SLA | Service level | What is covered | Conditions |
| - | - | - | - |
| Small message send and settlement adapter-added latency | +10 ms monthly p99 | `aws::1.0.0::sqs`: `ChangeMessageVisibility`, `DeleteMessage`, `SendMessage` | One message at most 4 KiB including attributes; one group for FIFO; no redrive transition or contention retry. Adapter metadata/coordination waits remain included. Higher contention needs an agreed separate class. |
| Bounded short-poll receive adapter-added latency | +10 ms monthly p99 | `aws::1.0.0::sqs`: `ReceiveMessage` | WaitTimeSeconds=0; at most 10 messages, 40 KiB aggregate bodies/attributes, at most 100 inspected candidates or active groups, no dead-letter transfer. Long-poll timeout and message-arrival latency are separate, not silently subtracted from this row. |
| Bounded message batches adapter-added latency | +100 ms monthly p99 | `aws::1.0.0::sqs`: `DeleteMessageBatch`, `SendMessageBatch` | At most 10 entries and 40 KiB aggregate data. Same point-operation limits, applied to each entry; every entry gets its own success/error result. |
| Queue configuration and discovery adapter-added latency | +20 ms monthly p99 | `aws::1.0.0::sqs`: `GetQueueAttributes`, `GetQueueUrl` | One queue, at most 50 tags and 32 KiB configuration, or a page of at most 100 queues. Purge measures request acceptance, not complete physical reclamation or receipt invalidation across every worker. |
| Documented adapter behavior | Preserve the supported behavior documented for this adapter | `aws::1.0.0::sqs`: `ChangeMessageVisibility`, `DeleteMessage`, `SendMessage`, `ReceiveMessage`, `DeleteMessageBatch`, `SendMessageBatch`, `GetQueueAttributes`, `GetQueueUrl` | Acceptance must not be returned before the documented message persistence point. Settlement must apply to the intended message/receipt; FIFO order and deduplication apply only where this directed profile supports them. Duplicate delivery can be legitimate under at-least-once delivery. Dead-letter transitions must not silently discard an accepted message. Durability of the target broker/database remains its own commitment, while broken adapter receipt, marker or coordination logic remains Tensor9's responsibility. |
| Endpoint reachability | 99.9% per calendar month | Adapter endpoint reachability | The agreed production deployment has healthy target connectivity and receives a valid adapter health probe. This measures the adapter endpoint, not the target provider's service. |
| Adapter autoscaling and limits | Automatic scaling within the workload and deployment limits in your agreement | Adapter behavior across requests | Your agreement states the maximum request rate, burst size, request and response sizes, concurrency, and target calls per request. Tensor9 maintains adapter capacity inside that envelope. Target-service quotas and capacity are separate. |

**Adapter-added latency.** A + prefix marks time added by the adapter, not the total time your application waits. Total request time includes adapter processing, backend service time and network time. The backend provider's SLA applies independently. Only separately measured target-service wait may be subtracted, and only when your agreement permits it; internal metadata, coordination and retry processing still count. For one request, 12 ms of adapter processing plus 90 ms waiting for the backend means at least 102 ms total. This example does not add monthly p99 values.

**What Tensor9 covers.** These service levels cover the adapter between the origin API and target API. They do not replace the target provider's SLA.

**How latency is counted.** Adapter work, including metadata and coordination, counts. Only separately measured permitted target waits are excluded.

**Which terms apply.** Your signed agreement names the covered operations, workload limits, remedies, and final service levels for your deployment.

#### What this adapter does

For `azure::1.0.0::postgresql::flexible`, The SQL queue uses row locking and SKIP LOCKED; FIFO adds head-of-group selection and deduplication state. The current long-poll loop can sleep between polls. Queue configuration is cached and durable queue state remains in PostgreSQL. A ReceiveMessage response budget is not a delivery-time promise: messages may not yet exist, may be delayed, or may be blocked by a FIFO group head. The short-poll row deliberately removes that ambiguity. Requested long-poll waits need their own measurement treatment in the agreement.

#### How the latency targets were chosen

**Small message send and settlement: +10 ms monthly p99 (adapter-added).** `ChangeMessageVisibility`, `DeleteMessage`, `SendMessage`. Native forwarding needs bounded translation; SQL adds queue state; Cosmos FIFO requires multiple durable coordination steps and cannot honestly inherit a 1 ms forwarding budget.

**Bounded short-poll receive: +10 ms monthly p99 (adapter-added).** `ReceiveMessage`. Receive scans/selects candidates, claims visibility and creates receipt handles. FIFO head selection and Cosmos slot CAS cost more than a simple send.

**Bounded message batches: +100 ms monthly p99 (adapter-added).** `DeleteMessageBatch`, `SendMessageBatch`. A conservative upper budget for up to ten point paths plus aggregation. It does not assume the implementation parallelizes all target or metadata work.

**Queue configuration and discovery: +20 ms monthly p99 (adapter-added).** `GetQueueAttributes`, `GetQueueUrl`. Queue identity, attributes, tags and counts can use the adapter's durable catalog; this is not excluded as target message work.

Your signed agreement sets the terms for your deployment. A target does not add an operation or option that the compatibility tables mark unavailable.

#### What counts toward latency

For a request-response row, measure from the agreed ingress boundary to dispatch of the complete response. A row that explicitly names a first response chunk ends at that chunk; its number does not cover the rest of the stream. A long-poll row names the intentional wait and when adapter delay starts. Include parsing, authorization, admission, translation, serialization, adapter-owned storage and coordination, retries and response handling. Subtract only separately measured target-workload waits and external network segments allowed by the measurement rules. The adapter's own response handling and dispatch remain covered. A database used for adapter metadata is still adapter work, even if a cloud provider hosts it.

For concurrent calls, exclude the union of permitted wait intervals, not the sum of overlapping spans. Calculate each request's adapter duration first, then the monthly p99. Do not subtract one service's p99 from another's. Known adapter timeouts are over-budget samples; failed or incomplete requests cannot disappear to improve the percentile. Missing measurements do not become zero latency. An SDK call span alone does not prove how much of its duration can be excluded.

#### Endpoint reachability and request failures

The endpoint-reachability target measures adapter health checks. Correctly forwarding a target quota or permission error is different from producing that error because the adapter sent the wrong request. Adapter-caused failures remain Tensor9's responsibility even when the target is healthy.

Correctness and data-integrity requirements apply to every supported request. Endpoint reachability does not measure request correctness or grant an allowance for incorrect results.

#### Scaling and target-service capacity

Scale send, receive and settle capacity together, and track in-flight messages, pollers, candidate scans and FIFO group skew. Adding replicas helps independent groups but cannot parallelize the ordered head of one group. The agreement caps active pollers, groups inspected per receive, message bytes, retry amplification and batch entries. Tensor9 scales the fabric within those limits; the customer supplies sufficient broker capacity, Cosmos RU/s or PostgreSQL connections and I/O.

Tell Tensor9 the expected steady rate, bursts, concurrency, payload sizes and operation mix. Tensor9 sizes and scales the adapter for the agreed load; you choose and monitor the target service's capacity with Tensor9's help. A latency budget is not a requests-per-second rating. Larger requests and higher rates need explicit terms, not silent inheritance of a small-request SLA.

#### Data and behavior guarantees

Acceptance must not be returned before the documented message persistence point. Settlement must apply to the intended message/receipt; FIFO order and deduplication apply only where this directed profile supports them. Duplicate delivery can be legitimate under at-least-once delivery. Dead-letter transitions must not silently discard an accepted message. Durability of the target broker/database remains its own commitment, while broken adapter receipt, marker or coordination logic remains Tensor9's responsibility.

#### Example and diagnosis

For `order-events`, send a 2 KiB message, receive up to ten messages with WaitTimeSeconds=0, then settle each receipt. For a FIFO queue, distribute independent customers across groups instead of expecting one group to scale with replicas. If native message writes are fast but Cosmos FIFO sends slow down, inspect counter/dedup contention: those coordination waits still count against Tensor9's fabric budget.

Use `tensor9 explain` and the documented explain headers to understand the selected adapter and its behavior. Correlate available request diagnostics with the target provider's latency, throttling and capacity metrics. An explain report helps diagnose a request; it is not by itself a qualified SLA timing measurement. Share the operation, request shape, timestamps and request identifiers with support, with credentials and customer payloads removed.

### SQS (Simple Queue Service, FIFO queues) to Azure Service Bus

| SLA | Service level | What is covered | Conditions |
| - | - | - | - |
| Small message send and settlement adapter-added latency | +1 ms monthly p99 | `aws::1.0.0::sqs`: `ChangeMessageVisibility`, `DeleteMessage`, `SendMessage` | One message at most 4 KiB including attributes; one group for FIFO; no redrive transition or contention retry. Adapter metadata/coordination waits remain included. Higher contention needs an agreed separate class. |
| Bounded short-poll receive adapter-added latency | +3 ms monthly p99 | `aws::1.0.0::sqs`: `ReceiveMessage` | WaitTimeSeconds=0; at most 10 messages, 40 KiB aggregate bodies/attributes, at most 100 inspected candidates or active groups, no dead-letter transfer. Long-poll timeout and message-arrival latency are separate, not silently subtracted from this row. |
| Bounded message batches adapter-added latency | +10 ms monthly p99 | `aws::1.0.0::sqs`: `SendMessageBatch` | At most 10 entries and 40 KiB aggregate data. Same point-operation limits, applied to each entry; every entry gets its own success/error result. |
| Queue configuration and discovery adapter-added latency | +20 ms monthly p99 | `aws::1.0.0::sqs`: `DeleteQueue`, `ListQueueTags`, `ListQueues`, `PurgeQueue`, `SetQueueAttributes`, `TagQueue`, `UntagQueue` | One queue, at most 50 tags and 32 KiB configuration, or a page of at most 100 queues. Purge measures request acceptance, not complete physical reclamation or receipt invalidation across every worker. |
| Documented adapter behavior | Preserve the supported behavior documented for this adapter | `aws::1.0.0::sqs`: `ChangeMessageVisibility`, `DeleteMessage`, `SendMessage`, `ReceiveMessage`, `SendMessageBatch`, `DeleteQueue`, `ListQueueTags`, `ListQueues`, `PurgeQueue`, `SetQueueAttributes`, `TagQueue`, `UntagQueue` | Acceptance must not be returned before the documented message persistence point. Settlement must apply to the intended message/receipt; FIFO order and deduplication apply only where this directed profile supports them. Duplicate delivery can be legitimate under at-least-once delivery. Dead-letter transitions must not silently discard an accepted message. Durability of the target broker/database remains its own commitment, while broken adapter receipt, marker or coordination logic remains Tensor9's responsibility. |
| Endpoint reachability | 99.9% per calendar month | Adapter endpoint reachability | The agreed production deployment has healthy target connectivity and receives a valid adapter health probe. This measures the adapter endpoint, not the target provider's service. |
| Adapter autoscaling and limits | Automatic scaling within the workload and deployment limits in your agreement | Adapter behavior across requests | Your agreement states the maximum request rate, burst size, request and response sizes, concurrency, and target calls per request. Tensor9 maintains adapter capacity inside that envelope. Target-service quotas and capacity are separate. |

**Adapter-added latency.** A + prefix marks time added by the adapter, not the total time your application waits. Total request time includes adapter processing, backend service time and network time. The backend provider's SLA applies independently. Only separately measured target-service wait may be subtracted, and only when your agreement permits it; internal metadata, coordination and retry processing still count. For one request, 12 ms of adapter processing plus 90 ms waiting for the backend means at least 102 ms total. This example does not add monthly p99 values.

**What Tensor9 covers.** These service levels cover the adapter between the origin API and target API. They do not replace the target provider's SLA.

**How latency is counted.** Adapter work, including metadata and coordination, counts. Only separately measured permitted target waits are excluded.

**Which terms apply.** Your signed agreement names the covered operations, workload limits, remedies, and final service levels for your deployment.

#### What this adapter does

For `azure::1.0.0::servicebus`, Service Bus messages and locks implement queue delivery; FIFO uses sessions. Lock renewal, receipt mapping and settlement remain adapter responsibilities, while native broker delivery uses the target service. A ReceiveMessage response budget is not a delivery-time promise: messages may not yet exist, may be delayed, or may be blocked by a FIFO group head. The short-poll row deliberately removes that ambiguity. Requested long-poll waits need their own measurement treatment in the agreement.

#### How the latency targets were chosen

**Small message send and settlement: +1 ms monthly p99 (adapter-added).** `ChangeMessageVisibility`, `DeleteMessage`, `SendMessage`. Native forwarding needs bounded translation; SQL adds queue state; Cosmos FIFO requires multiple durable coordination steps and cannot honestly inherit a 1 ms forwarding budget.

**Bounded short-poll receive: +3 ms monthly p99 (adapter-added).** `ReceiveMessage`. Receive scans/selects candidates, claims visibility and creates receipt handles. FIFO head selection and Cosmos slot CAS cost more than a simple send.

**Bounded message batches: +10 ms monthly p99 (adapter-added).** `SendMessageBatch`. A conservative upper budget for up to ten point paths plus aggregation. It does not assume the implementation parallelizes all target or metadata work.

**Queue configuration and discovery: +20 ms monthly p99 (adapter-added).** `DeleteQueue`, `ListQueueTags`, `ListQueues`, `PurgeQueue`, `SetQueueAttributes`, `TagQueue`, `UntagQueue`. Queue identity, attributes, tags and counts can use the adapter's durable catalog; this is not excluded as target message work.

Your signed agreement sets the terms for your deployment. A target does not add an operation or option that the compatibility tables mark unavailable.

#### What counts toward latency

For a request-response row, measure from the agreed ingress boundary to dispatch of the complete response. A row that explicitly names a first response chunk ends at that chunk; its number does not cover the rest of the stream. A long-poll row names the intentional wait and when adapter delay starts. Include parsing, authorization, admission, translation, serialization, adapter-owned storage and coordination, retries and response handling. Subtract only separately measured target-workload waits and external network segments allowed by the measurement rules. The adapter's own response handling and dispatch remain covered. A database used for adapter metadata is still adapter work, even if a cloud provider hosts it.

For concurrent calls, exclude the union of permitted wait intervals, not the sum of overlapping spans. Calculate each request's adapter duration first, then the monthly p99. Do not subtract one service's p99 from another's. Known adapter timeouts are over-budget samples; failed or incomplete requests cannot disappear to improve the percentile. Missing measurements do not become zero latency. An SDK call span alone does not prove how much of its duration can be excluded.

#### Endpoint reachability and request failures

The endpoint-reachability target measures adapter health checks. Correctly forwarding a target quota or permission error is different from producing that error because the adapter sent the wrong request. Adapter-caused failures remain Tensor9's responsibility even when the target is healthy.

Correctness and data-integrity requirements apply to every supported request. Endpoint reachability does not measure request correctness or grant an allowance for incorrect results.

#### Scaling and target-service capacity

Scale send, receive and settle capacity together, and track in-flight messages, pollers, candidate scans and FIFO group skew. Adding replicas helps independent groups but cannot parallelize the ordered head of one group. The agreement caps active pollers, groups inspected per receive, message bytes, retry amplification and batch entries. Tensor9 scales the fabric within those limits; the customer supplies sufficient broker capacity, Cosmos RU/s or PostgreSQL connections and I/O.

Tell Tensor9 the expected steady rate, bursts, concurrency, payload sizes and operation mix. Tensor9 sizes and scales the adapter for the agreed load; you choose and monitor the target service's capacity with Tensor9's help. A latency budget is not a requests-per-second rating. Larger requests and higher rates need explicit terms, not silent inheritance of a small-request SLA.

#### Data and behavior guarantees

Acceptance must not be returned before the documented message persistence point. Settlement must apply to the intended message/receipt; FIFO order and deduplication apply only where this directed profile supports them. Duplicate delivery can be legitimate under at-least-once delivery. Dead-letter transitions must not silently discard an accepted message. Durability of the target broker/database remains its own commitment, while broken adapter receipt, marker or coordination logic remains Tensor9's responsibility.

#### Example and diagnosis

For `order-events`, send a 2 KiB message, receive up to ten messages with WaitTimeSeconds=0, then settle each receipt. For a FIFO queue, distribute independent customers across groups instead of expecting one group to scale with replicas. If native message writes are fast but Cosmos FIFO sends slow down, inspect counter/dedup contention: those coordination waits still count against Tensor9's fabric budget.

Use `tensor9 explain` and the documented explain headers to understand the selected adapter and its behavior. Correlate available request diagnostics with the target provider's latency, throttling and capacity metrics. An explain report helps diagnose a request; it is not by itself a qualified SLA timing measurement. Share the operation, request shape, timestamps and request identifiers with support, with credentials and customer payloads removed.

### SQS (Simple Queue Service, FIFO queues) to Cloud SQL for PostgreSQL

**SLA status:** Not applicable

FIFO request-processing service levels have not been qualified for this mapping. Standard-queue measurements do not establish FIFO latency, throughput or availability.

### SQS (Simple Queue Service, FIFO queues) to PostgreSQL

**SLA status:** Not applicable

FIFO request-processing service levels have not been qualified for this mapping. Standard-queue measurements do not establish FIFO latency, throughput or availability.

### SQS (Simple Queue Service, FIFO queues) to Scaleway Managed Database for PostgreSQL

| SLA | Service level | What is covered | Conditions |
| - | - | - | - |
| Small message send and settlement adapter-added latency | +10 ms monthly p99 | `aws::1.0.0::sqs`: `ChangeMessageVisibility`, `DeleteMessage`, `SendMessage` | One message at most 4 KiB including attributes; one group for FIFO; no redrive transition or contention retry. Adapter metadata/coordination waits remain included. Higher contention needs an agreed separate class. |
| Bounded short-poll receive adapter-added latency | +10 ms monthly p99 | `aws::1.0.0::sqs`: `ReceiveMessage` | WaitTimeSeconds=0; at most 10 messages, 40 KiB aggregate bodies/attributes, at most 100 inspected candidates or active groups, no dead-letter transfer. Long-poll timeout and message-arrival latency are separate, not silently subtracted from this row. |
| Bounded message batches adapter-added latency | +100 ms monthly p99 | `aws::1.0.0::sqs`: `DeleteMessageBatch`, `SendMessageBatch` | At most 10 entries and 40 KiB aggregate data. Same point-operation limits, applied to each entry; every entry gets its own success/error result. |
| Queue configuration and discovery adapter-added latency | +20 ms monthly p99 | `aws::1.0.0::sqs`: `GetQueueAttributes`, `GetQueueUrl` | One queue, at most 50 tags and 32 KiB configuration, or a page of at most 100 queues. Purge measures request acceptance, not complete physical reclamation or receipt invalidation across every worker. |
| Documented adapter behavior | Preserve the supported behavior documented for this adapter | `aws::1.0.0::sqs`: `ChangeMessageVisibility`, `DeleteMessage`, `SendMessage`, `ReceiveMessage`, `DeleteMessageBatch`, `SendMessageBatch`, `GetQueueAttributes`, `GetQueueUrl` | Acceptance must not be returned before the documented message persistence point. Settlement must apply to the intended message/receipt; FIFO order and deduplication apply only where this directed profile supports them. Duplicate delivery can be legitimate under at-least-once delivery. Dead-letter transitions must not silently discard an accepted message. Durability of the target broker/database remains its own commitment, while broken adapter receipt, marker or coordination logic remains Tensor9's responsibility. |
| Endpoint reachability | 99.9% per calendar month | Adapter endpoint reachability | The agreed production deployment has healthy target connectivity and receives a valid adapter health probe. This measures the adapter endpoint, not the target provider's service. |
| Adapter autoscaling and limits | Automatic scaling within the workload and deployment limits in your agreement | Adapter behavior across requests | Your agreement states the maximum request rate, burst size, request and response sizes, concurrency, and target calls per request. Tensor9 maintains adapter capacity inside that envelope. Target-service quotas and capacity are separate. |

**Adapter-added latency.** A + prefix marks time added by the adapter, not the total time your application waits. Total request time includes adapter processing, backend service time and network time. The backend provider's SLA applies independently. Only separately measured target-service wait may be subtracted, and only when your agreement permits it; internal metadata, coordination and retry processing still count. For one request, 12 ms of adapter processing plus 90 ms waiting for the backend means at least 102 ms total. This example does not add monthly p99 values.

**What Tensor9 covers.** These service levels cover the adapter between the origin API and target API. They do not replace the target provider's SLA.

**How latency is counted.** Adapter work, including metadata and coordination, counts. Only separately measured permitted target waits are excluded.

**Which terms apply.** Your signed agreement names the covered operations, workload limits, remedies, and final service levels for your deployment.

#### What this adapter does

For `scaleway::1.0.0::rdb::postgresql`, The SQL queue uses row locking and SKIP LOCKED; FIFO adds head-of-group selection and deduplication state. The current long-poll loop can sleep between polls. Queue configuration is cached and durable queue state remains in PostgreSQL. A ReceiveMessage response budget is not a delivery-time promise: messages may not yet exist, may be delayed, or may be blocked by a FIFO group head. The short-poll row deliberately removes that ambiguity. Requested long-poll waits need their own measurement treatment in the agreement.

#### How the latency targets were chosen

**Small message send and settlement: +10 ms monthly p99 (adapter-added).** `ChangeMessageVisibility`, `DeleteMessage`, `SendMessage`. Native forwarding needs bounded translation; SQL adds queue state; Cosmos FIFO requires multiple durable coordination steps and cannot honestly inherit a 1 ms forwarding budget.

**Bounded short-poll receive: +10 ms monthly p99 (adapter-added).** `ReceiveMessage`. Receive scans/selects candidates, claims visibility and creates receipt handles. FIFO head selection and Cosmos slot CAS cost more than a simple send.

**Bounded message batches: +100 ms monthly p99 (adapter-added).** `DeleteMessageBatch`, `SendMessageBatch`. A conservative upper budget for up to ten point paths plus aggregation. It does not assume the implementation parallelizes all target or metadata work.

**Queue configuration and discovery: +20 ms monthly p99 (adapter-added).** `GetQueueAttributes`, `GetQueueUrl`. Queue identity, attributes, tags and counts can use the adapter's durable catalog; this is not excluded as target message work.

Your signed agreement sets the terms for your deployment. A target does not add an operation or option that the compatibility tables mark unavailable.

#### What counts toward latency

For a request-response row, measure from the agreed ingress boundary to dispatch of the complete response. A row that explicitly names a first response chunk ends at that chunk; its number does not cover the rest of the stream. A long-poll row names the intentional wait and when adapter delay starts. Include parsing, authorization, admission, translation, serialization, adapter-owned storage and coordination, retries and response handling. Subtract only separately measured target-workload waits and external network segments allowed by the measurement rules. The adapter's own response handling and dispatch remain covered. A database used for adapter metadata is still adapter work, even if a cloud provider hosts it.

For concurrent calls, exclude the union of permitted wait intervals, not the sum of overlapping spans. Calculate each request's adapter duration first, then the monthly p99. Do not subtract one service's p99 from another's. Known adapter timeouts are over-budget samples; failed or incomplete requests cannot disappear to improve the percentile. Missing measurements do not become zero latency. An SDK call span alone does not prove how much of its duration can be excluded.

#### Endpoint reachability and request failures

The endpoint-reachability target measures adapter health checks. Correctly forwarding a target quota or permission error is different from producing that error because the adapter sent the wrong request. Adapter-caused failures remain Tensor9's responsibility even when the target is healthy.

Correctness and data-integrity requirements apply to every supported request. Endpoint reachability does not measure request correctness or grant an allowance for incorrect results.

#### Scaling and target-service capacity

Scale send, receive and settle capacity together, and track in-flight messages, pollers, candidate scans and FIFO group skew. Adding replicas helps independent groups but cannot parallelize the ordered head of one group. The agreement caps active pollers, groups inspected per receive, message bytes, retry amplification and batch entries. Tensor9 scales the fabric within those limits; the customer supplies sufficient broker capacity, Cosmos RU/s or PostgreSQL connections and I/O.

Tell Tensor9 the expected steady rate, bursts, concurrency, payload sizes and operation mix. Tensor9 sizes and scales the adapter for the agreed load; you choose and monitor the target service's capacity with Tensor9's help. A latency budget is not a requests-per-second rating. Larger requests and higher rates need explicit terms, not silent inheritance of a small-request SLA.

#### Data and behavior guarantees

Acceptance must not be returned before the documented message persistence point. Settlement must apply to the intended message/receipt; FIFO order and deduplication apply only where this directed profile supports them. Duplicate delivery can be legitimate under at-least-once delivery. Dead-letter transitions must not silently discard an accepted message. Durability of the target broker/database remains its own commitment, while broken adapter receipt, marker or coordination logic remains Tensor9's responsibility.

#### Example and diagnosis

For `order-events`, send a 2 KiB message, receive up to ten messages with WaitTimeSeconds=0, then settle each receipt. For a FIFO queue, distribute independent customers across groups instead of expecting one group to scale with replicas. If native message writes are fast but Cosmos FIFO sends slow down, inspect counter/dedup contention: those coordination waits still count against Tensor9's fabric budget.

Use `tensor9 explain` and the documented explain headers to understand the selected adapter and its behavior. Correlate available request diagnostics with the target provider's latency, throttling and capacity metrics. An explain report helps diagnose a request; it is not by itself a qualified SLA timing measurement. Share the operation, request shape, timestamps and request identifiers with support, with credentials and customer payloads removed.

## Debug this service

For requests through a service adapter, use Explain and request diagnostics to investigate the selected mapping.
Follow the [BYOC service-adapter debugging runbook](https://docs.tensor9.com/byoc/service-adapters/debugging/overview.md) to capture and interpret the diagnostic evidence.

[Service Catalog](https://docs.tensor9.com/byoc/service-adapters/catalog.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.