21
Microservices The Basic Math

Microservices, The Basic Math

Embed Size (px)

Citation preview

Page 1: Microservices, The Basic Math

Microservices The Basic Math

Page 2: 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

Page 3: Microservices, The Basic Math

Reduce Mental Workload

● 2 Parts– Services– Interfaces

shared message formats through which services communicate

Page 4: Microservices, The Basic Math

Basic Math: Segmentation

● Square = Business application● Segmenting => Microservices● Measure total size: Services + Interface

Service

Interface

Page 5: Microservices, The Basic Math

1 Monolith or

Service

Interface

Page 6: Microservices, The Basic Math

4 Services or

Service

Interface

Page 7: Microservices, The Basic Math

16 Microservices

Service

Interface

Page 8: Microservices, The Basic Math

What is the Problem?

Page 9: Microservices, The Basic Math

Service : Interface = 1:1

Service

Interface

100%

100%

Page 10: Microservices, The Basic Math

Service : Interface = 1:6

Service

Interface

150%

25%

Page 11: Microservices, The Basic Math

Service : Interface = 1:40

Service

Interface

6.25%

250%

Page 12: Microservices, The Basic Math

Single Service to Interface Ratio

Page 13: Microservices, The Basic Math

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

Page 14: Microservices, The Basic Math

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

無事忘監督

株式会社一

部東北部寿

司地下鉄電

子学校側強

Page 15: Microservices, The Basic Math

Microservice Interface

● Learning curve is expensive

● Like learning Chinese Characters

● 'Service-to-Interface' Ratio Increases

– Complex Interface environment

● Service contracts

● Shared message formats

● Counterproductive

Page 16: Microservices, The Basic Math

Purpose of Microservices

● To combine and recombine services

● Create completely new services

● Make business more agile

Page 17: Microservices, The Basic Math

The Goal - Ratio 1:1

Page 18: Microservices, The Basic Math

Conclusion

● IF

Microservices cannot reduce the learning curve

and cost associated with complex interfaces

● THEN

they will not make a business more agile

Page 19: Microservices, The Basic Math

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

[email protected]

1060 Research Limited

23 Horse StreetChipping SodburyBristol, BS37 6DAUnited Kingdom

www.1060research.com

Page 20: Microservices, The Basic Math

The World's Most Adaptable Software

NetKernel®

Page 21: Microservices, The Basic Math

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