Lambda Runtime and Handler
Explore different Lambda runtimes and understand how the handler function processes events and returns responses.
Your Lambda's Execution Environment
When your code runs on AWS Lambda, it needs an environment. This is called a runtime.
Think of the runtime as the specific operating system, programming language version, and necessary libraries that host and execute your Lambda function code.
What Does a Runtime Provide?
A Lambda runtime provides everything your code needs to run.
- Language Support: It includes the interpreter or virtual machine for your chosen language (e.g., Python, Node.js, Java).
- Operating System: It runs on a secure, managed operating system (usually a flavor of Linux).
- AWS SDK: It comes pre-installed with the AWS SDK for that language, making it easy to interact with other AWS services.