AWS Simple Queue Service(SQS)

Sunil Sirvi
3 min readJan 15, 2022

--

What is AWS SQS?

Basically SQS is a web service that gives you access to a message queue that can be used to store messages while waiting for a consumer to process them. SQS is a distributed queue system and a queue is a temporary repo for messages that are waiting to be processed.

BENEFITS OF USING SQS

Security: You control who can send messages to and receive messages from an Amazon SQS queue.

Server-side encryption (SSE): It lets you transmit sensitive data by protecting the contents of messages in queues using keys managed in AWS Key Management Service (AWS KMS).

Durability: To ensure the safety of your messages, Amazon SQS stores them on multiple servers. Standard queues support at-least-once message delivery, and FIFO queues support exactly-once message processing.

Availability: Amazon SQS uses redundant infrastructure to provide highly-concurrent access to messages and high availability for producing and consuming messages.

Scalability: Amazon SQS can process each buffered request independently, scaling transparently to handle any load increases or spikes without any provisioning instructions.

Reliability: Amazon SQS locks your messages during processing so that multiple producers can send and multiple consumers can receive messages at the same time.

Customization: Your queues don’t have to be exactly alike — for example, you can set a default delay on a queue. You can store the contents of messages larger than 256 KB using Amazon Simple Storage Service (Amazon S3) or Amazon DynamoDB, with Amazon SQS holding a pointer to the Amazon S3 object, or you can split a large message into smaller messages.

Types of Queue:

AWS SQS — Standard Queue

It’s fully managed, scales from 1 message per second to 10,000s per second.
Default retention of messages: 4 days, maximum of 14 days and no limit to how many messages can be in the queue.

It has low latency (<10 ms on publish and receive) and horizontal scaling in terms of number of consumers. It also can have duplicate messages (at least once delivery, occasionally). Limitation of 256KB per message sent.

AWS SQS — FIFO (First In First Out)

The most important features of FIFO queues are First-In-First-Out delivery and exactly-once processing. The order in which messages are sent and received is strictly preserved and a message is delivered once and remains until consumer processes delete it. Duplication is not allowed in FIFO and it is limited to 300 transactions/sec (TPS).

__________Thank you for reading__________

--

--