What is Amazon SQS?
Learn how SQS queues decouple producers and consumers, how visibility and acknowledgment work, and when to choose Standard or FIFO queues.
What is Amazon SQS?
Amazon Simple Queue Service (Amazon SQS) is a managed message queue that stores work between producers and consumers. A producer sends a message, a consumer receives it, the message becomes temporarily invisible, and the consumer deletes it after successful processing; this buffer lets each side scale and fail independently.
How this topic fits
Messaging & events
Choose between queues, topics, event buses, and streams, then design delivery, ordering, replay, and idempotent consumers.
A queue represents work waiting for a consumer
SQS is useful when a producer should not wait for downstream processing or know which worker performs it. Messages remain in the queue until consumed and deleted or until their retention period expires.
The queue absorbs bursts and exposes backlog as an operational signal. This does not create infinite capacity: producers, consumers, retention, payload size, and downstream throughput still need limits and ownership.
Design around the message lifecycle
Receiving a message does not remove it. The visibility timeout hides it while a consumer works; successful processing must be followed by deletion. If the consumer fails or visibility expires first, the message becomes available again.
Set visibility longer than expected processing with room for variance, or extend it deliberately for long tasks. Make the operation idempotent because redelivery is a normal recovery behavior.
Choose Standard or FIFO from semantics
Standard queues prioritize very high throughput and at-least-once delivery with best-effort ordering. FIFO queues add ordered message groups and deduplication behavior for workloads that require ordered processing within a group.
Use when independent messages can be processed concurrently and consumers tolerate duplicates or reordering.
Use when order within a message group is a business requirement and parallelism can be divided across groups.
Operate the backlog, not only the workers
Monitor oldest-message age, visible and in-flight message counts, receive count, consumer errors, throttling, and dead-letter activity. Oldest age often communicates customer delay better than raw queue depth.
Define retry limits and a redrive path for failed messages. A dead-letter queue is an isolation mechanism, not a completed recovery process; someone or something must inspect, correct, and safely replay the work.
Go deeper with AWS
Read the primary AWS documentation behind the service definitions and architecture guidance in this guide.
Next steps
Continue with the concepts that most directly shape this decision.
Lambda event source mappings
Learn how Lambda polls queues and streams, creates batches, scales consumers, handles partial failures, and protects ordered processing.
What is Amazon SNS?
Understand SNS topics, publish-and-subscribe fanout, subscription filtering, delivery endpoints, and durable queue-based consumers.
Questions about this topic
Browse all serverless concepts
Explore compute, APIs, events, workflows, data, security, reliability, operations, delivery, and AI from one connected AWS serverless learning path.
What is serverless?
Learn what serverless computing means, how it works on AWS, what the cloud provider manages, and which trade-offs still belong to your team.
What is AWS Lambda?
Understand how AWS Lambda runs code, how functions are invoked, where permissions and state live, and when Lambda is a good compute choice.
What is serverless architecture?
Learn how managed compute, APIs, events, queues, workflows, data, identity, and observability fit together in a serverless architecture on AWS.
AWS serverless security
A practical guide to identity, least privilege, event validation, secrets, data protection, dependencies, and incident visibility in AWS serverless systems.
What is agentic AI?
Learn what makes an AI system agentic, how models, tools, memory, orchestration, identity, and evaluation fit together, and where serverless patterns help on AWS.
What is cloud computing?
Understand how on-demand infrastructure and managed services change the way teams provision, scale, pay for, and operate software systems.
What is event-driven architecture?
Learn how producers, routers, and consumers communicate through events, and how to design schemas, delivery, retries, and ownership deliberately.
What is a serverless API?
Understand the request path, authentication, routing, compute, data, throttling, observability, and failure controls behind a serverless API on AWS.
What are serverless workflows?
Learn when explicit workflow state improves retries, branching, parallel work, human approval, visibility, and recovery in distributed applications.
What is Amazon API Gateway?
Learn how API Gateway creates, publishes, secures, monitors, and operates HTTP, REST, and WebSocket APIs for AWS and external backends.
What is Amazon EventBridge?
Understand EventBridge event buses, rules, pipes, schemas, targets, schedules, permissions, delivery, and recovery in event-driven AWS systems.
Make the next serverless decision explicit.
Explore focused products for repeatable work, or bring the architecture decision that needs context and experienced review.