Simple Queue Service (SQS)

Learn about the Amazon SQS, the types of queues, and its features like poling, visibility timeout, and dead-letter queues.

Amazon Simple Queue Service (SQS) is a message queuing service that can help us decouple our application components. It uses queues to store the messages sent by producers and sends them to consumers using a polling model where consumers check the queues for messages sent by the producer whenever they are ready to process them.

Press + to interact

Amazon SQS uses redundant infrastructure and stores the messages it receives in multiple availability zones, making SQS queues highly available and durable. Unprocessed messages are retained for a maximum of 14 days, after which all copies of the message are deleted from the SQS servers.

Press + to interact
Redundant infrastructure in Amazon SQS
Redundant infrastructure in Amazon SQS

In SQS, it is the responsibility of the consumer to delete the messages available in an SQS queue after processing them. Once a message “M1” is received by a consumer, SQS starts a visibility timeout period where this message is not sent to any consumer to avoid message reprocessing. ...