Serverless Architecture and
AWS Lambda
By: Nishant Kumar
Senior Engineer @candis.io
@Meetup: JS-Berlin-Geekle-Club @nishant8BITS
Ok, So Serverless .....
What options are available to run code on cloud ?
● Bare Metal
● IaaS (VM) - AWS EC2 Instance
● CaaS (Container) - AWS ECS , Microsoft Azure
Container Service (ACS)
● PaaS (App) - AWS Elastic Beanstalk, Windows
Azure, Heroku, Google App Engine, Apache Stratos.
● Serverless (Function - FaaS) - AWS Lambda,
Google Cloud Function, Azure Function
More Control,
More Management,
More Code
Less Control,
Less Management,
Less Code
Serverless Model
Programming Model Operation Model
Programming Model
● Service Based (Service oriented programming)
● Event Driven
Service Based Programming
Event Driven
Operational Model
● No server/infra to provision or manage
● Flexible Scaling (Auto Scaling)
● Pay only for usages
● Highly available and secure
Who is using Serverless ?
AWS Lambda
……..“AWS Lambda lets you run code without provisioning or managing
servers. You pay only for the compute time you consume.”
AWS Lambda - Pay per use pricing
● Pay for compute time in 100ms increment
● No hourly, daily or monthly minimum commitment or charges
● No per device cost
● Never pay for idle
1 Million requests are free every months for ever customer
More details on Pricing : https://aws.amazon.com/lambda/pricing/
So What AWS Lambda take care for you ? ...
● Load Balancing
● Auto Scaling
● Handling Failures
● Security Isolations
● OS Management
● Managing Resources Utilization
● Built-in Metrics / Logs
How AWS Lambda works ?
How AWS Lambda Work (Demo)
Lambda Execution Model
Event Source That Integrate with Lambda
Common use cases for serverless applications
Web-app using Serverless and AWS Lambda
Framework and Tooling
Resources
Sample Applications and Learning Resources:
● https://github.com/aws-samples/aws-serverless-workshops
● https://github.com/aws-samples/aws-serverless-chatbot-sample
● https://martinfowler.com/articles/serverless.html
● https://github.com/anaibol/awesome-serverless
● https://aws.amazon.com/tools/
https://www.linkedin.com/in/nishantkumar1/

Serverless architecture and aws lambda