Lambda Client Reuse Medium

Creating new AWS service clients within Lambda handler functions on each invocation introduces repetitive initialization overhead. This negatively impacts function performance, latency, and scalability. AWS clients should be initialized once and reused across invocations. Avoiding redundant client creation improves efficiency and availability in serverless applications.

Detector ID
go/lambda-client-reuse@v1.0
Category
Common Weakness Enumeration (CWE) external icon
-