NEW
Also known as: Simple Queue Service
A fully managed message queuing service for decoupling and scaling microservices and distributed systems.
DESCRIPTION
Amazon Simple Queue Service (SQS) provides durable, scalable queues to decouple producers and consumers, smoothing spikes and improving resilience. It supports standard (at-least-once) and FIFO (exactly-once processing with ordering) queues, visibility timeouts, dead-letter queues, and long polling. SQS integrates with AWS services like Lambda, EC2, and EventBridge, and enforces security via IAM and encryption. It helps build reliable, fault-tolerant event-driven architectures without managing brokers.
ALTERNATIVE DEFINITIONS
AWS
Amazon Simple Queue Service (SQS) is a fully managed message queuing service that enables you to decouple and scale microservices, distributed systems, and serverless applications.
Highlights managed service and decoupling for microservices and serverless.
AWS Developer Guide
Amazon Simple Queue Service (Amazon SQS) offers a reliable, highly scalable hosted queue for storing messages as they travel between computers.
Emphasizes reliability and hosted message storage between components.
RELATED TERMS
Amazon SNS Amazon EventBridge AWS Lambda Dead Letter Queue FIFO Queue RabbitMQ Retry Policy
COMPETING TERMS
Google Cloud Pub-Sub Azure Service Bus Apache Kafka
KNOWLEDGE AREAS
Cloud Data Services Real-time & Streaming Data Data Engineering Data Integration & Interoperability
TARGET AUDIENCE
Cloud Architect Data Engineer DevOps Engineer Software Developer Solution Architect MLOps Engineer
EXTERNAL SOURCES
- Wikipedia - Amazon Simple Queue Service
- AWS - Official developer guide for SQS
- Microsoft Learn - Queue-based load leveling pattern
TOP QUESTIONS
Why use Amazon SQS in microservices?
SQS decouples services, smoothing traffic spikes and isolating failures. It provides durable messaging, retries, and dead-letter queues without managing brokers.
Category: Relevancy
What’s the difference between SQS Standard and FIFO?
Standard offers high throughput with at-least-once delivery and best-effort ordering. FIFO preserves strict order with exactly-once processing but lower throughput.
Category: Comparison
How do visibility timeouts work in Amazon SQS?
After receiving a message, it becomes invisible for the visibility timeout period to prevent multiple consumers from processing it concurrently.
Category: Concepts
How do I handle poison messages in SQS?
Use dead-letter queues to capture messages that repeatedly fail processing, enabling analysis and remediation without blocking the main queue.
Category: Operations
How does SQS compare to Kafka?
SQS is a managed queue for point-to-point messaging; Kafka is a distributed log for high-throughput pub/sub and stream processing. Choose based on pattern requirements.
Category: Comparison
What security features does SQS offer?
SQS supports IAM access policies, server-side encryption with KMS, VPC endpoints, and CloudTrail auditing for governance and compliance.
Category: Security
How do I scale consumers for SQS?
Scale consumers horizontally and use long polling and batching. Autoscale based on queue metrics like ApproximateNumberOfMessagesVisible.
Category: Scalability
Can SQS trigger serverless functions?
Yes. SQS integrates with AWS Lambda to process messages automatically, supporting both Standard and FIFO queues with event source mappings.
Category: Integration
What’s a common mistake when using SQS?
Relying on message ordering in Standard queues can break workflows. Use FIFO queues when strict ordering and exactly-once processing are required.
Category: Mistakes