Menu

Amazon SQS Basics: Queues, Visibility Timeout and Dead-Letter Queues
📰

Amazon SQS Basics: Queues, Visibility Timeout and Dead-Letter Queues

DEV Community: cloud·Robin Sishodia·1 day ago
#AGi3sl5Q
#devtocloud#devto#dev#queue#message
Long article (488 words) — no AI summary yet.
Reading 0:00
15s threshold

Amazon SQS is a managed message queue. One part of your app puts messages in the queue, and another part picks them up and works on them when it is ready. It stops a slow or failing part from taking the rest of the system down with it.

What it does

Holds messages until a consumer processes them.

Lets the sender and the worker run at different speeds .

Is fully managed, so there are no queue servers to run.

Offers Standard queues and FIFO queues.

Key concepts

Piece What it is

Producer and consumer The part that sends messages and the part that reads and processes them

Standard queue Very high throughput, at-least-once delivery, order is not guaranteed

FIFO queue Keeps order and avoids duplicates, with lower throughput

Visibility timeout How long a message is hidden from others while one consumer works on it

Long polling The consumer waits for messages, which reduces empty responses and cost

Dead-letter queue (DLQ) A queue for messages that keep failing

Retention period How long an unprocessed…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.