Dynamically Process SQS Messages Using Step Functions
Dynamically Process SQS Messages Using Step Functions

CLOUD LABS

Dynamically Process SQS Messages Using Step Functions

In this Cloud Lab, you’ll create a state machine to dynamically process messages in an SQS queue using the Lambda function, API gateway, SNS, and EC2 instance.

10 Tasks

intermediate

2hr 30m

Certificate of Completion

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

Learning Objectives

A thorough understanding of the Step Functions Map state
The ability to create custom workflows and integrate with different AWS services
The ability to detect sensitive information in text using AWS Comprehend
Hands-on experience of dynamically processing SQS messages through Step Functions

Technologies
AWS logoAWS
Step Functions
SQS
EC2
Lambda
SNS
API Gateway logoAPI Gateway
Comprehend
Skills Covered
Using AWS Cloud Services
Cloud Lab Overview

AWS Step Functions is a powerful orchestration service that can be integrated with many other Amazon services, including Amazon Simple Queue Service (SQS). SQS is a message queuing service that can store messages, during which a consumer can receive the message from the queue. Using Step Functions, you can create state machines that can dynamically process data, including messages in an SQS queue, using its Map state.

In this Cloud Lab, you’ll create a state machine to detect the sentiment of each message stored in an SQS queue. First, you’ll set up an EC2 instance to run an application where feedback about a book can be submitted. The feedback will be sent as messages in the queue using a REST API. The state machine will dynamically process this feedback and email the detected sentiment to the user via an SNS topic.

By the end of this Cloud Lab, you’ll have a thorough understanding of Step Functions’ dynamic parallelism and be equipped to process multiple SQS messages using a state machine. The following is the high-level architecture diagram of the infrastructure that you’ll create in this Cloud Lab:

Architecture diagram
Architecture diagram
Cloud Lab Tasks
1.Introduction
Getting Started
2.Provision Required Resources
Create an SQS Queue and REST API
Create a Lambda Function
Create an SNS Topic
Set Up the Application
3.Step Functions
Get Started with State Machines
Design the Workflow
Complete the State Machine
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