The AWS Simple Queue Service (SQS) is the AWS queue service. This service is similar to the queuing mechanisms that are used generally in software engineering. This enables us to add, store, and remove messages inside the queue.
We will learn how to trigger a Lambda function, depending on the number of messages in a SQS queue. This task will help you understand how serverless batch data architectures can be built and how to build one yourself.
We will do this by monitoring our SQS queue with a CloudWatch alarm and relaying the information to Lambda via an SNS topic, just like we did in the previous task.
So, in this section, we will do the following:
- Create an SQS queue
- Create an SNS topic
- Create a CloudWatch alarm for our SQS queue to monitor the number of messages in the queue
- Once the messages count reaches 5, the alarm will be set to ALERT and the corresponding...