Slide 1

Slide 1 text

© 2016 Mesosphere, Inc. All Rights Reserved. FROM PETS TO CATTLE TO FLOCK OF BIRDS 1 Michael Hausenblas, Developer & Cloud Advocate | FOSDEM, Brussels | 2016-01-30

Slide 2

Slide 2 text

© 2015 Mesosphere, Inc. All Rights Reserved. sys admin devops developer architect management QA/tester

Slide 3

Slide 3 text

© 2016 Mesosphere, Inc. All Rights Reserved. EVOLUTION OF COMPUTE 3 containers flock of birds

Slide 4

Slide 4 text

© 2016 Mesosphere, Inc. All Rights Reserved. PETS VS CATTLE 4 Pets are individuals that you give names and when they get ill you nurse them back to health. Cattle are anonymous, identical to other cattle you assign numbers and when they get ill → next one. http://www.theregister.co.uk/2013/03/18/servers_pets_or_cattle_cern/

Slide 5

Slide 5 text

© 2016 Mesosphere, Inc. All Rights Reserved. APPLICATION LIFE CYCLE 5

Slide 6

Slide 6 text

© 2016 Mesosphere, Inc. All Rights Reserved. WHAT IS FLOCK OF BIRDS (FOB)? 6 https://medium.com/@mhausenblas/pets-vs-cattle-vs-flock-of-birds-12f1da3abfc3

Slide 7

Slide 7 text

© 2016 Mesosphere, Inc. All Rights Reserved. FLOCK OF BIRDS CONCEPT 7 • Unit of compute: a function • Dynamically allocated resources for execution • Integration with other systems is crucial • Relation to … • PaaS • RPC λ C

Slide 8

Slide 8 text

© 2016 Mesosphere, Inc. All Rights Reserved. CONTENDERS & USAGE 8

Slide 9

Slide 9 text

© 2016 Mesosphere, Inc. All Rights Reserved. AWS LAMBDA 9 https://aws.amazon.com/lambda/

Slide 10

Slide 10 text

© 2016 Mesosphere, Inc. All Rights Reserved. WEBTASK 10 https://webtask.io/

Slide 11

Slide 11 text

© 2016 Mesosphere, Inc. All Rights Reserved. STACKHUT 11 https://stackhut.com

Slide 12

Slide 12 text

© 2016 Mesosphere, Inc. All Rights Reserved. NANO LAMBDA 12 http://nano-lambda.com/

Slide 13

Slide 13 text

© 2016 Mesosphere, Inc. All Rights Reserved. WHAT IS FLOCK OF BIRDS GOOD FOR? 13 • Constraints devices (IoT) • Event-driven logic (IFTTT, hooks, etc.) • Mobile (stateless) apps • Distributed load testing (see Goad)

Slide 14

Slide 14 text

© 2016 Mesosphere, Inc. All Rights Reserved. THINGS TO THINK ABOUT 14

Slide 15

Slide 15 text

© 2016 Mesosphere, Inc. All Rights Reserved. STATE 15

Slide 16

Slide 16 text

© 2016 Mesosphere, Inc. All Rights Reserved. DEBUGGING 16

Slide 17

Slide 17 text

© 2016 Mesosphere, Inc. All Rights Reserved. SOME OTHER THINGS TO CONSIDER … 17 • network is the bottleneck • chaining • monitoring, logging • build your own?

Slide 18

Slide 18 text

© 2016 Mesosphere, Inc. All Rights Reserved. Q & A 18 • @mhausenblas • mhausenblas.info • @mesosphere