📝Case Study on AWS SQS 📝

Simran Shrivas
7 min readMar 1, 2021

Hello Learner!!😎✍️✍️

Here is a new article that discusses the case study on Amazon Simple Queue Service (Amazon SQS) use in a big company like :

✌ BMW

✌ NASA

✌ EMS Driving Fuel IQ

✌ Capital One

✌ Redbus

✌ OyesterChange Healthcare and many more are used.

🔰 So start with the Introduction😇….

🔰 Why AWS?

  • Faster Time to market.
  • Elasticity of Infrastructure
  • Ability to focus on core competency
  • Lower costs, OPEX only model
  • Scale and Global Footprint
  • The flexibility of the platform, pricing models, reach of services and ecosystem providers
  • Place of Innovation and Security

🔰What is Amazon SQS (Simple Queue Service)?

AWS SQS (Amazon Simple Queue Service) is a service that helps to align the message. Moreover, it also helps to enable the user to separate and scale microservices, distributed systems, and serverless applications. Amazon SQS makes it easy to manage the operating message-oriented middleware and enhances the developers to focus on their work. Amazon Simple Queue Service works at any volume without losing the message or requiring other services to be available. It helps to send, store, and receive messages between software components. AWS SQS can start with the help of the tools such as Amazon Console, command-line interface, and SDK. It supports the HTTP over SSL (HTTPS) and Transport Layer Security (TLS) protocols for security

Using Amazon SQS, you can send, store, and receive messages between software components at any volume, without losing messages or requiring other services to be available. Amazon SQS is a fully managed service which allows you to set up a queue in seconds.

In Amazon SQS there are two types of queues which are

  • Standard Queue:- Standard queue offers at least one delivery and maximum throughput.
  • AWS SQS FIFO:- The FIFO queues guarantee that the processed message takes place only once on the first in first out basis.

🔰 Benefits of Amazon Simple Queue Service

Benefits

🔰 How SQS Queues Works

  • SQS allows queues to be created, deleted and messages can be sent and received from it
  • SQS queue retains messages for four days, by default.
  • Queues can be configured to retain messages for 1 minute to 14 days after the message has been sent.
  • SQS can delete a queue without notification if any action hasn’t been performed on it for 30 consecutive days.
  • SQS allows the deletion of the queue with messages in it

🔰 Message Lifecycle

Lifecycle

🔰 How does SQS integrate with other AWS services?

Most interesting for Serverless developers is SQS‘s integration with Amazon Lambda: SQS can act as an AWS Lambda event source. When configured, every SQS message triggers a Lambda function run that processes a batch of SQS messages. Another useful integration is with SNS: an SQS queue can subscribe to an SNS topic. We cover the differences between SQS and SNS below, in the When to use SQS vs. SNS section.

SQS also provides standard integrations for monitoring and debugging SQS queues using Amazon CloudWatch and AWS X-Ray. Serverless developers can manually integrate an SQS queue with any other AWS service (or a third-party service) by writing code that uses the AWS SDK to submit messages to SQS and read them from there, or by using the SQS API directly.

🔰 Case Study on redBus

redBus is an Indian travel agency that specializes in bus travel throughout India by selling bus tickets throughout the country. Tickets are purchased through the company’s Website or through the Web services of its agents and partners. The company also offers software, on a Software as a Service (SaaS) basis, which gives bus operators the option of handling their own ticketing and managing their own inventories. To date, the company says they have sold over 30 million bus tickets and has more than 1750 bus operators using the software to manage their operations.

🔰 The Challenge

The company previously ran its operations from a traditional data center by purchasing and renting its systems and infrastructure. In addition to the expense, several logistical problems evolved from this arrangement. The biggest problem was that the infrastructure could not effectively handle processing fluctuations, which had a negative impact on productivity. Additionally, the procurement of servers or upgrading the server configuration was an extremely time-consuming endeavor. Over time, redBus realized that a better solution was imperative — a solution that offered scalability to handle the company’s processing fluctuations. redBus looked to Amazon Web Services (AWS) for a solution.

🔰 Why Amazon Web Services

After testing the AWS solution on a small application for several months, the travel agency determined that it was very workable and convenient. Although redBus was quite enthusiastic about the on-demand instances and variety of instance types, several other features cemented the company’s decision to migrate completely to AWS. These features included the ability to easily manage access to servers through security groups, the easy-to-use, self-service management console, the concept of Elastic IPs, and superior support.

The company has incorporated many of the AWS products into its solution, including Amazon Elastic Compute Cloud (Amazon EC2), Elastic Load Balancing, Amazon Relational Database Service (Amazon RDS), Amazon Simple Storage Service (Amazon S3), Amazon Elastic Block Store (Amazon EBS), and Amazon CloudWatch. Charan Padmaraju, Chief Technology Officer believes that “with features like Elastic Load Balancing and multiple availability zones, AWS provides the required infrastructure to build for redundancy and auto-failover. When you incorporate these in your system/application design, you can achieve high reliability and scale.”

🔰 The Benefits

Since migrating to AWS, redBus has seen measurable improvements in the bottom line. Padmaraju says, “By scaling up and down dynamically based on the load, we maintain performance as well as minimize cost. With the time savings that the IT and development staffs obtain from the AWS solution, AWS gives us an overall cost benefit of about 30–40%.” He adds, “By hosting at [the AWS Asia Pacific (Singapore) region], redBus.in gained significantly in terms of website performance by way of reduced latency (about 4x). This is a great advantage when the customers are from India.”

Of the many excellent characteristics of AWS, perhaps the most significant to redBus is the ability to “instantly replicate the whole setup on demand for testing by creating and destroying instances on demand for experimentation, thereby reducing the time to market.” Less time to market translates to increased profitability and success.

The travel agency anticipates expanding the AWS solution to include Amazon Simple Notification Service (Amazon SNS) and Amazon Simple Queue Service (Amazon SQS) for monitoring, alerts, and intercommunication. “Amazon SQS is an especially good solution for enabling messaging between external applications and our applications,” says Padmaraju.

Since joining forces with AWS, redBus has gained the freedom to experiment on new solutions and applications at minimal cost, increased the efficiency of its operations, and improved its profitability.

🔰 Benefits of AWS

  • Reduced costs by up to 40%
  • Reduced website latency by 4x
  • Able to instantly replicate test environments, which in turn reduces time to market

🔰 AWS Services Used

🎯 Amazon S3

Amazon Simple Storage Service (Amazon S3) is an object storage service that offers industry-leading scalability, data availability, security, and performance.

🎯 Amazon EC2

Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides secure, resizable compute capacity in the cloud. It is designed to make web-scale cloud computing easier for developers.

🎯 Amazon RDS

Amazon Relational Database Service (Amazon RDS) makes it easy to set up, operate, and scale a relational database in the cloud.

🎯 Amazon EBS

Amazon Elastic Block Store (EBS) is an easy to use, high performance block storage service designed for use with Amazon Elastic Compute Cloud (EC2) for both throughput and transaction intensive workloads at any scale.

🔰 Conclusion

Hence, we studied that the AWS SQS helps to send an unlimited number of messages and in any region. Message payloads consist of 256KB of text which can be in any format. If the text is of the size larger than this extended client library for Java Programming can use. Send and read messages can be done simultaneously. Amazon SQS queries can share anonymously or with some specific AWS accounts. The sharing can restrict for some time and by the IP address. The contents of the message of AWS SQS can secure using keys managed by the AWS Key Management Service. This helps a lot for the user to use SQS in an efficient manner.

Hope you understand this article

Thanks for Reading !!📃

🔰 Keep Learning !! Keep Sharing !! 🔰

--

--