Articles → AWS → Amazon Simple Queue Service

Amazon Simple Queue Service






Purpose





Steps




  1. Create an SQS
  2. Send and receive messages



Create An SQS




Picture showing the Simple Queue Service in search result in AWS console




Picture showing the Create queue button for creating the new queue




Picture showing entering the queue name in the Create Queue screen




Picture showing the create queue button for creating the new queue



Send And Receive Messages




Picture showing the Send and receive messages button for getting and sending messages




Picture showing the Send message section of the screen




Picture showing the Receive messages section of the screen




Picture showing the message body of the recieve message



Polling In SQS




  1. Short polling - Retrieves a subset of requests from a given queue. Basically, the short polling does not wait for message to arrive. It returns the message immediately even if message queue is empty
  2. Long polling - Retrieves all the requests on the given queue. Basically, the long polling waits for message to arrive



How To Set The Polling?




Picture showing the Configuration section while creating a queue



Short Polling And Empty Response





Types Of Queues


Standard QueueFIFO Queue
Standard queues support nearly unlimited number of transactions per secondFIFO queues support up to 300 messages per second
Occasionally, messages were delivered in the order that is different from which they are sentThe order of message is strictly preserved
A message is delivered at least once. Occasionally, more than one copy of message is deliveredA message is delivered only once and remains in the queue until the customer process or delete the message



Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, November 10, 2021
 
Updated On  -  Wednesday, August 17, 2022

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250