# How does AWS Lambda work?

How does AWS Lambda work?

##### Post Metadata
- Posted at: over 4 years ago
- Author title: Pinned by G2 as a common question



## Comments
### Comment 1

Lambda is a Serverless service, Behind the scene, there are containers running, When you trigger a lambda a container spins up and your code is executed. The time taken by a container to spin up is the Cold Start.
A container will last long till 15mins and then it&#39;s shut down if no concurrent triggers happening.

##### Comment Metadata
- Posted at: over 3 years ago
- Author title: Serverless Developer at Serverless Guru | AWS Certified | AWS Community Builder
- Net upvotes: 1


### Comment 2

AWS Lambda works in 5 simple steps:

1. An event occurs
For example, a user uploads a file to an S3 bucket.



2. Lambda gets triggered
AWS Lambda receives the event and starts the required function.



3. Code executes
Lambda runs your code, such as processing the uploaded file or checking its contents.



4. The task completes
Lambda returns the result or performs the required action.



5. You pay for usage
AWS manages the underlying servers, and billing is generally based on requests and execution duration

##### Comment Metadata
- Posted at: 9 days ago
- Author title: Vice President



### Comment 3

AWS Lambda works by running your code automatically in response to events — without you managing any servers. When something triggers your function (like an API call, a file upload, or a scheduled event), Lambda spins up a secure, isolated environment, runs your code, and then shuts it down when it’s done. AWS handles all the scaling, patching, and infrastructure behind the scenes.

##### Comment Metadata
- Posted at: 10 months ago
- Author title: Enterprise Architect | Cloud Transformation Leader | Driving Multi-Cloud Strategy, Solutions | DevSecOps Excellence | Innovating Resilient Infrastructure at Scale




## Related Product
[AWS Lambda](https://www.g2.com/products/aws-lambda/reviews)

## Related Category
[Cloud Platform as a Service (PaaS)](https://www.g2.com/categories/cloud-platform-as-a-service-paas)

## Related discussions
- [How well does Trello scale into a larger team?](https://www.g2.com/discussions/1-how-well-does-trello-scale-into-a-larger-team)
  - Posted at: over 13 years ago
  - Comments: 6
- [Can we please add a new section](https://www.g2.com/discussions/2-can-we-please-add-a-new-section)
  - Posted at: over 13 years ago
  - Comments: 0
- [Quantifiable benefits from implementing your CRM](https://www.g2.com/discussions/quantifiable-benefits-from-implementing-your-crm)
  - Posted at: over 13 years ago
  - Comments: 4


