From the course: Java: Serverless Applications on AWS
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
AWS Lambda function internals
From the course: Java: Serverless Applications on AWS
AWS Lambda function internals
- [Instructor] You've already learned that Lambda is an awesome service, that spins up a micro virtual machine, with settings you provide for the execution environment, and it executes your code. But, what really happens between a micro virtual machine before, during, and after execution of your code? What happens with database connections established from my code? What happens if your function runs into a infinite loop, or is waiting for a long time for external resource? Understanding the internals of Lambda Execution, will help us optimize our functions, to be more performant, and cost effective. When the Lambda service receives an event, it spins up a new virtual machine, with the memory, runtime, and configuration specified. During this step, it loads the code by downloading it from S3 bucket. Once complete, Lambda imports libraries, runs any incentivization code, outside the handler, before finally running the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.