“ I have checked the documents of AWS for implemented amazon sqs queues for reliable message sending and receiving and integrated amazon sns to publish notifications. Amazon SQS makes it easy for users to send and receive messages. In terms of cost, the solution is cheaper and secure.”
Amazon Simple Queue Service is a fully managed message queuing service that lets you decouple and scale microservices, distributed systems and serverless applications.
In this post, you will experience implemented amazon sqs queues for reliable message sending and receiving and integrated amazon sns to publish notifications. Here I have created a queue in amazon sqs and added sns on it for notification.
Architecture Overview

The architecture diagram shows the overall deployment architecture with data flow, amazon sqs, users and amazon sns.
Solution Overview
The blog post consists of the following phases:
- Create of Queue with Amazon SQS
- Create of SNS Topic with Subscription on it and Add it on Amazon Queue for Notification
- Output of Send and Receive Messages in Amazon SQS
Phase 1: Create of Queue with Amazon SQS
- Open the Amazon SQS console, click on create queue option. In details, choose the type as standard, specify the name as I have given as “MyQueue-Testone”. In the configuration section, I have added the visibility timeout, delivery delay, receive message wait time, message retention period and maximum message size as per required but here I have kept it as default value. In encryption, enable it with amazon sqs (SSE-SQS) key, if required we can choose a custom key (SSE-KMS) as well. Initially I kept the access policy as default with the basic one and set owner as queue owner. But we can set the policy and owners as per required later. Once done with parameters, I have created the queue.
Phase 2: Create of SNS Topic with Subscription on it and Add it on Amazon Queue for Notification
- Open the Amazon SNS console, create a sns topic with subscribers done the subscriptions via email. Goto queue created, subscribe to amazon sns topic. Users will be notified once the queue has any activity on it.
Phase 3: Output of Send and Receive Messages in Amazon SQS
Clean-up
Amazon SNS: topic and subscription, amazon sqs.
Pricing
I review the pricing and estimated cost of this example.
Amazon Simple Queue Service = Amazon Simple Queue Service Requests-RBP = First 1,000,000 Amazon SQS Requests per month are free x 56 Requests = $0.00
Amazon Simple Notification Service = $0.00
Total Cost = $0.00
Summary
In this post, I showed “implemented amazon sqs queues for reliable message sending and receiving and integrated amazon sns to publish notifications”.
For more details on Amazon SQS, Checkout Get started Amazon SQS, open the Amazon SQS console. To learn more, read the Amazon SQS documentation.
Thanks for reading!
Connect with me: Linkedin



















Top comments (0)