What is Amazon Lambda?

AWS Lambda is a serverless compute service that lets you run code without provisioning or managing servers. You upload your function code, define a trigger, and AWS executes the function in response to events.

At a conceptual level, Lambda is event-driven compute. Instead of running servers continuously, your code runs only when something happens:

  • An HTTP request arrives (via API Gateway)
  • A file is uploaded to S3
  • A message appears in a queue
  • A scheduled event triggers execution

How It Works Internally

When an event triggers a function:

  1. AWS provisions an isolated execution environment.
  2. Your function code is loaded.
  3. The handler runs.
  4. The environment may be reused for subsequent requests.

The first invocation may incur a cold start, where AWS initializes the runtime. Subsequent invocations may reuse the environment (warm start).

Why It Matters in System Design

Lambda changes how you think about compute:

  • No long-running servers.
  • No infrastructure patching.
  • Automatic scaling by default.
  • Pay only for execution time.

Architecturally, this shifts responsibility from capacity planning to event design and system orchestration.

Lambda Fundamentals

Question 1 of 3

0/3

What triggers a Lambda function?

In this section, I learned:

0 of 4 completed

Choose your language

Select your preferred language for the site