Top Banner
MICROSERVICE ORCHESTRATION by / Co-Founder of Timo Derstappen @teemow Giant Swarm
41

OSDC 2015: Timo Derstappen | Microservice orchestration

Jul 15, 2015

Download

Technology

NETWAYS
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: OSDC 2015: Timo Derstappen | Microservice orchestration

MICROSERVICEORCHESTRATION

by / Co-Founder of Timo Derstappen @teemow

Giant Swarm

Page 2: OSDC 2015: Timo Derstappen | Microservice orchestration

DISCLAIMERWe are building a container infrastructure

on top of CoreOS.

Page 3: OSDC 2015: Timo Derstappen | Microservice orchestration

WHY MICROSERVICES?A simpl(e|ified) story!

Page 4: OSDC 2015: Timo Derstappen | Microservice orchestration

Once upon the time there was a small web app.

Page 5: OSDC 2015: Timo Derstappen | Microservice orchestration

Every day new features were added and the users loved it.

Page 6: OSDC 2015: Timo Derstappen | Microservice orchestration

One day it became hard to add new features,maintain, test and scale it.

Page 7: OSDC 2015: Timo Derstappen | Microservice orchestration

Because of that popular features were put into separateservices with their own databases.

Page 8: OSDC 2015: Timo Derstappen | Microservice orchestration

Because of that the deployment and server provisioningwas automated.

Page 9: OSDC 2015: Timo Derstappen | Microservice orchestration

Until finally more popular features could be added easily

Page 10: OSDC 2015: Timo Derstappen | Microservice orchestration

THIS ALSO HELPSWITH...

Page 11: OSDC 2015: Timo Derstappen | Microservice orchestration

Two Pizza Teams

Page 12: OSDC 2015: Timo Derstappen | Microservice orchestration

Deploy independently

Page 13: OSDC 2015: Timo Derstappen | Microservice orchestration

Throw-away services

Page 14: OSDC 2015: Timo Derstappen | Microservice orchestration

BUT MICROSERVICESARE NOT FREE LUNCH!

Page 15: OSDC 2015: Timo Derstappen | Microservice orchestration

In theory they are like nano structures

Page 16: OSDC 2015: Timo Derstappen | Microservice orchestration

In practice they are Death Stars

Page 17: OSDC 2015: Timo Derstappen | Microservice orchestration

Complexity is not gone

Page 18: OSDC 2015: Timo Derstappen | Microservice orchestration

Complexity moves to the infrastructure

Page 19: OSDC 2015: Timo Derstappen | Microservice orchestration

But now we have small immutable artifacts.

Page 20: OSDC 2015: Timo Derstappen | Microservice orchestration

With clear separation between build- and runtime

Page 21: OSDC 2015: Timo Derstappen | Microservice orchestration

All things will be good

Page 22: OSDC 2015: Timo Derstappen | Microservice orchestration

But what are we going to use in production?

Page 23: OSDC 2015: Timo Derstappen | Microservice orchestration

SOME USEFULCONCEPTS

Page 24: OSDC 2015: Timo Derstappen | Microservice orchestration

LINK CONTAINERS ACROSS HOSTSDocker can link two containers on a single host. Let's

simulate that across hosts.

Page 25: OSDC 2015: Timo Derstappen | Microservice orchestration

THREE-TIER APPLICATION

Page 26: OSDC 2015: Timo Derstappen | Microservice orchestration

SIDEKICK

Page 27: OSDC 2015: Timo Derstappen | Microservice orchestration

AMBASSADOR

Page 28: OSDC 2015: Timo Derstappen | Microservice orchestration

CONTAINER INJECTIONConfigure your containers with other containers. Similar to

dependency injection

Single ResponsibilityIndependent from runtime environment

Page 29: OSDC 2015: Timo Derstappen | Microservice orchestration

CONTAINER CHAIN

Page 30: OSDC 2015: Timo Derstappen | Microservice orchestration

CONTAINER CHAIN

Page 31: OSDC 2015: Timo Derstappen | Microservice orchestration

CONTAINER CHAIN

Page 32: OSDC 2015: Timo Derstappen | Microservice orchestration

CONTAINER CHAIN

Page 33: OSDC 2015: Timo Derstappen | Microservice orchestration

CONTAINER CHAIN

Page 34: OSDC 2015: Timo Derstappen | Microservice orchestration

DISTRIBUTED CONTAINER CHAIN

Page 35: OSDC 2015: Timo Derstappen | Microservice orchestration

DISTRIBUTED CONTAINER CHAIN

Page 36: OSDC 2015: Timo Derstappen | Microservice orchestration

DISTRIBUTED CONTAINER CHAIN

Page 37: OSDC 2015: Timo Derstappen | Microservice orchestration

DISTRIBUTED CONTAINER CHAIN

Page 38: OSDC 2015: Timo Derstappen | Microservice orchestration

SUPERVISION

Page 39: OSDC 2015: Timo Derstappen | Microservice orchestration

SUPERVISION

Page 40: OSDC 2015: Timo Derstappen | Microservice orchestration

DEMO

Page 41: OSDC 2015: Timo Derstappen | Microservice orchestration

THANKS FOR LISTENING!Timo Derstappen

@teemow

Co-Founder of Giant Swarm