- Lab
- A Cloud Guru
Optimizing SQS Usage to Cut Costs
Your organization noticed that costs for SQS went up and have asked your team to investigate. You found that message requests are high, but there is not an equivalent rise in user activity. There are several CloudWatch metrics that raise some concerns. The first is the `NumberOfEmptyReceives` metric. This metric supports the idea that roughly out of every 10 messages received, we have about 30 empty receives. That will surely raise our costs. The other CloudWatch metric, `SentMessageSize`, reports the size of the messages is 256 KB, but these messages can be reduced to plain text to lower the size to 64 KB, which will cut costs as well. We will review current costs in SQS and the costs of the proposed changes before we move forward with those changes. Then, we will need to create an SQS queue that allows for long polling at 20 seconds to cut the number of empty receives and limit message size to 64 KB. Finally, we will test our SQS queue to ensure that it is able to send and receive messages.
Path Info
Table of Contents
-
Challenge
Compare Costs
We will use the AWS Pricing Calculator to review current costs and costs of our proposed changes.
-
Challenge
Create and Test SQS Queue
We will create our SQS queue to the specifications necessary and then test it 2 ways.
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.