Introduction to Amazon SQS
Amazon Simple Queue Service (SQS) is a fully managed message queuing service that enables decoupling between distributed applications. It allows asynchronous communication between producers and consumers, ensuring reliable message delivery.
In this session, we will explore the Amazon SQS console, create a queue, configure its settings, send and receive messages, and understand how message processing works.
Creating an SQS Queue
Step 1: Choose a Queue Type
When setting up an SQS queue, we can choose between:
- Standard Queue – Offers high throughput, at-least-once delivery, and best-effort ordering.
- FIFO Queue (First-In-First-Out) – Ensures exactly-once processing and message ordering.
For this session, we use a Standard Queue named "Demo Queue".
Configuring Queue Settings
Basic Settings
- Visibility Timeout – Defines the time a message remains hidden after being received (covered in future lessons).
- Delivery Delay – Introduces a delay before messages become available.
- Wait Time – Controls long polling duration.
- Retention Period – We set this to 4 days (messages persist for this duration).
- Max Message Size – Set to 256 KB, which is the maximum allowed in SQS.
Encryption Options
Amazon SQS provides server-side encryption (SSE) for enhanced security: