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

PPTX
Microservices
PPTX
Amazon web services (aws) main developer services
PDF
Microservices, Monoliths, SOA and How We Got Here
PPTX
Micro services Architecture
PDF
The 6 Rules for Modernizing Your Legacy Java Monolith with Microservices
PDF
Nine Neins - where Java EE will never take you
PDF
Microservice
PPTX
Reactive Revealed Part 2: Scalability, Elasticity and Location Transparency i...
Microservices
Amazon web services (aws) main developer services
Microservices, Monoliths, SOA and How We Got Here
Micro services Architecture
The 6 Rules for Modernizing Your Legacy Java Monolith with Microservices
Nine Neins - where Java EE will never take you
Microservice
Reactive Revealed Part 2: Scalability, Elasticity and Location Transparency i...

What's hot (19)

PPTX
From Monolithic to Microservices in 45 Minutes
PDF
Application Deployment and Management at Scale with 1&1 by Matt Baldwin
PPTX
Introduction to container mangement
PDF
CQRS and ES with Lagom
PPTX
Deploying WSO2 Middleware on Kubernetes
PDF
Kafka Summit SF 2017 - Running Kafka for Maximum Pain
PDF
Kenzan: Architecting for Microservices
PPTX
Optimising nfv service chains on open stack using docker
PDF
Modern Elastic Datacenter Architecture
PDF
WSO2 Customer Webinar: WEST Interactive’s Deployment Approach and DevOps Prac...
PDF
Build your First IoT Application with IBM Watson IoT
PPTX
microservice architecture and docker
PPTX
Container Patterns
PPTX
Dcs cloud architecture-high-level-design
PPTX
About Microservices, Containers and their Underestimated Impact on Network Pe...
PPTX
Docker - HieuHoang
PDF
NECOS Objectives
PPTX
Cloud Computing Fundamentals
PPTX
3 migration
From Monolithic to Microservices in 45 Minutes
Application Deployment and Management at Scale with 1&1 by Matt Baldwin
Introduction to container mangement
CQRS and ES with Lagom
Deploying WSO2 Middleware on Kubernetes
Kafka Summit SF 2017 - Running Kafka for Maximum Pain
Kenzan: Architecting for Microservices
Optimising nfv service chains on open stack using docker
Modern Elastic Datacenter Architecture
WSO2 Customer Webinar: WEST Interactive’s Deployment Approach and DevOps Prac...
Build your First IoT Application with IBM Watson IoT
microservice architecture and docker
Container Patterns
Dcs cloud architecture-high-level-design
About Microservices, Containers and their Underestimated Impact on Network Pe...
Docker - HieuHoang
NECOS Objectives
Cloud Computing Fundamentals
3 migration
Ad

Similar to Cloud Native Patterns Using AWS (20)

PDF
An eventful tour from enterprise integration to serverless and functions
PDF
Microservices, containers and event driven architecture - key factors in agil...
PPTX
Microservices, containers and event driven architecture - key factors in agil...
PDF
Microservices, containers and event driven architecture - key factors in agil...
PPTX
Introduction to Microservices Patterns
PPTX
Introduction to Microservices Patterns
PPTX
5 incredible (and uncommon) serverless patterns
PDF
Day in the life event-driven workshop
PPTX
2 5404811386729530203
PDF
The resurgence of event driven architecture
PDF
OutSystsems User Group Netherlands September 2024.pdf
PPTX
Demistifying serverless on aws
PDF
Events and microservices
KEY
Event Driven Architecture
PDF
Event Driven-Architecture from a Scalability perspective
PPTX
Patterns of Distributed Application Design
PDF
Cloud application architecture with Microsoft Azure
PPTX
Events & Microservices
PDF
Patterns of Distributed Application Design
PDF
Using the Event Gateway To Build Multi-Cloud Serverless Applications - JeffCo...
An eventful tour from enterprise integration to serverless and functions
Microservices, containers and event driven architecture - key factors in agil...
Microservices, containers and event driven architecture - key factors in agil...
Microservices, containers and event driven architecture - key factors in agil...
Introduction to Microservices Patterns
Introduction to Microservices Patterns
5 incredible (and uncommon) serverless patterns
Day in the life event-driven workshop
2 5404811386729530203
The resurgence of event driven architecture
OutSystsems User Group Netherlands September 2024.pdf
Demistifying serverless on aws
Events and microservices
Event Driven Architecture
Event Driven-Architecture from a Scalability perspective
Patterns of Distributed Application Design
Cloud application architecture with Microsoft Azure
Events & Microservices
Patterns of Distributed Application Design
Using the Event Gateway To Build Multi-Cloud Serverless Applications - JeffCo...
Ad

Recently uploaded (20)

PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Nekopoi APK 2025 free lastest update
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
System and Network Administraation Chapter 3
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
medical staffing services at VALiNTRY
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
Introduction to Artificial Intelligence
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
PTS Company Brochure 2025 (1).pdf.......
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
Understanding Forklifts - TECH EHS Solution
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Design an Analysis of Algorithms I-SECS-1021-03
Nekopoi APK 2025 free lastest update
wealthsignaloriginal-com-DS-text-... (1).pdf
System and Network Administraation Chapter 3
How Creative Agencies Leverage Project Management Software.pdf
medical staffing services at VALiNTRY
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
2025 Textile ERP Trends: SAP, Odoo & Oracle
Introduction to Artificial Intelligence
Design an Analysis of Algorithms II-SECS-1021-03
Odoo POS Development Services by CandidRoot Solutions
PTS Company Brochure 2025 (1).pdf.......
Operating system designcfffgfgggggggvggggggggg
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Understanding Forklifts - TECH EHS Solution
Adobe Illustrator 28.6 Crack My Vision of Vector Design
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...

Cloud Native Patterns Using AWS

  • 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