Case Study On AWS SQS🚥

MD MOQADDAS
4 min readApr 1, 2021

--

AWS SQS

Why Amazon Simple Queue Service -:)

• Nasa used this service to decouple incoming jobs from pipeline processes

• Environmental Monitoring Solutions (EMS) is an Australian company that specializes in solutions that help petrol retailers to gather and analyze data on the performance of their petrol stations.

• Dropbox used SQS

• Netflix used SQS

• Nextdoor used SQS

• SQS is also widely used within Amazon.com

Configuring a queue to trigger an AWS Lambda function.

• SQS does not automatically delete messages once they are sent.

• SQS guarantees send at-least-once delivery.

• SQS provides authentication procedures to allow for secure handling of data

What is Amazon Simple Queue Service -:)

Amazon Simple Queue Service is the service of AWS which is used to decouple distributed software systems and components.

SQS provide us secure, durable, and available hosted queues

By using SQS API we can also integrate with any programming language to achieve the use-cases.

SQS works like a middleware.

How Amazone Simple Queue Service Works -:)

Producers:- Messages are sent from applications, microservice, or any other service is known as Producers

SQS:- SQS stores the queues and waits for the consumer to poll the message because consumers have to come to the SQS to poll the message.

consumer:- Message poll by consumer and now from onward it’s consumer responsibility to use anywhere like, Lambda function, EC2, other AWS service

Steps To create the SQS:-

1. Click on Create queue

Click on “create queue”

2. There are two types of Queue, Choose any one according to the USE-Cases

Types of queue

3. Here we have to put the name of the queue

4. Configuration dashboard for Set the maximum message size, visibility to other consumers, and message retention.

Choose according to the use-case

5. In this section we can select who can access your queue

6. By using this option we can encrypt our message

If you choose “disable” then your message AWS keep in plain text.

If you choose “enable” you have to provide a key(AWS KMS) with some period of reuse period.

7. By using the “Dead-letter queue” we can debug why they aren’t successful.

8. By using the tag option we can tag our Queue

9. After press on “Crete Queue” below screen come up.

Now Queue successfully created.

We can do these things from the queue dashboard.

Steps to send and receive the message.

1. Click on “send and receive message”

After clicking this scree comes up

2. Enter the message in the section of “message body” and then click on Send a message.

After clicking on “Send message” this pop-up comes up.

3. Now to receive the message we have to poll because the sender work only to send the message but the Receiver have to poll the message in AWS SQS.

Click on “Poll for message”
After clicking this will happen
Finally after polling the dashboard look like

4. To see the received message

Click on this message-id to see the received message
This is the message you received

Now, this is how to create a queue, send and receive the message but for the real world, we can integrate this service with many automation tools.

In the database world this kind of service used a lot so that Database work faster.

🔰Keep Learning Keep Sharing

🔥ARTH Learner

MD MOQADDAS

--

--

MD MOQADDAS
MD MOQADDAS

No responses yet