- Lab
- A Cloud Guru
Working with AWS SQS FIFO Queues
In this hands-on lab, you will learn how to create and interact with first-in-first-out (FIFO) SQS queues. This lab will provide an important distinction from SQS standard queues, noting the key characteristics and functionality differences between the two. By the end of the lab, you should feel comfortable creating and interacting with SQS FIFO queues. You will also learn and become familiar with various API actions used to interact with the SQS service via the AWS CLI and AWS SDKs.
Path Info
Table of Contents
-
Challenge
Create a FIFO SQS Queue
You'll need to create an AWS SQS Queue using the AWS CLI on the EC2 instance provided.
- Sign in to the EC2 instance provided using the credentials in Cloud Assessments
- Run the Python script to create the SQS queue
create_queue.py
- Remember to copy the URL that is printed to the screen and paste it into to the
sqs_url.py
file for later
-
Challenge
Send and Process Messages to Your SQS FIFO Queue
Use the EC2 instance provided to send messages to your SQS queue and process them.
- Make sure you've updated the sqs_url.py file with the SQS queue URL
- Review the
data.json
file - Remember to start up the
queue_status.py
script - Run the Python3
fifo_producer.py
script to send messages to the SQS queue - Run the Python3
fifo_consumer.py
script to consume the messages in the queue - If you need to start over at any point you can start over with the
purge_queue.py
script
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.