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: Kinesis - Amazon Web Services (AWS) Tutorial
From the course: AWS for Developers: Data-Driven Serverless Applications with Kinesis (2019)
Solution: Kinesis
(lively music) - [Instructor] So in this video we are going to complete the challenge where we need to trigger a new lambda when there is a new order fulfilled in the stream. So we can go to our serverless.yml and we can see what we have there. So we have the notifyCakeProducer lambda already. This lambda what it does it gets triggered when there is a new event in the stream. So we can reutilize this lambda and use it not only to notify the cake producer but also to notify the delivery company. So let's tweak it a little bit so we can reutilize it. So we'll change the name, we call it, notifyExternalParties for example. And now it has a new name and we need to change the name of the handler as well. Let's make everything small. So now our handler has different name and when the lambda is triggered it will get the records. And previously we have filter out the orders that were placed, now we want to filter as well the orders that are fulfilled. So let's refactor a little bit this so we…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.