Getting Started with Amazon Simple Queue Service (SQS)
Getting Started with Amazon Simple Queue Service (SQS)

CLOUD LABS

Getting Started with Amazon Simple Queue Service (SQS)

In this Cloud Lab, we will create an SQS queue and see the different features available in SQS. We will integrate an SQS queue in the Lambda function.

9 Tasks

beginner

1hr 30m

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

An understanding of Amazon SQS and its different features
Working knowledge of dead-letter queues
Hands-on experience receiving messages with short and long polling
Hands-on experience integrating Amazon SQS with Lambda functions

Technologies
AWS logoAWS
SQS
Lambda
CloudWatch
Cloud Lab Overview

Amazon Simple Queue Service (Amazon SQS) is a serverless service provided by Amazon. It is used to send, store, and receive messages between different applications. There are two kinds of queues available in Amazon SQS, standard queues and FIFO queues. The order of the messages being sent may change in standard queues. However, the order is retained in FIFO queues.

In this Cloud Lab, you will create a standard queue and see how you can add delay to the messages being sent to consumers and push messages to a dead-letter queue. You will also create a Lambda function and invoke it by adding an SQS trigger. Finally, you will use Boto3 in your Lambda function to see the difference between long and short polling. You will view the output of your Lambda function in CloudWatch logs.

After completing this lab, you will be able to create an SQS queue and trigger Lambda functions with it. You will also be able to send messages with delay and push unprocessed messages to a dead-letter queue.

A high-level architecture diagram for this lab is given below:

Architecture diagram
Architecture diagram

Cloud Lab Tasks
1.Introduction
Getting Started with SQS
Create an SQS Queue
2.Sending and Receiving Messages
Send Messages to SQS Queue
Short and Long Polling
Visibility Timeout and Dead-Letter Queues
3.Putting It All Together
Create a Lambda Function
Integrate SQS Queue with a Lambda Function
4.Conclusion
Clean Up
Wrap Up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Trusted by 1.4 million developers working at companies including

Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg
Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

Get access to Educative Cloud Labs

Course Footer Image
Course Footer Image