First I measure: the Init Duration in the CloudWatch REPORT lines (or Lambda Insights), and a trace of the INIT phase to see where time goes: runtime start, assembly loading, DI, SDK clients, secrets fetched at start-up, and VPC networking if the function is attached to a VPC. Then I try the cheapest fixes first:
System.Text.Json.Scheduled warm-up pings (an EventBridge rule every few minutes) keep only one environment warm, so they don't help when traffic scales out. If p99 still matters, I publish with Native AOT on provided.al2023, or pay for provisioned concurrency for the latency-critical function only. I re-measure after each change.
Checks whether they can measure and fix cold starts rather than just name them.
Last updated 23 Nov 2026.