Gallery

Contacts

405 W. Greenlawn Ave Lansing, Michigan 48910

contact@techjacksolutions.com

+1-616-320-4064

AWS · Amazon Web Services

What Is AWS Lambda? Serverless Computing Explained (2026)

Last verified: June 17, 2026  ·  Format: Breakdown

What is AWS Lambda diagram: an event source triggers an AWS Lambda function that runs your code with no servers to manage
AWS Lambda runs your code in response to events, with no servers to provision, and bills by request and compute duration.
$0.20
Per million requests on the on-demand model
Source: AWS Lambda pricing
1M
Free requests every month, plus 400,000 GB-seconds of compute
Source: AWS Lambda free tier
128–10,240
Configurable function memory in MB (CPU scales with it)
Source: AWS Lambda pricing
0 servers
Infrastructure you provision or manage to run a function
Source: AWS Lambda product docs

AWS Lambda is a serverless compute service that runs your code without you provisioning or managing any servers, and you pay only for the number of requests and the compute duration. If you have been asking what AWS Lambda is in practical terms, picture a single function that sits idle at no cost, wakes up the instant an event arrives, runs your code, and then goes quiet again. There is no virtual machine to size, patch, or keep running, and there is no charge while nothing is happening. That event-driven, pay-per-use model is what makes Lambda one of the defining building blocks of AWS serverless architecture.

This breakdown is plain and practical. We start with what Lambda actually is, explain how the serverless model works, walk through the events that trigger functions and the runtimes they support, lay out the request and GB-second pricing alongside the free tier, and close with when Lambda is the right tool. Pricing and service details below are drawn from AWS documentation and were checked on June 17, 2026; always confirm current figures on the AWS site before you commit. For the bigger picture, see our what is AWS overview, which places Lambda inside the wider AWS catalog.

What AWS Lambda Is

AWS Lambda is AWS's flagship serverless compute service. In plain terms, you upload a unit of code (a function), tell Lambda what should trigger it, and AWS takes care of everything underneath: the servers, the operating system, the scaling, and the availability. You do not rent a machine by the hour the way you would with a virtual server. Instead, Lambda runs your function on demand, scales automatically as more events arrive, and charges you only for the requests it handles and the time your code actually runs.

Two ideas define Lambda. First, it is event-driven: a function does nothing until something happens (a file lands in storage, a request hits an API, a message arrives on a queue), and then it runs in response to that event. Second, it is serverless: there are no servers for you to provision or manage, so the operational work of capacity planning and patching is Amazon's, not yours. You control how much memory a function gets (configurable from 128 MB to 10,240 MB in 1 MB increments, with CPU scaling alongside memory), and AWS handles the rest.

It helps to place Lambda next to the alternative. With Amazon EC2 you rent a virtual server you control down to the operating system, and you pay for it while it is running whether or not it is busy. With Lambda there is no always-on machine: the function exists, costs nothing when idle, and bills only when it runs. If you want the standards-body framing behind the whole on-demand, metered model, our what is cloud computing guide covers the foundations Lambda is built on.

How the Serverless Model Works

The word "serverless" does not mean there are no servers. It means you never see, size, or manage them. Behind the scenes AWS runs your code on its own fleet, spinning up an execution environment when an event arrives and tearing it down when it is no longer needed. From where you sit, the unit you reason about is the function and the event that triggers it, not the machine it runs on.

A Lambda function has a simple life cycle. An event source (an API call, a new object in storage, a message on a queue) invokes the function. AWS allocates an execution environment with the memory you configured, runs your code, and returns or routes the result. If many events arrive at once, Lambda runs many copies of your function in parallel, scaling out automatically without you adding capacity. When the events stop, the function goes idle and you stop paying for compute.

That model has direct consequences for how you design and budget. Because functions are short-lived and stateless by default, persistent data belongs elsewhere, often in object storage such as Amazon S3 or a managed database, with the function acting as the glue between events and stored state. And because billing tracks the compute duration your code uses, efficient functions that finish quickly cost less. AWS rounds duration up to the nearest 1 ms, so the time your code runs is measured finely rather than in coarse blocks.

Mental model: EC2 is a server you keep running; Lambda is a function that only exists for the moment it runs. Reach for EC2 when you need long-running, full-control compute, and for Lambda when work is event-driven, bursty, or intermittent and you would rather not pay for idle capacity.

AWS Lambda Triggers and Runtimes

A Lambda function is only useful once something invokes it, so two questions matter early: what can trigger a function, and what languages can you write it in. AWS answers both with a broad list, and recognizing the common ones makes the service much less abstract.

Triggers (event sources)

Many AWS services can invoke a Lambda function directly. Common event sources include Amazon API Gateway (turn an HTTP request into a function call), Amazon SNS and Amazon SQS (notifications and queued messages), Amazon EventBridge (event-bus and scheduled events), Amazon Kinesis and Apache Kafka / Amazon MSK (streaming data), Amazon S3 (run code when an object is created or changed), Amazon CloudWatch Logs, and AWS Step Functions (orchestrate functions into workflows). Each of these lets you wire an event in one part of AWS to code that reacts to it, with no server sitting in between.

Runtimes (languages)

Lambda supports a range of managed runtimes, including Python, Java, .NET, and Node.js / JavaScript, and you can bring a custom runtime when you need a language that is not managed out of the box. AWS also publishes language SDKs (Python, Java, PHP, .NET, and JavaScript among them) so your function code can call other AWS services. This list is a representative set rather than an exhaustive one; check the AWS Lambda documentation for the full, current set of supported runtimes.

Event sourceTriggers a function whenTypical use
Amazon API GatewayAn HTTP request arrivesServerless APIs and web backends
Amazon S3An object is created or changedProcess uploads, generate thumbnails
Amazon SQSA message lands on a queueDecoupled, asynchronous processing
Amazon EventBridgeAn event or schedule firesEvent routing, cron-style jobs
Kinesis / Kafka (MSK)Stream records arriveReal-time stream processing
AWS Step FunctionsA workflow step is reachedMulti-step orchestration

The pattern is consistent: pick the service that produces your event, point it at a function, and write only the code that reacts. The plumbing between the event and your code is Lambda's responsibility, which is much of why teams reach for it.

New to AWS compute and storage? Lambda rarely works alone. Read what is Amazon EC2 to compare it with always-on virtual servers, and what is Amazon S3 to see the storage functions most often read from and write to.

AWS Lambda Pricing and the Free Tier

Cost is a big part of understanding Lambda, and its pricing rests on two metered components: the number of requests and the compute duration your code uses. You pay for both, you pay nothing while a function is idle, and there is no always-on server racking up charges in the background. That is the appeal, and the discipline, of the model.

$0.20 / million
On-demand request pricing for AWS Lambda, plus a separate per-GB-second charge for the time your code runs
Vendor-reported, AWS Lambda pricing, June 17, 2026

Here is how the two components break down on the on-demand model:

  • Requests: $0.20 per million requests. Every time your function is invoked counts as one request.
  • Compute duration (x86): $0.0000166667 per GB-second, where a GB-second is one second of run time at 1 GB of allocated memory. Duration is rounded up to the nearest 1 ms.
  • Compute duration (Arm / Graviton2): $0.0000133334 per GB-second. Running functions on the Arm/Graviton2 architecture can deliver up to 34% better price-performance than x86.
  • Memory drives cost: you set memory from 128 MB to 10,240 MB, and because GB-seconds scale with allocated memory (and CPU scales with it too), the memory you choose directly affects both speed and price.
  • Savings: Compute Savings Plans can save up to 17% on Lambda for steady, predictable usage.

The free tier is the natural on-ramp. Every month AWS includes 1,000,000 free requests and 400,000 GB-seconds of compute (aggregate across the x86 and Graviton2 architectures), plus 100 GiB of HTTP response streaming. For learning, prototypes, and small workloads, that allowance often covers everything you do at no cost. Two caveats: the free tier does not apply to Provisioned Concurrency, and free allowances have edges that are easy to drift past, so set a budget and watch usage. Because rates and allowances change, treat every figure here as a starting point and confirm the current numbers on the AWS Lambda pricing page before you plan around them.

When to Use AWS Lambda

We have covered what Lambda is and how it bills; the last question is when to reach for it. Lambda shines when work is event-driven, bursty, or intermittent, and when you would rather not pay for or operate an always-on server. The use cases below are the ones AWS highlights, and they map cleanly onto common needs.

🌐
Web and mobile backends

Pair Lambda with API Gateway to build interactive web and mobile backends as microservices, where each function handles one job and scales independently. You write the logic; AWS handles the servers and the scaling under load.

Best fit: API Gateway + Lambda
📊
Batch and file data processing

Run code when a file lands in storage, for example to transform, validate, or index an uploaded object in Amazon S3. Functions spin up per event and stop when the batch is done, so you pay only for the work performed.

Best fit: S3 events + Lambda
Real-time stream processing

Process records as they arrive from streaming sources such as Amazon Kinesis or Apache Kafka (Amazon MSK). Lambda scales with the stream, making it a fit for clickstreams, telemetry, and other continuous data flows.

Best fit: Kinesis / Kafka + Lambda
🤖
Event-driven AI workflows

Wire functions into event-driven generative-AI workflows, where an event kicks off a step in a pipeline and Lambda runs the glue code between services. The serverless model keeps these intermittent workloads cheap when idle.

Best fit: EventBridge / Step Functions

Honest Trade-offs

Serverless is powerful, but Lambda comes with trade-offs to plan for. Lambda is an excellent fit for event-driven work, and the points below are not reasons to avoid it. They are reasons to adopt it with clear eyes.

Functions are short-lived and stateless

A Lambda function runs, returns, and forgets. Anything that must persist belongs in storage or a database, not in the function. Workloads that need long-running processes or in-memory state held across requests fit an always-on server such as EC2 better than they fit Lambda.

Memory choice drives cost and speed

Because GB-seconds scale with allocated memory and CPU scales with it too, the memory you configure (128 MB to 10,240 MB) affects both how fast a function runs and what it costs. Under-provision and it runs slowly; over-provision and you pay for capacity you do not use. Tune it deliberately.

Metered billing still needs watching

Pay-per-use is a feature until a chatty trigger or a runaway loop multiplies your request and duration charges. The free tier covers a lot, but it has limits and does not apply to Provisioned Concurrency. Set budgets and monitor invocation and duration metrics from the first day.

Serverless can mean deeper AWS coupling

Building on Lambda, its triggers, and its surrounding services ties your application to AWS's APIs and event model. The convenience is real, but moving later is rarely a simple lift-and-shift. Weigh that against the operational savings, and confirm current terms with AWS before committing.

Frequently Asked Questions

AWS Lambda is a serverless compute service that runs your code without you provisioning or managing servers. You upload a function, choose what triggers it, and AWS runs it on demand, scaling automatically. You pay only for the number of requests and the compute duration, and nothing while the function is idle. Memory is configurable from 128 MB to 10,240 MB, and CPU scales with it.
Lambda bills on two metered components. Requests cost $0.20 per million. Compute duration on the on-demand model is $0.0000166667 per GB-second on x86 and $0.0000133334 per GB-second on Arm/Graviton2, with duration rounded up to the nearest 1 ms. A GB-second is one second of run time at 1 GB of memory, so the memory you allocate affects cost. Compute Savings Plans can save up to 17% for steady usage. Confirm current rates on the AWS Lambda pricing page.
Lambda includes a monthly free tier: 1,000,000 free requests and 400,000 GB-seconds of compute (aggregate across x86 and Graviton2), plus 100 GiB of HTTP response streaming per month. For learning, prototypes, and small workloads, that often covers everything at no cost. The free tier does not apply to Provisioned Concurrency, and allowances are easy to exceed, so set a budget and monitor usage from the start.
Many AWS services can invoke a Lambda function. Common event sources include Amazon API Gateway, Amazon SNS, Amazon EventBridge, Amazon SQS, Amazon Kinesis, Apache Kafka / Amazon MSK, Amazon S3, Amazon CloudWatch Logs, and AWS Step Functions. You point an event source at your function and write only the code that reacts to the event, with no server in between.
Lambda supports managed runtimes including Python, Java, .NET, and Node.js / JavaScript, and you can bring a custom runtime for languages that are not managed out of the box. AWS also publishes language SDKs (Python, Java, PHP, .NET, and JavaScript among them) so functions can call other AWS services. This is a representative set; check the AWS Lambda documentation for the full, current list of supported runtimes.
Use Lambda when work is event-driven, bursty, or intermittent and you would rather not run or pay for an always-on server: web and mobile backends behind API Gateway, file processing on S3 events, real-time stream processing from Kinesis or Kafka, and event-driven AI workflows. Use Amazon EC2 when you need long-running, full-control, or stateful compute. Many architectures combine both.
Fact-checked against AWS documentation, June 2026. Pricing and free-tier figures are vendor-reported and date-stamped. Verify current rates, free-tier limits, and terms with AWS before you commit.
AWS, Amazon Web Services, AWS Lambda, Amazon EC2, Amazon S3, Amazon API Gateway, Amazon SNS, Amazon SQS, Amazon EventBridge, Amazon Kinesis, Amazon MSK, Amazon CloudWatch, and AWS Step Functions are trademarks of Amazon.com, Inc. or its affiliates. Apache Kafka is a trademark of the Apache Software Foundation. This article is editorially independent and not affiliated with, endorsed by, or sponsored by Amazon or any provider named here. All product names are used for identification purposes only.