How would you decide whether Lambda cold starts need fixing?
After this you can answer: How would you decide whether Lambda cold starts need fixing?
Say it in 30 seconds
Section titled “Say it in 30 seconds”The deeper answer
Section titled “The deeper answer”A cold start creates a new execution environment and initializes module-level code. Reused environments skip that initialization, but reuse is not guaranteed. MiniTickets constructs DynamoDB, SQS and mailer dependencies at module scope. Per-invocation IDs and message state still belong inside the handler.
Inspect Lambda REPORT lines alongside queue age and end-to-end completion timestamps. A large initialization value with a short warm handler suggests a different problem from every batch spending seconds on SES. The ticket worker also performs QR rendering and fetches its signing secret lazily, so compare equivalent work rather than mixing the two functions.
AWS’s execution-environment documentation describes initialization and reuse. Memory tuning, smaller imports and provisioned concurrency are options to measure. Current infrastructure does not configure provisioned concurrency. No production cold-start percentile or acceptable customer delay is established by this repository; those require a workload and a service objective.
Counter-questions
Section titled “Counter-questions”Can a warm process keep customer data globally?
Would a scheduled warm-up guarantee no cold starts?
When would provisioned concurrency be justified?
Where in MiniTickets
Section titled “Where in MiniTickets”Read the path chapter, select the relevant map piece →, then inspect apps/worker/src/lambda.ts → handler. Work through the related case for a diagnostic example.
Read this book online: https://book.theversehub.in/