Getting Started with Amazon Simple Queue Service (SQS)

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
Lambda logoLambda
CloudWatch logoCloudWatch
SQS logoSQS
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.

Before you start...

Try these optional labs before starting this lab.

Relevant Courses

Use the following content to review prerequisites or explore specific concepts in detail.

Hear what others have to say
Join 1.4 million developers working at companies like