Skip to main content

AI & assistant-friendly summary

This section provides structured content for AI assistants and search engines. You can cite or summarize it when referencing this page.

Summary

FIFO guarantees shrink throughput—and unbounded queues only move backpressure to your AWS bill. Ordering, flow control, and Amazon MQ dead-letter patterns vs Kinesis resharding.

Key Facts

  • FIFO guarantees shrink throughput—and unbounded queues only move backpressure to your AWS bill
  • Ordering, flow control, and Amazon MQ dead-letter patterns vs Kinesis resharding
  • June 2026: SQS FIFO gives order within message group at 300 TPS/group scale—ordering has a throughput price
  • 4% poison messages without blocking main queue
  • 2

Entity Definitions

CloudWatch
CloudWatch is an AWS service discussed in this article.
EKS
EKS is an AWS service discussed in this article.
ECS
ECS is an AWS service discussed in this article.
API Gateway
API Gateway is an AWS service discussed in this article.
SQS
SQS is an AWS service discussed in this article.
SNS
SNS is an AWS service discussed in this article.

Message Ordering, Backpressure, and RabbitMQ DLQs on AWS

Quick summary: FIFO guarantees shrink throughput—and unbounded queues only move backpressure to your AWS bill. Ordering, flow control, and Amazon MQ dead-letter patterns vs Kinesis resharding.

Key Takeaways

  • FIFO guarantees shrink throughput—and unbounded queues only move backpressure to your AWS bill
  • Ordering, flow control, and Amazon MQ dead-letter patterns vs Kinesis resharding
  • June 2026: SQS FIFO gives order within message group at 300 TPS/group scale—ordering has a throughput price
  • 4% poison messages without blocking main queue
  • 2
Message Ordering, Backpressure, and RabbitMQ DLQs on AWS
Table of Contents

June 2026: SQS FIFO gives order within message group at 300 TPS/group scale—ordering has a throughput price. Standard queues maximize throughput without global order.

Symptom → mechanism → AWS control

Production symptomMechanismAWS control
Out-of-order processingMultiple competing consumersSingle active consumer or partition-key ordering
Consumer OOM under burstUnbounded prefetchRabbitMQ prefetch limit, SQS maxReceiveCount
Poison message blocks queueNo dead-letter pathAmazon MQ DLQ, SQS redrive policy

Opinionated take: Prefer SQS FIFO or MSK partition ordering over RabbitMQ on AWS unless you need AMQP protocol compatibility—DLQ everything.

Benchmark pattern (hypothetical workload) — Amazon MQ RabbitMQ, ordered queue 2K msgs/sec, consumer prefetch=10 prevents OOM; backpressure via publisher confirms stalls at 85% queue depth; DLQ captures 0.4% poison messages without blocking main queue.

Ordering guarantees

SystemGuarantee
SQS FIFOPer MessageGroupId
KinesisPer partition key
MSKPer partition
RabbitMQSingle active consumer per queue

Backpressure

Producers faster than consumers → queue depth grows → latency and cost. Responses:

  • Scale consumers (ECS/EKS HPA on custom metric ApproximateNumberOfMessagesVisible)
  • Drop to DLQ with alarm threshold
  • Rate limit producers at API Gateway

Amazon MQ (RabbitMQ) DLQ

Configure dead-letter exchange + TTL; mirror to CloudWatch via plugin/logs. Retry with exponential backoff—do not infinite requeue.

AWS services map

NeedServiceSkip when
AMQP with orderingAmazon MQ RabbitMQKafka partition ordering suffices
Managed DLQSQS dead-letter queueFire-and-forget SNS with no retry
Backpressure signalSQS ApproximateAgeOfOldestMessage alarmSynchronous HTTP with client-side retry only

What to do this week

  1. Set maxReceiveCount on SQS redrive policy.
  2. Alarm queue age p99 > SLO.
  3. Document ordering requirements per event type—downgrade to standard where possible.

More in This Track

Part of the Engineering Guides library (June 2026).

What this guide doesn’t cover

MSK EOS—part 1 of track.

PP
Palaniappan P

AWS Cloud Architect & AI Expert

AWS-certified cloud architect and AI expert with deep expertise in cloud migrations, cost optimization, and generative AI on AWS.

AWS ArchitectureCloud MigrationGenAI on AWSCost OptimizationDevOps

Recommended Reading

Explore All Articles »