Nordic API
konghq.com
Marco Palladino
DECOUPLED, DISTRIBUTED, SELF-HEALING
konghq.com
Monolith Services
Microservices/
Service Mesh
Journey to a modern Enterprise
Emerging PatternsServerless/FaaS
+
N-S N-S N-S N-S
E-W
N-S
konghq.com
What does it mean?
konghq.com
Refactoring a monolith is an activity that unlocks
team productivity and business scalability
konghq.com
Refactoring a monolith is an activity that unlocks
team productivity and business scalability
konghq.com
Should we do it?
konghq.com
konghq.com
O(1) to O(n)
konghq.com
konghq.com
Let’s do it!
konghq.com
Ice Cream Scoop Lego Strategy Nuclear Strategy
konghq.com
Ice Cream Scoop Lego Strategy Nuclear Strategy
konghq.com
Class
Class
Class
Class
Class
Class
Class Class Class
ClassClassClass
Database
Object-Oriented Monolith
Lots of function calls across
different objects
konghq.com
Users
Search
Orders
Inventory
Invoices
Billing
Items Reviews Payouts
PointsOffersPartners
Database
Hypothetical Marketplace
Like Amazon.com
konghq.com
Users
Search
Orders
Inventory
Invoices
Billing
Items Reviews Payouts
PointsOffersPartners
Database
Team 1
Team 2
Team 3
konghq.com
Team 2
TEAM FRICTION
konghq.com
Users Orders Invoices
Billing
PayoutsPoints
OffersPartners
Database
Team 1
Team 2
Team 3
Search Inventory
Items Reviews
Database
konghq.com
Users Orders Invoices
Billing
PayoutsPoints
OffersPartners
Database
Team 1
Team 2
Team 3
Search
Inventory
Items Reviews
Database
Database
konghq.com
Clear understanding of
what the Monolith does
and does not
Understanding of
clients that are
consuming the
monolith
Tests, Tests, Tests.
konghq.com
CLIENTS
konghq.com
Frontend
Load Balancer
N-S Traffic
N-S Traffic
Users
Search
Orders
Inventory
Invoices
Billing
Items Reviews Payouts
PointsOffersPartners
Monolith
konghq.com
Frontend
API Gateway
N-S Traffic
N-S Traffic
Users
Search
Orders
Inventory
Invoices
Billing
Items Reviews Payouts
PointsOffersPartners
Monolith
API Gateways are
also load balancers
konghq.com
Frontend
API Gateway
Users SearchOrders InventoryInvoices
Billing Items Reviews
PayoutsPoints
OffersPartners
E-W Traffic
Routing
konghq.com
Frontend
API Gateway
Users SearchOrders InventoryInvoices
Billing Items Reviews
PayoutsPoints
OffersPartners
E-W Traffic
Canary Release (ie, 10% traffic)
Search Inventory
Items Reviews
v1.0 v1.1
konghq.com
Sizing the services
konghq.com
Service
Service
Service
Service
Service
Service
Service Service Service
ServiceServiceService Database
Database
Database
Database
Ideal World
konghq.com
Service
Service
Service
Service
Service
Service
Service Service
Service
Service
Database
Database
Database
Database
Reality
konghq.com
Network
konghq.com
In monoliths we have objects , interfaces and function calls.
In microservices we have services , interfaces, and network calls.
konghq.com
Service
Service
Service
Service
Service
Service
Service Service Service
ServiceServiceService Database
Database
Database
Database
Microservices
Lots of network calls across
different services
Network
konghq.com
Service
Service
Service
Service
Service
Service
Service Service Service
ServiceServiceService Database
Database
Database
Database
Microservices
Lots of network calls across
different services
Typical network problems: latency, security, routing, error handling, observability
konghq.com
Service
Service
Service
Service
Service
Service
Service Service Service
ServiceServiceService
Database
Database
Database
Database
Service Mesh
Lots of network calls across
different services through a
decentralized proxy
D
P
D
P
D
P
D
P
D
P
D
P
D
P
D
P
D
P
D
P
D
P
D
P
D
P
D
P
D
P
D
P
konghq.com
local
ServiceService
Success Rate 100%
Network Latency 0ms
Success Rate 100%
Network Latency 0ms
Proxy Proxy
konghq.com
ServiceService
Proxy Proxy
ServiceService ServiceService
Proxy Proxy
konghq.com
Service
Service
Service
Service
Service
Service
Service Service Service
ServiceServiceService
Database
Database
Database
Database
D
P
D
P
D
P
D
P
D
P
D
P
D
P
D
P
D
P
D
P
D
P
D
P
Control Plane (CP)
Push dynamic configuration
and act as TLS CA
Collect metrics from sidecars
D
P
D
P
D
P
D
P
konghq.com
Service
Service
Service
Service
Service
Service
Service Service Service
ServiceServiceService
Database
Database
Database
Database
D
P
D
P
D
P
D
P
D
P
D
P
D
P
D
P
D
P
D
P
D
P
D
P
Control Plane (CP)
DP
External Clients
CNS
Central Nervous System
PNS
Peripheral Nervous System
N E R V O U S S Y S T E M
N E R V O U S S Y S T E M
Control Planes
For configuration and metrics
Open Source Data Planes
Lightweight and Decentralized
Data Planes
N E R V O U S S Y S T E M O F T H E C L O U D
MONOLITH SERVICES MESH SERVERLESS
WW Kick-off 2019
Business Pragmatic Adopting
konghq.com
Download Kong at konghq.com

Blowing up the Monolith: Practical Advice on Microservices