课程: AWS for Developers: Step Functions
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Lambda function timeouts - Amazon Web Services (AWS)教程
课程: 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…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。