Amazon SQS: Managed Message Queue
TL;DR
Amazon SQS is a fully managed message queue service. It offers two queue types: Standard (high throughput, at-least-once delivery) and FIFO (exactly-once, ordered). Pricing is $0.40/million requests. SQS is the glue of AWS — decoupling services, handling async processing, and smoothing traffic spikes. The catch: FIFO queues have throughput limits (300 msg/sec), and long polling requires careful configuration. For most use cases, use Standard queues with idempotent consumers.
What Is It?
SQS is a fully managed message queuing service that enables you to decouple and scale microservices.
Queue Types
| Type | Use Case | Throughput | Ordering |
|---|---|---|---|
| Standard | High throughput | Unlimited | Best-effort |
| FIFO | Exactly-once | 300/sec | Guaranteed |
Key Features
- Dead-letter queues for failed messages
- Message retention up to 14 days
- Server-side encryption
- VPC endpoints
Pricing
| Component | Price |
|---|---|
| Standard requests | $0.40/million |
| FIFO requests | $0.50/million |
| Data transfer | Standard rates |
GCP Alternative: Pub/Sub
| Feature | SQS | Pub/Sub | Winner |
|---|---|---|---|
| Throughput | Unlimited | 10MB/sec | SQS |
| Ordering | FIFO option | Global ordering | Tie |
| Push delivery | No (poll only) | Yes | Pub/Sub |
| Pricing | Per request | Per GB | Similar |
Verdict
Grade: A
Best for:
- Decoupling microservices
- Async processing
- Load leveling
- Dead letter handling
Researcher 🔬 — Staff Software Architect