📝Case Study on Amazon SQS(A message queuing service)
By: Ravi Kumar Panchal
Tags: Aws Sqs, Fifa Queue, NASA, Standard Queue

👉 Amazon Simple Queue Service (SQS)

Amazon Simple Queue Service (SQS) is a fast, reliable, scalable, complete managed message queue service, designed to separate from the components of the cloud application and can send any large amount of data, There is no need to lose the message and it is not required that other services are always available. It is a fully managed message queuing service that enables you to decouple and scale microservices, distributed systems, and serverless applications. SQS eliminates the complexity and overhead associated with managing and operating message oriented middleware, and empowers developers to focus on differentiating work. 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. Get started with SQS in minutes using the AWS console, Command Line Interface or SDK of your choice, and three simple commands.

👉 SQS provides two types of Queues

SQS offers two types of message queues. Standard queues offer maximum throughput, best-effort ordering, and at-least-once delivery. SQS FIFO queues are designed to guarantee that messages are processed exactly once, in the exact order that they are sent.

Standard Queue It has a benefit of supporting an ample amount of transactions per second per API action. As the message is delivered on at a time but at the same time, it delivers more than one copy of a message. It may happen that the message delivered is in the different order from the source in which they were sent.

Standard Queue

FIFO Queue It has a high throughput which can send 300 messages per second which include 300 send, receive, and delete operation per second. The message is not duplicated it is stored with the customer until and unless customer deletes it. The messages are treated in first in first out order as the message sent and received is strictly preserved.

FIFO Queue

👉 Message Lifecycle

Amazon SQS automatically deletes messages that have been in a queue for more than the maximum message retention period. The default message retention period is 4 days. However, you can set the message retention period to a value from 60 seconds to 1,209,600 seconds (14 days) using the SetQueueAttributes action.

Lifecycle

👉 Benefits

Eliminate administrative overhead :- AWS manages all ongoing operations and underlying infrastructure needed to provide a highly available and scalable message queuing service. With SQS, there is no upfront cost, no need to acquire, install, and configure messaging software, and no time-consuming build-out and maintenance of supporting infrastructure. SQS queues are dynamically created and scale automatically so you can build and grow applications quickly and efficiently. Reliably deliver messages :- Use Amazon SQS to transmit any volume of data, at any level of throughput, without losing messages or requiring other services to be available. SQS lets you decouple application components so that they run and fail independently, increasing the overall fault tolerance of the system. Multiple copies of every message are stored redundantly across multiple availability zones so that they are available whenever needed. Keep sensitive data secure :- You can use Amazon SQS to exchange sensitive data between applications using server-side encryption (SSE) to encrypt each message body. Amazon SQS SSE integration with AWS Key Management Service (KMS) allows you to centrally manage the keys that protect SQS messages along with keys that protect your other AWS resources. AWS KMS logs every use of your encryption keys to AWS CloudTrail to help meet your regulatory and compliance needs. Scale elastically and cost-effectively :- Amazon SQS leverages the AWS cloud to dynamically scale based on demand. SQS scales elastically with your application so you don’t have to worry about capacity planning and pre-provisioning. There is no limit to the number of messages per queue, and standard queues provide nearly unlimited throughput. Costs are based on usage which provides significant cost saving versus the “always-on” model of self-managed messaging middleware.

👉 Companies Using Amazon Simple Queue Service (SQS)

Lots of companies reportedly use Amazon SQS in their tech stacks, including Pinterest, Amazon, BMW, NASA, EMS Driving Fuel IQ, Capital One, Redbus and Lyft.

👉 Firmographics of Companies using Amazon Simple Queue Service (SQS)