Amazon SQS message quotas - Amazon Simple Queue Service (original) (raw)

Message throughput

Standard queues

Standard queues support a very high, nearly unlimited number of API calls per second, per action (SendMessage, ReceiveMessage, or DeleteMessage). This high throughput makes them ideal for use cases that require processing large volumes of messages quickly, such as real-time data streaming or large-scale applications. While standard queues scale automatically with demand, it is essential to monitor usage patterns to ensure optimal performance, especially in regions with higher workloads.

FIFO queues

High throughput for FIFO queues

Amazon SQS FIFO limits are based on the number of API requests, not message limits. For high throughput mode, these API request limits are as follows:

Transaction throughput limits (Non-batching API calls)

These limits define how frequently each API operation (such as SendMessage, ReceiveMessage, or DeleteMessage) can be performed independently, ensuring efficient system performance within the allowed transactions per second (TPS).

The following limits are based on non-batched API calls:

Maximizing throughput with batching

Processes multiple messages in a single API call, which significantly increasing efficiency. Instead of handling each message individually, batching allows you to send, receive, or delete up to 10 messages in a single API request. This reduces the total number of API calls, allowing you to process more messages per second while staying within the transaction limits (TPS) for the region, maximizing throughput and system performance. For more information, see Increasing throughput using horizontal scaling and action batching with Amazon SQS.

The following limits are based on batched API calls:

Optimizing throughput beyond batching

While batching can greatly increase throughput, it’s important to consider other strategies for optimizing FIFO performance: