What is AWS Lambda?

Lambda runs your code when something happens, and you never manage a server.

1 min read

Say you've written a small Python function that resizes an image or summarizes a note. To run it as a reliable service the traditional way, you'd rent a server, install an OS, keep it patched, add more servers when traffic spikes, and pay for all of them even at 3 a.m. when nobody's using it.

AWS Lambda removes all of that. You upload the function, tell Lambda when to run it, and AWS handles the servers, scaling, and patching. You pay only for the milliseconds your code actually runs.

Think of it like this

A traditional server is like owning a car: you pay for it, insure it, and maintain it whether you drive or not. Lambda is like a taxi: it shows up when you need a ride, you pay for the trip, and ten people can each hail one at the same moment.

"Serverless" doesn't mean no servers

There are still servers. They're just AWS's problem, not yours.

In our project

Across this site we build one small project, piece by piece: NoteSnap, an app where you upload a text note and get back an AI-written summary. Each service adds one part. Lambda is the "brain": it runs when a note is uploaded, asks Bedrock for a summary, and saves it.

Key takeaways

  • Lambda runs your function in response to events, with no servers for you to manage.
  • It scales automatically, from zero to thousands of parallel runs.
  • You pay per request and per millisecond of run time, so idle costs nothing.

Check your understanding

Pick an answer to see the explanation.

  1. 1. Your function runs for 200 ms, ten times a day. What do you pay for?