AWS › Lambda & Serverless
What is AWS Lambda and how does the serverless computing model differ from traditional server based applications?
BeginnerAnswer
AWS Lambda lets you run code without provisioning or managing any servers at all, automatically scaling from handling a single request to thousands of concurrent requests and back down again, charging you only for the exact compute time your code actually consumes, which contrasts sharply with traditional server based applications where you must provision, patch, and pay for server capacity whether or not it is actively being used.
aws lambda create-function --function-name my-function --runtime python3.12 --role arn:aws:iam::123456789012:role/lambda-role --handler app.handler --zip-file fileb://function.zipReal-world example A company processes uploaded images using a Lambda function that only runs, and only incurs cost, at the exact moment a new image is uploaded, rather than paying for a continuously running server sitting idle between uploads.