microservices vs. the first law of distributed objects - goto nights chicago 2017

43
Phil Calçado - @pcalcado philcalcado.com Microservices vs. The First Law of Distributed Objects

Upload: phil-calcado

Post on 12-Apr-2017

291 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

Phil Calçado - @pcalcado philcalcado.com

Microservices vs. The First Law of Distributed Objects

Page 2: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

Phil Calçado - @pcalcado philcalcado.com

Microservices vs. The First Law of Distributed Objects

Page 3: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

(disclaimer)

Page 4: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

Servers used to be very expensive.

Efficient software was mandatory.

Page 5: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

Internet usage was growing drastically.

And so was the demand for engineers.

Page 6: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

"The flexible, server-side infrastructure of CORBA makes it feasible to develop servers that can scale from handling a small number of objects up to handling a virtually unlimited number of objects. "

Page 7: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017
Page 8: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017
Page 9: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

what are objects

anyway?

Page 10: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

"Smalltalk’s design—and existence—is due to the insight that everything we can describe can be represented by the recursive composition of a single kind of behavioral building block that hides its combination of state and process inside itself and can be dealt with only through the exchange of messages."

Page 11: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

i.e. annoying little things that can’t do anything on their

own.

Page 12: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

An analogy from the meatspace

Page 13: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

i.e. annoying little things that can’t do anything on their

own.

Page 14: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

Communication isn’t free

Page 15: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017
Page 16: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017
Page 17: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

don’t

Page 18: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

don’t

Page 19: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

don’t

Page 20: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

and there was much rejoicing

Page 21: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

fast forward to 2017

Page 22: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

microservices

Page 23: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

what are microservices

anyway?

Page 24: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

"Microservices are small, autonomous services that work together."

Page 25: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

i.e. annoying little things that can’t do anything on their

own.

Page 26: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

wtf?

and still…

Page 27: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

1. technology did get better

Page 28: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

no more design-by-committee

Page 29: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

2. services are coarse-grained

Page 30: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

the problem with microservices is the

micro

service microservice?

Page 31: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

MonolithClass ?

Page 32: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

a real-world example

Page 33: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

billing

Page 34: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

billingBillableUser ?

Page 35: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017
Page 36: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

it’s all about the language

Page 37: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

run-rate

invoice

credit card

user

droplet-started

droplet-destroyed

taxcurrency

bank account

realised revenue

Page 38: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

run-rateinvoice

credit card

user

droplet-starteddroplet-destroyed

taxcurrency

bank account

realised revenue

product price

charging model

Page 39: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

rating invoicing

payment -collectingusers

Page 40: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

rating invoicingpayment

-collectingusers

Highly visible

Not visible

Novel Commodity

Page 41: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

the ubiquitous language can

give you a blueprint

Page 42: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

…unless you are too big or too

small

Page 43: Microservices vs. The First Law of Distributed Objects - GOTO Nights Chicago 2017

Q&A