Amazon SQS (Simple Queue Service)
Durable hosted queue. Buffers work between producers and consumers so failures do not drop jobs.
Official AWS Reference https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/welcome.html ↗// DECISION LOGIC MATRIX
When to Choose
Workers cannot keep up with the frontend and jobs must survive until processed.
When to Avoid
One message must reach many subscriber applications. Use SNS, or SNS fanout into SQS queues.
// EXAM TRAPS & SIGNAL KEYWORDS
// OFFICIAL AWS REFERENCE
"Amazon SQS offers a secure, durable, and available hosted queue that lets you integrate and decouple distributed software systems and components. It provides constructs such as dead-letter queues and cost allocation tags."
- Default retention is 4 days. Range is 60 seconds to 1,209,600 seconds (14 days).
- Max message size is 1,048,576 bytes (1 MiB). Larger payloads go to S3 via the Extended Client Library.
- Default visibility timeout is 30 seconds, max 12 hours. A batch request holds at most 10 messages.
// AMAZON SQS (SIMPLE QUEUE SERVICE) TAKEAWAYS
Role: Durable hosted queue. Buffers work between producers and consumers so failures do not drop jobs.
Choose: Workers cannot keep up with the frontend and jobs must survive until processed.
Avoid: One message must reach many subscriber applications. Use SNS, or SNS fanout into SQS queues.
Trap: Watch for exam signals like publish/subscribe, multiple subscribers, broadcasting, push notifications.
Fact: Default retention is 4 days. Range is 60 seconds to 1,209,600 seconds (14 days).
Fact: Max message size is 1,048,576 bytes (1 MiB). Larger payloads go to S3 via the Extended Client Library.
Fact: Default visibility timeout is 30 seconds, max 12 hours. A batch request holds at most 10 messages.