AMP AMP

How to Configure AWS SQS(Simple Queue Service)

To Configure Simple Queue Service

Introduction:

Amazon Simple Queue Service is a distributed message queuing service that was introduced by Amazon.com in late 2004 which supports the programmatic sending of messages through web service applications as a way to communicate over the Internet.

Steps to configure:

Basic Workflow diagram for SQS snap1 Now move to the amazon AWS console management system snap2 To choose SQS service in AWS console go to the services and search for the SQS there Now to create queue click the icon create queue Now give all the default configuration or required configuration for your SQS service From this section you can also attach another dead letter queue Dead letter queue has been created Now create another main default queue

Give name for the default queue Now attach dead letter queue(dlq) in your default queue Queue has been created Now both queue has been created To test message in queue we are going to send 5 messages form the default queue Having move to default queue and start the polling process you will find all the message will come over there Now select one process and delete it to show as a process Is completed Now if go back and check again the default queue will show 1 less message If you do polling again then it will comes up as like below After completion of one more message process Now check default queue message count

So after doing multiple processing in message if the process will not be completed then it will move to dead letter queue hence With this method, configuration of SGS on Aws comes to end.

FAQ
Q
Does Amazon SNS provide at-least-once delivery of messages to Amazon SQS queues?
A
Amazon SNS is designed such that each message is delivered at least once to Amazon SQS standard queues.
Q
How can I determine the time-in-queue value?
A
To determine the time-in-queue value, you can request the SentTimestamp attribute when receiving a message. Subtracting that value from the current time results in the time-in-queue value.
Q
What is the maximum limit for message visibility?
A
The maximum visibility timeout for an Amazon SQS message is 12 hours.
Q
What is a visibility timeout?
A
The visibility timeout is a period of time during which Amazon SQS prevents other consuming components from receiving and processing a message
Q
Will I be charged for all Amazon SQS requests?
A
Yes, for any requests beyond the free tier. All Amazon SQS requests are chargeable, and they are billed at the same rate.