What is AWS SQS (Simple Queue Service)?

AWS SQS is a fully managed message queuing service that enables you to decouple and scale microservices, distributed systems and serverless applications. Using SQS, you can send, store and receive messages between software components at any volume. It also ensures that messages in not lost during the process and it reaches the consumer on time.

Producers sends messages to the queue and the consumer consumes those messages. Consumer pull the queue to receive those messages. Every time the consumer pulls the queue, AWS charges for that. If the consumer does not find the message in the queue, then the consumer can wait there up to 20s to receive the message instead of continuous pulls which is chargeable.

Visibility Timeout – When a consumer process a message from a queue then during that time other consumers can not pull any messages from the queue.

DLQ – If a message is not processed within a certain amount of time then that message goes to Dead Letter Queue. SQS sends undeliverables messages to DLQ.

There are two types of queue.

  1. Standard – At-least-once delivery, message ordering isn’t preserved.
  2. FIFO – First-in-first-out delivery, message ordering is preserved.

Benefits of SQS

  1. Ensures safety of messages
  2. Reliably deliver messages
  3. Keep sensitive data secure
  4. Scale elastically and cost-effectively
  5. Eliminate administrative overhead

I hope this blog gives basic introduction to SQS service. Please like and comment if you have any queries related to this blog.

Leave a Reply

%d bloggers like this: