SlideShare a Scribd company logo
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Gabe Hollombe
Developer &Technical Evangelist, Amazon Web Services
@gabehollombe
How Serverless Helps Startups
Innovate and Scale
5 April, 2018
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Gabe Hollombe
Software Developer & Evangelist, Amazon Web Services
15+ years writing all sorts of software
EdTech ⇢ Agile/XP Consulting ⇢ Nano-satellites ⇢ AWS
Web / Ruby / Python / Node / C# / Clojure
Bad puns, old whiskey, clean code
@gabehollombe
AWS Customers in Southeast Asia
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
“Software is eating the world.”
Marc Andreessen, Andreessen Horowitz
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
“Any new business should consider
going 100% cloud from the start.”
Marc Andreessen, Andreessen Horowitz
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Why?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Because you can test your idea,
very quickly, for little money.
Then, if you are on to something,
you can scale, rapidly.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
“Cloud computing and the open
source movements have brought
down the costs of starting a
company by more than 90%.”
Mark Suster, Upfront Ventures
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
“[With AWS] … we can actually focus on
building stuff and getting it out to the
customer as fast as possible.”
Ash Crick, CTO
30 Developers 7 Months 1,000,000 customers
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How?
Run less software.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Rich Archbold,
Senior Director of Engineering
We can take steps to help us see, understand, decide and execute more
quickly and effectively than our competitors. This is the essence of what
the philosophy of Run Less Software is all about.
[…]
Function (also known as Serverless) is about to be the next big thing. AI is
potentially the next elephant waiting to enter the room. There are more
opportunities than ever to outsource your undifferentiated heavy lifting to
third parties.
https://blog.intercom.com/run-less-software/
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What is Serverless?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
It Started with AWS Lambda
Serverless Computing
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Events
Services (anything)
Lambda functions
Event driven
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Event-driven platform
S3 event
notifications
DynamoDB
Streams
Kinesis
events
Cognito
events
SNS
events
Custom
events
CloudTrail
events
LambdaDynamoDB
Kinesis S3
Any custom
Invoked in response to events
Changes in data-
Changes in state-
Redshift
SNS
Access any service,
including your own
Such as…
CloudWatch
events
Lambda functions
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Function – first class citizen
def handler(event, context):
return {
"message": ”Hello World!",
"event": event
}
Focus on solving business problems•
Reusable components•
Easier to isolate failure•
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Anatomy of a Lambda function
Handler() function
Function to be executed
upon invocation
Event object
Data sent during
Lambda Function
Invocation
Context object
Methods available to
interact with runtime
information (request ID,
log group, etc.)
def handler(event, context):
return {
"message": ”Hello World!",
"event": event
}
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Lambda execution model
Synchronous (push) Asynchronous (event) Stream-based
Amazon
API Gateway
AWS Lambda
function
Amazon
DynamoDB
Amazon
SNS
/api/hello
AWS Lambda
function
Amazon
S3
reqs
Amazon
Kinesis
changes
AWS Lambda
service
function
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
You can achieve massive scales with Lambda
processes 4,000 requests
per second
processes half a trillion
validations of stock
trades daily
reduced the time to
ingest and process data
for its analytics pipeline
by 97%
can handle spikes
of 80x normal traffic
triggers 1.2 billion
Lambda requests
each month
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Serverless is more than just functions.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Serverless
Scalability without server management.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Run less software.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Why Serverless?
No servers to manage
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Why Serverless?
Availability and Fault Tolerance Built In
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AZ1 AZ2 AZ3
Serverless Services
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Why Serverless?
Scale with usage
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Serverless distributed computing: PyWren
PyWren prototype developed at University of California, Berkeley
Uses Python with AWS Lambda stateless functions for large-scale data
analytics
Achieved @ 30-40 MB/s write and read performance per core to Amazon S3
object store
Scaled to 60-80 GB/s across 2,800 simultaneous functions
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Why Serverless?
Pay-per request
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Buy compute time in•
100 ms increments
No hourly, daily, or•
monthly minimums
No per• -device fees
Free Tier
1 million requests and 400,000 GBs of compute
every month, every customer
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Bustle.com
Bustle.com is a news, entertainment, lifestyle, and
fashion website:
52 million monthly users•
100 million events daily•
84% cost savings•
0 servers•
0 operating system patches•
Automatic scaling•
https://aws.amazon.com/solutions/case-studies/bustle/
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Why Lambda?
>95% decrease in overall deployment and operational costs
Scales up or down for variation in customer request volume
Migrating tasks to Lambda took only a few weeks
95% Reduction in Computation Cost
AWS Lambda enables the FICO Decision Management Suite (DMS)
to perform computations on machine learning models quickly, cheaply,
and efficiently
AWS Lambda
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Let’s talk about Serverless for…
• Apps & Services
• Data Streams & Analytics
• Development & Deployment
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Serverless for…
• Apps & Services
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Why are we always smiling in selfies?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
We made the front page!
Can we handle the load?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWSome
Selfie Challenge
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
The Results…
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWSome Selfie Challenge Architecture
Servers
How serverless helps startups innovate and scale
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Use by emergency authorities
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Flood scene recognition
Twitter: @lentisha
Elastic Beanstalk
cognicity-schema
Bot reply
cognicity-server
API Gateway
Users Mobile Client
Facebook
(PostgreSQL)
Static web content (AWS
CloudFront CDN)
cognicity-notification-service
Facebook
SNS
PetaBencana
Architecture
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Build PCI- and HIPAA-compliant serverless applications!
Serverless platform services that can be used in both:
AWS
Lambda
Amazon
S3
Amazon
CloudFront
Amazon
DynamoDB
Amazon
Kinesis
Streams
Amazon
Cognito
Amazon API
Gateway
Amazon
SNS
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Serverless for…
Apps & Services
• Data Streams & Analytics
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Kinesis makes it easy to work with real-
time streaming data
Amazon Kinesis
Streams
For Technical Developers•
Collect and stream data•
for ordered, replay-able,
real-time processing
Amazon Kinesis
Firehose
• For all developers, data
scientists
• Easily load massive
volumes of streaming data
into Amazon S3, Redshift,
ElasticSearch
Amazon Kinesis
Analytics
For all developers, data•
scientists
Easily analyze data•
streams using standard
SQL queries
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
“Amazon Kinesis does a lot of the
heavy lifting, and lets Supercell
focus on delivering games that
delight players worldwide.”
Sami Yliharju
Services Lead, Supercell Games
https://aws.amazon.com/solutions/case-studies/supercell/
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Real-time analytics for mobile web app
Amazon
Kinesis
Stream
Amazon
Kinesis
Analytics
Amazon
Cognito
Amazon
Kinesis
Stream
Amazon
DynamoDB
Amazon
Lambda
Amazon S3
JavaScript SDK
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Serverless for…
Apps & Services
Data Streams & Analytics
• Development & Deployment
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Typical development steps
Integration testing•
Load testing•
UI• tests
Security testing•
Commit•
Code review•
• Compile code
• Unit tests
• Style / linting
• Container image
Deploy• to
production
environment
Source Build Test Production
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DevOps – What is it?
Faster development → More experimentation & innovation → Customer happiness
developers customers
releasetestbuild
plan monitor
Distribution pipeline
Feedback mechanism
Automation for agile software development cycles
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
OK! Sounds good. What do I use?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS CodeStar
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Serverless for…
Apps & Services
Data Streams & Analytics
Development & Deployment
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
No servers to provision
or manage
Scales with usage
Never pay for idle Availability and fault
tolerance built in
Serverless means…
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS
Lambda
Amazon
S3
Amazon
DynamoDB
AWS
CodeDeploy
AWS
CodePipeline
AWS
CodeStar
Amazon
Kinesis
Amazon
Athena
Amazon
Lex
Amazon
Polly
Amazon
Rekognition
Amazon
Pinpoint
Amazon
Cognito
AWS Step
Functions
Amazon
SQS
Amazon
SNS
Amazon
SES
Amazon
Aurora
Serverless
Functions
DevOps
Queues & Notifications
Storage
Identity & App Analytics
AI Application Services Streams & Data Analytics
All of this is
“serverless.”
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Further Reading
AWS Serverless Computing & Applications
https://aws.amazon.com/serverless/
Serverless Architectures with AWS Lambda
https://d1.awsstatic.com/whitepapers/serverless-architectures-with-aws-lambda.pdf
Serverless Applications Lens - AWS Well-Architected Framework
https://d1.awsstatic.com/whitepapers/architecture/AWS-Serverless-Applications-Lens.pdf
Streaming Data Solutions on AWS with Amazon Kinesis
https://d1.awsstatic.com/whitepapers/whitepaper-streaming-data-solutions-on-aws-with-amazon-kinesis.pdf
AWS Serverless Multi-Tier Architectures
https://d1.awsstatic.com/whitepapers/AWS_Serverless_Multi-Tier_Archiectures.pdf
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Run less.
Deliver more.
Build on!
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Thank you!
@gabehollombe
Gabe Hollombe
Technical Evangelist, AWS

More Related Content

Similar to How serverless helps startups innovate and scale (20)

PDF
Introduction to Serverless
Steven Bryen
 
PPTX
awslambda-240508203904-07xsds253491.pptx
FarooqKhurshid1
 
PDF
Introduction to Serverless Computing and AWS Lambda - AWS IL Meetup
Boaz Ziniman
 
PDF
Modern Applications Development on AWS
Boaz Ziniman
 
PDF
Introduction to Serverless with AWS Lambda
Omar Fathy
 
PDF
Serverless use cases with AWS Lambda
Boaz Ziniman
 
PDF
Serverless use cases with AWS Lambda - More Serverless Event
Boaz Ziniman
 
PDF
Introduction to Serverless Computing - OOP Munich
Boaz Ziniman
 
PDF
AWSomeDay Zurich 2018 - How to go serverless
Roman Plessl
 
PDF
AWS Application Service Workshop - Serverless Architecture
John Yeung
 
PDF
Serverless Computing
Rushi Namani
 
PDF
Introducing to serverless computing and AWS lambda - Israel Clouds Meetup
Boaz Ziniman
 
PDF
Modern Applications Web Day | Impress Your Friends with Your First Serverless...
AWS Germany
 
PPTX
Primeros pasos en desarrollo serverless
javier ramirez
 
POTX
Serverless: State of The Union I AWS Dev Day 2018
AWS Germany
 
PDF
Introduction to Serverless computing and AWS Lambda - Floor28
Boaz Ziniman
 
PDF
Mainstream Serverless
Dhaval Nagar
 
PDF
Serverless on AWS: Architectural Patterns and Best Practices
Vladimir Simek
 
PDF
Getting Started with Serverless Architectures
Rohini Gaonkar
 
PDF
Wildrydes Serverless Workshop Tel Aviv
Boaz Ziniman
 
Introduction to Serverless
Steven Bryen
 
awslambda-240508203904-07xsds253491.pptx
FarooqKhurshid1
 
Introduction to Serverless Computing and AWS Lambda - AWS IL Meetup
Boaz Ziniman
 
Modern Applications Development on AWS
Boaz Ziniman
 
Introduction to Serverless with AWS Lambda
Omar Fathy
 
Serverless use cases with AWS Lambda
Boaz Ziniman
 
Serverless use cases with AWS Lambda - More Serverless Event
Boaz Ziniman
 
Introduction to Serverless Computing - OOP Munich
Boaz Ziniman
 
AWSomeDay Zurich 2018 - How to go serverless
Roman Plessl
 
AWS Application Service Workshop - Serverless Architecture
John Yeung
 
Serverless Computing
Rushi Namani
 
Introducing to serverless computing and AWS lambda - Israel Clouds Meetup
Boaz Ziniman
 
Modern Applications Web Day | Impress Your Friends with Your First Serverless...
AWS Germany
 
Primeros pasos en desarrollo serverless
javier ramirez
 
Serverless: State of The Union I AWS Dev Day 2018
AWS Germany
 
Introduction to Serverless computing and AWS Lambda - Floor28
Boaz Ziniman
 
Mainstream Serverless
Dhaval Nagar
 
Serverless on AWS: Architectural Patterns and Best Practices
Vladimir Simek
 
Getting Started with Serverless Architectures
Rohini Gaonkar
 
Wildrydes Serverless Workshop Tel Aviv
Boaz Ziniman
 

Recently uploaded (20)

PDF
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
PPTX
Chess King 25.0.0.2500 With Crack Full Free Download
cracked shares
 
PPTX
GALILEO CRS SYSTEM | GALILEO TRAVEL SOFTWARE
philipnathen82
 
PDF
AI Software Engineering based on Multi-view Modeling and Engineering Patterns
Hironori Washizaki
 
PPTX
slidesgo-unlocking-the-code-the-dynamic-dance-of-variables-and-constants-2024...
kr2589474
 
PDF
advancepresentationskillshdhdhhdhdhdhhfhf
jasmenrojas249
 
PDF
Applitools Platform Pulse: What's New and What's Coming - July 2025
Applitools
 
PPTX
ASSIGNMENT_1[1][1][1][1][1] (1) variables.pptx
kr2589474
 
PPT
Why Reliable Server Maintenance Service in New York is Crucial for Your Business
Sam Vohra
 
PPTX
ChessBase 18.02 Crack + Serial Key Free Download
cracked shares
 
PDF
MiniTool Power Data Recovery Crack New Pre Activated Version Latest 2025
imang66g
 
PDF
System Center 2025 vs. 2022; What’s new, what’s next_PDF.pdf
Q-Advise
 
PDF
Adobe Illustrator Crack Full Download (Latest Version 2025) Pre-Activated
imang66g
 
PDF
SAP GUI Installation Guide for macOS (iOS) | Connect to SAP Systems on Mac
SAP Vista, an A L T Z E N Company
 
PDF
Why Are More Businesses Choosing Partners Over Freelancers for Salesforce.pdf
Cymetrix Software
 
PDF
Troubleshooting Virtual Threads in Java!
Tier1 app
 
PDF
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
PDF
Summary Of Odoo 18.1 to 18.4 : The Way For Odoo 19
CandidRoot Solutions Private Limited
 
PPTX
TexSender Pro 8.9.1 Crack Full Version Download
cracked shares
 
PDF
Download iTop VPN Free 6.1.0.5882 Crack Full Activated Pre Latest 2025
imang66g
 
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
Chess King 25.0.0.2500 With Crack Full Free Download
cracked shares
 
GALILEO CRS SYSTEM | GALILEO TRAVEL SOFTWARE
philipnathen82
 
AI Software Engineering based on Multi-view Modeling and Engineering Patterns
Hironori Washizaki
 
slidesgo-unlocking-the-code-the-dynamic-dance-of-variables-and-constants-2024...
kr2589474
 
advancepresentationskillshdhdhhdhdhdhhfhf
jasmenrojas249
 
Applitools Platform Pulse: What's New and What's Coming - July 2025
Applitools
 
ASSIGNMENT_1[1][1][1][1][1] (1) variables.pptx
kr2589474
 
Why Reliable Server Maintenance Service in New York is Crucial for Your Business
Sam Vohra
 
ChessBase 18.02 Crack + Serial Key Free Download
cracked shares
 
MiniTool Power Data Recovery Crack New Pre Activated Version Latest 2025
imang66g
 
System Center 2025 vs. 2022; What’s new, what’s next_PDF.pdf
Q-Advise
 
Adobe Illustrator Crack Full Download (Latest Version 2025) Pre-Activated
imang66g
 
SAP GUI Installation Guide for macOS (iOS) | Connect to SAP Systems on Mac
SAP Vista, an A L T Z E N Company
 
Why Are More Businesses Choosing Partners Over Freelancers for Salesforce.pdf
Cymetrix Software
 
Troubleshooting Virtual Threads in Java!
Tier1 app
 
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
Summary Of Odoo 18.1 to 18.4 : The Way For Odoo 19
CandidRoot Solutions Private Limited
 
TexSender Pro 8.9.1 Crack Full Version Download
cracked shares
 
Download iTop VPN Free 6.1.0.5882 Crack Full Activated Pre Latest 2025
imang66g
 
Ad

How serverless helps startups innovate and scale

  • 1. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Gabe Hollombe Developer &Technical Evangelist, Amazon Web Services @gabehollombe How Serverless Helps Startups Innovate and Scale 5 April, 2018
  • 2. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Gabe Hollombe Software Developer & Evangelist, Amazon Web Services 15+ years writing all sorts of software EdTech ⇢ Agile/XP Consulting ⇢ Nano-satellites ⇢ AWS Web / Ruby / Python / Node / C# / Clojure Bad puns, old whiskey, clean code @gabehollombe
  • 3. AWS Customers in Southeast Asia
  • 4. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. “Software is eating the world.” Marc Andreessen, Andreessen Horowitz
  • 5. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. “Any new business should consider going 100% cloud from the start.” Marc Andreessen, Andreessen Horowitz
  • 6. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Why?
  • 7. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Because you can test your idea, very quickly, for little money. Then, if you are on to something, you can scale, rapidly.
  • 8. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. “Cloud computing and the open source movements have brought down the costs of starting a company by more than 90%.” Mark Suster, Upfront Ventures
  • 9. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. “[With AWS] … we can actually focus on building stuff and getting it out to the customer as fast as possible.” Ash Crick, CTO 30 Developers 7 Months 1,000,000 customers
  • 10. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How? Run less software.
  • 11. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Rich Archbold, Senior Director of Engineering We can take steps to help us see, understand, decide and execute more quickly and effectively than our competitors. This is the essence of what the philosophy of Run Less Software is all about. […] Function (also known as Serverless) is about to be the next big thing. AI is potentially the next elephant waiting to enter the room. There are more opportunities than ever to outsource your undifferentiated heavy lifting to third parties. https://blog.intercom.com/run-less-software/
  • 12. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What is Serverless?
  • 13. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. It Started with AWS Lambda Serverless Computing
  • 14. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Events Services (anything) Lambda functions Event driven
  • 15. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Event-driven platform S3 event notifications DynamoDB Streams Kinesis events Cognito events SNS events Custom events CloudTrail events LambdaDynamoDB Kinesis S3 Any custom Invoked in response to events Changes in data- Changes in state- Redshift SNS Access any service, including your own Such as… CloudWatch events Lambda functions
  • 16. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Function – first class citizen def handler(event, context): return { "message": ”Hello World!", "event": event } Focus on solving business problems• Reusable components• Easier to isolate failure•
  • 17. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Anatomy of a Lambda function Handler() function Function to be executed upon invocation Event object Data sent during Lambda Function Invocation Context object Methods available to interact with runtime information (request ID, log group, etc.) def handler(event, context): return { "message": ”Hello World!", "event": event }
  • 18. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lambda execution model Synchronous (push) Asynchronous (event) Stream-based Amazon API Gateway AWS Lambda function Amazon DynamoDB Amazon SNS /api/hello AWS Lambda function Amazon S3 reqs Amazon Kinesis changes AWS Lambda service function
  • 19. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. You can achieve massive scales with Lambda processes 4,000 requests per second processes half a trillion validations of stock trades daily reduced the time to ingest and process data for its analytics pipeline by 97% can handle spikes of 80x normal traffic triggers 1.2 billion Lambda requests each month
  • 20. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Serverless is more than just functions.
  • 21. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Serverless Scalability without server management.
  • 22. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Run less software.
  • 23. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Why Serverless? No servers to manage
  • 24. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 25. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Why Serverless? Availability and Fault Tolerance Built In
  • 26. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AZ1 AZ2 AZ3 Serverless Services
  • 27. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Why Serverless? Scale with usage
  • 28. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 29. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 30. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 31. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Serverless distributed computing: PyWren PyWren prototype developed at University of California, Berkeley Uses Python with AWS Lambda stateless functions for large-scale data analytics Achieved @ 30-40 MB/s write and read performance per core to Amazon S3 object store Scaled to 60-80 GB/s across 2,800 simultaneous functions
  • 32. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Why Serverless? Pay-per request
  • 33. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Buy compute time in• 100 ms increments No hourly, daily, or• monthly minimums No per• -device fees Free Tier 1 million requests and 400,000 GBs of compute every month, every customer
  • 34. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Bustle.com Bustle.com is a news, entertainment, lifestyle, and fashion website: 52 million monthly users• 100 million events daily• 84% cost savings• 0 servers• 0 operating system patches• Automatic scaling• https://aws.amazon.com/solutions/case-studies/bustle/
  • 35. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Why Lambda? >95% decrease in overall deployment and operational costs Scales up or down for variation in customer request volume Migrating tasks to Lambda took only a few weeks 95% Reduction in Computation Cost AWS Lambda enables the FICO Decision Management Suite (DMS) to perform computations on machine learning models quickly, cheaply, and efficiently AWS Lambda
  • 36. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Let’s talk about Serverless for… • Apps & Services • Data Streams & Analytics • Development & Deployment
  • 37. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Serverless for… • Apps & Services
  • 38. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Why are we always smiling in selfies?
  • 39. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. We made the front page! Can we handle the load?
  • 40. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWSome Selfie Challenge
  • 41. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. The Results…
  • 42. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWSome Selfie Challenge Architecture Servers
  • 44. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Use by emergency authorities
  • 45. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Flood scene recognition Twitter: @lentisha
  • 46. Elastic Beanstalk cognicity-schema Bot reply cognicity-server API Gateway Users Mobile Client Facebook (PostgreSQL) Static web content (AWS CloudFront CDN) cognicity-notification-service Facebook SNS PetaBencana Architecture
  • 47. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Build PCI- and HIPAA-compliant serverless applications! Serverless platform services that can be used in both: AWS Lambda Amazon S3 Amazon CloudFront Amazon DynamoDB Amazon Kinesis Streams Amazon Cognito Amazon API Gateway Amazon SNS
  • 48. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Serverless for… Apps & Services • Data Streams & Analytics
  • 49. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Kinesis makes it easy to work with real- time streaming data Amazon Kinesis Streams For Technical Developers• Collect and stream data• for ordered, replay-able, real-time processing Amazon Kinesis Firehose • For all developers, data scientists • Easily load massive volumes of streaming data into Amazon S3, Redshift, ElasticSearch Amazon Kinesis Analytics For all developers, data• scientists Easily analyze data• streams using standard SQL queries
  • 50. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 51. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. “Amazon Kinesis does a lot of the heavy lifting, and lets Supercell focus on delivering games that delight players worldwide.” Sami Yliharju Services Lead, Supercell Games https://aws.amazon.com/solutions/case-studies/supercell/
  • 52. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Real-time analytics for mobile web app Amazon Kinesis Stream Amazon Kinesis Analytics Amazon Cognito Amazon Kinesis Stream Amazon DynamoDB Amazon Lambda Amazon S3 JavaScript SDK
  • 53. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Serverless for… Apps & Services Data Streams & Analytics • Development & Deployment
  • 54. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Typical development steps Integration testing• Load testing• UI• tests Security testing• Commit• Code review• • Compile code • Unit tests • Style / linting • Container image Deploy• to production environment Source Build Test Production
  • 55. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. DevOps – What is it? Faster development → More experimentation & innovation → Customer happiness developers customers releasetestbuild plan monitor Distribution pipeline Feedback mechanism Automation for agile software development cycles
  • 56. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. OK! Sounds good. What do I use?
  • 57. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS CodeStar
  • 58. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 59. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 60. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Serverless for… Apps & Services Data Streams & Analytics Development & Deployment
  • 61. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. No servers to provision or manage Scales with usage Never pay for idle Availability and fault tolerance built in Serverless means…
  • 62. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Lambda Amazon S3 Amazon DynamoDB AWS CodeDeploy AWS CodePipeline AWS CodeStar Amazon Kinesis Amazon Athena Amazon Lex Amazon Polly Amazon Rekognition Amazon Pinpoint Amazon Cognito AWS Step Functions Amazon SQS Amazon SNS Amazon SES Amazon Aurora Serverless Functions DevOps Queues & Notifications Storage Identity & App Analytics AI Application Services Streams & Data Analytics All of this is “serverless.”
  • 63. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Further Reading AWS Serverless Computing & Applications https://aws.amazon.com/serverless/ Serverless Architectures with AWS Lambda https://d1.awsstatic.com/whitepapers/serverless-architectures-with-aws-lambda.pdf Serverless Applications Lens - AWS Well-Architected Framework https://d1.awsstatic.com/whitepapers/architecture/AWS-Serverless-Applications-Lens.pdf Streaming Data Solutions on AWS with Amazon Kinesis https://d1.awsstatic.com/whitepapers/whitepaper-streaming-data-solutions-on-aws-with-amazon-kinesis.pdf AWS Serverless Multi-Tier Architectures https://d1.awsstatic.com/whitepapers/AWS_Serverless_Multi-Tier_Archiectures.pdf
  • 64. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Run less. Deliver more. Build on!
  • 65. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Thank you! @gabehollombe Gabe Hollombe Technical Evangelist, AWS