Amazon SQS (Simple Queue Service) is a fully managed queuing service that helps decouple the components of cloud applications. It allows applications to send, store, and receive messages between different services in a scalable and fault-tolerant way.
At the core of SQS is a queue, which temporarily holds messages before they are processed by consumers.
✅ Decoupling: Separates producers and consumers, allowing them to operate independently.
✅ Scalability: Supports unlimited throughput and unlimited number of messages in the queue.
✅ Low Latency: Message send/receive operations take less than 10 milliseconds.
✅ Retention: Messages stay in the queue for up to 14 days (default: 4 days).
Amazon SQS Standard Queue is the default type and offers:
🔹 Unlimited throughput – No restriction on the number of messages sent per second.
🔹 At-least-once delivery – A message may be delivered more than once.
🔹 Best-effort ordering – Messages may not always be received in the same order they were sent.
🔹 Message size – Up to 256 KB per message.
⚠️ Applications consuming messages from SQS must handle duplicate messages and process messages idempotently.