SlideShare uma empresa Scribd logo
1 de 19
Baixar para ler offline
SERVERLESS SERVICES ON AWS
Mikael Puittinen, CTO
mikael.puittinen@sc5.io
@mpuittinen
1
15.6.2016
SOME AWS SERVICES FOR DEVELOPERS (8 OUT
OF 55)
COMPUTE
Lambda 2014
STORAGE
S3 (Simple Storage Service) 2006
DATABASE
DynamoDB 2012
MOBILE SERVICES
SNS (Simple NotificationService)
INTERNET OF THINGS
IoT 2015
APPLICATION SERVICES
API Gateway 2015
SES (Simple Email Service) 2011
SQS (Simple Queue Service) 2006
Building blocks for digital services
SAMPLE BLOG EXERCISE
ARCHITECTURE
3
AWS SERVERLESS WORKSHOP BLOG
APPLICATION
Example 2
2. Web app
communicates with
API Gateway for
blog content
1. Application static assets (HTML,
CSS, JS) served from S3 bucket.
5. Blog data
managed in
DynamoDB
database
http://hackathon-blog.serverless.fi
3. API Gateway invokes
Lambda for incoming
requests
4. Lambda reads /
writes blog data
from DynamoDB
See workshop at http://hackathon.serverless.fi/workshop.pdf
SIMPLE STORAGE SERVICE (S3)
§ (Unlimited) file storage service
§ Application internal files
§ Static web content (e.g.
application HTML / CSS / JS /
image assets)
§ Can be complemented with
Cloudfront CDN to optimize
costs and performance
Serverless Storage
my-s3-bucket.company.com
PRICING: Storage volume + amount of requests
AWS LAMBDA
§ Compute service for running
code (functions) in AWS
§ Event driven (API Gateway,
SNS, SES, S3, DynamoDB,
Schedule, …)
§ Provision memory & max time
required by single function run
§ Additional ”instances” spawned
automatically
Serverless Compute
myFunction
PRICING: Utilized gigabyteseconds (rounded to 100ms)
API GATEWAY
§ AWS Service to implement REST
(and other) APIs
§ Security via API Keys, customer
authorizers (Lambda)
§ Connect to e.g. Lambda to publish
your functions as REST interfaces
§ Input / Output mapping (e.g. URL
parameters -> JSON)
§ No need for provisioning
Serverless API Management
PRICING: # of requests + data transfer + cache size
INPUT
MAPPING
OUTPUT
MAPPING
AUTHORI-
ZATION
JSON JSON
HTTPS
DYNAMODB
§ noSQL database provided by AWS
§ noSQL: scalable non-relational database with focus on speed
§ Work with tables and indices, no server instances to manage
§ Need to provision read / write capacity per table / index
Serverless Database
PRICING: Provisioned read / write capacity and storage (over 25Gb)
SERVERLESS WORKSHOP
If you are interested in getting hands-on experience,
please check out our serverless workshop at
http://hackathon.serverless.fi/workshop.pdf
OTHER AWS MANAGED SERVICES &
EXAMPLES
10
SIMPLE NOTIFICATION SERVICE (SNS)
§ Push notification service
§ Delivery not guaranteed
§ nly targeted for mobile
notifications
§ Can also be used for triggering
e.g. Lambda functions, mobile,
email notifications
Serverless push notifications
PRICING: Amount of messages
1
SUBSCRIBE
PUBLISH
SIMPLE QUEUE SERVICE (SQS)
§ Message queue service (pull)
§ Delivery Guaranteed (order not
guaranteed)
§ Prevent messages being
handled by multiple workers
§ Can be handled e.g. by Lambda
using a scheduled function
Serverless queue
PRICING: Amount of messages
(SCHEDULED)
PULL
PUBLISH
AWS IOT
§ Device registry + API for communicating with devices + automated
actions (Rules)
§ Authentication of devices
§ Devices can send current state and retrieve desired state over
MQTT, Websocket
§ Can perform actions based on rules (e.g. Temperature reading from
a specific sensor is out of bounds)
Integrate with devices
PRICING: Amount of messages
CLOUD NATIVE APPLICATION
ARCHITECTURE À LA SC5
Reference Architecture
AWS IoT
Amazon
S3
Amazon
DynamoDB
Amazon
RDS
Amazon
SNS
Amazon API
Gateway
AWS
Lambda
E.g.App assets
(HTML5)
App
Notifications
App Data
(REST)
Device data
(MQTT)
Compute Database
Serverless Development
Framework
SERVERLESS FRAMEWORK
16
SERVERLESS FRAMEWORK
§ Node.js based framework for
development and deployment
of AWS Lambda-based
solutions
§ Extendible via plugins
§ Initially JAWS but rebranded
to Serverless in Dec 2015
> npm install –g serverless
> sls project create
> sls resources deploy
> sls function create
> sls function deploy
> sls endpoint deploy
> …
SC5 BRIEFLY
CLOUD
SOLUTIONS
BUSINESS
APPLICATIONS
DIGITAL
DESIGN
10
YEARS
60+
CUSTOMERS
200+
PROJECTS
HEL
JKL
75
HACKERS
DESIGNERS
6
MEUR
2015
THANKS A LOT!
https://sc5.io

Mais conteúdo relacionado

Mais procurados

基于Aws的dev ops实践指南 王毅
基于Aws的dev ops实践指南 王毅基于Aws的dev ops实践指南 王毅
基于Aws的dev ops实践指南 王毅
Mason Mei
 

Mais procurados (20)

Let's Talk About Serverless - Focusing on AWS Lambda
Let's Talk About Serverless - Focusing on AWS LambdaLet's Talk About Serverless - Focusing on AWS Lambda
Let's Talk About Serverless - Focusing on AWS Lambda
 
Artificial Intelligence & Machine learning foundation topic in AWS
Artificial Intelligence & Machine learning foundation topic in AWS Artificial Intelligence & Machine learning foundation topic in AWS
Artificial Intelligence & Machine learning foundation topic in AWS
 
Azure App Services для создания бэкенда мобильных приложений. Parse Open Sour...
Azure App Services для создания бэкенда мобильных приложений. Parse Open Sour...Azure App Services для создания бэкенда мобильных приложений. Parse Open Sour...
Azure App Services для создания бэкенда мобильных приложений. Parse Open Sour...
 
Using AWS Lambda for Infrastructure Automation and Beyond
Using AWS Lambda for Infrastructure Automation and BeyondUsing AWS Lambda for Infrastructure Automation and Beyond
Using AWS Lambda for Infrastructure Automation and Beyond
 
Serverless Architecture
Serverless ArchitectureServerless Architecture
Serverless Architecture
 
Building Automated Control Systems for Your AWS Infrastructure
Building Automated Control Systems for Your AWS InfrastructureBuilding Automated Control Systems for Your AWS Infrastructure
Building Automated Control Systems for Your AWS Infrastructure
 
Microservice Architecture on AWS using AWS Lambda and Docker Containers
Microservice Architecture on AWS using AWS Lambda and Docker ContainersMicroservice Architecture on AWS using AWS Lambda and Docker Containers
Microservice Architecture on AWS using AWS Lambda and Docker Containers
 
Azure App Service Architecture. Web Apps.
Azure App Service Architecture. Web Apps.Azure App Service Architecture. Web Apps.
Azure App Service Architecture. Web Apps.
 
Colorado Cloud Foundry Meeting
Colorado Cloud Foundry Meeting Colorado Cloud Foundry Meeting
Colorado Cloud Foundry Meeting
 
Serverless Architecture
Serverless ArchitectureServerless Architecture
Serverless Architecture
 
To Serverless And Beyond!
To Serverless And Beyond!To Serverless And Beyond!
To Serverless And Beyond!
 
Continuous delivery with azure app service
Continuous delivery with azure app serviceContinuous delivery with azure app service
Continuous delivery with azure app service
 
ESPC15 - Introduction to AngularJS in an Office 365 context
ESPC15 - Introduction to AngularJS in an Office 365 contextESPC15 - Introduction to AngularJS in an Office 365 context
ESPC15 - Introduction to AngularJS in an Office 365 context
 
Continuous Delivery with AWS Lambda - AWS April 2016 Webinar Series
Continuous Delivery with AWS Lambda - AWS April 2016 Webinar SeriesContinuous Delivery with AWS Lambda - AWS April 2016 Webinar Series
Continuous Delivery with AWS Lambda - AWS April 2016 Webinar Series
 
Thinking Asynchronously Full Vesion - Utah UG
Thinking Asynchronously Full Vesion - Utah UGThinking Asynchronously Full Vesion - Utah UG
Thinking Asynchronously Full Vesion - Utah UG
 
Choosing the right messaging service for your serverless app [with lumigo]
Choosing the right messaging service for your serverless app [with lumigo]Choosing the right messaging service for your serverless app [with lumigo]
Choosing the right messaging service for your serverless app [with lumigo]
 
Azure App Service
Azure App ServiceAzure App Service
Azure App Service
 
基于Aws的dev ops实践指南 王毅
基于Aws的dev ops实践指南 王毅基于Aws的dev ops实践指南 王毅
基于Aws的dev ops实践指南 王毅
 
Getting Started with Amazon EventBridge
Getting Started with Amazon EventBridgeGetting Started with Amazon EventBridge
Getting Started with Amazon EventBridge
 
2013 - Back to the Future with Client/Server Development
2013 - Back to the Future with Client/Server Development 2013 - Back to the Future with Client/Server Development
2013 - Back to the Future with Client/Server Development
 

Destaque

Destaque (12)

Real-time image sharing
Real-time image sharingReal-time image sharing
Real-time image sharing
 
Building Serverless with Firebase
Building Serverless with FirebaseBuilding Serverless with Firebase
Building Serverless with Firebase
 
Firebase Adventures - Going above and beyond in Realtime
Firebase Adventures - Going above and beyond in RealtimeFirebase Adventures - Going above and beyond in Realtime
Firebase Adventures - Going above and beyond in Realtime
 
Firebase
FirebaseFirebase
Firebase
 
Firebase - cloud based real time database
Firebase - cloud based real time databaseFirebase - cloud based real time database
Firebase - cloud based real time database
 
Firebase presentation
Firebase presentationFirebase presentation
Firebase presentation
 
Introduction to Firebase from Google
Introduction to Firebase from GoogleIntroduction to Firebase from Google
Introduction to Firebase from Google
 
使用 Angular 2 與 Firebase 實現 Serverless 網站架構 (JSDC.tw 2016)
使用 Angular 2 與 Firebase 實現 Serverless 網站架構 (JSDC.tw 2016)使用 Angular 2 與 Firebase 實現 Serverless 網站架構 (JSDC.tw 2016)
使用 Angular 2 與 Firebase 實現 Serverless 網站架構 (JSDC.tw 2016)
 
The Wisdom of David Henke
The Wisdom of David HenkeThe Wisdom of David Henke
The Wisdom of David Henke
 
Microservices Workshop All Topics Deck 2016
Microservices Workshop All Topics Deck 2016Microservices Workshop All Topics Deck 2016
Microservices Workshop All Topics Deck 2016
 
Realtime Database with iOS and Firebase
Realtime Database with iOS and FirebaseRealtime Database with iOS and Firebase
Realtime Database with iOS and Firebase
 
AWS re:Invent 2016: ↑↑↓↓←→←→ BA Lambda Start (SVR305)
AWS re:Invent 2016: ↑↑↓↓←→←→ BA Lambda Start (SVR305)AWS re:Invent 2016: ↑↑↓↓←→←→ BA Lambda Start (SVR305)
AWS re:Invent 2016: ↑↑↓↓←→←→ BA Lambda Start (SVR305)
 

Semelhante a Helsinki Serverless Meetup 15.6.2016 : AWS Services

AWS re:Invent 2020 Serverless Recap
AWS re:Invent 2020 Serverless RecapAWS re:Invent 2020 Serverless Recap
AWS re:Invent 2020 Serverless Recap
Daniel Zivkovic
 

Semelhante a Helsinki Serverless Meetup 15.6.2016 : AWS Services (20)

Introduction to AWS Lambda with Python
Introduction to AWS Lambda with PythonIntroduction to AWS Lambda with Python
Introduction to AWS Lambda with Python
 
AWS re:Invent 2020 Serverless Recap
AWS re:Invent 2020 Serverless RecapAWS re:Invent 2020 Serverless Recap
AWS re:Invent 2020 Serverless Recap
 
Serverless Architecture
Serverless ArchitectureServerless Architecture
Serverless Architecture
 
Build an App on AWS for Your First 10 Million Users
Build an App on AWS for Your First 10 Million UsersBuild an App on AWS for Your First 10 Million Users
Build an App on AWS for Your First 10 Million Users
 
AWS and Serverless Computing
AWS and Serverless ComputingAWS and Serverless Computing
AWS and Serverless Computing
 
AWS Accelerated Program - Session 3 - Serverless Services.pptx
AWS Accelerated Program - Session 3 - Serverless Services.pptxAWS Accelerated Program - Session 3 - Serverless Services.pptx
AWS Accelerated Program - Session 3 - Serverless Services.pptx
 
SRV203 Getting Started with AWS Lambda and the Serverless Cloud
SRV203 Getting Started with AWS Lambda and the Serverless CloudSRV203 Getting Started with AWS Lambda and the Serverless Cloud
SRV203 Getting Started with AWS Lambda and the Serverless Cloud
 
Getting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless CloudGetting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless Cloud
 
AWS Serverless with Lambda, ApiGateway
AWS Serverless with Lambda, ApiGatewayAWS Serverless with Lambda, ApiGateway
AWS Serverless with Lambda, ApiGateway
 
Build an App on AWS for Your First 10 Million Users
Build an App on AWS for Your First 10 Million UsersBuild an App on AWS for Your First 10 Million Users
Build an App on AWS for Your First 10 Million Users
 
Getting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless CloudGetting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless Cloud
 
Getting Started with AWS Lambda & Serverless Cloud
Getting Started with AWS Lambda & Serverless CloudGetting Started with AWS Lambda & Serverless Cloud
Getting Started with AWS Lambda & Serverless Cloud
 
How to build and deploy serverless apps - AWS Summit Cape Town 2018
How to build and deploy serverless apps - AWS Summit Cape Town 2018How to build and deploy serverless apps - AWS Summit Cape Town 2018
How to build and deploy serverless apps - AWS Summit Cape Town 2018
 
Getting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless CloudGetting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless Cloud
 
Getting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesGetting Started with Serverless Architectures
Getting Started with Serverless Architectures
 
lambda.pptx
lambda.pptxlambda.pptx
lambda.pptx
 
10 Tips For Serverless Backends With NodeJS and AWS Lambda
10 Tips For Serverless Backends With NodeJS and AWS Lambda10 Tips For Serverless Backends With NodeJS and AWS Lambda
10 Tips For Serverless Backends With NodeJS and AWS Lambda
 
Testing of Serverless Application on Amazon WebService Cloud
Testing of Serverless Application on Amazon WebService CloudTesting of Serverless Application on Amazon WebService Cloud
Testing of Serverless Application on Amazon WebService Cloud
 
Intro To Serverless Application Architecture: Collision 2018
Intro To Serverless Application Architecture: Collision 2018Intro To Serverless Application Architecture: Collision 2018
Intro To Serverless Application Architecture: Collision 2018
 
Getting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless ComputingGetting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless Computing
 

Último

%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
chiefasafspells
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 

Último (20)

MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 

Helsinki Serverless Meetup 15.6.2016 : AWS Services

  • 1. SERVERLESS SERVICES ON AWS Mikael Puittinen, CTO mikael.puittinen@sc5.io @mpuittinen 1 15.6.2016
  • 2. SOME AWS SERVICES FOR DEVELOPERS (8 OUT OF 55) COMPUTE Lambda 2014 STORAGE S3 (Simple Storage Service) 2006 DATABASE DynamoDB 2012 MOBILE SERVICES SNS (Simple NotificationService) INTERNET OF THINGS IoT 2015 APPLICATION SERVICES API Gateway 2015 SES (Simple Email Service) 2011 SQS (Simple Queue Service) 2006 Building blocks for digital services
  • 4. AWS SERVERLESS WORKSHOP BLOG APPLICATION Example 2 2. Web app communicates with API Gateway for blog content 1. Application static assets (HTML, CSS, JS) served from S3 bucket. 5. Blog data managed in DynamoDB database http://hackathon-blog.serverless.fi 3. API Gateway invokes Lambda for incoming requests 4. Lambda reads / writes blog data from DynamoDB See workshop at http://hackathon.serverless.fi/workshop.pdf
  • 5. SIMPLE STORAGE SERVICE (S3) § (Unlimited) file storage service § Application internal files § Static web content (e.g. application HTML / CSS / JS / image assets) § Can be complemented with Cloudfront CDN to optimize costs and performance Serverless Storage my-s3-bucket.company.com PRICING: Storage volume + amount of requests
  • 6. AWS LAMBDA § Compute service for running code (functions) in AWS § Event driven (API Gateway, SNS, SES, S3, DynamoDB, Schedule, …) § Provision memory & max time required by single function run § Additional ”instances” spawned automatically Serverless Compute myFunction PRICING: Utilized gigabyteseconds (rounded to 100ms)
  • 7. API GATEWAY § AWS Service to implement REST (and other) APIs § Security via API Keys, customer authorizers (Lambda) § Connect to e.g. Lambda to publish your functions as REST interfaces § Input / Output mapping (e.g. URL parameters -> JSON) § No need for provisioning Serverless API Management PRICING: # of requests + data transfer + cache size INPUT MAPPING OUTPUT MAPPING AUTHORI- ZATION JSON JSON HTTPS
  • 8. DYNAMODB § noSQL database provided by AWS § noSQL: scalable non-relational database with focus on speed § Work with tables and indices, no server instances to manage § Need to provision read / write capacity per table / index Serverless Database PRICING: Provisioned read / write capacity and storage (over 25Gb)
  • 9. SERVERLESS WORKSHOP If you are interested in getting hands-on experience, please check out our serverless workshop at http://hackathon.serverless.fi/workshop.pdf
  • 10. OTHER AWS MANAGED SERVICES & EXAMPLES 10
  • 11. SIMPLE NOTIFICATION SERVICE (SNS) § Push notification service § Delivery not guaranteed § nly targeted for mobile notifications § Can also be used for triggering e.g. Lambda functions, mobile, email notifications Serverless push notifications PRICING: Amount of messages 1 SUBSCRIBE PUBLISH
  • 12. SIMPLE QUEUE SERVICE (SQS) § Message queue service (pull) § Delivery Guaranteed (order not guaranteed) § Prevent messages being handled by multiple workers § Can be handled e.g. by Lambda using a scheduled function Serverless queue PRICING: Amount of messages (SCHEDULED) PULL PUBLISH
  • 13. AWS IOT § Device registry + API for communicating with devices + automated actions (Rules) § Authentication of devices § Devices can send current state and retrieve desired state over MQTT, Websocket § Can perform actions based on rules (e.g. Temperature reading from a specific sensor is out of bounds) Integrate with devices PRICING: Amount of messages
  • 14.
  • 15. CLOUD NATIVE APPLICATION ARCHITECTURE À LA SC5 Reference Architecture AWS IoT Amazon S3 Amazon DynamoDB Amazon RDS Amazon SNS Amazon API Gateway AWS Lambda E.g.App assets (HTML5) App Notifications App Data (REST) Device data (MQTT) Compute Database Serverless Development Framework
  • 17. SERVERLESS FRAMEWORK § Node.js based framework for development and deployment of AWS Lambda-based solutions § Extendible via plugins § Initially JAWS but rebranded to Serverless in Dec 2015 > npm install –g serverless > sls project create > sls resources deploy > sls function create > sls function deploy > sls endpoint deploy > …