Microservices - Oodrive · Data Center Virtual Machines Cloud Docker 6 months 1 day 5 minutes 5...

Post on 20-May-2020

1 views 0 download

Transcript of Microservices - Oodrive · Data Center Virtual Machines Cloud Docker 6 months 1 day 5 minutes 5...

MicroservicesDmitry Gritskevich

License engineer at Oodrive

Why?What?How?

Lasagna-OrientedArchitecture

(Layered Monolith)

Spaghetti-OrientedArchitecture

(Copy&Pasta)

Ravioli-OrientedArchitecture

(Microservices)

Why?

Hardware Lead TimeO

rder

lead

tim

e

1980 1988 1996 2004 2012 2020

Data Center Virtual Machines Cloud Docker

6 months

1 day

5 minutes

5 seconds

1 month

Project Delivery CyclesPr

ojec

t dur

atio

n

1970 1980 1990 2000 2010 2020

Waterfall Agile Agile++

5 years

1 year

1 month

1 week

1 day

Go faster!Time to market!

Docker

Agile

Cloud

Microservices

Speed / quality

Better, faster, cheaper

Scale up!Business expansion

— http://martinfowler.com/articles/microservices.html

Microservices

What?

Microservice architectural style is…

a suite of small services…

“Two pizzas teams”— Jeff Bezos, Amazon

The service can be rewritten and redeployed in 2 weeks

— Jon Eaves, realestate.com.au

Microservice architectural style is…

loosely coupled…

vs

Microservice architectural style is…

running in its own process…

Monolith Microservice

Microservice architectural style is…

independently deployable…

Monolith Microservice

Microservice architectural style is…

a bare minimum of centralized management

How?

— http://martinfowler.com/articles/microservices.html

UI

Serv

DB

Any organization that designs a system will produce a design whose structure is a copy of the organization’s communication structure.

— Conway’s law

— http://martinfowler.com/articles/microservices.html

— Conway’s law

Any organization that designs a system will produce a design whose structure is a copy of the organization’s communication structure.

— http://martinfowler.com/bliki/MonolithFirst.html

Monolith First

Orchestration

Choreography

© Jaye Rhee

— Voltaire, Spider-Man

“With Great Power Comes Great Responsibility.”

Design for Failure

99,9%100

= 90,5%

Design for Failure

Monitoring

• Infrastructure Automation

• Automated Testing

• Continuous Delivery

“With Great Power Comes Great Responsibility.”

Sam NewmanBuilding Microservices

Thank you