Cloud Fundamentals
/Intermediate
Serverless Functions (Lambda / Cloud Functions)
Definition
An event-driven, fully managed compute service where the user only writes code (functions). The cloud provider automatically provisions the servers to run the code, and bills only for the exact milliseconds the code executes.
Explain Like I'm New
Vending machine code. You put your code in the cloud. It sits there doing nothing, costing $0. When a user clicks a button, the cloud spins up a server for 1 second, runs your code, deletes the server, and charges you a fraction of a penny.
Real World Example
AWS Lambda, Azure Functions, GCP Cloud Functions. Whenever a user uploads an image to an S3 bucket, a Lambda function is instantly triggered to resize the image to a thumbnail, then shuts down immediately.
Common Use Cases
- •Event-driven architectures
- •Micro-tasks
- •API backends
Interview Questions
basic
- In a Serverless architecture, do you still have to install Linux updates?
intermediate
- What is a 'Cold Start' in Serverless computing?