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. Amazon SQS offers two kinds of queues: standard queues and FIFO queues. The order of incoming and outgoing messages may change in standard queues, but the order is retained in FIFO queues.
In this Cloud Lab, you’ll start by creating two SQS queues, a standard queue and a FIFO queue. You’ll then create a DynamoDB table and add some items to it. Each item will have a specific quantity associated with it. You’ll then create an SNS topic with an email subscriber. After this, you’ll create a Lambda function that will receive messages from the SQS queue, fetch the item mentioned in the SQS message from the DynamoDB table, update items in the DynamoDB table, and publish messages to the SNS topic, which will then be delivered to our email address.
Finally, you’ll test this application by sending multiple messages to the SQS queue using Boto3. After completing this Cloud Lab, you’ll have a thorough understanding of SQS FIFO queues and how they’re different from standard queues. The following is the high-level architecture you will create in this Cloud Lab: