Serverless architectures let you build and deploy applications and services with infrastructure resources that require zero administration. In the past, you had to provision and scale servers to run your application code, install and operate distributed databases, and build and run custom software to handle API requests. Now, AWS provides a stack of scalable, fully-managed services that eliminates these operational complexities.
In this session, you will learn about the benefits of serverless architectures and the basics of the serverless stack AWS provides. We will also walk through how you can use serverless architectures for everything from data processing to mobile and web backends.
4. Agenda
• What is Serverless?
• Serverless Architectures
• Cost Savings
• Real Use Cases
5. What is Serverless Computing?
VMS
• Machines are the unit of scale
• Abstracts the hardware layer
Containers
• Applications are the unit of scale
• Abstracts the OS layer
Serverless
• Functions are the unit of scale
• Abstracts the language runtime
EC2
ECS
Lambda
6. Differentiators
I want to configure
machines, storage,
networking, and my OS
I want to run servers,
configure applications,
and control scaling
Run my code
when it’s needed
EC2 ECS Lambda
7. What does this look like from an application
perspective?
11. Operations and management Scaling
Provisioning and utilization Availability and fault tolerance
Owning servers means dealing with ...
12. Code is all you need
(Native: Java/Python/NodeJS)
Event-driven scaling
Never pay for idle servers Availability and fault tolerance built in
Going Serverless with Lambda
14. Lambda: How it works
Authoring functions
• AWS SDK built in
• Handle inbound traffic
• Use processes, threads,
/tmp, sockets,…
Deployment options
• Author directly using the
console WYSIWYG editor
• Package code as a .zip file
and upload to Lambda or to
S3
Stateless functions
• Persist data using
S3/Amazon DynamoDB/
Amazon ElastiCache
• No affinity to infrastructure
(can’t “log in to the box”)
Monitoring and Logging
• Metrics in Amazon
CloudWatch – Requests,
Errors, Latency, Throttles
• Logs in Amazon
CloudWatch Logs
15. AWS Lambda: Serverless computing
Run code without provisioning or managing servers; pay only for the compute time you
consume.
Triggered by events:
• Direct Sync and Async invocations
• Put to an Amazon S3 bucket
• Call to an Amazon API Gateway endpoint
• And many more…
Makes it easy to:
• Perform real-time data processing
• Build scalable back-end services
17. Lambda: Use cases
Data processing
Execute code in
response to changes in
data, shifts in system
state, or actions by users
Control systems
Customize responses
and response workflows
to state and data
changes within AWS
Back ends
Execute back-end logic
to handle requests for
web, mobile, IoT, and
third-party APIs
20. Use case: Control systems
Amazon SES actions Zapier integration
Amazon SWF tasksAWS CloudFormation
custom resources
Lambda scheduled
events
21. Architect to be Serverless
Fully Managed
• No provisioning
• Zero administration
• High availability
Developer Productivity
• Focus on the code that
matters
• Innovate rapidly
• Reduce time to market
Continuous Scaling
• Automatically
• Scale up and scale down
22. Certification
aws.amazon.com/certification
Demonstrate your skills,
knowledge, and expertise
with the AWS platform.
Self-Paced Labs
aws.amazon.com/training/
self-paced-labs
Try products, gain new
skills, and get hands-on
practice working with
AWS technologies.
aws.amazon.com/training
Training
Skill up and gain
confidence to design,
develop, deploy, and
manage your applications
on AWS.
AWS Training and Certification