SlideShare a Scribd company logo
Embracing Complexity in Serverless!
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
Source: thehindubusinessline.com/
Simple
Easy
Complex
Hard
The human body is the most complex
system ever created. The more we
learn about it the more appreciation
we have about how rich system it is.
- Bill Gates
We’re born with a complex system.
We Embrace It!
1. Acknowledging Complexity
Agenda
3. Managing Complexity
2. Understanding Complexity
#TheServerlessBook #TheSpeakerBook
Engineer. Architect. Author
AWS Serverless Hero
Team Topologies Advocate
SheenBrisals.com
Sheen Brisals
1# Acknowledging Complexity
Complexity is Almost Everywhere
Our Lives. Environment. [Software] Engineering
Mainframe Computers …To…Mobile Phones
Self-hosted Systems …To… Cloud Computing
Monoliths …To… Microservices
Every application has an inherent amount of
complexity that cannot be removed or hidden.
Instead, it must be dealt with either in product
development or in user interaction.
- Larry Tesler (Tesler’s Law)
Law of Conservation of Complexity
Complexity is Not Always Bad
For Safety. High Performance. To Trust
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
Largest passenger airliner
Range: 14,800 km / 9,200 mi
Speed: 903 km/h / 561 mph
Altitude: 43,000 ft/ 13,000 m
Complexity is Often a Necessity
Serve Customers. Tech Evolution. Business
Survival
Kitchen
notification
Food dispatch
Customer
notification
Checkout Route planner
Instore orders Online orders More!
Stock Phone orders
Loyalty
Menu
Driver tracking
Payments
Order
management
Personalization
3rd
Party
systems
Customer
service
Kitchen
notification
Food dispatch
Customer
notification
Checkout Route planner
Instore orders Online orders More!
Stock Phone orders
Loyalty
Menu
Driver tracking
Payments
Order
management
Personalization
3rd
Party
systems
Customer
service
Essential Complexity
2# Understanding Complexity
Complexity is the behavior of a system whose
components interact in multiple ways, so possible
interactions are difficult to predict.
- Wikipedia
Know it!
The Sign of Complexity
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
The Sign Expression of Complexity
It’s a nightmare!
I can’t touch it
It’s hopeless
It’s just a piece of ****
Cognitive Load
Source: Balancing Coupling in Software Design
Object
store
Object
store
Function
Function
Function
Function
Function
Function
Queue
NoSQL
store
Topic
Topic
Event
bus
Event
bus
Object
store
Workflow
The Two Sides of Complexity
Accumulated
Disorganized
Distributed
Organized
Hidden Visible
Local Global
Org, domain,
department, team
boundary
Communication line
Monolith
Microlith
Lambdalith Functionlith
Distributed System
3# Managing Complexity
Simplexity
Complex systems built against
simplicity principles for
manageability!
- Dr. Werner Vogels, at AWS re:Invent 2024
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
Decompose Complexity!
To Find Simplexity!
Decompose the business before
decomposing the systems.
Domain: Ecommerce
Domain: Ecommerce
Subdomain: Products
Subdomain: Orders
Subdomain: Payments
Subdomain: Loyalty
Subdomain:
Personalization
Domain: Ecommerce
Subdomain: Products
Subdomain: Orders
Subdomain: Payments
Subdomain: Loyalty
Subdomain:
Personalization
Content Catalogue
Promotions Stock
Next Best
Actions
Fulfillment
Cart
Recommenda
tions
Segments
Checkout
Rewards
Earnings
User
Payments
Fraud
Prevention
Payment
Methods
Members
Domain: Ecommerce
Subdomain: Products
Subdomain: Orders
Subdomain: Payments
Subdomain: Loyalty
Subdomain:
Personalization
Content Catalogue
Promotions Stock
Next Best
Actions
Fulfillment
Cart
Recommenda
tions
Segments
Checkout
Rewards
Earnings
User
Payments
Fraud
Prevention
Payment
Methods
Members
Systems Distribution
Domain Boundaries
Responsibility Boundaries
Team Boundaries Ownership:
Codebases
Cloud Accounts
Service Contracts, Types
Sync
Async
Communication Complification!
Prevent it at All Cost
Building an Event-Driven Architecture (EDA) without a brain is a
gateway to a distributed monolith.
System A
System B
System C
System D
System E
Event Broker
Resources / Services
Cross-account
EventBridge Communication
System A
System B
System C
System D
System E
Some technologies are complex by nature.
Often, we create complexity with simple technologies!
Wikipedia
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
Accidental Complexity
https://tinyurl.com/z3e6dhbz
System A
System B
System C
System D
System E
System A
System B
System C
System D
System E
Cross-Account Chaos that leads to a Distributed Monolith
Don’t let…
Simplification causes complification!
Cross-account communication leads to
cross-account chaos!
Event drivers turn into event intruders!
Essential Complexity becomes Accidental
Complexity!
System B
System C
System D
System E
Domain Bus
Enterprise Bus
Architecture Evolution
Leverage the Power of Small
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
Think
Modular
Primitives Functions
Constructs Microservices
Modularity Controls Complexity
1. Eliminates accidental complexity – avoiding poor design.
2. Encapsulates complex parts – preventing complexity spilling across.
- Balancing Coupling in Software Design
Serverless microservice is a composition of cloud services
knitted with infrastructure as code (IaC).
Protect with Patterns
Prevent Complexity
Design Patterns Service Patterns
Event-Driven
Patterns
Integration
Patterns
Cloud Patterns Storage Patterns
Architecture
Patterns
Sustainability
Patterns
Serverless Patterns
Credit: ormecgroup.com/
Anti-corruption Layer (ACL)
Protection from Complexity
Collaboration type
Customer-supplier Separate ways
Cooperation
Partnership
Shared kernel
Conformist
Anticorruption layer
Open-host service
Patterns
ACL is an integration pattern between two bounded contexts
and acts as a translation layer to map data between two
systems to protect their data models.
Prevent. Protect.
Upstream
Supplier
Bounded Context
Downstream
Consumer
Bounded Context
Data
ACL
If a bounded context conforms to a mess,
it risks becoming a mess itself.
Continually Refactor!
Don’t Stack up Complexity
Complexity sneaks in all the time and it is
something you really need to control.
- Dr. Werner Vogels, AWS re:Invent 2024
Refactoring is a process of changing a
software system.
Pre-cloud refactoring focused on the
software programs [code].
Serverless refactoring is not just about code rewrite but
service re-wiring as well.
Serverless allows refactoring at a granular level.
Program refactoring Infrastructure refactoring
Architecture refactoring Refactoring for cost
Cloud service updates Uptake patterns & practices
Refactor Complexity!
To Close…
Being disciplined: Prevent, Protect, & Refactor
Avoiding event intruders to eliminate tangled systems
Building modular systems that can evolve
Decomposing complexity: From top down
Acknowledging the need: When, Where, & Why
Accepting the essential & avoiding the accidental
Embrace complexity by…
Complexity is inherent in modern systems.
Therefore, apply systems thinking and
simplicity principles to manage it effectively.
Embrace the Essential. Avoid the Accidental.
#TheServerlessBook #TheSpeakerBook
Sheen Brisals
Thank
You!
Engineer. Architect. Author
AWS Serverless Hero
Team Topologies Advocate
SheenBrisals.com
Embracing Complexity in Serverless! GOTO Serverless Bengaluru

More Related Content

PDF
Reactive Architecture
PPT
Presentation copy
PPTX
Why Cloud Management Makes Sense
PPTX
Microservices architecture
PPTX
Microsoft Azure Cloud Basics Tutorial
PPSX
Microservices Architecture - Cloud Native Apps
PDF
Gluecon Monitoring Microservices and Containers: A Challenge
PPTX
EHEv1 Module 11 Cloud Computing Threats and Countermeasures.pptx
Reactive Architecture
Presentation copy
Why Cloud Management Makes Sense
Microservices architecture
Microsoft Azure Cloud Basics Tutorial
Microservices Architecture - Cloud Native Apps
Gluecon Monitoring Microservices and Containers: A Challenge
EHEv1 Module 11 Cloud Computing Threats and Countermeasures.pptx

Similar to Embracing Complexity in Serverless! GOTO Serverless Bengaluru (20)

PPTX
Explaining The Cloud
PPTX
stackArmor - Security MicroSummit - McAfee
PPTX
Microservices Architecture
PDF
Cloud computing & Security presentation
PPT
An introduction to the cloud 11 v1
PPT
The Enterprise Cloud
PDF
Operator-less DataCenters -- A Reality
PDF
Operator-Less DataCenters A Near Future Reality
PDF
Migrating_to_Cloud-Native_App_Architectures_Pivotal
PDF
Migrating to cloud-native_app_architectures_pivotal
PDF
Migrating_to_Cloud-Native_App_Architectures_Pivotal (2)
PDF
Migrating_to_Cloud-Native_App_Architectures_Pivotal (2)
PDF
Battery Ventures: Simulating and Visualizing Large Scale Cassandra Deployments
PDF
Clearing the air on Cloud Computing
DOCX
Cloud Computing Security Issues in Infrastructure as a Service” report
PPT
Cloud computing
PPTX
Private Apps in the Public Cloud - DevConTLV March 2016
PPTX
Cloud computing
PDF
Implementing security groups in open stack
PPT
Cloud computing
Explaining The Cloud
stackArmor - Security MicroSummit - McAfee
Microservices Architecture
Cloud computing & Security presentation
An introduction to the cloud 11 v1
The Enterprise Cloud
Operator-less DataCenters -- A Reality
Operator-Less DataCenters A Near Future Reality
Migrating_to_Cloud-Native_App_Architectures_Pivotal
Migrating to cloud-native_app_architectures_pivotal
Migrating_to_Cloud-Native_App_Architectures_Pivotal (2)
Migrating_to_Cloud-Native_App_Architectures_Pivotal (2)
Battery Ventures: Simulating and Visualizing Large Scale Cassandra Deployments
Clearing the air on Cloud Computing
Cloud Computing Security Issues in Infrastructure as a Service” report
Cloud computing
Private Apps in the Public Cloud - DevConTLV March 2016
Cloud computing
Implementing security groups in open stack
Cloud computing
Ad

More from SheenBrisals (18)

PPTX
Eliminate the complexities of Event-Driven Architecture with Domain-Driven De...
PPTX
Patterns and practices for developing enterprise-scale applications with serv...
PPTX
Is there a place for QA in autonomous fast flow teams?
PPTX
Patterns and practices for an enterprise-scale adoption of serverless!
PPTX
How to study, think, work, and live as an Engineer!
PPTX
Advanced Event-Driven Patterns - AWS Community Day Dublin
PPTX
Enterprise Serverless Adoption. An Experience Report
PPTX
Sustainability In Serverless
PPTX
How to Grow a Serverless Team in an Enterprise
PDF
The Road To Event-Driven Architecture
PDF
Enterprise Serverless Adoption. An Experience Report
PDF
Shillings in Serverless
PDF
To Serverless And Beyond!
PDF
How LEGO.com Accelerates With Serverless
PDF
Sloppy Little Serverless Stories
PDF
How to Grow a Serverless Team
PDF
Design and Develop Serverless Applications as Set-Pieces
PDF
Serverless Microservices Communication with Amazon EventBridge
Eliminate the complexities of Event-Driven Architecture with Domain-Driven De...
Patterns and practices for developing enterprise-scale applications with serv...
Is there a place for QA in autonomous fast flow teams?
Patterns and practices for an enterprise-scale adoption of serverless!
How to study, think, work, and live as an Engineer!
Advanced Event-Driven Patterns - AWS Community Day Dublin
Enterprise Serverless Adoption. An Experience Report
Sustainability In Serverless
How to Grow a Serverless Team in an Enterprise
The Road To Event-Driven Architecture
Enterprise Serverless Adoption. An Experience Report
Shillings in Serverless
To Serverless And Beyond!
How LEGO.com Accelerates With Serverless
Sloppy Little Serverless Stories
How to Grow a Serverless Team
Design and Develop Serverless Applications as Set-Pieces
Serverless Microservices Communication with Amazon EventBridge
Ad

Recently uploaded (20)

PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PPTX
assetexplorer- product-overview - presentation
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
ai tools demonstartion for schools and inter college
PPT
Introduction Database Management System for Course Database
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Nekopoi APK 2025 free lastest update
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PPTX
history of c programming in notes for students .pptx
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Design an Analysis of Algorithms I-SECS-1021-03
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
assetexplorer- product-overview - presentation
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
2025 Textile ERP Trends: SAP, Odoo & Oracle
How to Migrate SBCGlobal Email to Yahoo Easily
Odoo Companies in India – Driving Business Transformation.pdf
ai tools demonstartion for schools and inter college
Introduction Database Management System for Course Database
Understanding Forklifts - TECH EHS Solution
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
CHAPTER 2 - PM Management and IT Context
Nekopoi APK 2025 free lastest update
VVF-Customer-Presentation2025-Ver1.9.pptx
wealthsignaloriginal-com-DS-text-... (1).pdf
Wondershare Filmora 15 Crack With Activation Key [2025
history of c programming in notes for students .pptx
Navsoft: AI-Powered Business Solutions & Custom Software Development
Design an Analysis of Algorithms I-SECS-1021-03

Embracing Complexity in Serverless! GOTO Serverless Bengaluru

Editor's Notes

  • #1: There is no Lambda hack or AI magic show.
  • #15: To remember and recognize Larry Tesler, think of the the most popular task a software engineer does? Copy-paste!
  • #67: Ffumigation service