- Lab
- A Cloud Guru
Working with AWS SQS Standard Queues
In this hands-on lab, you will learn how to create and interact with SQS standard queues. You will send messages to an SQS queue that you create and learn how to take advantage of SQS queues to use multiple SQS consumers to process queue data at the same time! By the end of this AWS learning activity, you should feel comfortable interacting with the SQS service via the Boto3 SDK for Python. You will also gain an understanding of how to send messages to standard queues, set queue attributes, and consume messages from the queues we create.
Path Info
Table of Contents
-
Challenge
Create a Standard SQS Queue
Use the EC2 instance provided to create an SQS queue.
- Sign in to the EC2 instance using the credentials provided.
- Create your SQS queue using the
create_queue.py
script. - Make sure you copy the queue URL inside the
sqs_url.py
file.
-
Challenge
Interact with the New SQS Queue
Use the AWS CLI and the Python3 scripts inside of the EC2 instance provided to send and receive messages.
- Make sure you have already created the SQS queue and copied the queue URL to the
sqs_url.py
file. - Review the JSON data files in the EC2 instance.
- Remember to start up the
queue_status.py
script. - Run the Python3 producer scripts to send messages to the SQS queue.
- Run the Python3 consumer scripts to get, process, and delete messages in the SQS queue.
- If you need to start over at any point, you can start over with the
purge_queue.py
script.
- Make sure you have already created the SQS queue and copied the queue URL to the
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.