Microservices The Basic Math
Why Microservices?
● 'Small' easier to manage
● Do more with less!● Reduce workload
– Developers– Architects– Business Agility
"Think Small" by Source. Licensed under Fair use via Wikipedia - http://en.wikipedia.org/wiki/File:Think_Small.jpg#/media/File:Think_Small.jpg
Reduce Mental Workload
● 2 Parts– Services– Interfaces
shared message formats through which services communicate
Basic Math: Segmentation
● Square = Business application● Segmenting => Microservices● Measure total size: Services + Interface
Service
Interface
1 Monolith or
Service
Interface
4 Services or
Service
Interface
16 Microservices
Service
Interface
What is the Problem?
Service : Interface = 1:1
Service
Interface
100%
100%
Service : Interface = 1:6
Service
Interface
150%
25%
Service : Interface = 1:40
Service
Interface
6.25%
250%
Single Service to Interface Ratio
Service to Interface Ratio
Square root of number of services
1 2 3 4 50
10
20
30
40
50
60
70
80
ratio_service_to_interface number_of_interfaces_per_developer
Financial & Human Factor
Days to study and understand
interface design
Invest $$ in learning curve
A B C D E F
G H I J K L
M N O P Q
R S T U V W
X Y Z
無事忘監督
株式会社一
部東北部寿
司地下鉄電
子学校側強
Microservice Interface
● Learning curve is expensive
● Like learning Chinese Characters
● 'Service-to-Interface' Ratio Increases
– Complex Interface environment
● Service contracts
● Shared message formats
● Counterproductive
Purpose of Microservices
● To combine and recombine services
● Create completely new services
● Make business more agile
The Goal - Ratio 1:1
Conclusion
● IF
Microservices cannot reduce the learning curve
and cost associated with complex interfaces
● THEN
they will not make a business more agile
2015 © 1060 Research Ltd
Ne
tK
er
ne
l -
So
ft
wa
re
Lik
e t
he
We
b
Th
e
We
b
Ins
ide
S
oft
wa
re
More Info For more information please contact us at
1060 Research Limited
23 Horse StreetChipping SodburyBristol, BS37 6DAUnited Kingdom
www.1060research.com
The World's Most Adaptable Software
NetKernel®
1060 Research Ltd
NetKernel 5● Infrastructure Platform
Customers● Defense, Education, Law, Telecoms, Government...● (70%US, 30%EU)
Research● Spun out of HP Labs in 2002● Economics of Software & its Complexity● Pioneered Computing Abstraction: Resource-Oriented
Computing
Top Related