Integration

Amazon SQS

Fully managed message queue used to decouple applications; consumers pull messages.

How it works

Amazon Simple Queue Service is a managed queue that decouples components of distributed systems. Producers send messages to a queue and consumers poll and process them asynchronously. Standard queues provide at-least-once delivery and best-effort ordering. FIFO queues preserve order within each message group and deduplicate sends within a defined interval. Visibility timeouts and dead-letter queues help manage processing failures.

When to use it

Buffer work between tiers, absorb traffic spikes and let consumers scale on their own.

Real-world example

A retailer places order processing requests in Amazon SQS during a sale. Payment workers poll messages at a manageable rate, helping protect downstream systems from the impact of sudden traffic spikes.

Key facts

  • Standard: unlimited throughput, 4 days default / 14 days max retention, up to 1 MiB per message.
  • At-least-once delivery and best-effort ordering; FIFO adds ordering and deduplicates sends within the deduplication interval.
  • Visibility timeout 30 s by default; long polling 1 to 20 s.

Common pitfall

Do not assume Standard queues deliver exactly once and in order. Make processing idempotent to tolerate duplicates; consider FIFO when ordering within a message group matters.

Often confused with

SNS pushes one message to many subscribers; SQS consumers pull messages; duplicate delivery can occur.

References

Prepared by Cloud Quest. Check current behavior and limits in the AWS documentation:

SAA-C03 study guide and learning resources

Understand it for real with 3D models and simulated labs

Connect the concept to a working architecture.

Start learning