Debugging
Serverless applications are distributed applications and debugging distributed applications is different to debugging single-server or monolithic applications. Specifically, you must consider:
-
Debugging across multiple services, since most production serverless applications use a combination of Lambda functions and other services.
-
Debugging concurrent invocations of functions, as many workloads use parallelization to process increases in traffic.
-
Understanding the state of a workload when the error occurred so you can reliably reproduce the issue.
Topics
This chapter covers:
-
Standardizing a debugging approach from the error occurring through to remediating the problem.
-
Troubleshooting invocations – identifying common causes, symptoms, and remediation strategies.
-
Best practices for configuring your Lambda build and development environment for debugging functions.