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.

Solution: SQS

Solution: SQS

- [Instructor] So this is quite a long challenge. First, you will need to create API gateway in Lambda that will get triggered when the user receives the order and then that Lambda will need to save the information of the order completed to the database and also send message to a queue that these messages in the queue will trigger another Lambda that will talk with the customer service API. order delivered and it has a handler in the handler file and with the name order delivered and the events that trigger this Lambda is an http event in the path order delivered and with the method post. Good, so now we can go to our handler and create this Lambda. So we can make all of them a little bit smaller and we can put it after the notify delivery company Lambda. Module exports, and here we will write the information that we need. So these order delivered as it says in the challenge, it will have free things in the body. So we need to grab the body from the event object and first thing was…

Contents