A Brief History of Cloud
Data Center
IaaS- EC2 ..
PaaS-Elastic Beanstalk
Containers-Docker
Serverless-Lambda
What is Lambda?
is a compute service where you can upload your code and create a Lambda function. AWS Lambda handles provisioning and managing the servers that you use to run the code. No worry needed for operating systems, patching, scaling etc.

Features
- Serverless Compute Service
- Independently working, 1event=1 function
- Response to multiples events (HTTP Requests, modifications to obejects in S3, table updates in DynamoDB)
- Stateless
- Extend other AWS services with custom logic
- Build custom back-end services
- Bring your own code
- Completely automated admin
- Multiple functions orchestration with AWS Step Functions
- Pay per use
- Selective of CPU power, network bandwidth, disk I/O allocations.
Use Case
- an event-dricen compute service where AWS Lambda runs your code in response to events. These events could be changes to data in an Amazone S3 bucket or an Amazon DhynamoDB table.
- a compute service to run your code in response to HTTP requests using Amazon API Gateway or API calls made using AWS SDKs.
Example 1: Image Thumbnail Creation

Example 2: Real-time Stream Processing

Example 3: Extract, Transform, Load

Example4: Weather Application

Example 5: Mobile Back-end for social media app

Lambda Price Policy
Number of requests: first 1 million requests are free. $0.20 per 1 million requests thereafter.
Duration: calculated from the time your code begins executing until it returns or otherwise terminates, rounded up to the nearest 100ms. The price depends on the amount of memory you allocate to your function. You will be charged $0.0000166 for every GB-second used.