microservices in your datacentre

41
digitalocean.com Phil Calçado @pcalcado philcalcado.com Microservices in your Datacentre

Upload: phil-calcado

Post on 15-Apr-2017

4.310 views

Category:

Engineering


8 download

TRANSCRIPT

Page 1: Microservices in your Datacentre

digitalocean.com

Phil Calçado @pcalcado

philcalcado.com

Microservices in your Datacentre

Page 2: Microservices in your Datacentre

digitalocean.com

Phil Calçado @pcalcado

philcalcado.com

Microservices in your Datacentre

Page 3: Microservices in your Datacentre
Page 4: Microservices in your Datacentre

13 datacentres

Page 5: Microservices in your Datacentre

~18 million droplets

Page 6: Microservices in your Datacentre

a grown-up infrastructure

company

Page 7: Microservices in your Datacentre

Why am I even here?

Page 8: Microservices in your Datacentre

Projects take too long

idea $$

Page 9: Microservices in your Datacentre

Upon closer look

idea $$

Page 10: Microservices in your Datacentre

Product Engineering

Cloud Engineering

Page 11: Microservices in your Datacentre

We will be talking about Product Engineering

Page 12: Microservices in your Datacentre

I am completely biased

Page 13: Microservices in your Datacentre

"The general tendency is to over-design the second system, using all the ideas and frills that were cautiously sidetracked on the first one."

— Fred Brooks, "The Second-System Effect"

Page 14: Microservices in your Datacentre

finaglescalamuxservicediscoverybuildpipelinesconsulrabbitmqkubernetesdockerzipkineventsourcingservicesdirectorygolangbffsidecarsthriftcircuitbreakerszookeeperkafkaprometheusjenkinsrundeckcassandrahadoophystrixrxjavastitch

what to prioritise?

Page 15: Microservices in your Datacentre

Some stuff is just mandatory.

Page 16: Microservices in your Datacentre

• Rapid provisioning • Basic Monitoring • Rapid application deployment

Page 17: Microservices in your Datacentre

• Rapid provisioning 😎 • Basic Monitoring💩 • Rapid application deployment 💩

Page 18: Microservices in your Datacentre
Page 19: Microservices in your Datacentre
Page 20: Microservices in your Datacentre

Value-Added Service

Critical Path Service

PCI, ect.

Page 21: Microservices in your Datacentre

And some other stuff is just taste.

Page 22: Microservices in your Datacentre

HTTP+JSON

Page 23: Microservices in your Datacentre

Performance isn’t likely to be your problem using it.

Page 24: Microservices in your Datacentre

Tolerant Reader leads to lots of duplicated code.

Page 25: Microservices in your Datacentre

Duplicated code leads to client libraries.

Page 26: Microservices in your Datacentre

Client libraries lead to release management overhead.

Page 27: Microservices in your Datacentre

Client libraries lead to hidden business logic.

Page 28: Microservices in your Datacentre

Client Libraries need to be efficient, lean, robust.

Page 29: Microservices in your Datacentre

They don’t need to be written manually.

Page 30: Microservices in your Datacentre

Something I’m sure you’ll have:

Page 31: Microservices in your Datacentre

Circular dependencies.

Page 32: Microservices in your Datacentre

Event Bus

Circles can often be broken by async events

Page 33: Microservices in your Datacentre

We are event driven by nature

Page 34: Microservices in your Datacentre
Page 35: Microservices in your Datacentre
Page 36: Microservices in your Datacentre

What should be a service?

Page 37: Microservices in your Datacentre

billing

Page 38: Microservices in your Datacentre

rating invoicingpayment

-collectingenabled -features

Page 39: Microservices in your Datacentre

rating invoicingpayment

-collectingenabled -features

Highly visible

Not visible

Novel Commodity

Page 40: Microservices in your Datacentre

It’s early days, but we can already see progress.

idea $$

Page 41: Microservices in your Datacentre

digitalocean.com

Q&A