SlideShare a Scribd company logo
AWSome Day 2018
Serverless API with
Amazon Web Services
AWSome Day - Torino 2018
Gabriele Mittica
Co-founder Corley
Co-Ideator CloudConf
@gabrielemittica
gabriele.mittica@corley.it
corley.it
Scalability and cost optimization with Container Services
Scalable API
Serverless introduction
Serverless API with AWS
Benefits
Summary
AWSome day 2018  - API serverless with aws
Scalable API
➢ REST as architectural pattern
➢ Performance
➢ Decoupling
Key points in API development
Serverless
➢ different architecture
➢ different pricing
➢ different approach
➢ 99,999999999% durability
➢ HTTP based and easy SDK integration
➢ Tagging, versioning, logging, retention policy,
events, website hosting...
Simple Storage Service
var params = {Bucket: 'bucket', Key:
'key', Body: stream};
s3.upload(params, function(err, data) {
console.log(err, data);
});
Simple Storage Service (noedjs)
Remote Integration - S3
➢ run code without provisioning or managing
servers
➢ computation on demand
➢ several languages supported
Lambda
exports.handler = function (event, context) {
console.log(event);
context.succeed('hello ' + event.name);
};
Lambda
Remote Integration - Lambda
➢ create gateway for remote API
➢ connect to different origin: S3, remote API,
Lambda
➢ manage input and output transformation
API Gateway
➢ NoSQL DB that delivers reliable performance at
any scale
➢ designed for high performance
➢ pay-per-use
➢ events
DynamoDB
AWSome day 2018  - API serverless with aws
How to create
Serverless API
API Gateway + Lambda
API Gateway + Lambda
API Gateway + Lambda + DynamoDB
var AWS = require('aws-sdk');
AWS.config.update({region: 'REGION'});
ddb = new AWS.DynamoDB({apiVersion: '2012-10-08'});
var params = {
TableName: 'TABLE',
Item: {
'CUSTOMER_ID' : {N: '001'},
'CUSTOMER_NAME' : {S: 'Richard Roe'},
}
};
// Call DynamoDB to add the item to the table
ddb.putItem(params, function(err, data) {
if (err) { console.log("Error", err); }
else { console.log("Success", data); }
});
Lambda to DynamoDB
API Gateway + Lambda + DynamoDB + S3
➢ several events available on platform
➢ connect S3, Lambda, Dynamo, SNS, SQS and
other services together
➢ create responsive and modern architectures for
API
Introducing events
API Gateway + Lambda + DynamoDB + S3
API Gateway + Lambda + DynamoDB + S3 + Cognito
Simple Storage Service (browser)
Simple Storage Service (browser)
function addPhoto(albumName) {
var files = document.getElementById('photoupload').files;
if (!files.length) {
return alert('Please choose a file to upload first.');
}
var file = files[0];
var fileName = file.name;
var albumPhotosKey = encodeURIComponent(albumName) + '//';
var photoKey = albumPhotosKey + fileName;
s3.upload({
Key: photoKey,
Body: file,
ACL: 'public-read'
}, function(err, data) {
if (err) {
return alert('There was an error uploading your photo: ',
err.message);
}
alert('Successfully uploaded photo.');
viewAlbum(albumName);
});
}
API Gateway + Lambda + DynamoDB + S3 + Cognito
AWSome day 2018  - API serverless with aws
Access to reserved rows and/or columns in
DynamoDB
API Gateway + Lambda + DynamoDB + S3 + Cognito
When is useful?
AWSome day 2018  - API serverless with aws
AWSome day 2018  - API serverless with aws
➢ Really scalable
➢ Pay per use
➢ Understand new techs
➢ Deploy new
architectures
API Serverless
Atomic pricing
You can calculate the exact price
of each operation on cloud
How to move to serverless pattern
➢ choose right services
➢ define a roadmap
➢ code
Thanks for listening.
AWSome Day - Torino 2018 - gabriele.mittica@corley.it

More Related Content

What's hot (20)

PDF
Server-less solution for moving Millions of Images in Cloud - Brett Sutter, ...
AWS Chicago
 
PDF
Long running aws lambda - Joel Schuweiler, Minneapolis
AWS Chicago
 
PPT
Building a data warehouse with AWS Redshift, Matillion and Yellowfin
Lynn Langit
 
PPTX
Amazon WebServices lection 1
Binary Studio
 
PPTX
AWS for the Data Professional
Lynn Langit
 
PPTX
LynfaCloud @aws
Alessandro Poli
 
PPT
Amazon Webservice & Cloud Computing
Jack Smith
 
PPTX
AWS Kinesis
Julian Kleinhans
 
PPTX
IronSource Atom - Redshift - Lessons Learned
Idan Tohami
 
PDF
Must Know Azure Kubernetes Best Practices And Features For Better Resiliency ...
CodeOps Technologies LLP
 
PPTX
Building big data applications on AWS by Ran Tessler
Idan Tohami
 
PDF
Serverless Computing with AWS
TransferWiseSG
 
PDF
Real-Time Vote Platform Benchmark
Lahav Savir
 
PPT
Server Object Extensions
viswaug
 
PPTX
SQL Server on Google Cloud Platform
Lynn Langit
 
PDF
AWS Lambda - A quick introduction #advancedaws
Chris Richardson
 
PDF
Beyond Relational
Lynn Langit
 
PPTX
Benchmarking Aerospike on the Google Cloud - NoSQL Speed with Ease
Lynn Langit
 
PDF
Deploying Data Science with Docker and AWS
Matt McDonnell
 
PPTX
A practical approach to provisioning resources in azure
Morten Christensen
 
Server-less solution for moving Millions of Images in Cloud - Brett Sutter, ...
AWS Chicago
 
Long running aws lambda - Joel Schuweiler, Minneapolis
AWS Chicago
 
Building a data warehouse with AWS Redshift, Matillion and Yellowfin
Lynn Langit
 
Amazon WebServices lection 1
Binary Studio
 
AWS for the Data Professional
Lynn Langit
 
LynfaCloud @aws
Alessandro Poli
 
Amazon Webservice & Cloud Computing
Jack Smith
 
AWS Kinesis
Julian Kleinhans
 
IronSource Atom - Redshift - Lessons Learned
Idan Tohami
 
Must Know Azure Kubernetes Best Practices And Features For Better Resiliency ...
CodeOps Technologies LLP
 
Building big data applications on AWS by Ran Tessler
Idan Tohami
 
Serverless Computing with AWS
TransferWiseSG
 
Real-Time Vote Platform Benchmark
Lahav Savir
 
Server Object Extensions
viswaug
 
SQL Server on Google Cloud Platform
Lynn Langit
 
AWS Lambda - A quick introduction #advancedaws
Chris Richardson
 
Beyond Relational
Lynn Langit
 
Benchmarking Aerospike on the Google Cloud - NoSQL Speed with Ease
Lynn Langit
 
Deploying Data Science with Docker and AWS
Matt McDonnell
 
A practical approach to provisioning resources in azure
Morten Christensen
 

Similar to AWSome day 2018 - API serverless with aws (19)

PDF
Serverless cat detector workshop - cloudyna 2017 (16.12.2017)
Paweł Pikuła
 
PDF
Serverless Architectural Patterns & Best Practices
Daniel Zivkovic
 
PDF
Serverless Framework Workshop - Tyler Hendrickson, Chicago/burbs
AWS Chicago
 
PDF
AWS Community Day Bangkok 2019 - Building & Deploying AWS Lambda with Serverl...
AWS User Group - Thailand
 
PPTX
AWS Startup Day - Boston 2018 - The Best Practices and Hard Lessons Learned o...
Chris Munns
 
PDF
Serverless OCR for NASA EVA: AWS Meetup DC 2017-12-12
Chris Shenton
 
PDF
Serverless computing with AWS Lambda
Apigee | Google Cloud
 
PDF
Serverless Optical Character Recognition in support of Astronaut Safety AWS M...
Chris Shenton
 
PDF
DevOps Fest 2019. Alex Casalboni. Configuration management and service discov...
DevOps_Fest
 
PDF
An introduction to serverless architectures (February 2017)
Julien SIMON
 
PPT
Cloud State of the Union for Java Developers
Burr Sutter
 
PDF
Deploying Serverless Cloud Optical Character Recognition in Support of NASA A...
Chris Shenton
 
PDF
Serverless architecture with AWS Lambda (June 2016)
Julien SIMON
 
PDF
CloudFork
ESUG
 
PDF
Devops on serverless
Sébastien ☁ Stormacq
 
PDF
Amazon API Gateway and AWS Lambda: Better Together
Danilo Poccia
 
PDF
Python in the serverless era (PyCon 2017)
Benny Bauer
 
PDF
Aws Lambda in Swift - NSLondon - 3rd December 2020
Andrea Scuderi
 
PDF
SoCal NodeJS Meetup 20170215_aws_lambda
Stefan Deusch
 
Serverless cat detector workshop - cloudyna 2017 (16.12.2017)
Paweł Pikuła
 
Serverless Architectural Patterns & Best Practices
Daniel Zivkovic
 
Serverless Framework Workshop - Tyler Hendrickson, Chicago/burbs
AWS Chicago
 
AWS Community Day Bangkok 2019 - Building & Deploying AWS Lambda with Serverl...
AWS User Group - Thailand
 
AWS Startup Day - Boston 2018 - The Best Practices and Hard Lessons Learned o...
Chris Munns
 
Serverless OCR for NASA EVA: AWS Meetup DC 2017-12-12
Chris Shenton
 
Serverless computing with AWS Lambda
Apigee | Google Cloud
 
Serverless Optical Character Recognition in support of Astronaut Safety AWS M...
Chris Shenton
 
DevOps Fest 2019. Alex Casalboni. Configuration management and service discov...
DevOps_Fest
 
An introduction to serverless architectures (February 2017)
Julien SIMON
 
Cloud State of the Union for Java Developers
Burr Sutter
 
Deploying Serverless Cloud Optical Character Recognition in Support of NASA A...
Chris Shenton
 
Serverless architecture with AWS Lambda (June 2016)
Julien SIMON
 
CloudFork
ESUG
 
Devops on serverless
Sébastien ☁ Stormacq
 
Amazon API Gateway and AWS Lambda: Better Together
Danilo Poccia
 
Python in the serverless era (PyCon 2017)
Benny Bauer
 
Aws Lambda in Swift - NSLondon - 3rd December 2020
Andrea Scuderi
 
SoCal NodeJS Meetup 20170215_aws_lambda
Stefan Deusch
 
Ad

More from Corley S.r.l. (20)

PDF
Aws rekognition - riconoscimento facciale
Corley S.r.l.
 
PDF
Trace your micro-services oriented application with Zipkin and OpenTracing
Corley S.r.l.
 
PDF
Apiconf - The perfect REST solution
Corley S.r.l.
 
PDF
Apiconf - Doc Driven Development
Corley S.r.l.
 
PDF
Authentication and authorization in res tful infrastructures
Corley S.r.l.
 
PDF
Flexibility and scalability of costs in serverless infrastructures
Corley S.r.l.
 
PDF
CloudConf2017 - Deploy, Scale & Coordinate a microservice oriented application
Corley S.r.l.
 
PDF
React vs Angular2
Corley S.r.l.
 
PDF
A single language for backend and frontend from AngularJS to cloud with Clau...
Corley S.r.l.
 
PPTX
AngularJS: Service, factory & provider
Corley S.r.l.
 
PPTX
The advantage of developing with TypeScript
Corley S.r.l.
 
PDF
Angular coding: from project management to web and mobile deploy
Corley S.r.l.
 
PDF
Corley cloud angular in cloud
Corley S.r.l.
 
PDF
Measure your app internals with InfluxDB and Symfony2
Corley S.r.l.
 
PDF
Read Twitter Stream and Tweet back pictures with Raspberry Pi & AWS Lambda
Corley S.r.l.
 
PDF
Deploy and Scale your PHP App with AWS ElasticBeanstalk and Docker- PHPTour L...
Corley S.r.l.
 
PDF
Middleware PHP - A simple micro-framework
Corley S.r.l.
 
PDF
From Chef to Saltstack on Cloud Providers - Incontro DevOps 2015
Corley S.r.l.
 
PDF
Cloud Conf 2015 - Develop and Deploy IOT Applications
Corley S.r.l.
 
PDF
An introduction to Hubot - CloudConf 2015 - Turin Italy
Corley S.r.l.
 
Aws rekognition - riconoscimento facciale
Corley S.r.l.
 
Trace your micro-services oriented application with Zipkin and OpenTracing
Corley S.r.l.
 
Apiconf - The perfect REST solution
Corley S.r.l.
 
Apiconf - Doc Driven Development
Corley S.r.l.
 
Authentication and authorization in res tful infrastructures
Corley S.r.l.
 
Flexibility and scalability of costs in serverless infrastructures
Corley S.r.l.
 
CloudConf2017 - Deploy, Scale & Coordinate a microservice oriented application
Corley S.r.l.
 
React vs Angular2
Corley S.r.l.
 
A single language for backend and frontend from AngularJS to cloud with Clau...
Corley S.r.l.
 
AngularJS: Service, factory & provider
Corley S.r.l.
 
The advantage of developing with TypeScript
Corley S.r.l.
 
Angular coding: from project management to web and mobile deploy
Corley S.r.l.
 
Corley cloud angular in cloud
Corley S.r.l.
 
Measure your app internals with InfluxDB and Symfony2
Corley S.r.l.
 
Read Twitter Stream and Tweet back pictures with Raspberry Pi & AWS Lambda
Corley S.r.l.
 
Deploy and Scale your PHP App with AWS ElasticBeanstalk and Docker- PHPTour L...
Corley S.r.l.
 
Middleware PHP - A simple micro-framework
Corley S.r.l.
 
From Chef to Saltstack on Cloud Providers - Incontro DevOps 2015
Corley S.r.l.
 
Cloud Conf 2015 - Develop and Deploy IOT Applications
Corley S.r.l.
 
An introduction to Hubot - CloudConf 2015 - Turin Italy
Corley S.r.l.
 
Ad

Recently uploaded (20)

PDF
Build Fast, Scale Faster: Milvus vs. Zilliz Cloud for Production-Ready AI
Zilliz
 
PPTX
Presentation3gsgsgsgsdfgadgsfgfgsfgagsfgsfgzfdgsdgs.pptx
SUB03
 
PPTX
internet básico presentacion es una red global
70965857
 
PPTX
法国巴黎第二大学本科毕业证{Paris 2学费发票Paris 2成绩单}办理方法
Taqyea
 
PDF
Azure_DevOps introduction for CI/CD and Agile
henrymails
 
PPTX
PE introd.pptxfrgfgfdgfdgfgrtretrt44t444
nepmithibai2024
 
PPTX
PM200.pptxghjgfhjghjghjghjghjghjghjghjghjghj
breadpaan921
 
PPTX
04 Output 1 Instruments & Tools (3).pptx
GEDYIONGebre
 
PPTX
ONLINE BIRTH CERTIFICATE APPLICATION SYSYTEM PPT.pptx
ShyamasreeDutta
 
PPT
Computer Securityyyyyyyy - Chapter 2.ppt
SolomonSB
 
PPT
introduction to networking with basics coverage
RamananMuthukrishnan
 
PDF
𝐁𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓
hokimamad0
 
PPTX
英国假毕业证诺森比亚大学成绩单GPA修改UNN学生卡网上可查学历成绩单
Taqyea
 
PPTX
原版西班牙莱昂大学毕业证(León毕业证书)如何办理
Taqyea
 
PPTX
L1A Season 1 ENGLISH made by A hegy fixed
toszolder91
 
PPTX
西班牙武康大学毕业证书{UCAMOfferUCAM成绩单水印}原版制作
Taqyea
 
PPTX
Lec15_Mutability Immutability-converted.pptx
khanjahanzaib1
 
PPTX
一比一原版(SUNY-Albany毕业证)纽约州立大学奥尔巴尼分校毕业证如何办理
Taqyea
 
PPTX
L1A Season 1 Guide made by A hegy Eng Grammar fixed
toszolder91
 
PPT
introductio to computers by arthur janry
RamananMuthukrishnan
 
Build Fast, Scale Faster: Milvus vs. Zilliz Cloud for Production-Ready AI
Zilliz
 
Presentation3gsgsgsgsdfgadgsfgfgsfgagsfgsfgzfdgsdgs.pptx
SUB03
 
internet básico presentacion es una red global
70965857
 
法国巴黎第二大学本科毕业证{Paris 2学费发票Paris 2成绩单}办理方法
Taqyea
 
Azure_DevOps introduction for CI/CD and Agile
henrymails
 
PE introd.pptxfrgfgfdgfdgfgrtretrt44t444
nepmithibai2024
 
PM200.pptxghjgfhjghjghjghjghjghjghjghjghjghj
breadpaan921
 
04 Output 1 Instruments & Tools (3).pptx
GEDYIONGebre
 
ONLINE BIRTH CERTIFICATE APPLICATION SYSYTEM PPT.pptx
ShyamasreeDutta
 
Computer Securityyyyyyyy - Chapter 2.ppt
SolomonSB
 
introduction to networking with basics coverage
RamananMuthukrishnan
 
𝐁𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓
hokimamad0
 
英国假毕业证诺森比亚大学成绩单GPA修改UNN学生卡网上可查学历成绩单
Taqyea
 
原版西班牙莱昂大学毕业证(León毕业证书)如何办理
Taqyea
 
L1A Season 1 ENGLISH made by A hegy fixed
toszolder91
 
西班牙武康大学毕业证书{UCAMOfferUCAM成绩单水印}原版制作
Taqyea
 
Lec15_Mutability Immutability-converted.pptx
khanjahanzaib1
 
一比一原版(SUNY-Albany毕业证)纽约州立大学奥尔巴尼分校毕业证如何办理
Taqyea
 
L1A Season 1 Guide made by A hegy Eng Grammar fixed
toszolder91
 
introductio to computers by arthur janry
RamananMuthukrishnan
 

AWSome day 2018 - API serverless with aws

  • 1. AWSome Day 2018 Serverless API with Amazon Web Services AWSome Day - Torino 2018
  • 3. Scalability and cost optimization with Container Services Scalable API Serverless introduction Serverless API with AWS Benefits Summary
  • 6. ➢ REST as architectural pattern ➢ Performance ➢ Decoupling Key points in API development
  • 7. Serverless ➢ different architecture ➢ different pricing ➢ different approach
  • 8. ➢ 99,999999999% durability ➢ HTTP based and easy SDK integration ➢ Tagging, versioning, logging, retention policy, events, website hosting... Simple Storage Service
  • 9. var params = {Bucket: 'bucket', Key: 'key', Body: stream}; s3.upload(params, function(err, data) { console.log(err, data); }); Simple Storage Service (noedjs)
  • 11. ➢ run code without provisioning or managing servers ➢ computation on demand ➢ several languages supported Lambda
  • 12. exports.handler = function (event, context) { console.log(event); context.succeed('hello ' + event.name); }; Lambda
  • 14. ➢ create gateway for remote API ➢ connect to different origin: S3, remote API, Lambda ➢ manage input and output transformation API Gateway
  • 15. ➢ NoSQL DB that delivers reliable performance at any scale ➢ designed for high performance ➢ pay-per-use ➢ events DynamoDB
  • 18. API Gateway + Lambda
  • 19. API Gateway + Lambda
  • 20. API Gateway + Lambda + DynamoDB
  • 21. var AWS = require('aws-sdk'); AWS.config.update({region: 'REGION'}); ddb = new AWS.DynamoDB({apiVersion: '2012-10-08'}); var params = { TableName: 'TABLE', Item: { 'CUSTOMER_ID' : {N: '001'}, 'CUSTOMER_NAME' : {S: 'Richard Roe'}, } }; // Call DynamoDB to add the item to the table ddb.putItem(params, function(err, data) { if (err) { console.log("Error", err); } else { console.log("Success", data); } }); Lambda to DynamoDB
  • 22. API Gateway + Lambda + DynamoDB + S3
  • 23. ➢ several events available on platform ➢ connect S3, Lambda, Dynamo, SNS, SQS and other services together ➢ create responsive and modern architectures for API Introducing events
  • 24. API Gateway + Lambda + DynamoDB + S3
  • 25. API Gateway + Lambda + DynamoDB + S3 + Cognito
  • 27. Simple Storage Service (browser) function addPhoto(albumName) { var files = document.getElementById('photoupload').files; if (!files.length) { return alert('Please choose a file to upload first.'); } var file = files[0]; var fileName = file.name; var albumPhotosKey = encodeURIComponent(albumName) + '//'; var photoKey = albumPhotosKey + fileName; s3.upload({ Key: photoKey, Body: file, ACL: 'public-read' }, function(err, data) { if (err) { return alert('There was an error uploading your photo: ', err.message); } alert('Successfully uploaded photo.'); viewAlbum(albumName); }); }
  • 28. API Gateway + Lambda + DynamoDB + S3 + Cognito
  • 30. Access to reserved rows and/or columns in DynamoDB
  • 31. API Gateway + Lambda + DynamoDB + S3 + Cognito
  • 35. ➢ Really scalable ➢ Pay per use ➢ Understand new techs ➢ Deploy new architectures API Serverless
  • 36. Atomic pricing You can calculate the exact price of each operation on cloud
  • 37. How to move to serverless pattern ➢ choose right services ➢ define a roadmap ➢ code