What is aws lambda
Last updated: April 1, 2026
Key Facts
- Lambda supports multiple programming languages including Python, Node.js, Java, C#, Go, Ruby, and custom runtimes
- Functions can be triggered by various AWS services including S3, API Gateway, DynamoDB, SQS, CloudWatch, and SNS
- Pricing is based on requests and compute duration, with a generous free tier of 1 million requests and 400,000 GB-seconds monthly
- Lambda automatically scales from zero to handle thousands of concurrent executions without manual configuration
- Maximum function execution timeout is 15 minutes, and memory allocation ranges from 128 MB to 10,240 MB
What is Serverless Computing?
AWS Lambda is the foundational service of serverless computing—a paradigm where cloud providers manage infrastructure, scaling, and operations automatically. Instead of provisioning EC2 instances, managing autoscaling groups, or maintaining containerized environments, developers write functions and Lambda handles everything else. This approach eliminates operational overhead while enabling rapid deployment and automatic resource management.
How Lambda Works
You upload function code to Lambda along with its dependencies. When triggered by an event (API request, file upload, database change, scheduled time, or message queue), Lambda automatically allocates computing resources, executes the function, and returns results. The execution environment is ephemeral—containers spin up on-demand and tear down after execution. This event-driven model makes Lambda ideal for processing, transformations, and integrations that don't require continuous availability.
Supported Languages and Runtimes
Lambda provides managed runtimes for Python 3.x, Node.js, Java, C#/.NET, Go, Ruby, and PHP. Custom runtimes enable you to use virtually any programming language. Each runtime includes commonly needed libraries and integrates with Lambda's execution environment, providing context about invocation details, logging, and resource limits.
Event Sources and Triggers
Lambda functions integrate seamlessly with AWS ecosystem triggers:
- API Gateway: HTTP/REST endpoints that invoke Lambda synchronously
- S3: Object creation, deletion, or modification events
- DynamoDB Streams: Database record changes
- SQS/SNS: Message queues and pub/sub notifications
- CloudWatch Events: Scheduled invocations (cron-like behavior)
- Cognito: User authentication events
- EventBridge: Custom application events and third-party integrations
Pricing and Cost Optimization
Lambda charges based on two dimensions: number of requests and compute duration in 1-millisecond increments. The free tier includes 1 million monthly requests and 400,000 GB-seconds of compute (equivalent to running a 128MB function for ~92 hours). This pricing model favors intermittent workloads—costs are zero when functions aren't running. For continuous workloads, traditional compute (EC2, Fargate, containers) may be more economical.
Limitations and Constraints
Lambda has specific constraints: maximum execution time of 15 minutes, temporary storage (/tmp) limited to 10GB, and payload size limits (6MB synchronous, 256KB asynchronous). For long-running or stateful workloads, these limitations may necessitate alternative services like Fargate or EC2.
Related Questions
What is the difference between AWS Lambda and Fargate?
Lambda is for event-driven functions with execution limits (15 minutes), while Fargate is for containerized applications that run continuously or long-running tasks. Lambda charges per-request and compute time; Fargate charges for reserved resources.
What are common use cases for Lambda?
Lambda excels at API backends, data processing pipelines, file transformations, real-time notifications, scheduled tasks, and IoT data ingestion. Any workload triggered by events or running intermittently benefits from Lambda's serverless model.
Can Lambda functions communicate with a VPC and databases?
Yes, Lambda can be configured to run within a VPC, enabling secure communication with RDS, DynamoDB, ElastiCache, and other private AWS resources. VPC configuration adds deployment latency (typically 10-20 seconds) due to ENI attachment.
More What Is in Daily Life
- What Is a Credit ScoreA credit score is a three-digit number, typically ranging from 300 to 850, that represents your cred…
- What Is CD rates make no sense based on length of time invested. Explain like I'm 5CD (Certificate of Deposit) rates often don't increase with longer lock-up times the way people expe…
- What is a phdA PhD (Doctor of Philosophy) is a doctoral degree earned after completing advanced academic research…
- What is a polymathA polymath is a person with deep knowledge and expertise across multiple different fields or academi…
- What is aarch64ARMv8-A (commonly called ARM64 or AArch64) is a 64-bit processor architecture developed by ARM Holdi…
- What is aaaAAA batteries are a standard cylindrical battery size measuring 10.5mm in diameter and 44.5mm in len…
- What is aacAAC (Advanced Audio Codec) is a digital audio compression format that provides better sound quality …
- What is aaa gameAAA games are high-budget video games developed by large studios with budgets typically exceeding $1…
- What is a proxyA proxy is a server that acts as an intermediary between your device and the internet, forwarding yo…
- What is agoraphobiaAgoraphobia is an anxiety disorder characterized by intense fear of situations where escape might be…
- What is a jockA jock is an athlete, especially in high school or college, known for participation in sports. The t…
- What is a jesterA jester is a professional entertainer employed by royalty or nobility to provide humor, satire, and…
- What is a juxtapositionJuxtaposition is a literary and rhetorical technique of placing two contrasting things side by side …
- What is a juggernautA juggernaut is an unstoppable or overwhelming force, power, or person that crushes all opposition. …
- What is a jointA joint is an anatomical structure where two or more bones meet and connect, allowing movement and f…
- What is a jewA Jew is a person who practices Judaism, is of Jewish descent, or identifies with Jewish culture, et…
- What is alsALS, or Amyotrophic Lateral Sclerosis, is a progressive neurodegenerative disease that affects nerve…
- What is a joint ventureA joint venture is a business agreement where two or more companies collaborate on a specific projec…
- What is amberAmber is fossilized tree resin that has hardened over millions of years, prized for its translucent …
- What is ambienAmbien is a prescription sedative medication containing zolpidem, used to treat insomnia by helping …
Also in Daily Life
- How To Save Money
- Why are so many white supremacist and right wings grifters not white
- Does "I'm 20 out" mean youre 20 minutes away from where you left, or youre 20 minutes away from your destination
- Why are so many men convinced that they are ugly
- What does awol mean
- What does asl mean
- What does ad mean
- What does asap mean
- What does apex mean
- What does asmr stand for
- What does atp mean
- What causes autism
- What does abg mean
- What does am and pm mean
- What does a fox sound like
More "What Is" Questions
Trending on WhatAnswer
Browse by Topic
Browse by Question Type
Sources
- AWS Lambda Documentation CC-BY-SA-4.0
- Wikipedia - AWS Lambda CC-BY-SA-4.0