Introduction to Amazon SQS
Fully managed message queues for decoupling application components.
- 3 lessons
- Module quiz
When one component of an application calls another directly, the two are tightly coupled: if the receiver is slow, overloaded or unavailable, the sender fails too. A message queue removes this dependency. The sender, called the producer, places a message on the queue and continues its work, and the receiver, called the consumer, retrieves and processes messages when it is ready.
Amazon Simple Queue Service (Amazon SQS) is a fully managed message queue. Messages are stored redundantly until a consumer processes and deletes them, for between one minute and 14 days (four days by default). Consumers poll the queue, which lets them work at their own pace, absorb bursts of traffic and retry failures without losing messages. SQS is charged per million requests, with a free tier.
Where SQS fits
SQS is the standard answer on the exam when components must be decoupled or traffic spikes absorbed. It is often combined with other services: Lambda reads from queues through event source mappings, SNS delivers messages to several queues in the fan-out pattern, and dead-letter queues capture messages that repeatedly fail. Exam questions focus on the settings that control how messages are received, retried and ordered.
How this module is organised
Choosing Between Standard and FIFO Queues compares the two queue types and explains message groups and deduplication. Processing Messages Reliably with Visibility Timeouts and Dead-Letter Queues explains what happens to a message while it is being processed, how consumers poll efficiently and how failed messages are handled. Decoupling Components with Queues and Asynchronous Communication places queues in the wider context of synchronous and asynchronous design.
- Choosing Between Standard and FIFO Queues Lesson 1
- Processing Messages Reliably with Visibility Timeouts and Dead-Letter Queues Lesson 2
- Decoupling Components with Queues and Asynchronous Communication Lesson 3
- Practise and review
- Checkpoint Practice activities across the module
- Test your knowledge 8 questions