SlideShare a Scribd company logo
Building Event-Driven Serverless Applications
Danilo Poccia
Technical Evangelist
@danilop
danilop
2001
Decentralized,
two-pizza teams

Agility, autonomy,
accountability,
and ownership

“DevOps”
You Want to Build
Your Brand New Application
Application

+

Data
Application

+

Data
Websites
Mobile

Apps
Wearable
Application Data
Websites
Mobile

Apps
Wearable
Application
Files
DB
Content +

Some API Calls
API Calls
Websites
Mobile

Apps
Wearable
Application
Files
DB
API Calls
Websites
(JavaScript
Apps)
Mobile

Apps
Wearable
JavaScript
API Calls
Application
Files
DB
API Calls
Websites
(JavaScript
Apps)
Mobile

Apps
Wearable
Services
API Calls
JavaScript
API Calls
Application
Files
DB
API Calls
Websites
(JavaScript
Apps)
Mobile

Apps
Wearable
Services
API Calls
JavaScript
Authentication

& Authorization
Caching &
Throttling
Business

Logic
API Calls
Application
DB
API Calls
Websites
(JavaScript
Apps)
Mobile

Apps
Wearable
Services
API Calls
JavaScript
Files
Amazon
S3
Amazon
DynamoDB
Authentication &
Authorization
Amazon

Cognito
Business Logic
AWS

Lambda
Caching & Throttling
Amazon API

GatewayAPI Calls
How Does It Works?
X
Authentication
Providers
End Users
User

Credentials
Authentication

Token
Amazon Cognito

Identity Broker
Identity Pool Id
(Token)
Identity Id

AWS Temp Credentials
(Depending on

Auth / Unauth Role)
Access to

AWS Services
(Including Amazon

API Gateway)
Identity Id
AWS Temp Credentials
Amazon S3
Amazon

DynamoDB
Amazon

Mobile Analytics
Amazon Cognito

Sync Store
K / V
Authentication &
Authorization
Amazon

CognitoCheck Token
X
End Users
User

Credentials
Authentication

Token
Amazon Cognito

Identity Broker
Identity Pool Id
(Token)
Identity Id

AWS Temp Credentials
(Depending on

Auth / Unauth Role)
Access to

AWS Services
(Including Amazon

API Gateway)
Identity Id
AWS Temp Credentials
Amazon S3
Amazon

DynamoDB
Amazon

Mobile Analytics
Amazon Cognito

Sync Store
K / V
Custom

Authentication
Service
Get Token
Token Authentication &
Authorization
Amazon

Cognito
Amazon

CloudFront
API Gateway

Cache
Amazon

CloudWatch
Monitoring & Logs
Endpoints on

Amazon EC2 or
AWS Elastic Beanstalk
Internet
Any other publicly

accessible endpoint
AWS Lambda

Functions
Caching & Throttling
Amazon API

Gateway
X
Access to

API Method
Building event driven serverless apps by Danilo Poccia at Codemotion Dubai
Managed Cache to Store API Responses

Reduced Latency and DDoS Protection through Amazon CloudFront

SDK Generation for iOS, Android and JavaScript
HTTP 429 Response for API Throttling (Managed by the SDK)

Swagger Support

Request / Response Data Transformation and API Mocking
Business Logic
AWS

Lambda
AWS

Lambda

Functions
Amazon

API Gateway Amazon S3
Amazon

DynamoDB
Amazon Cognito

Sync Store
K / VAmazon

SNS
Amazon

Kinesis
Alexa Skills Kit (ASK)
Alexa Voice Service (AVS)
HTTPS

Invoke
Custom
Events
HTTPS

REST
API Call
Amazon

SES
Amazon

SWF
AWS IoT
?
?
?
?
?
?
?
Amazon
CloudWatch
Events
Build Back-end Services that Perform at Scale
Respond Quickly to New Information
Run Your Code without Managing Infrastructure
Cost-effective and Efficient
Amazon API Gateway
+
AWS Lambda
Resource + HTTP Verb ➔ Method (Function)
Resource + HTTP Verb ➔ Method (Function)
/books + GET ➔ GetAllBooksByRange
Resource + HTTP Verb ➔ Method (Function)
/books + GET ➔ GetAllBooksByRange
/books + POST ➔ CreateNewBook
Resource + HTTP Verb ➔ Method (Function)
/books + GET ➔ GetAllBooksByRange
/books + POST ➔ CreateNewBook
/books/{id} + GET ➔ GetBookById
/books/{id} + PUT ➔ CreateOrUpdateBookById
/books/{id} + DELETE ➔ DeleteBookById
Let’s Put Everything Together
Media Sharing Application
λ
λ λ
Amazon

API Gateway
λ
λ
λ
λ
Bucket Usage

Table
Media Metadata
Table
User Stat
Table
User

Location
Table
K / V
λ
λ
λ
Amazon Cognito

Identity Broker
Amazon Cognito

Sync Store
Amazon

SNS
Amazon

Kinesis
Media

Bucket
Log
Table
Authentication
&
Authorization
Upload Picture / VideoUpdate Bucket UsageCheck Bucket Usage
Delete
“Over Quota”
Media
Send Notification
to
User / Application
Extract Metadata and
Write on DB
Update
User Statistics
Call REST API
to Get
Media Description
Upload
Location Info
Update
User Location
Look for
Users or Media
Near Current Location
Call REST API
to Get
User Info
Sync
Media and User
Rating
Write
History of Changes
Check and Update
Ratings
Invoke
Read
Write / Send
λ
λ λ
λ
λ
λ
λ
λ
λ
λ
Microservice Architecture
λλ λλ
λλ λλ λ
λ
Choreography vs Orchestration
λλ λλ
λλ λλ λ
λ
Reactive Programming
λλ λλ
λλ λλ λ
λ
Asynchronous Communication
λλ λλ
λλ λλ λ
λ
Eventual Consistency
λλ λλ
λλ λλ λ
λ
<demo>
...
</demo>
Focus on You Idea
aws.amazon.com/free
Event-driven (Serverless) Applications
Danilo Poccia
AWS Technical Evangelist
@danilop
danilop

More Related Content

PDF
Building Event-Driven Serverless Applications - AWS - Danilo Poccia
PPTX
Cross platformmobileapp
PPT
Programming With Amazon, Google, And E Bay
PPTX
2016 - Serverless Microservices on AWS with API Gateway and Lambda
PDF
Building a production-ready, graph-based enterprise application in the cloud
PPTX
Getting Started with Firebase Cloud Functions
PDF
Shift AI 2020: Don't type your passwords, speak! | Ishan Jain (Microsoft)
PDF
Helsinki Serverless Meetup 15.6.2016 : AWS Services
Building Event-Driven Serverless Applications - AWS - Danilo Poccia
Cross platformmobileapp
Programming With Amazon, Google, And E Bay
2016 - Serverless Microservices on AWS with API Gateway and Lambda
Building a production-ready, graph-based enterprise application in the cloud
Getting Started with Firebase Cloud Functions
Shift AI 2020: Don't type your passwords, speak! | Ishan Jain (Microsoft)
Helsinki Serverless Meetup 15.6.2016 : AWS Services

What's hot (19)

PDF
Introduction to Firebase from Google
PPTX
Firebase
PDF
ASAS 2013 - Architecture for dynamic mobile forms at MoreApps
PPTX
ESPC15 - Introduction to AngularJS in an Office 365 context
PDF
Application Server-less Web Applications - Serverless Toronto Meetup
PDF
Intro firebase
PPTX
A talk on AWS AppSync
PPTX
Building Apps for SharePoint 2013 by Andrew Connell - SPTechCon
PPTX
IDX API with Antonio
PDF
Events, Picos, and Microservices
PPTX
SPCA2013 - Developing Provider-Hosted Apps for SharePoint 2013
PDF
2016 - Easing Your Way Into Docker: Lessons From a Journey to Production
PPTX
PnP in building office add ins - public
PDF
Integrate CI/CD Pipelines with Jira Software Cloud
PPTX
2013 - Back to the Future with Client/Server Development
PDF
Access to User Activities - Activity Platform APIs
PPT
Building Components and Services for the Programmable Web
PDF
Screencast dave dev-introtoask-andecho-july2015
PPTX
What is new in Firebase?
Introduction to Firebase from Google
Firebase
ASAS 2013 - Architecture for dynamic mobile forms at MoreApps
ESPC15 - Introduction to AngularJS in an Office 365 context
Application Server-less Web Applications - Serverless Toronto Meetup
Intro firebase
A talk on AWS AppSync
Building Apps for SharePoint 2013 by Andrew Connell - SPTechCon
IDX API with Antonio
Events, Picos, and Microservices
SPCA2013 - Developing Provider-Hosted Apps for SharePoint 2013
2016 - Easing Your Way Into Docker: Lessons From a Journey to Production
PnP in building office add ins - public
Integrate CI/CD Pipelines with Jira Software Cloud
2013 - Back to the Future with Client/Server Development
Access to User Activities - Activity Platform APIs
Building Components and Services for the Programmable Web
Screencast dave dev-introtoask-andecho-july2015
What is new in Firebase?
Ad

Similar to Building event driven serverless apps by Danilo Poccia at Codemotion Dubai (20)

PDF
Event-driven (serverless) Applications
PDF
Building Event-driven Serverless Apps
PDF
Build a Server-less Event-driven Backend with AWS Lambda and Amazon API Gateway
PDF
Build a Server-less Event-driven Backend with AWS Lambda and Amazon API Gateway
PPTX
Serverless APIs and you
PDF
2022 Presentation | Serverless Innovation with AWS
PDF
Serverless Design Patterns
PDF
Serverless applications with AWS
PDF
Build a mobile app serverless with AWS Lambda
PDF
Serveless design patterns (VoxxedDays Luxembourg)
PDF
Como construir suas aplicações escaláveis sem servidores
PDF
Serverless Applications on AWS
PPTX
Serverless Architectural Patterns I AWS Dev Day 2018
PPTX
Serverless Architecture
PDF
Wildrydes Serverless Workshop Tel Aviv
PDF
20200520 - Como empezar a desarrollar aplicaciones serverless
PPTX
Serverless beyond AWS Lambda
PPTX
Serverless Generative AI on AWS, AWS User Groups of Florida
PDF
Amazon API Gateway and AWS Lambda: Better Together
PDF
Building APIs the serverless way
Event-driven (serverless) Applications
Building Event-driven Serverless Apps
Build a Server-less Event-driven Backend with AWS Lambda and Amazon API Gateway
Build a Server-less Event-driven Backend with AWS Lambda and Amazon API Gateway
Serverless APIs and you
2022 Presentation | Serverless Innovation with AWS
Serverless Design Patterns
Serverless applications with AWS
Build a mobile app serverless with AWS Lambda
Serveless design patterns (VoxxedDays Luxembourg)
Como construir suas aplicações escaláveis sem servidores
Serverless Applications on AWS
Serverless Architectural Patterns I AWS Dev Day 2018
Serverless Architecture
Wildrydes Serverless Workshop Tel Aviv
20200520 - Como empezar a desarrollar aplicaciones serverless
Serverless beyond AWS Lambda
Serverless Generative AI on AWS, AWS User Groups of Florida
Amazon API Gateway and AWS Lambda: Better Together
Building APIs the serverless way
Ad

More from Codemotion Dubai (11)

PDF
Embrace chatOps, stop installing deployment software by Geshan Manandhar at C...
PDF
SMACK Stack - Fast Data Done Right by Stefan Siprell at Codemotion Dubai
PDF
Microservices for Mortals by Bert Ertman at Codemotion Dubai
PPTX
Patterns and practices for real-world event-driven microservices by Rachel Re...
PDF
Dockerize it: stop living in the past and embrace the future by Alex Nadalin
PDF
Modelling complex game economy with Neo4j by Yan Cui at Codemotion Dubai
PPTX
Chaos Testing with F# and Azure by Rachel Reese at Codemotion Dubai
PDF
Getting Developers hooked on your API by Nicolas Garnier at Codemotion Dubai
PDF
F# in social gaming by Yan Cui at Codemotion Dubai
PDF
Javascript leverage: Isomorphic Applications by Luciano Colosio at Codemotion...
PDF
Demystifying the 3D Web by Pietro Grandi @ Codemotion Dubai 2016
Embrace chatOps, stop installing deployment software by Geshan Manandhar at C...
SMACK Stack - Fast Data Done Right by Stefan Siprell at Codemotion Dubai
Microservices for Mortals by Bert Ertman at Codemotion Dubai
Patterns and practices for real-world event-driven microservices by Rachel Re...
Dockerize it: stop living in the past and embrace the future by Alex Nadalin
Modelling complex game economy with Neo4j by Yan Cui at Codemotion Dubai
Chaos Testing with F# and Azure by Rachel Reese at Codemotion Dubai
Getting Developers hooked on your API by Nicolas Garnier at Codemotion Dubai
F# in social gaming by Yan Cui at Codemotion Dubai
Javascript leverage: Isomorphic Applications by Luciano Colosio at Codemotion...
Demystifying the 3D Web by Pietro Grandi @ Codemotion Dubai 2016

Recently uploaded (20)

PPTX
introduction about ICD -10 & ICD-11 ppt.pptx
PDF
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
PDF
Exploring VPS Hosting Trends for SMBs in 2025
PPTX
Slides PPTX World Game (s) Eco Economic Epochs.pptx
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PPTX
newyork.pptxirantrafgshenepalchinachinane
DOCX
Unit-3 cyber security network security of internet system
PPTX
artificial intelligence overview of it and more
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PPT
FIRE PREVENTION AND CONTROL PLAN- LUS.FM.MQ.OM.UTM.PLN.00014.ppt
PDF
Paper PDF World Game (s) Great Redesign.pdf
PDF
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
PDF
Slides PDF The World Game (s) Eco Economic Epochs.pdf
PPTX
artificialintelligenceai1-copy-210604123353.pptx
PPTX
Introduction to Information and Communication Technology
PPTX
Funds Management Learning Material for Beg
PPTX
E -tech empowerment technologies PowerPoint
PDF
Introduction to the IoT system, how the IoT system works
PPTX
Introuction about WHO-FIC in ICD-10.pptx
PPTX
INTERNET------BASICS-------UPDATED PPT PRESENTATION
introduction about ICD -10 & ICD-11 ppt.pptx
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
Exploring VPS Hosting Trends for SMBs in 2025
Slides PPTX World Game (s) Eco Economic Epochs.pptx
The New Creative Director: How AI Tools for Social Media Content Creation Are...
newyork.pptxirantrafgshenepalchinachinane
Unit-3 cyber security network security of internet system
artificial intelligence overview of it and more
Job_Card_System_Styled_lorem_ipsum_.pptx
FIRE PREVENTION AND CONTROL PLAN- LUS.FM.MQ.OM.UTM.PLN.00014.ppt
Paper PDF World Game (s) Great Redesign.pdf
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
Slides PDF The World Game (s) Eco Economic Epochs.pdf
artificialintelligenceai1-copy-210604123353.pptx
Introduction to Information and Communication Technology
Funds Management Learning Material for Beg
E -tech empowerment technologies PowerPoint
Introduction to the IoT system, how the IoT system works
Introuction about WHO-FIC in ICD-10.pptx
INTERNET------BASICS-------UPDATED PPT PRESENTATION

Building event driven serverless apps by Danilo Poccia at Codemotion Dubai