SlideShare a Scribd company logo
Serverless Computing
With AWS
01/03/2018
By Timothee
What is serverless
computing?
Definition
● Managing functions,
not apps or servers
● Tasks triggered by
events
● Wikipedia:
○ “Serverless
computing is a cloud
computing execution
model in which the
cloud provider
dynamically manages
the allocation of the
machine resources”.
Comparison of the main cloud providers
● AWS Lambda: Built-in versioning with traffic split,
staging environments, good online IDE
● Azure Functions: A few advantages over AWS Lambda
like support of F# and PowerShell but more limited for
C# (single file) and Java (preview)
● Google Cloud Functions: Only Node.js and still in beta
AWS Lambda online IDE (Cloud 9)
Why should we care
about serverless
computing?
“Let’s build Craigslist!”
Let’s build
Craigslist!
Designing with and without
serverless computing
● Marketplace to buy and sell
second-hand items
● 100+ million unique visitors
per month
● Simple website with login
● No need to create an
account or to share an
email address to contact
someone
○ Two-way anonymous email
system
Anonymous email system without serverless
● What do we need?
● Setting up email system (on-premise or hosted)
● Database to know which emails have been processed
● Distributed fault-tolerant job that regularly reads the inbox, check
the database, and send emails
● Setting up the database and backend servers (deployment,
monitoring, load balancing, security).
● Estimated implementation time?
● What is a two-way anonymous email system?
● A@gmail.com sends an email to
{encrypt(“B@gmail.com”)}@craigslist.com
● The system should send the same email from
{encrypt(“A@gmail.com”)}@craiglist.com to B@gmail.com
Anonymous email system with serverless
● What do we need?
● Configuring AWS Simple Email Server (SES) to receive emails
● One AWS Lambda function!
● Event: Email received by AWS SES
● Action:
○ Encrypt and decrypt email addresses
○ Create new email with the same body and attachments
○ Send the email
● Estimated implementation time?
● Less than one day!
Advantages of serverless computing
● Integrated cloud services
● Automatic scaling
● Built-in fault tolerance
● Built-in security
● Built-in monitoring/alerts
● Built-in logging per execution (easier to read logs)
● Fast and easy deployment
● Isolated sandbox environment (less issues with CPU,
memory and thread resources)
● Don’t pay for idle time
Limitations of
AWS Lambda
3 years ago and now
AWS Lambda in its early days
AWS Lambda launched in November 2014 and had a fair
amount of limitations:
● High latency (~1 second)
● Supports only Node.js
● Everything in a single file
● No staging environment, no versioning
● API endpoints always returning 202
● Hard to write AWS Lambda functions outside the
online editor (no local emulator).
AWS Lambda today
● Lower latency (~100 ms)
● Support for multiple files
● More languages: Node.js, Python, Java 8, C# and Go
● Java: upload your jar file. Convenient for unit testing,
Git, continuous delivery.
● Better online IDE (Cloud9)
● Versioning with traffic split (e.g 99% on v1.2, 1% on v1.3)
● API endpoints with custom HTTP responses and
staging environments thanks to AWS API Gateway
Remaining limitations
● Latency is not negligible and not predictable (~100ms)
● Short actions (less than 5 minutes)
● Less than 250MB of uncompressed code
● Not easy to manage hundreds of AWS Lambda
functions
● Not good for local caches
Summary
When is serverless computing useful?
● Good for short background independent tasks,
triggered with timers or HTTP calls
● Not always good for Web API endpoints (extra latency,
dependencies between CRUD operations)
Questions
Sources
● Images:
○ https://www.slideshare.net/AmazonWebServices/getting-started-
with-aws-lambda-and-serverless-computing-79032206
○ https://docs.aws.amazon.com/cloud9/latest/user-guide/lambda-fu
nctions.html

More Related Content

PDF
AWS Bulgaria: Re:invent 2017 Recap
PPTX
Amazon WebServices lection 1
PDF
SoCal NodeJS Meetup 20170215_aws_lambda
PDF
Netflix Cloud Platform and Open Source
PPT
Amazon Webservice & Cloud Computing
PDF
Front End Orlando - AWS Lambda
PPTX
Cloudsolutionday 2016: Docker & FAAS at getvero.com
PDF
The future of cloud programming
AWS Bulgaria: Re:invent 2017 Recap
Amazon WebServices lection 1
SoCal NodeJS Meetup 20170215_aws_lambda
Netflix Cloud Platform and Open Source
Amazon Webservice & Cloud Computing
Front End Orlando - AWS Lambda
Cloudsolutionday 2016: Docker & FAAS at getvero.com
The future of cloud programming

What's hot (20)

PDF
Matt Chung (Independent) - Serverless application with AWS Lambda
PDF
Serverless Framework (2018)
PDF
AWS KSS
PPTX
Big data school AWS
PDF
The Journey To Serverless At Home24 - reflections and insights
PDF
Serverless Microservices w/ AWS Lambda and node.js
PPTX
Codestrong 2012 breakout session building your own custom cloud services
PPTX
Leonard Austin (Ravelin) - DevOps in a Machine Learning World
PPTX
How Docker Accelerates Continuous Development at ironSource: Containers #101 ...
PPT
Escalabilidade com Lambda e Elastic Beanstalk – Parte I
PDF
AWS Lambda + AWS Cloudformation
PPTX
Azure functions
PDF
Brendon Foxen (Channel 4) - Speeding up Software Delivery at Channel 4
PDF
The great migration embracing serverless first
PPTX
Serverless Reality
PPTX
OTP System with AWS Serverless
PDF
Aws meetup 2017-02-09-role-auto-scaling
PPTX
Using AWS Lambda for Infrastructure Automation and Beyond
PPTX
WebDriver Lamda - Next Gen Scalable Test
PPT
MongoDB at community engine
Matt Chung (Independent) - Serverless application with AWS Lambda
Serverless Framework (2018)
AWS KSS
Big data school AWS
The Journey To Serverless At Home24 - reflections and insights
Serverless Microservices w/ AWS Lambda and node.js
Codestrong 2012 breakout session building your own custom cloud services
Leonard Austin (Ravelin) - DevOps in a Machine Learning World
How Docker Accelerates Continuous Development at ironSource: Containers #101 ...
Escalabilidade com Lambda e Elastic Beanstalk – Parte I
AWS Lambda + AWS Cloudformation
Azure functions
Brendon Foxen (Channel 4) - Speeding up Software Delivery at Channel 4
The great migration embracing serverless first
Serverless Reality
OTP System with AWS Serverless
Aws meetup 2017-02-09-role-auto-scaling
Using AWS Lambda for Infrastructure Automation and Beyond
WebDriver Lamda - Next Gen Scalable Test
MongoDB at community engine
Ad

Similar to Serverless Computing with AWS (20)

PPTX
awslambda-240508203904-07xsds253491.pptx
PDF
Designing Serverless Architectures on AWS
PDF
Introduction to Serverless Computing - OOP Munich
PDF
Introduction to Serverless with AWS Lambda
PPTX
Primeros pasos en desarrollo serverless
PDF
Serverless presentation
PDF
20180111 we bde-bs - serverless url shortener
PDF
Serverless Computing
PDF
AWSomeDay Zurich 2018 - How to go serverless
PDF
Introduction to AWS Lambda with Python
PPTX
Introduction To AWS & AWS Lambda
PDF
"Node.js and Serverless" Viacheslav Panevskyi
PDF
Montréal AWS Users United: Let's go Serverless!
PDF
Serverless Architecture - A Gentle Overview
PDF
Serverless - The Future of the Cloud?!
POTX
Serverless: State of The Union I AWS Dev Day 2018
PDF
20200803 - Serverless with AWS @ HELTECH
PDF
Introduction to Serverless Computing and AWS Lambda - AWS IL Meetup
PDF
Serverless architectures-with-aws-lambda
PPTX
Lambda and serverless - DevOps North East Jan 2017
awslambda-240508203904-07xsds253491.pptx
Designing Serverless Architectures on AWS
Introduction to Serverless Computing - OOP Munich
Introduction to Serverless with AWS Lambda
Primeros pasos en desarrollo serverless
Serverless presentation
20180111 we bde-bs - serverless url shortener
Serverless Computing
AWSomeDay Zurich 2018 - How to go serverless
Introduction to AWS Lambda with Python
Introduction To AWS & AWS Lambda
"Node.js and Serverless" Viacheslav Panevskyi
Montréal AWS Users United: Let's go Serverless!
Serverless Architecture - A Gentle Overview
Serverless - The Future of the Cloud?!
Serverless: State of The Union I AWS Dev Day 2018
20200803 - Serverless with AWS @ HELTECH
Introduction to Serverless Computing and AWS Lambda - AWS IL Meetup
Serverless architectures-with-aws-lambda
Lambda and serverless - DevOps North East Jan 2017
Ad

Recently uploaded (20)

PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Nekopoi APK 2025 free lastest update
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PPTX
Essential Infomation Tech presentation.pptx
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Understanding Forklifts - TECH EHS Solution
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
medical staffing services at VALiNTRY
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
history of c programming in notes for students .pptx
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Nekopoi APK 2025 free lastest update
Design an Analysis of Algorithms II-SECS-1021-03
2025 Textile ERP Trends: SAP, Odoo & Oracle
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Essential Infomation Tech presentation.pptx
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Understanding Forklifts - TECH EHS Solution
How Creative Agencies Leverage Project Management Software.pdf
medical staffing services at VALiNTRY
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
CHAPTER 2 - PM Management and IT Context
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
How to Choose the Right IT Partner for Your Business in Malaysia
history of c programming in notes for students .pptx
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus

Serverless Computing with AWS

  • 3. Definition ● Managing functions, not apps or servers ● Tasks triggered by events ● Wikipedia: ○ “Serverless computing is a cloud computing execution model in which the cloud provider dynamically manages the allocation of the machine resources”.
  • 4. Comparison of the main cloud providers ● AWS Lambda: Built-in versioning with traffic split, staging environments, good online IDE ● Azure Functions: A few advantages over AWS Lambda like support of F# and PowerShell but more limited for C# (single file) and Java (preview) ● Google Cloud Functions: Only Node.js and still in beta
  • 5. AWS Lambda online IDE (Cloud 9)
  • 6. Why should we care about serverless computing?
  • 8. Let’s build Craigslist! Designing with and without serverless computing ● Marketplace to buy and sell second-hand items ● 100+ million unique visitors per month ● Simple website with login ● No need to create an account or to share an email address to contact someone ○ Two-way anonymous email system
  • 9. Anonymous email system without serverless ● What do we need? ● Setting up email system (on-premise or hosted) ● Database to know which emails have been processed ● Distributed fault-tolerant job that regularly reads the inbox, check the database, and send emails ● Setting up the database and backend servers (deployment, monitoring, load balancing, security). ● Estimated implementation time? ● What is a two-way anonymous email system? ● A@gmail.com sends an email to {encrypt(“B@gmail.com”)}@craigslist.com ● The system should send the same email from {encrypt(“A@gmail.com”)}@craiglist.com to B@gmail.com
  • 10. Anonymous email system with serverless ● What do we need? ● Configuring AWS Simple Email Server (SES) to receive emails ● One AWS Lambda function! ● Event: Email received by AWS SES ● Action: ○ Encrypt and decrypt email addresses ○ Create new email with the same body and attachments ○ Send the email ● Estimated implementation time? ● Less than one day!
  • 11. Advantages of serverless computing ● Integrated cloud services ● Automatic scaling ● Built-in fault tolerance ● Built-in security ● Built-in monitoring/alerts ● Built-in logging per execution (easier to read logs) ● Fast and easy deployment ● Isolated sandbox environment (less issues with CPU, memory and thread resources) ● Don’t pay for idle time
  • 12. Limitations of AWS Lambda 3 years ago and now
  • 13. AWS Lambda in its early days AWS Lambda launched in November 2014 and had a fair amount of limitations: ● High latency (~1 second) ● Supports only Node.js ● Everything in a single file ● No staging environment, no versioning ● API endpoints always returning 202 ● Hard to write AWS Lambda functions outside the online editor (no local emulator).
  • 14. AWS Lambda today ● Lower latency (~100 ms) ● Support for multiple files ● More languages: Node.js, Python, Java 8, C# and Go ● Java: upload your jar file. Convenient for unit testing, Git, continuous delivery. ● Better online IDE (Cloud9) ● Versioning with traffic split (e.g 99% on v1.2, 1% on v1.3) ● API endpoints with custom HTTP responses and staging environments thanks to AWS API Gateway
  • 15. Remaining limitations ● Latency is not negligible and not predictable (~100ms) ● Short actions (less than 5 minutes) ● Less than 250MB of uncompressed code ● Not easy to manage hundreds of AWS Lambda functions ● Not good for local caches
  • 17. When is serverless computing useful? ● Good for short background independent tasks, triggered with timers or HTTP calls ● Not always good for Web API endpoints (extra latency, dependencies between CRUD operations)