SlideShare a Scribd company logo
1 of 80
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Five incredible (and uncommon)
serverless patterns
David Victoria (he/him)
D E V 2 0 1
Emite Facturación
Chief Operating Officer
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
No server is easier to
manage than no server
Dr. Werner Vogels
VP & CTO at Amazon.com
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Serverless is a qualifier that can be
applied to any software or service
offering, which requires that it is
consumed as a utility service and
incurs cost only when used.
Serverless Architecture on AWS, Second Edition
Peter Sbarski, Yan Cui, and Ajay Nair
Serverwhat!?
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
I know . . . I know . . .
And the answer is: YES
There obviously are servers somewhere. The difference is that these
servers are hidden from (and not managed by) you.
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Serverless services on AWS
AWS Lambda
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Serverless services on AWS
AWS Lambda Amazon DynamoDB
Amazon API Gateway
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Serverless services on AWS
AWS Lambda Amazon S3
Amazon DynamoDB
Amazon API Gateway
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Serverless services on AWS (+20!)
AWS Lambda Amazon S3
Amazon DynamoDB
Amazon API Gateway
AWS Glue
Amazon Athena
Amazon Kinesis
Amazon SNS
Amazon SQS
AWS AppSync
AWS Step Functions
Amazon EventBridge
Amazon SES
AWS IoT Core
Amazon Comprehend
Amazon Forecast
Amazon Lex
AWS Elemental
MediaConvert
Amazon Macie
Amazon Personalize
AWS X-Ray
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Pattern 1: An email as the init
of all things: SES
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Key services
AWS Lambda
Amazon S3
Amazon SQS
Amazon SES
Amazon Simple Email Service (SES) is a cost-effective, flexible, and scalable email service
that enables developers to send (and receive) mail from within any application
Amazon Simple Storage Service (Amazon S3) is an object storage service offering
industry-leading scalability, data availability, security, and performance
Amazon Simple Queue Service (SQS) is a fully managed message queuing service that
enables you to decouple and scale microservices, distributed systems, and serverless
applications
AWS Lambda is a serverless, event-driven compute service that lets you run code for
virtually any type of application or backend service without provisioning or managing
servers
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Ingesting SaaS reports to BI tools
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Ingesting SaaS reports to BI tools
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
An email as the init of all things: SES
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Ingesting SaaS reports to BI tools
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Ingesting SaaS reports to BI tools
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Ingesting SaaS reports to BI tools
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Ingesting SaaS reports to BI tools
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Ingesting SaaS reports to BI tools
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Ingesting SaaS reports to BI tools
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Ingesting SaaS reports to BI tools
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Use cases
• Connect legacy software to cloud serverless infrastructure
• Allow users to trigger actions in the cloud with a simple email
• Create SaaS data flow process solutions without complex integration
A N E M A I L A S T H E I N I T O F A L L T H I N G S : S E S
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Pattern 2: Orchestrating with
Step Functions
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Step Functions
Key services
AWS Step Functions is a low-code, visual workflow service that developers use to build
distributed applications, automate IT and business processes, and build data and machine
learning pipelines using AWS services
Amazon Comprehend
Amazon Comprehend uses ML and natural language processing (NLP) to help you
uncover the insights and relationships in your unstructured data.
Amazon DynamoDB
Amazon DynamoDB is a fully managed, serverless, key-value NoSQL database designed
to run high-performance applications at any scale
Amazon SNS
Amazon Simple Notification Service (Amazon SNS) is a fully managed messaging service
for both application-to-application (A2A) and application-to-person (A2P)
communication
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Sentiment analysis workflow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Sentiment analysis workflow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Sentiment analysis workflow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Sentiment analysis workflow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Sentiment analysis workflow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Sentiment analysis workflow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Sentiment analysis workflow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Workflow definition
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Workflow studio design
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Use cases
• Orchestrate microservices in sync and async processes
• Integrate service-to-service call architecture
• Allow manual approvals in complex flows
• Invoke automatically complete business processes in response to an
event
O R C H E S T R A T I N G W I T H S T E P F U N C T I O N S
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Pattern 3: GraphQL, a different (and
serverless) API design approach
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Cognito
AWS AppSync
Key services
AWS AppSync is a serverless GraphQL and Pub/Sub API service that simplifies building
modern web and mobile applications
Amazon Cognito lets you add user sign-up, sign-in, and access control to your web and
mobile apps quickly and easily
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Mobile app backend
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Mobile app backend
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Mobile app backend
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Mobile app backend
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Mobile app backend
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Mobile app backend
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Mobile app backend
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Mobile app backend
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Use cases
• Web/mobile API with unified data access
• Apps where bandwidth usage matters
• Composite pattern, where application retrieves data from multiple,
different APIs
G R A P H Q L , A D I F F E R E N T ( A N D S E R V E R L E S S ) A P I D E S I G N A P P R O A C H
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Pattern 4: Interchanging data
with a managed SFTP service
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Rekognition
AWS Elemental
MediaConvert
AWS Transfer Family
Key services
AWS Transfer Family is a secure transfer service that enables you to seamlessly migrate,
automate, and monitor your file transfer workflows into and out of Amazon S3 and
Amazon EFS using the SFTP, FTPS, and FTP protocols
AWS Elemental MediaConvert is a file-based video transcoding service with broadcast-
grade features. It allows you to easily create video-on-demand (VOD) content for
broadcast and multiscreen delivery at scale
Amazon Rekognition offers pre-trained and customizable computer vision (CV)
capabilities to extract information and insights from your images and videos
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Video transfer and transcoding flow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Video transfer and transcoding flow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Video transfer and transcoding flow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Video transfer and transcoding flow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Video transfer and transcoding flow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Video transfer and transcoding flow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Video transfer and transcoding flow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Video transfer and transcoding flow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Video transfer and transcoding flow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Use cases
• Modernize your managed file transfers
• Gain insights by growing your data lake
• Improve collaboration across your trading partner network
• Expand your content distribution business
I N T E R C H A N G I N G D A T A W I T H A M A N A G E D S F T P S E R V I C E
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Pattern 5: Event choreography
via EDA (Event-Driven Architecture)
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Key services
Amazon EventBridge is a serverless event bus that makes it easier to build event-driven
applications at scale using events generated from your applications, integrated Software-
as-a-Service (SaaS) applications, and AWS services. Amazon EventBridge will
automatically deliver the events in near-real-time
Amazon EventBridge
Amazon API Gateway
Amazon API Gateway is a fully managed service that makes it easy for developers to
create, publish, maintain, monitor, and secure APIs at any scale.
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Event and pattern structure
{
"version": "0",
"id": "ad1de317-e409-eba2-9552-30113f8d88e3",
"detail-type": "Object Deleted",
"source": "aws.s3",
"account": "123456789012",
"time": "2021-11-12T00:00:00Z",
"region": "ca-central-1",
"resources": ["arn:aws:s3:::example-bucket"],
"detail": {
"version": "0",
"bucket": {
"name": "example-bucket"
},
"object": {
"key": "example-key",
"etag": "d41d8cd98f00b204e9800998ecf8427e“
},
"request-id": "20EB74C14654DC47",
"requester": "s3.amazonaws.com"
}
{
"source": ["aws.s3"],
"detail-type": ["Object Deleted"],
"detail": {
"bucket": {
"name": ["example-bucket"]
}
}
}
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Online shopping workflow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Online shopping workflow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Online shopping workflow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Online shopping workflow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Online shopping workflow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Online shopping workflow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Online shopping workflow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Online shopping workflow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Online shopping workflow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Online shopping workflow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Online shopping workflow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Online shopping workflow
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Use cases
• Deliver events to a service with a scheduled configuration
• Respond to custom events generated by an application
• Deliver events generated on the AWS infrastructure
• Extend functionality via SaaS integrations
E V E N T C H O R E O G R A P H Y V I A E D A
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Tip: X-Ray
F U L L S E R V E R L E S S O B S E R V A B I L I T Y T O O L
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Tip: Event Catalog
https://www.eventcatalog.dev/
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Do you think this is possible?
D E L E T E I N T E G R A T I N G F U N C T I O N S O N T H E F L Y
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Functionless
(or how to be serverless without Lambda functions)
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
More less?
A functionless integration pattern is where a direct integration between two AWS
services is configured instead of using custom code in an intermediary Lambda
function.
If you use a direct service-to-service integration, you can expect these benefits:
• Lower Latency
• No Code rot
• Free (in terms of cloud bill)
• Even higher scalability
• Less IaC
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
The functionless starter pack
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Last bonus: Serverlessland!
https://serverlessland.com/
Thank you!
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Please complete the
session survey
David Victoria
hi@davidvictoria.com
Let’s connect on LinkedIn!
@vikomex

More Related Content

Similar to Serverless patterns on AWS

Best Practices for Using AWS Credits
Best Practices for Using AWS CreditsBest Practices for Using AWS Credits
Best Practices for Using AWS CreditsTechSoup
 
What can you do with Serverless in 2020
What can you do with Serverless in 2020What can you do with Serverless in 2020
What can you do with Serverless in 2020Boaz Ziniman
 
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Modern Application Development for Startups
Modern Application Development for StartupsModern Application Development for Startups
Modern Application Development for StartupsDonnie Prakoso
 
Serverless-First Function: Serverless application security
Serverless-First Function: Serverless application securityServerless-First Function: Serverless application security
Serverless-First Function: Serverless application securityRobSutter2
 
Scale - Best Practices for Migrating your Microsoft Workloads to AWS
Scale - Best Practices for Migrating your Microsoft Workloads to AWSScale - Best Practices for Migrating your Microsoft Workloads to AWS
Scale - Best Practices for Migrating your Microsoft Workloads to AWSAmazon Web Services
 
Mainstream Serverless
Mainstream ServerlessMainstream Serverless
Mainstream ServerlessDhaval Nagar
 
Getting Started with Microservices, Containers, and Serverless Architectures
Getting Started with Microservices, Containers, and Serverless ArchitecturesGetting Started with Microservices, Containers, and Serverless Architectures
Getting Started with Microservices, Containers, and Serverless ArchitecturesAmazon Web Services
 
AWS Startup Garage - Building your MVP on AWS
AWS Startup Garage - Building your MVP on AWSAWS Startup Garage - Building your MVP on AWS
AWS Startup Garage - Building your MVP on AWSCobus Bernard
 
A Culture of Rapid Innovation with DevOps, Microservices, & Serverless - MAD2...
A Culture of Rapid Innovation with DevOps, Microservices, & Serverless - MAD2...A Culture of Rapid Innovation with DevOps, Microservices, & Serverless - MAD2...
A Culture of Rapid Innovation with DevOps, Microservices, & Serverless - MAD2...Amazon Web Services
 
AWS ECS Workshop A Journey to Modern Applications
AWS ECS Workshop A Journey to Modern ApplicationsAWS ECS Workshop A Journey to Modern Applications
AWS ECS Workshop A Journey to Modern ApplicationsAmazon Web Services
 
Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019
 Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019 Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019
Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019Amazon Web Services
 
Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019
 Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019 Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019
Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019AWS Summits
 
2020-04-02 DevConf - How to migrate an existing application to serverless
2020-04-02 DevConf - How to migrate an existing application to serverless2020-04-02 DevConf - How to migrate an existing application to serverless
2020-04-02 DevConf - How to migrate an existing application to serverlessMarcia Villalba
 
DevConZM - Modern Applications Development in the Cloud
DevConZM - Modern Applications Development in the CloudDevConZM - Modern Applications Development in the Cloud
DevConZM - Modern Applications Development in the CloudCobus Bernard
 
Deploying critical Microsoft workloads on AWS at Capital One - SDD337 - AWS r...
Deploying critical Microsoft workloads on AWS at Capital One - SDD337 - AWS r...Deploying critical Microsoft workloads on AWS at Capital One - SDD337 - AWS r...
Deploying critical Microsoft workloads on AWS at Capital One - SDD337 - AWS r...Amazon Web Services
 
AWS Summit Singapore 2019 | AWS Techfest Opening Keynote
AWS Summit Singapore 2019 | AWS Techfest Opening KeynoteAWS Summit Singapore 2019 | AWS Techfest Opening Keynote
AWS Summit Singapore 2019 | AWS Techfest Opening KeynoteAWS Summits
 

Similar to Serverless patterns on AWS (20)

Best Practices for Using AWS Credits
Best Practices for Using AWS CreditsBest Practices for Using AWS Credits
Best Practices for Using AWS Credits
 
What can you do with Serverless in 2020
What can you do with Serverless in 2020What can you do with Serverless in 2020
What can you do with Serverless in 2020
 
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Modern Application Development for Startups
Modern Application Development for StartupsModern Application Development for Startups
Modern Application Development for Startups
 
Serverless-First Function: Serverless application security
Serverless-First Function: Serverless application securityServerless-First Function: Serverless application security
Serverless-First Function: Serverless application security
 
Scale - Best Practices for Migrating your Microsoft Workloads to AWS
Scale - Best Practices for Migrating your Microsoft Workloads to AWSScale - Best Practices for Migrating your Microsoft Workloads to AWS
Scale - Best Practices for Migrating your Microsoft Workloads to AWS
 
Mainstream Serverless
Mainstream ServerlessMainstream Serverless
Mainstream Serverless
 
Getting Started with Microservices, Containers, and Serverless Architectures
Getting Started with Microservices, Containers, and Serverless ArchitecturesGetting Started with Microservices, Containers, and Serverless Architectures
Getting Started with Microservices, Containers, and Serverless Architectures
 
AWS Startup Garage - Building your MVP on AWS
AWS Startup Garage - Building your MVP on AWSAWS Startup Garage - Building your MVP on AWS
AWS Startup Garage - Building your MVP on AWS
 
A Culture of Rapid Innovation with DevOps, Microservices, & Serverless - MAD2...
A Culture of Rapid Innovation with DevOps, Microservices, & Serverless - MAD2...A Culture of Rapid Innovation with DevOps, Microservices, & Serverless - MAD2...
A Culture of Rapid Innovation with DevOps, Microservices, & Serverless - MAD2...
 
Re cap2018
Re cap2018Re cap2018
Re cap2018
 
AWS ECS Workshop A Journey to Modern Applications
AWS ECS Workshop A Journey to Modern ApplicationsAWS ECS Workshop A Journey to Modern Applications
AWS ECS Workshop A Journey to Modern Applications
 
Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019
 Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019 Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019
Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019
 
Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019
 Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019 Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019
Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019
 
2020-04-02 DevConf - How to migrate an existing application to serverless
2020-04-02 DevConf - How to migrate an existing application to serverless2020-04-02 DevConf - How to migrate an existing application to serverless
2020-04-02 DevConf - How to migrate an existing application to serverless
 
DevConZM - Modern Applications Development in the Cloud
DevConZM - Modern Applications Development in the CloudDevConZM - Modern Applications Development in the Cloud
DevConZM - Modern Applications Development in the Cloud
 
Deploying critical Microsoft workloads on AWS at Capital One - SDD337 - AWS r...
Deploying critical Microsoft workloads on AWS at Capital One - SDD337 - AWS r...Deploying critical Microsoft workloads on AWS at Capital One - SDD337 - AWS r...
Deploying critical Microsoft workloads on AWS at Capital One - SDD337 - AWS r...
 
AWS Outposts Update
AWS Outposts UpdateAWS Outposts Update
AWS Outposts Update
 
AWS Summit Singapore 2019 | AWS Techfest Opening Keynote
AWS Summit Singapore 2019 | AWS Techfest Opening KeynoteAWS Summit Singapore 2019 | AWS Techfest Opening Keynote
AWS Summit Singapore 2019 | AWS Techfest Opening Keynote
 

Recently uploaded

Simulation-based Testing of Unmanned Aerial Vehicles with Aerialist
Simulation-based Testing of Unmanned Aerial Vehicles with AerialistSimulation-based Testing of Unmanned Aerial Vehicles with Aerialist
Simulation-based Testing of Unmanned Aerial Vehicles with AerialistSebastiano Panichella
 
miladyskindiseases-200705210221 2.!!pptx
miladyskindiseases-200705210221 2.!!pptxmiladyskindiseases-200705210221 2.!!pptx
miladyskindiseases-200705210221 2.!!pptxCarrieButtitta
 
Event 4 Introduction to Open Source.pptx
Event 4 Introduction to Open Source.pptxEvent 4 Introduction to Open Source.pptx
Event 4 Introduction to Open Source.pptxaryanv1753
 
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...NETWAYS
 
James Joyce, Dubliners and Ulysses.ppt !
James Joyce, Dubliners and Ulysses.ppt !James Joyce, Dubliners and Ulysses.ppt !
James Joyce, Dubliners and Ulysses.ppt !risocarla2016
 
Anne Frank A Beacon of Hope amidst darkness ppt.pptx
Anne Frank A Beacon of Hope amidst darkness ppt.pptxAnne Frank A Beacon of Hope amidst darkness ppt.pptx
Anne Frank A Beacon of Hope amidst darkness ppt.pptxnoorehahmad
 
Work Remotely with Confluence ACE 2.pptx
Work Remotely with Confluence ACE 2.pptxWork Remotely with Confluence ACE 2.pptx
Work Remotely with Confluence ACE 2.pptxmavinoikein
 
The 3rd Intl. Workshop on NL-based Software Engineering
The 3rd Intl. Workshop on NL-based Software EngineeringThe 3rd Intl. Workshop on NL-based Software Engineering
The 3rd Intl. Workshop on NL-based Software EngineeringSebastiano Panichella
 
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...NETWAYS
 
Mathan flower ppt.pptx slide orchids ✨🌸
Mathan flower ppt.pptx slide orchids ✨🌸Mathan flower ppt.pptx slide orchids ✨🌸
Mathan flower ppt.pptx slide orchids ✨🌸mathanramanathan2005
 
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...Krijn Poppe
 
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...Salam Al-Karadaghi
 
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...NETWAYS
 
NATIONAL ANTHEMS OF AFRICA (National Anthems of Africa)
NATIONAL ANTHEMS OF AFRICA (National Anthems of Africa)NATIONAL ANTHEMS OF AFRICA (National Anthems of Africa)
NATIONAL ANTHEMS OF AFRICA (National Anthems of Africa)Basil Achie
 
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdfOpen Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdfhenrik385807
 
call girls in delhi malviya nagar @9811711561@
call girls in delhi malviya nagar @9811711561@call girls in delhi malviya nagar @9811711561@
call girls in delhi malviya nagar @9811711561@vikas rana
 
Genshin Impact PPT Template by EaTemp.pptx
Genshin Impact PPT Template by EaTemp.pptxGenshin Impact PPT Template by EaTemp.pptx
Genshin Impact PPT Template by EaTemp.pptxJohnree4
 
PHYSICS PROJECT BY MSC - NANOTECHNOLOGY
PHYSICS PROJECT BY MSC  - NANOTECHNOLOGYPHYSICS PROJECT BY MSC  - NANOTECHNOLOGY
PHYSICS PROJECT BY MSC - NANOTECHNOLOGYpruthirajnayak525
 
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...NETWAYS
 
Gaps, Issues and Challenges in the Implementation of Mother Tongue Based-Mult...
Gaps, Issues and Challenges in the Implementation of Mother Tongue Based-Mult...Gaps, Issues and Challenges in the Implementation of Mother Tongue Based-Mult...
Gaps, Issues and Challenges in the Implementation of Mother Tongue Based-Mult...marjmae69
 

Recently uploaded (20)

Simulation-based Testing of Unmanned Aerial Vehicles with Aerialist
Simulation-based Testing of Unmanned Aerial Vehicles with AerialistSimulation-based Testing of Unmanned Aerial Vehicles with Aerialist
Simulation-based Testing of Unmanned Aerial Vehicles with Aerialist
 
miladyskindiseases-200705210221 2.!!pptx
miladyskindiseases-200705210221 2.!!pptxmiladyskindiseases-200705210221 2.!!pptx
miladyskindiseases-200705210221 2.!!pptx
 
Event 4 Introduction to Open Source.pptx
Event 4 Introduction to Open Source.pptxEvent 4 Introduction to Open Source.pptx
Event 4 Introduction to Open Source.pptx
 
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
 
James Joyce, Dubliners and Ulysses.ppt !
James Joyce, Dubliners and Ulysses.ppt !James Joyce, Dubliners and Ulysses.ppt !
James Joyce, Dubliners and Ulysses.ppt !
 
Anne Frank A Beacon of Hope amidst darkness ppt.pptx
Anne Frank A Beacon of Hope amidst darkness ppt.pptxAnne Frank A Beacon of Hope amidst darkness ppt.pptx
Anne Frank A Beacon of Hope amidst darkness ppt.pptx
 
Work Remotely with Confluence ACE 2.pptx
Work Remotely with Confluence ACE 2.pptxWork Remotely with Confluence ACE 2.pptx
Work Remotely with Confluence ACE 2.pptx
 
The 3rd Intl. Workshop on NL-based Software Engineering
The 3rd Intl. Workshop on NL-based Software EngineeringThe 3rd Intl. Workshop on NL-based Software Engineering
The 3rd Intl. Workshop on NL-based Software Engineering
 
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
 
Mathan flower ppt.pptx slide orchids ✨🌸
Mathan flower ppt.pptx slide orchids ✨🌸Mathan flower ppt.pptx slide orchids ✨🌸
Mathan flower ppt.pptx slide orchids ✨🌸
 
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
 
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
 
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
 
NATIONAL ANTHEMS OF AFRICA (National Anthems of Africa)
NATIONAL ANTHEMS OF AFRICA (National Anthems of Africa)NATIONAL ANTHEMS OF AFRICA (National Anthems of Africa)
NATIONAL ANTHEMS OF AFRICA (National Anthems of Africa)
 
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdfOpen Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
 
call girls in delhi malviya nagar @9811711561@
call girls in delhi malviya nagar @9811711561@call girls in delhi malviya nagar @9811711561@
call girls in delhi malviya nagar @9811711561@
 
Genshin Impact PPT Template by EaTemp.pptx
Genshin Impact PPT Template by EaTemp.pptxGenshin Impact PPT Template by EaTemp.pptx
Genshin Impact PPT Template by EaTemp.pptx
 
PHYSICS PROJECT BY MSC - NANOTECHNOLOGY
PHYSICS PROJECT BY MSC  - NANOTECHNOLOGYPHYSICS PROJECT BY MSC  - NANOTECHNOLOGY
PHYSICS PROJECT BY MSC - NANOTECHNOLOGY
 
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...
 
Gaps, Issues and Challenges in the Implementation of Mother Tongue Based-Mult...
Gaps, Issues and Challenges in the Implementation of Mother Tongue Based-Mult...Gaps, Issues and Challenges in the Implementation of Mother Tongue Based-Mult...
Gaps, Issues and Challenges in the Implementation of Mother Tongue Based-Mult...
 

Serverless patterns on AWS

  • 1. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Five incredible (and uncommon) serverless patterns David Victoria (he/him) D E V 2 0 1 Emite Facturación Chief Operating Officer
  • 2. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. No server is easier to manage than no server Dr. Werner Vogels VP & CTO at Amazon.com
  • 3. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Serverless is a qualifier that can be applied to any software or service offering, which requires that it is consumed as a utility service and incurs cost only when used. Serverless Architecture on AWS, Second Edition Peter Sbarski, Yan Cui, and Ajay Nair Serverwhat!?
  • 4. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. I know . . . I know . . . And the answer is: YES There obviously are servers somewhere. The difference is that these servers are hidden from (and not managed by) you.
  • 5. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Serverless services on AWS AWS Lambda
  • 6. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Serverless services on AWS AWS Lambda Amazon DynamoDB Amazon API Gateway
  • 7. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Serverless services on AWS AWS Lambda Amazon S3 Amazon DynamoDB Amazon API Gateway
  • 8. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Serverless services on AWS (+20!) AWS Lambda Amazon S3 Amazon DynamoDB Amazon API Gateway AWS Glue Amazon Athena Amazon Kinesis Amazon SNS Amazon SQS AWS AppSync AWS Step Functions Amazon EventBridge Amazon SES AWS IoT Core Amazon Comprehend Amazon Forecast Amazon Lex AWS Elemental MediaConvert Amazon Macie Amazon Personalize AWS X-Ray
  • 9. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Pattern 1: An email as the init of all things: SES
  • 10. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Key services AWS Lambda Amazon S3 Amazon SQS Amazon SES Amazon Simple Email Service (SES) is a cost-effective, flexible, and scalable email service that enables developers to send (and receive) mail from within any application Amazon Simple Storage Service (Amazon S3) is an object storage service offering industry-leading scalability, data availability, security, and performance Amazon Simple Queue Service (SQS) is a fully managed message queuing service that enables you to decouple and scale microservices, distributed systems, and serverless applications AWS Lambda is a serverless, event-driven compute service that lets you run code for virtually any type of application or backend service without provisioning or managing servers
  • 11. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Ingesting SaaS reports to BI tools
  • 12. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Ingesting SaaS reports to BI tools
  • 13. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. An email as the init of all things: SES
  • 14. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Ingesting SaaS reports to BI tools
  • 15. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Ingesting SaaS reports to BI tools
  • 16. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Ingesting SaaS reports to BI tools
  • 17. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Ingesting SaaS reports to BI tools
  • 18. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Ingesting SaaS reports to BI tools
  • 19. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Ingesting SaaS reports to BI tools
  • 20. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Ingesting SaaS reports to BI tools
  • 21. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Use cases • Connect legacy software to cloud serverless infrastructure • Allow users to trigger actions in the cloud with a simple email • Create SaaS data flow process solutions without complex integration A N E M A I L A S T H E I N I T O F A L L T H I N G S : S E S
  • 22. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Pattern 2: Orchestrating with Step Functions
  • 23. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Step Functions Key services AWS Step Functions is a low-code, visual workflow service that developers use to build distributed applications, automate IT and business processes, and build data and machine learning pipelines using AWS services Amazon Comprehend Amazon Comprehend uses ML and natural language processing (NLP) to help you uncover the insights and relationships in your unstructured data. Amazon DynamoDB Amazon DynamoDB is a fully managed, serverless, key-value NoSQL database designed to run high-performance applications at any scale Amazon SNS Amazon Simple Notification Service (Amazon SNS) is a fully managed messaging service for both application-to-application (A2A) and application-to-person (A2P) communication
  • 24. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Sentiment analysis workflow
  • 25. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Sentiment analysis workflow
  • 26. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Sentiment analysis workflow
  • 27. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Sentiment analysis workflow
  • 28. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Sentiment analysis workflow
  • 29. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Sentiment analysis workflow
  • 30. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Sentiment analysis workflow
  • 31. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Workflow definition
  • 32. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Workflow studio design
  • 33. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Use cases • Orchestrate microservices in sync and async processes • Integrate service-to-service call architecture • Allow manual approvals in complex flows • Invoke automatically complete business processes in response to an event O R C H E S T R A T I N G W I T H S T E P F U N C T I O N S
  • 34. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Pattern 3: GraphQL, a different (and serverless) API design approach
  • 35. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Cognito AWS AppSync Key services AWS AppSync is a serverless GraphQL and Pub/Sub API service that simplifies building modern web and mobile applications Amazon Cognito lets you add user sign-up, sign-in, and access control to your web and mobile apps quickly and easily
  • 36. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Mobile app backend
  • 37. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Mobile app backend
  • 38. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Mobile app backend
  • 39. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Mobile app backend
  • 40. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Mobile app backend
  • 41. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Mobile app backend
  • 42. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Mobile app backend
  • 43. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Mobile app backend
  • 44. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Use cases • Web/mobile API with unified data access • Apps where bandwidth usage matters • Composite pattern, where application retrieves data from multiple, different APIs G R A P H Q L , A D I F F E R E N T ( A N D S E R V E R L E S S ) A P I D E S I G N A P P R O A C H
  • 45. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Pattern 4: Interchanging data with a managed SFTP service
  • 46. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Rekognition AWS Elemental MediaConvert AWS Transfer Family Key services AWS Transfer Family is a secure transfer service that enables you to seamlessly migrate, automate, and monitor your file transfer workflows into and out of Amazon S3 and Amazon EFS using the SFTP, FTPS, and FTP protocols AWS Elemental MediaConvert is a file-based video transcoding service with broadcast- grade features. It allows you to easily create video-on-demand (VOD) content for broadcast and multiscreen delivery at scale Amazon Rekognition offers pre-trained and customizable computer vision (CV) capabilities to extract information and insights from your images and videos
  • 47. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Video transfer and transcoding flow
  • 48. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Video transfer and transcoding flow
  • 49. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Video transfer and transcoding flow
  • 50. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Video transfer and transcoding flow
  • 51. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Video transfer and transcoding flow
  • 52. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Video transfer and transcoding flow
  • 53. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Video transfer and transcoding flow
  • 54. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Video transfer and transcoding flow
  • 55. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Video transfer and transcoding flow
  • 56. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Use cases • Modernize your managed file transfers • Gain insights by growing your data lake • Improve collaboration across your trading partner network • Expand your content distribution business I N T E R C H A N G I N G D A T A W I T H A M A N A G E D S F T P S E R V I C E
  • 57. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Pattern 5: Event choreography via EDA (Event-Driven Architecture)
  • 58. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Key services Amazon EventBridge is a serverless event bus that makes it easier to build event-driven applications at scale using events generated from your applications, integrated Software- as-a-Service (SaaS) applications, and AWS services. Amazon EventBridge will automatically deliver the events in near-real-time Amazon EventBridge Amazon API Gateway Amazon API Gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs at any scale.
  • 59. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Event and pattern structure { "version": "0", "id": "ad1de317-e409-eba2-9552-30113f8d88e3", "detail-type": "Object Deleted", "source": "aws.s3", "account": "123456789012", "time": "2021-11-12T00:00:00Z", "region": "ca-central-1", "resources": ["arn:aws:s3:::example-bucket"], "detail": { "version": "0", "bucket": { "name": "example-bucket" }, "object": { "key": "example-key", "etag": "d41d8cd98f00b204e9800998ecf8427e“ }, "request-id": "20EB74C14654DC47", "requester": "s3.amazonaws.com" } { "source": ["aws.s3"], "detail-type": ["Object Deleted"], "detail": { "bucket": { "name": ["example-bucket"] } } }
  • 60. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Online shopping workflow
  • 61. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Online shopping workflow
  • 62. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Online shopping workflow
  • 63. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Online shopping workflow
  • 64. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Online shopping workflow
  • 65. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Online shopping workflow
  • 66. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Online shopping workflow
  • 67. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Online shopping workflow
  • 68. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Online shopping workflow
  • 69. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Online shopping workflow
  • 70. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Online shopping workflow
  • 71. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Online shopping workflow
  • 72. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Use cases • Deliver events to a service with a scheduled configuration • Respond to custom events generated by an application • Deliver events generated on the AWS infrastructure • Extend functionality via SaaS integrations E V E N T C H O R E O G R A P H Y V I A E D A
  • 73. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Tip: X-Ray F U L L S E R V E R L E S S O B S E R V A B I L I T Y T O O L
  • 74. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Tip: Event Catalog https://www.eventcatalog.dev/
  • 75. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Do you think this is possible? D E L E T E I N T E G R A T I N G F U N C T I O N S O N T H E F L Y
  • 76. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Functionless (or how to be serverless without Lambda functions)
  • 77. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. More less? A functionless integration pattern is where a direct integration between two AWS services is configured instead of using custom code in an intermediary Lambda function. If you use a direct service-to-service integration, you can expect these benefits: • Lower Latency • No Code rot • Free (in terms of cloud bill) • Even higher scalability • Less IaC
  • 78. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. The functionless starter pack
  • 79. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Last bonus: Serverlessland! https://serverlessland.com/
  • 80. Thank you! © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Please complete the session survey David Victoria hi@davidvictoria.com Let’s connect on LinkedIn! @vikomex

Editor's Notes

  1.  Amazon States Language
  2. Deliver events to a service with a scheduled configuration (e.g., a crontab, to activate any planned activity) Respond to custom events generated by an application (e.g., new payment  create an invoice) To deliver events generated on the AWS infrastructure (e.g., S3 PutObject or Glue job change status to “SUCCEEDED”)
  3. Benefits of functionless integrations If you use a direct service-to-service integration, you can expect these benefits: Lower Latency. Lambda can introduce a little latency, through occasional cold starts and also simply by being an extra network hop. By going directly from one AWS service to another, you avoid this. No Code rot. You own the code for a Lambda function and its dependencies and so it’s on you to update your dependencies when new versions are available. With direct service integrations, AWS takes care of this for you. Free (in terms of cloud bill). You have to pay for Lambda invocations whereas most, if not all, Lambda-less direct integrations are free (you just pay for the service usage at each end of the integration). Even higher scalability. Lambda functions are very scalable to begin with, but they are subject to an account-wide soft limit of 1,000 concurrent executions. Once this limit is hit, functions get throttled. So if you have a very high throughput integration, a functionless pattern won’t hit this limit (though the services at each end of the integration will likely have their own limits that you’ll need to heed). Less IaC code is needed if you don’t have to provision and wire up the Lambda function, e.g. creating a dedicated IAM role for your function. This benefit is arguable based on how much IaC the functionless component requires to set up. less code to write, test, deploy and run less functions to maintain less points of failures less IAM policies, less permissions to set less security worry less lambda concurrency less monthly spend on lambdas
  4. Amazon API Gateway has a feature that enables customers to create their own API definitions directly in front of an AWS service API.