SlideShare a Scribd company logo
Cloud Native
Patterns Using
AWS
Practical Examples
What means to be “Cloud Native”
Cloud Native architectures take advantage of what Cloud has to
offer empowering organisations to build and run scalable applications
in modern, dynamic environments such as public, private, and hybrid
clouds (CNCF Definition).
$ > ”It means to be designed for the cloud from day one.”
Cloud Native characteristics
- We should be able to create, destroy and recreate at any time (i.e. disposable
infrastructure)
- We should be able to deploy, update, replace and scale it individually (i.e. bounded
isolated components)
- We should be able to run it in multiples regions (i.e. scales globally)
- It should be able easy to design, redesign or make experimentations (i.e.
disposable architecture)
- A single team should be able to architect, provision the infrastructure, implement and
monitor a component (i.e. self-sufficient full-stack teams)
- Deployments are decoupled from releases (i.e. it drives a cultural change)
Foundation patterns - FP
- FP1: One Database per component
- FP2: Event Streaming
- FP3: Event Sourcing
- FP4: Data Lake
- FP5: Trilateral API
Boundary patterns - BP
- BP1: API Gateway
- BP2: Command Query Responsibility Segregation
- BP3: Backend for Frontend
- BP4: External Service Gateway
Control patterns - CP
- CP1: Event collaboration
- CP2: Event orchestration
AWS Building Blocks
- Route 53
- API Gateway
- AWS Lambda
- RDS
- Kinesis
- S3
- Elastic Search
- Elasticache
- SNS
FP1: One Database per component
• Database type matching the component’s
needs (polyglot persistence)
• Database is not shared between components
• Change data capture (CDC) triggering intra-
component processing
• Some cloud DB offer cross-region replication
FP2: Event Streaming
• Enable inter-component asynchronous
message-driven communication
• Multiples streams for different purposes:
• Log stream
• Back-office stream
• Front-office stream
FP3: Event Sourcing
• Changes in state of domain entities results in
atomic immutable domain-event
• We should be able to recreate the state from
the event history
• Upstream components don’t know/care
about the downstream components.
• Downstream components don’t know/care
who/how the event was generated
FP4: Data Lake
• All events are collected, stored and indexed
in raw format
• High durability supporting auditing,
searching, replay, and analytics
• All streamed event eventually run into the
Data Lake
FP5: Trilateral API
• Teams should document and publish the
Trilateral API of each component
• Any change must be backwards compatible
• Tests must ensure no breaking changes
• Pub/Sub streams for asynchronous inter-
component communication
• Command/query for synchronous
communication with the external world
BP1: API Gateway
• Exposes the component to the external world
• Decouples business concerns from cross-
cutting concerns like subscriptions, quotas,
security, DDoS, DNS routing (treated by
other components/services)
BP2: Command Query Responsibility Segregation
• Command and queries have different
requirements (cpu / memory / throughput)
• Each component has it own database but it is
blocked from generate join queries
• CQRS consumes state change events from
upstream components and maintain
materialised views that support queries used
within the component
BP3: Backend for Frontend
• The Front-end is a product that can touches
the backend
• Dedicated self-sufficient backend
components supports user-focused features
• GraphQL to support multiple device formats
in a single BFF
• Teams have the full control over their feature
across the full-stack
BP4: External Service Gateway
• Integrates with external systems
• Bridge between different systems or regions
• Decouples business concerns from cross-
cutting concerns like subscriptions, quotas,
security, external service authentication,…)
CP1: Event collaboration
• Domain events triggers downstream
commands
• A reactive chain of collaboration across
multiples components
CP2: Event Orchestration
• The inners of the event define the next step
in the chain
• Mediators can control how the collaboration
between components going to work
• It makes possible to build complex process
rules like workflows
References
Thank you!

More Related Content

What's hot (20)

PPTX
Domain Driven Design
Nader Albert
 
PPTX
Java Spring Framework
Mehul Jariwala
 
PPTX
Software architecture patterns
Riccardo Cardin
 
PPTX
Spring boot
Gyanendra Yadav
 
PDF
Intro to Terraform
Josh Michielsen
 
PPT
Asp.net basic
Neelesh Shukla
 
PDF
Spring Framework - AOP
Dzmitry Naskou
 
PDF
Spring boot
Bhagwat Kumar
 
PDF
Spring aop
Hamid Ghorbani
 
PPTX
Spring Boot Tutorial
Naphachara Rattanawilai
 
PDF
Git Tutorial | Git Basics - Branching, Merging, Rebasing | Learn Git | DevOps...
Edureka!
 
PDF
Spring Boot
koppenolski
 
PPTX
Introduction to Maven
Mindfire Solutions
 
PDF
Gitlab flow
viniciusban
 
PDF
Terraform
Diego Pacheco
 
PDF
Introduction to Spring Framework
Hùng Nguyễn Huy
 
PPTX
Model view controller (mvc)
M Ahsan Khan
 
PDF
Spring Data JPA
Knoldus Inc.
 
PPT
Maven Introduction
Sandeep Chawla
 
PDF
Getting Started on Amazon EKS
Matthew Barlocker
 
Domain Driven Design
Nader Albert
 
Java Spring Framework
Mehul Jariwala
 
Software architecture patterns
Riccardo Cardin
 
Spring boot
Gyanendra Yadav
 
Intro to Terraform
Josh Michielsen
 
Asp.net basic
Neelesh Shukla
 
Spring Framework - AOP
Dzmitry Naskou
 
Spring boot
Bhagwat Kumar
 
Spring aop
Hamid Ghorbani
 
Spring Boot Tutorial
Naphachara Rattanawilai
 
Git Tutorial | Git Basics - Branching, Merging, Rebasing | Learn Git | DevOps...
Edureka!
 
Spring Boot
koppenolski
 
Introduction to Maven
Mindfire Solutions
 
Gitlab flow
viniciusban
 
Terraform
Diego Pacheco
 
Introduction to Spring Framework
Hùng Nguyễn Huy
 
Model view controller (mvc)
M Ahsan Khan
 
Spring Data JPA
Knoldus Inc.
 
Maven Introduction
Sandeep Chawla
 
Getting Started on Amazon EKS
Matthew Barlocker
 

Similar to Cloud Native Patterns Using AWS - Practical Examples (20)

PDF
An eventful tour from enterprise integration to serverless and functions
Christian Posta
 
PDF
Microservices, containers and event driven architecture - key factors in agil...
Judy Breedlove
 
PPTX
Microservices, containers and event driven architecture - key factors in agil...
Judy Breedlove
 
PDF
Microservices, containers and event driven architecture - key factors in agil...
Judy Breedlove
 
PPTX
Introduction to Microservices Patterns
arconsis
 
PPTX
Introduction to Microservices Patterns
Dimosthenis Botsaris
 
PPTX
5 incredible (and uncommon) serverless patterns
DavidVictoria12
 
PDF
Day in the life event-driven workshop
Christina Lin
 
PPTX
2 5404811386729530203
Stfalcon Meetups
 
PDF
The resurgence of event driven architecture
Kim Clark
 
PDF
OutSystsems User Group Netherlands September 2024.pdf
mail496323
 
PPTX
Demistifying serverless on aws
AWS Riyadh User Group
 
PDF
Events and microservices
Saul Caganoff
 
KEY
Event Driven Architecture
andreaskallberg
 
PDF
Event Driven-Architecture from a Scalability perspective
Jonas Bonér
 
PPTX
Patterns of Distributed Application Design
Orkhan Gasimov
 
PDF
Cloud application architecture with Microsoft Azure
Guillermo Zepeda Selman
 
PPTX
Events & Microservices
Yamen Sader
 
PDF
Patterns of Distributed Application Design
GlobalLogic Ukraine
 
PDF
Using the Event Gateway To Build Multi-Cloud Serverless Applications - JeffCo...
Philipp Müns
 
An eventful tour from enterprise integration to serverless and functions
Christian Posta
 
Microservices, containers and event driven architecture - key factors in agil...
Judy Breedlove
 
Microservices, containers and event driven architecture - key factors in agil...
Judy Breedlove
 
Microservices, containers and event driven architecture - key factors in agil...
Judy Breedlove
 
Introduction to Microservices Patterns
arconsis
 
Introduction to Microservices Patterns
Dimosthenis Botsaris
 
5 incredible (and uncommon) serverless patterns
DavidVictoria12
 
Day in the life event-driven workshop
Christina Lin
 
2 5404811386729530203
Stfalcon Meetups
 
The resurgence of event driven architecture
Kim Clark
 
OutSystsems User Group Netherlands September 2024.pdf
mail496323
 
Demistifying serverless on aws
AWS Riyadh User Group
 
Events and microservices
Saul Caganoff
 
Event Driven Architecture
andreaskallberg
 
Event Driven-Architecture from a Scalability perspective
Jonas Bonér
 
Patterns of Distributed Application Design
Orkhan Gasimov
 
Cloud application architecture with Microsoft Azure
Guillermo Zepeda Selman
 
Events & Microservices
Yamen Sader
 
Patterns of Distributed Application Design
GlobalLogic Ukraine
 
Using the Event Gateway To Build Multi-Cloud Serverless Applications - JeffCo...
Philipp Müns
 
Ad

More from Anderson Carvalho (6)

PDF
Modern infrastructure as code
Anderson Carvalho
 
PDF
Cloud Native Patterns Using AWS
Anderson Carvalho
 
PPTX
Microservices
Anderson Carvalho
 
PPTX
O auth2 e open id connect
Anderson Carvalho
 
PPTX
Amazon web services (aws) main developer services
Anderson Carvalho
 
PPTX
Terraform infrastructure as code for mere mortals
Anderson Carvalho
 
Modern infrastructure as code
Anderson Carvalho
 
Cloud Native Patterns Using AWS
Anderson Carvalho
 
Microservices
Anderson Carvalho
 
O auth2 e open id connect
Anderson Carvalho
 
Amazon web services (aws) main developer services
Anderson Carvalho
 
Terraform infrastructure as code for mere mortals
Anderson Carvalho
 
Ad

Recently uploaded (20)

PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 

Cloud Native Patterns Using AWS - Practical Examples

  • 2. What means to be “Cloud Native” Cloud Native architectures take advantage of what Cloud has to offer empowering organisations to build and run scalable applications in modern, dynamic environments such as public, private, and hybrid clouds (CNCF Definition). $ > ”It means to be designed for the cloud from day one.”
  • 3. Cloud Native characteristics - We should be able to create, destroy and recreate at any time (i.e. disposable infrastructure) - We should be able to deploy, update, replace and scale it individually (i.e. bounded isolated components) - We should be able to run it in multiples regions (i.e. scales globally) - It should be able easy to design, redesign or make experimentations (i.e. disposable architecture) - A single team should be able to architect, provision the infrastructure, implement and monitor a component (i.e. self-sufficient full-stack teams) - Deployments are decoupled from releases (i.e. it drives a cultural change)
  • 4. Foundation patterns - FP - FP1: One Database per component - FP2: Event Streaming - FP3: Event Sourcing - FP4: Data Lake - FP5: Trilateral API
  • 5. Boundary patterns - BP - BP1: API Gateway - BP2: Command Query Responsibility Segregation - BP3: Backend for Frontend - BP4: External Service Gateway
  • 6. Control patterns - CP - CP1: Event collaboration - CP2: Event orchestration
  • 7. AWS Building Blocks - Route 53 - API Gateway - AWS Lambda - RDS - Kinesis - S3 - Elastic Search - Elasticache - SNS
  • 8. FP1: One Database per component • Database type matching the component’s needs (polyglot persistence) • Database is not shared between components • Change data capture (CDC) triggering intra- component processing • Some cloud DB offer cross-region replication
  • 9. FP2: Event Streaming • Enable inter-component asynchronous message-driven communication • Multiples streams for different purposes: • Log stream • Back-office stream • Front-office stream
  • 10. FP3: Event Sourcing • Changes in state of domain entities results in atomic immutable domain-event • We should be able to recreate the state from the event history • Upstream components don’t know/care about the downstream components. • Downstream components don’t know/care who/how the event was generated
  • 11. FP4: Data Lake • All events are collected, stored and indexed in raw format • High durability supporting auditing, searching, replay, and analytics • All streamed event eventually run into the Data Lake
  • 12. FP5: Trilateral API • Teams should document and publish the Trilateral API of each component • Any change must be backwards compatible • Tests must ensure no breaking changes • Pub/Sub streams for asynchronous inter- component communication • Command/query for synchronous communication with the external world
  • 13. BP1: API Gateway • Exposes the component to the external world • Decouples business concerns from cross- cutting concerns like subscriptions, quotas, security, DDoS, DNS routing (treated by other components/services)
  • 14. BP2: Command Query Responsibility Segregation • Command and queries have different requirements (cpu / memory / throughput) • Each component has it own database but it is blocked from generate join queries • CQRS consumes state change events from upstream components and maintain materialised views that support queries used within the component
  • 15. BP3: Backend for Frontend • The Front-end is a product that can touches the backend • Dedicated self-sufficient backend components supports user-focused features • GraphQL to support multiple device formats in a single BFF • Teams have the full control over their feature across the full-stack
  • 16. BP4: External Service Gateway • Integrates with external systems • Bridge between different systems or regions • Decouples business concerns from cross- cutting concerns like subscriptions, quotas, security, external service authentication,…)
  • 17. CP1: Event collaboration • Domain events triggers downstream commands • A reactive chain of collaboration across multiples components
  • 18. CP2: Event Orchestration • The inners of the event define the next step in the chain • Mediators can control how the collaboration between components going to work • It makes possible to build complex process rules like workflows