AWS SQS (Simple Queue Service)

Hydroid
2 min readApr 15, 2022

AWS SQS details, pricing and working

What is SQS Service by AWS ?

AWS SQS is a fully managed message queues for micro-services, distributed systems, and server-less applications. Using SQS, you can send, store, and receive messages between software components at any volume, without losing messages or requiring other services to be available.

Types of Queues

SQS offers two types of message queues.

  1. Standard Queue
  • Unlimited Throughput : Unlimited number of API calls per second, per api action
  • Can have duplicates messages.
  • Order of messages are not preserved.

2. FIFO Queue

  • High Throughput: 300 API calls per second, per API action.
  • Ensures FIFO delivery. (First-In-First-Out)
  • Exactly once processing.
  • Order of messages are strictly preserved.

If you are concerned about the order of execution. It’s better too use FIFO Queues, because an action can be performed again and again and the order matters in which an action was taken.

Note: Message can contain up-to 256 KB of text.

Pricing Details

Working of AWS SQS

The producer will send a message to SQS Queue and the Consumer will keep listening from SQS Queue whenever a new message if found the consumer will start consuming it and the visibility time will start and the message will be hidden for rest of the consumer means from the queue.

The consumer should get the basic details from the message and start the task that it needs to perform and when the task is success it will delete the message from the queue. All these consuming and deleting should happen between the visibility time otherwise the message will become visible again and can be consumed by the consumers.

If you like my story or it helped you. You can buy me a coffee:

https://www.buymeacoffee.com/sudoanushil
https://www.buymeacoffee.com/sudoanushil

--

--

Hydroid

Currently working as a Full Stack Developer in India