From the course: AWS for Developers: Step Functions
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Lambda function timeouts - Amazon Web Services (AWS) Tutorial
From the course: AWS for Developers: Step Functions
Lambda function timeouts
- [Instructor] Let's take a moment to talk about Timeouts. Going to go here to the edit button. And this is our source code so far, and I want to get your attention to the very first node where it says, shipping distance estimate. If you recall, we provided a lambda function that does this calculation for us. Now the problem is, this is calling a third party vendor. So how do we know we're going to get a response? The answer is, we don't. We just provide the information, we send it over, and we get a return value, but there's no guarantee that we're going to get that value back. So as a good practice to set a execution time limit for your state machine so that you know, hey, this node is taking more than three seconds, more than 10 seconds, whatever it takes to execute. And then you want to trigger a fail condition when that happens so that you'll know, hey, this is timing out, and I want to know why, or this is taking too…
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.