SQS (Simple Queue Services)

SQS (Simple Queue Services)

Introduction ( Simple Queue Services Concept )

  • Simple Queue Services Concept is a pay per use web service for storing the message in transit between computers.
  • SQS offers two types of message queues.
  1. Standard queues offer maximum throughput, best-effort ordering, and at-least-once delivery.
  2. SQS FIFO queues are designed to guarantee that messages are processed exactly once, in that exact order that they are sent.

    How to create Standard Queue in AWS SQS:

  • Log in to the AWS account.
  • Go to services and click on SQS.

F:\Screenshots\Screenshot (263).png

Fig. SQS home page.

  • Click on create Queue.

F:\Screenshots\Screenshot (264).png

Fig. Queue page.

  • In the two options, we will click on standard Queue.
  • Give a name to Queue.

F:\Screenshots\Screenshot (265).png

Fig. configuration page.

  • Visibility time add.
  • Message Retention Period. ( You can keep as per requirement)
  • Delivery Delay ( Default 0)
  • Give Maximum Message Size. (It will be 256kb)
  • Give Receive message wait time.

F:\Screenshots\Screenshot (266).png

Fig. Access policy page.

  • In an access policy, we will go with the Basic policy.
  • We can define who can send the messages and who can receive the messages.

F:\Screenshots\Screenshot (267).png

Fig. Advanced access policy.

F:\Screenshots\Screenshot (268).png

Fig. Remaining access policy.

  • Click on Create Queue.

F:\Screenshots\Screenshot (269).png

Fig. Standard Queue has created.

Read More:- Load Balancer Concept

To send a message:

  • Click on Send & Receive messages.

F:\Screenshots\Screenshot (270).png

Fig. send and receive page.

  • Enter some message in the message body to send.
  • Click on Send Message.

F:\Screenshots\Screenshot (271).png

Fig. the message has sent.

Check whether messages are sent or not: ( Learn More)

  • At the end of the page, we can see Receive Messages Box.

F:\Screenshots\Screenshot (272).png Fig. Receives message box.

  • Click on the poll for messages.

F:\Screenshots\Screenshot (273).png

Fig. messages Received.

  • We can see the message that when it sent by clicking on ID.
  • Click on ID.

F:\Screenshots\Screenshot (274).png

Fig. Message Details.

  • To see the message body click on Body.

F:\Screenshots\Screenshot (275).png

Fig. Body Message.

Conclusion:

By this, we know how to create a standard SQS, and how to send a message.

Leave a Reply

%d bloggers like this: