DECOUPLE & OPERATE Messaging

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 ↗
SCOPE Regional
HIGH AVAILABILITY Multi-AZ Compatible
RESILIENCE Production Grade

// 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

publish/subscribe, multiple subscribers, broadcasting, push notifications

// OFFICIAL AWS REFERENCE

AWS https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/welcome.html ↗

"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

01

Role: Durable hosted queue. Buffers work between producers and consumers so failures do not drop jobs.

02

Choose: Workers cannot keep up with the frontend and jobs must survive until processed.

03

Avoid: One message must reach many subscriber applications. Use SNS, or SNS fanout into SQS queues.

04

Trap: Watch for exam signals like publish/subscribe, multiple subscribers, broadcasting, push notifications.

05

Fact: Default retention is 4 days. Range is 60 seconds to 1,209,600 seconds (14 days).

06

Fact: Max message size is 1,048,576 bytes (1 MiB). Larger payloads go to S3 via the Extended Client Library.

07

Fact: Default visibility timeout is 30 seconds, max 12 hours. A batch request holds at most 10 messages.