Back to results for “Lambda & Serverless”
AWS › Amazon SQS (Simple Queue Service)

What is Amazon SQS and why is it used to decouple application components?

Beginner

Answer

Amazon SQS is a fully managed message queuing service that lets different parts of an application communicate asynchronously by placing messages into a durable queue, allowing a producer to send a message and move on immediately without waiting for a consumer to process it, which decouples the sender and receiver so each can scale, fail, or be updated independently without directly affecting the other.
aws sqs create-queue --queue-name OrderProcessingQueue
Real-world example An order processing system places new orders into an SQS queue as soon as a customer checks out, allowing the checkout process to complete instantly while a separate backend service processes the actual order fulfillment at its own pace.

Common follow-ups: What is the difference between SQS and SNS?;What happens if the consumer application is temporarily unavailable?