SlideShare a Scribd company logo
AWS Serverless
Examples
AWS Serverless Components
AWS Serverless - Previous Slides Recap
● In previous slides we analyzed AWS main serverless components
(https://www.slideshare.net/DimosthenisBotsaris/aws-serverless-introduction
● In these slides we will explore serverless architecture flows to solve real life
issues.
● We try to define AWS Serverless components to use to achieve serverless flow,
in production environment.
● Implementation of some flows can be found on:
https://github.com/arconsis/aws-network-microservices-warmup
Serverless Architectures
Pros
● Cost: Pay per invocation, no costs for unused servers
● Scaling: Auto scaling in response to spikes in traffic
● Productivity: Responsible only for your code, AWS handles managing and provisioning of
servers
Cons
● Vendor lock-in: Seamlessly integration with other services from AWS, hard to move over
to other Cloud Providers
● Testing: Difficult to perform integration tests
● Performance: Cold starts may add latency to some users
3-tier Serverless Flow (1)
● Amazon API GW in a public subnet, as
entry point of backend.
● Amazon API GW handles routing,
aggregation, authorization.
● Amazon ECS in private subnets handles
orchestration management & auto-
scale of our backend.
● Amazon Fargate in private subnets
used as our server.
● Amazon DynamoDB in private subnets
is used as database.
3-tier Serverless Flow (2)
● Amazon API GW in a public subnet, as
entry point of backend.
● Amazon API GW handles routing,
aggregation, authorization.
● Amazon Lambda in private subnets,
used as servers, which auto-scale.
● Amazon DynamoDB in private subnets
is used as database.
3-tier Serverless Flow (3)
● Amazon API GW in a public
subnet, as entry point of
backend.
● Amazon API GW handles
routing, aggregation,
authorization.
● Amazon Lambda in private
subnets, used as servers, which
auto-scale.
● Amazon S3 is used to store
files.
● S3 event notification will be fired
towards SQS.
● Amazon DynamoDB in private
subnets is used as database.
AWS Microservices Event Driven Flow (1)
AWS Microservices Event Driven Flow (2)
● Amazon API GW in a public subnet, as entry point of backend.
● Amazon API GW handles routing, aggregation, authorization.
● Amazon ECS in private subnets handles orchestration management & auto-scale of our
backend.
● Amazon Fargate in private subnets used as our servers.
● Amazon SNS + SQS combination is used to create Fan-Out pattern, to serve an event to two
or more downstream services.
● The SQS queue stores the event for asynchronous processing
● Amazon DynamoDB in private subnets is used as databases.
AWS S3 Events - FanOut (1)
AWS S3 Events - FanOut (2)
● Amazon S3 is used as file storage.
● Client uploads a file, which is stored to AWS S3.
● S3 event notification will be fired towards SNS.
● Amazon SNS + SQS combination is used to create Fan-Out pattern, to serve an event to two
or more downstream services.
● Amazon SQS DLQ is used for messages that can't be processed (consumed) successfully.
● The SQS queue stores the event for asynchronous processing.
● Amazon Lambda in private subnets, used as servers, which auto-scale.
● Amazon DynamoDB in private subnets is used as databases.
AWS S3 Events - Lambda (1)
AWS S3 Events - Lambda (2)
● Amazon S3 is used as file storage.
● Client uploads a file, which is stored to AWS S3.
● S3 event notification will be fired towards Lambda.
● Amazon SQS is used for communication among Lambdas - decouple them!
● Amazon SQS DLQ is used for messages that can't be processed (consumed) successfully.
● The SQS queue stores the event for asynchronous processing.
● Amazon API GW in a public subnet, as entry point of backend.
● Amazon API GW handles routing, aggregation, authorization.
● Amazon Lambda in private subnets, used as servers, which auto-scale.
● Amazon DynamoDB in private subnets is used as databases.
AWS Real Time Analytics Stream Platform (1)
AWS Real Time Analytics Stream Platform (2)
● Amazon API GW in a public subnet, as entry point of backend and acts as Kinesis Proxy
(decouple client from Kinesis)
● Amazon Kinesis Data Stream ingests and collects large amount of data records in real time.
● Amazon Kinesis Data Analytics used to transform and analyze streaming data in real time.
● Amazon Lambda in private subnets, used to add our business logic e.g. remove duplicate
values.
● Amazon DynamoDB in private subnets is used as databases to store processed data.
● Amazon DynamoDB streams used to fire transactional logs events.
● Amazon SNS used to send sms / emails to clients.
● Amazon Kinesis Data Firehose used as ETL service that streams data into Amazon S3 into
correct format.
● Amazon S3 used to store raw data.
● Amazon Athena used interactive query service to query / analyze data from S3
AWS Kinesis AutoScale
● Amazon CloudWatch Metrics used to
capture metrics from Kinesis Data Stream.
● Amazon CloudWatch alarms (scale-
up/down), used to decide when to scale.
● When scaling takes place, an event fired to
Amazon SNS.
● Amazon Lambda async consumes SNS
events and increase or decrease Amazon
Kinesis shards and updates alarms with
new shards counter.
Contact Info
● Arconsis:
○ Website: https://www.arconsis.com
○ Github: https://github.com/arconsis
● Dimos Botsaris:
○ Website: https://www.eldimious.com/
○ Github: https://github.com/eldimious
○ Email: botsaris.d@gmail.com
● Alexandros Koufatzis:
○ Github: https://github.com/akoufa
○ Email: akoufa@gmail.com
 AWS Serverless Examples

More Related Content

PPTX
AWS Introduction
PPTX
AWS Storage - S3 Fundamentals
PDF
Deep dive into cloud security - Jaimin Gohel & Virendra Rathore
PPTX
Containers on AWS
PPTX
Amazon Virtual Private Cloud - VPC 2
PPTX
AWS - Beanstalk Fundamentals
PPTX
AWS Serverless Introduction
PDF
AWS Introduction
AWS Storage - S3 Fundamentals
Deep dive into cloud security - Jaimin Gohel & Virendra Rathore
Containers on AWS
Amazon Virtual Private Cloud - VPC 2
AWS - Beanstalk Fundamentals
AWS Serverless Introduction

What's hot (12)

PPTX
Amazon Virtual Private Cloud - VPC 1
PPTX
AWS VPC Fundamental
PPTX
EC2 and S3 Level 100
PDF
Amazon relational database service (rds)
PPTX
AWS Messaging
PPTX
AWS Cloudfront Fundamentals
PPTX
AWS Serverless concepts and solutions
PPTX
AWS Lambda Features and Uses
PPTX
AWS - Lambda Fundamentals
PPTX
Aws lambda and accesing AWS RDS - Clouddictive
PPTX
Aws platform overview
PPTX
AWS network services
Amazon Virtual Private Cloud - VPC 1
AWS VPC Fundamental
EC2 and S3 Level 100
Amazon relational database service (rds)
AWS Messaging
AWS Cloudfront Fundamentals
AWS Serverless concepts and solutions
AWS Lambda Features and Uses
AWS - Lambda Fundamentals
Aws lambda and accesing AWS RDS - Clouddictive
Aws platform overview
AWS network services
Ad

Similar to AWS Serverless Examples (12)

PDF
Getting Started with AWS Lambda & Serverless Cloud
PDF
Serverless Architecture on AWS
PDF
GOTO Stockholm - AWS Lambda - Logic in the cloud without a back-end
PPTX
AWS Serverless Computing Introduction Session 2.pptx
PPTX
Lambda and serverless - DevOps North East Jan 2017
PPTX
Introduction to AWS lambda & Serverless Application1.pptx
PDF
AWS Lambda Functions A Comprehensive Guide
PPTX
Getting started with Serverless on AWS
PDF
Introduction to AWS Lambda with Python
PDF
Em tempo real: Ingestão, processamento e analise de dados
PPTX
Gluecon 2018 - The Best Practices and Hard Lessons Learned of Serverless Appl...
PDF
AWSomeDay Zurich 2018 - How to go serverless
Getting Started with AWS Lambda & Serverless Cloud
Serverless Architecture on AWS
GOTO Stockholm - AWS Lambda - Logic in the cloud without a back-end
AWS Serverless Computing Introduction Session 2.pptx
Lambda and serverless - DevOps North East Jan 2017
Introduction to AWS lambda & Serverless Application1.pptx
AWS Lambda Functions A Comprehensive Guide
Getting started with Serverless on AWS
Introduction to AWS Lambda with Python
Em tempo real: Ingestão, processamento e analise de dados
Gluecon 2018 - The Best Practices and Hard Lessons Learned of Serverless Appl...
AWSomeDay Zurich 2018 - How to go serverless
Ad

Recently uploaded (20)

PPTX
Construction Project Organization Group 2.pptx
PPTX
Welding lecture in detail for understanding
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
Lecture Notes Electrical Wiring System Components
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
Digital Logic Computer Design lecture notes
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPT
Mechanical Engineering MATERIALS Selection
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PPTX
web development for engineering and engineering
Construction Project Organization Group 2.pptx
Welding lecture in detail for understanding
Embodied AI: Ushering in the Next Era of Intelligent Systems
CYBER-CRIMES AND SECURITY A guide to understanding
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Lecture Notes Electrical Wiring System Components
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Digital Logic Computer Design lecture notes
Model Code of Practice - Construction Work - 21102022 .pdf
Mechanical Engineering MATERIALS Selection
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Foundation to blockchain - A guide to Blockchain Tech
bas. eng. economics group 4 presentation 1.pptx
Automation-in-Manufacturing-Chapter-Introduction.pdf
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
web development for engineering and engineering

AWS Serverless Examples

  • 3. AWS Serverless - Previous Slides Recap ● In previous slides we analyzed AWS main serverless components (https://www.slideshare.net/DimosthenisBotsaris/aws-serverless-introduction ● In these slides we will explore serverless architecture flows to solve real life issues. ● We try to define AWS Serverless components to use to achieve serverless flow, in production environment. ● Implementation of some flows can be found on: https://github.com/arconsis/aws-network-microservices-warmup
  • 4. Serverless Architectures Pros ● Cost: Pay per invocation, no costs for unused servers ● Scaling: Auto scaling in response to spikes in traffic ● Productivity: Responsible only for your code, AWS handles managing and provisioning of servers Cons ● Vendor lock-in: Seamlessly integration with other services from AWS, hard to move over to other Cloud Providers ● Testing: Difficult to perform integration tests ● Performance: Cold starts may add latency to some users
  • 5. 3-tier Serverless Flow (1) ● Amazon API GW in a public subnet, as entry point of backend. ● Amazon API GW handles routing, aggregation, authorization. ● Amazon ECS in private subnets handles orchestration management & auto- scale of our backend. ● Amazon Fargate in private subnets used as our server. ● Amazon DynamoDB in private subnets is used as database.
  • 6. 3-tier Serverless Flow (2) ● Amazon API GW in a public subnet, as entry point of backend. ● Amazon API GW handles routing, aggregation, authorization. ● Amazon Lambda in private subnets, used as servers, which auto-scale. ● Amazon DynamoDB in private subnets is used as database.
  • 7. 3-tier Serverless Flow (3) ● Amazon API GW in a public subnet, as entry point of backend. ● Amazon API GW handles routing, aggregation, authorization. ● Amazon Lambda in private subnets, used as servers, which auto-scale. ● Amazon S3 is used to store files. ● S3 event notification will be fired towards SQS. ● Amazon DynamoDB in private subnets is used as database.
  • 8. AWS Microservices Event Driven Flow (1)
  • 9. AWS Microservices Event Driven Flow (2) ● Amazon API GW in a public subnet, as entry point of backend. ● Amazon API GW handles routing, aggregation, authorization. ● Amazon ECS in private subnets handles orchestration management & auto-scale of our backend. ● Amazon Fargate in private subnets used as our servers. ● Amazon SNS + SQS combination is used to create Fan-Out pattern, to serve an event to two or more downstream services. ● The SQS queue stores the event for asynchronous processing ● Amazon DynamoDB in private subnets is used as databases.
  • 10. AWS S3 Events - FanOut (1)
  • 11. AWS S3 Events - FanOut (2) ● Amazon S3 is used as file storage. ● Client uploads a file, which is stored to AWS S3. ● S3 event notification will be fired towards SNS. ● Amazon SNS + SQS combination is used to create Fan-Out pattern, to serve an event to two or more downstream services. ● Amazon SQS DLQ is used for messages that can't be processed (consumed) successfully. ● The SQS queue stores the event for asynchronous processing. ● Amazon Lambda in private subnets, used as servers, which auto-scale. ● Amazon DynamoDB in private subnets is used as databases.
  • 12. AWS S3 Events - Lambda (1)
  • 13. AWS S3 Events - Lambda (2) ● Amazon S3 is used as file storage. ● Client uploads a file, which is stored to AWS S3. ● S3 event notification will be fired towards Lambda. ● Amazon SQS is used for communication among Lambdas - decouple them! ● Amazon SQS DLQ is used for messages that can't be processed (consumed) successfully. ● The SQS queue stores the event for asynchronous processing. ● Amazon API GW in a public subnet, as entry point of backend. ● Amazon API GW handles routing, aggregation, authorization. ● Amazon Lambda in private subnets, used as servers, which auto-scale. ● Amazon DynamoDB in private subnets is used as databases.
  • 14. AWS Real Time Analytics Stream Platform (1)
  • 15. AWS Real Time Analytics Stream Platform (2) ● Amazon API GW in a public subnet, as entry point of backend and acts as Kinesis Proxy (decouple client from Kinesis) ● Amazon Kinesis Data Stream ingests and collects large amount of data records in real time. ● Amazon Kinesis Data Analytics used to transform and analyze streaming data in real time. ● Amazon Lambda in private subnets, used to add our business logic e.g. remove duplicate values. ● Amazon DynamoDB in private subnets is used as databases to store processed data. ● Amazon DynamoDB streams used to fire transactional logs events. ● Amazon SNS used to send sms / emails to clients. ● Amazon Kinesis Data Firehose used as ETL service that streams data into Amazon S3 into correct format. ● Amazon S3 used to store raw data. ● Amazon Athena used interactive query service to query / analyze data from S3
  • 16. AWS Kinesis AutoScale ● Amazon CloudWatch Metrics used to capture metrics from Kinesis Data Stream. ● Amazon CloudWatch alarms (scale- up/down), used to decide when to scale. ● When scaling takes place, an event fired to Amazon SNS. ● Amazon Lambda async consumes SNS events and increase or decrease Amazon Kinesis shards and updates alarms with new shards counter.
  • 17. Contact Info ● Arconsis: ○ Website: https://www.arconsis.com ○ Github: https://github.com/arconsis ● Dimos Botsaris: ○ Website: https://www.eldimious.com/ ○ Github: https://github.com/eldimious ○ Email: botsaris.d@gmail.com ● Alexandros Koufatzis: ○ Github: https://github.com/akoufa ○ Email: akoufa@gmail.com