From the course: AWS for Developers: Data-Driven Serverless Applications with Kinesis (2019)

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: SQS

Challenge: SQS

(funky electronic music) - [Instructor] So this is the last challenge of the course. We are going to wrap up the application. You will need to build the last part of our workflow. When the user receives the order, they need to confirm the delivery and also provide some feedback. So, first, when the client receives the order, they will send a HTTP request to an endpoint that will trigger a Lambda, and that Lambda will update the DynamoDB table saying that the order was delivered. And also, that Lambda will send a message to a SQS queue that will trigger a new Lambda. That new Lambda will be in charge of sending a message to the customer service API with the feedback the customer provided on the order. You can leave the code of the second Lambda empty, as we are just using an imaginary service for the customer service API. You need to create an API Gateway with an endpoint in the path, /order/delivered, and the method, POST. The body of the HTTP request will contain an orderID, a…

Contents