from serverless to service full - how the mindset of devops is evolving

95
FROM SERVERLESS TO SERVICEFULL HOW THE MINDSET OF DEVOPS IS EVOLVING @patrickdebois - Small Town Heroes

Upload: patrick-debois

Post on 11-Jan-2017

33.831 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: From serverless to Service Full - How the mindset of devops is evolving

FROM SERVERLESS TO SERVICEFULL

HOW THE MINDSET OF DEVOPS IS EVOLVING

@patrickdebois - Small Town Heroes

Page 2: From serverless to Service Full - How the mindset of devops is evolving

Things I did (I’m proud of)

Page 3: From serverless to Service Full - How the mindset of devops is evolving

LIVE RESULTSINTERACTION MODERATIONSTUDIO CONTROLPART OF THE SHOW

Page 4: From serverless to Service Full - How the mindset of devops is evolving

(almost)SERVERLESS

Page 5: From serverless to Service Full - How the mindset of devops is evolving

“Backend” services

ELB

Page 6: From serverless to Service Full - How the mindset of devops is evolving

“IT support” services

Page 7: From serverless to Service Full - How the mindset of devops is evolving

Our “Office” services

Page 8: From serverless to Service Full - How the mindset of devops is evolving

“Community” services

Page 9: From serverless to Service Full - How the mindset of devops is evolving

“Frontend” services

Page 10: From serverless to Service Full - How the mindset of devops is evolving

“Mobile” services

SNS/Push Cognito

Page 11: From serverless to Service Full - How the mindset of devops is evolving

(almost)SERVICEFULL

Page 12: From serverless to Service Full - How the mindset of devops is evolving

A bit further down the rabbit hole …

Page 13: From serverless to Service Full - How the mindset of devops is evolving

Github

Page 14: From serverless to Service Full - How the mindset of devops is evolving

undocumented changes to service

Page 15: From serverless to Service Full - How the mindset of devops is evolving

limits and unavailable

Page 16: From serverless to Service Full - How the mindset of devops is evolving

autoscaling is too slow for peak traffic

Page 17: From serverless to Service Full - How the mindset of devops is evolving

service got disabled because

of too many bounces

Page 18: From serverless to Service Full - How the mindset of devops is evolving

inconsistent behaviour

Page 19: From serverless to Service Full - How the mindset of devops is evolving

(almost)NO MAINTENANCE

Page 20: From serverless to Service Full - How the mindset of devops is evolving

increased riskwhen not available

Page 21: From serverless to Service Full - How the mindset of devops is evolving
Page 22: From serverless to Service Full - How the mindset of devops is evolving

Case1 Generate “personalised” image

Browser -> Pre-signed S3 -> Lambda -> SQS -> Redis

Page 23: From serverless to Service Full - How the mindset of devops is evolving

Case2 Peak load testing like a real browser

SQS -> Lambda -> S3 results

Page 24: From serverless to Service Full - How the mindset of devops is evolving

Case3 Generate “personalised” text animated gif

API GW -> Lambda -> S3 image

Page 25: From serverless to Service Full - How the mindset of devops is evolving

Case4 Animated gif/movie/meme editor

API GW -> Lambda -> Img magic movie -> s3

Page 26: From serverless to Service Full - How the mindset of devops is evolving
Page 27: From serverless to Service Full - How the mindset of devops is evolving
Page 28: From serverless to Service Full - How the mindset of devops is evolving
Page 29: From serverless to Service Full - How the mindset of devops is evolving

You are an Agent

Page 30: From serverless to Service Full - How the mindset of devops is evolving

You make promises to others in the system

Page 31: From serverless to Service Full - How the mindset of devops is evolving

Your promises should be verifiable

Page 32: From serverless to Service Full - How the mindset of devops is evolving

A promise does not guarantee an outcome

Page 33: From serverless to Service Full - How the mindset of devops is evolving

Conditions should be part of your promise

Page 34: From serverless to Service Full - How the mindset of devops is evolving

It needs to be clearly documented otherwise it’s not a promise

Page 35: From serverless to Service Full - How the mindset of devops is evolving
Page 36: From serverless to Service Full - How the mindset of devops is evolving

the language of a promise must be shared

Page 37: From serverless to Service Full - How the mindset of devops is evolving

It needs to be mutually agreed (not obligation) otherwise it’s not a promise

Page 38: From serverless to Service Full - How the mindset of devops is evolving

You might depend on other agents to keep your promises

Page 39: From serverless to Service Full - How the mindset of devops is evolving

Other agents make promises to you

Page 40: From serverless to Service Full - How the mindset of devops is evolving

Their promises need to be verifiableclearly documented & mutually agreed (not obligation)

Page 41: From serverless to Service Full - How the mindset of devops is evolving

But you can not make promises on behalf of other agents (bottom up vs top down)

Page 42: From serverless to Service Full - How the mindset of devops is evolving

Promises can be conflicting in a system

Page 43: From serverless to Service Full - How the mindset of devops is evolving

but the conflict can only be from internal promises (as we can not be responsible for others promises)

Page 44: From serverless to Service Full - How the mindset of devops is evolving

To keep a promise you should have a choice Push vs Pull

Page 45: From serverless to Service Full - How the mindset of devops is evolving

Single Leaves = SPOF

To create choice you need to eliminate the single leaves (SPOF)

Page 46: From serverless to Service Full - How the mindset of devops is evolving
Page 47: From serverless to Service Full - How the mindset of devops is evolving

“Abstraction is selective ignorance”

http://en.wikipedia.org/wiki/Andrew_Koenig_(programmer)

Page 48: From serverless to Service Full - How the mindset of devops is evolving

All problems in computer science can be solved by

another level of abstraction

Page 49: From serverless to Service Full - How the mindset of devops is evolving

… except for the problem of too many layers of indirection …

David Wheeler (inventor of subroutine)

Page 50: From serverless to Service Full - How the mindset of devops is evolving
Page 51: From serverless to Service Full - How the mindset of devops is evolving
Page 52: From serverless to Service Full - How the mindset of devops is evolving

Every promise binding is the basis for relationship(Dunbar)

Page 53: From serverless to Service Full - How the mindset of devops is evolving

Agents with a similar goal can be grouped into a Super Agent

Page 54: From serverless to Service Full - How the mindset of devops is evolving

Services

Page 55: From serverless to Service Full - How the mindset of devops is evolving

Single Leaves = SPOF

You need multiple Super Agents to have a choice again

Page 56: From serverless to Service Full - How the mindset of devops is evolving

Forksv1 v2 v3

v1 v2 v3

To keep promises agent can introduce different world views (versions)

Page 57: From serverless to Service Full - How the mindset of devops is evolving

Slows down

A super agent might get slow internal communication speed is key

Page 58: From serverless to Service Full - How the mindset of devops is evolving

Scaling Promises keeping your promise while changing your size (is hard)

Page 59: From serverless to Service Full - How the mindset of devops is evolving

container re-use non-deterministic

Page 60: From serverless to Service Full - How the mindset of devops is evolving

limits not clear under stress

Page 61: From serverless to Service Full - How the mindset of devops is evolving

scale is not always infinite

Page 62: From serverless to Service Full - How the mindset of devops is evolving

services

devops

Page 63: From serverless to Service Full - How the mindset of devops is evolving

Holy Cow!

Page 64: From serverless to Service Full - How the mindset of devops is evolving

“I introduced devops and all I got was a remote API”

Page 65: From serverless to Service Full - How the mindset of devops is evolving

It’s devops Jim but not as we know it

Page 66: From serverless to Service Full - How the mindset of devops is evolving

emerging practices

Page 67: From serverless to Service Full - How the mindset of devops is evolving

communicate the status

of your promise and monitor others

Page 68: From serverless to Service Full - How the mindset of devops is evolving

monitor your services

and expose your own metrics (API)

Page 69: From serverless to Service Full - How the mindset of devops is evolving

expose insights to other agents

(API)

Page 70: From serverless to Service Full - How the mindset of devops is evolving

show that you care about

other agents

Page 71: From serverless to Service Full - How the mindset of devops is evolving

expose your logs

Page 72: From serverless to Service Full - How the mindset of devops is evolving

be clear on what happens when it fails

Page 73: From serverless to Service Full - How the mindset of devops is evolving

backup external data (give an API please)

Page 74: From serverless to Service Full - How the mindset of devops is evolving

provide & seek fast feedback

on your promise change status

Page 75: From serverless to Service Full - How the mindset of devops is evolving

be clear on your dependencies and expect the same

of other services

Page 76: From serverless to Service Full - How the mindset of devops is evolving

be proactive to make others keep their

promises

Page 77: From serverless to Service Full - How the mindset of devops is evolving

give insights on changing promises

Page 78: From serverless to Service Full - How the mindset of devops is evolving

blog to communicate your service

skill level

Page 79: From serverless to Service Full - How the mindset of devops is evolving

talk at conferences to indicate

your willingness to share

Page 80: From serverless to Service Full - How the mindset of devops is evolving

make it convenient for other agents to use

Page 81: From serverless to Service Full - How the mindset of devops is evolving

provide feedback to other agents

Page 82: From serverless to Service Full - How the mindset of devops is evolving

show that you listen to those that depend on you

Page 83: From serverless to Service Full - How the mindset of devops is evolving

show that your participation by improving

the field

Page 84: From serverless to Service Full - How the mindset of devops is evolving

show that your engineers

are not afraid of talking to people

Page 85: From serverless to Service Full - How the mindset of devops is evolving

be responsive to requests

Page 86: From serverless to Service Full - How the mindset of devops is evolving

let other agents influence your changing

promises

Page 87: From serverless to Service Full - How the mindset of devops is evolving

External Services are the next silo

Page 88: From serverless to Service Full - How the mindset of devops is evolving

“The collaboration between dev & ops is now

extended to external 3rd parties”

Page 89: From serverless to Service Full - How the mindset of devops is evolving

“make clear promisesto other agents”

Page 90: From serverless to Service Full - How the mindset of devops is evolving

“And verify the status of other agents promises”

Page 91: From serverless to Service Full - How the mindset of devops is evolving

“To keep your promise to the business”

Page 92: From serverless to Service Full - How the mindset of devops is evolving
Page 93: From serverless to Service Full - How the mindset of devops is evolving

Questions?

Page 94: From serverless to Service Full - How the mindset of devops is evolving

https://vimeo.com/101735252

DevOpsDays Minneapolis 2014 Jeff Sussna, Promising Digital Service Quality

Page 95: From serverless to Service Full - How the mindset of devops is evolving