课程: AWS for Developers: Step Functions

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Step Functions best practices

Step Functions best practices

- [Instructor] Here's a few pointers that I recommend that you follow for your future state machine creations. Start simple and expand. You can use past states to transform data or simply as place holders for Lambda functions that you will develop later. Be sure to enable timeouts and keep track of durations, if it's critical to your application. Timeouts would allow you to trap functions that are taking too long, possibly due to network connectivity or perhaps a third party service being down for maintenance. Either way you want to measure and monitor this situations so that you can react accordingly. Also, you saw that I used a specific label when passing data from the state machines to the Lambda functions. Try to stick to a standard naming convention and that will save you time and headaches in the long run. Finally create your workflow with error handling in mind, always suspecting corrupt inputs or Lambdas that…

内容