practise • NO: Batch processing • NO: User facing service with normal traffic patterns* - No problem for 99th percentile • MAYBE: User facing service with occasional traffic* • MAYBE: User facing service with lots of spread spiky traffic* Are cold starts a big deal? (Java/.NET edition) * When used and optimized correctly
Static fields, constructor • Move state to global - But keep your invocations stateless • Avoid reflection • Fail fast • Right size memory usage - 1792 MB = 1 vCPU Optimize execution time
Lambda and Java (SVS403-R1) @sapessi ... more on AWS Lambda and Java • How to minimize AWS Lambda Java cold starts @drissamri88 • Programming AWS Lambda by John Chapin, Mike Roberts • Analyzing Cold Start latency of AWS Lambda @mikebroberts