Triage and Debugging - Serverless Architectures with AWS Lambda

Triage and Debugging

Both logging to enable investigations and using X-Ray to profile applications are useful to operational triages. Additionally, consider creating Lambda function aliases that represent operational activities such as integration testing, performance testing, debugging, etc. It’s common for teams to build out test suites or segmented application stacks that serve an operational purpose. You should build these operational artifacts to also integrate with Lambda functions via aliases. However, keep in mind that aliases don’t enforce a wholly separate Lambda function container. So an alias like PerfTest that points at function version number N, will use the same function containers as all other aliases pointing at version N. You should define appropriate versioning and alias updating processes to ensure separate containers are invoked where required.