Fail Fast - Serverless Architectures with AWS Lambda

Fail Fast

Configure reasonably short timeouts for any external dependencies, as well as a reasonably short overall Lambda function timeout. Don’t allow your function to spin helplessly while waiting for a dependency to respond. Because Lambda is billed based on the duration of your function execution, you don’t want to incur higher charges than necessary when your function dependencies are unresponsive.