Conceptual
Login

Lambda Execution Environment Lifecycle

Each environment is a Firecracker microVM that passes through Init (runtime start plus code outside the handler), Invoke (one request at a time, frozen between requests), and Shutdown; global variables, open connections, and /tmp survive across invokes in the same environment, which enables caching but forbids relying on state.

This Concept is waiting for its first lesson!

Each environment is a Firecracker microVM that passes through Init (runtime start plus code outside the handler), Invoke (one request at a time, frozen between requests), and Shutdown; global variables, open connections, and /tmp survive across invokes in the same environment, which enables caching but forbids relying on state.

Are you a teacher? Sign in to start contributing.

Sign In