Slide 1

Slide 1 text

Embracing the Imposter

Slide 2

Slide 2 text

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

Over 60M active users

Slide 5

Slide 5 text

Over 60M active users Over 30M songs

Slide 6

Slide 6 text

Over 60M active users Over 30M songs 58 markets

Slide 7

Slide 7 text

SAD STORY TO START WITH

Slide 8

Slide 8 text

WE ARE DOING MICROSERVICES FOR YEARS

Slide 9

Slide 9 text

Microservices 101

Slide 10

Slide 10 text

Monolith

Slide 11

Slide 11 text

Microservices Monolith

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

Multiple datacenters Thousands of servers Hundreds of services

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

Distributed System

Slide 16

Slide 16 text

Distributed System AKA “complicated”

Slide 17

Slide 17 text

Distributed System No reproducibility

Slide 18

Slide 18 text

Distributed System No failure cases for tests

Slide 19

Slide 19 text

LEGACY x2 FUN

Slide 20

Slide 20 text

HARDWARE x10 FUN at scale FAILURES

Slide 21

Slide 21 text

Actually…

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

Test Double

Slide 24

Slide 24 text

IMPOSTER

Slide 25

Slide 25 text

Imposter

Slide 26

Slide 26 text

Imposter Fail miserably

Slide 27

Slide 27 text

Imposter Fail miserably Here you go!

Slide 28

Slide 28 text

Imposter Here you go! Fail in 10 seconds

Slide 29

Slide 29 text

Imposter Cat videos Here you go!

Slide 30

Slide 30 text

Actually…

Slide 31

Slide 31 text

Send A, B and C At rate X For Y time

Slide 32

Slide 32 text

Send A, B and C At rate X For Y time

Slide 33

Slide 33 text

Send A, B and C At rate X For Y time Load Injector

Slide 34

Slide 34 text

Send A, B and C At rate X For Y time Load Injector

Slide 35

Slide 35 text

Some More Steps

Slide 36

Slide 36 text

Add functions like: Drop packets Add hooks to service discovery

Slide 37

Slide 37 text

Add functions like: Drop packets Add pseudo-random delays

Slide 38

Slide 38 text

Add functions like: Drop packets Add pseudo-random payload

Slide 39

Slide 39 text

Add functions like: Drop packets [your function here]

Slide 40

Slide 40 text

Ways to use

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

No content

Slide 44

Slide 44 text

No content

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

Legacy dependency!

Slide 47

Slide 47 text

Look Ma! No legacy!

Slide 48

Slide 48 text

Fault injection

Slide 49

Slide 49 text

Crazy neighbour

Slide 50

Slide 50 text

Crazy neighbour Broken hardware

Slide 51

Slide 51 text

Crazy neighbour Broken hardware Cat on a keyboard

Slide 52

Slide 52 text

Crazy neighbour Broken hardware Cat on a keyboard nuke your DC

Slide 53

Slide 53 text

future plans

Slide 54

Slide 54 text

SUT Production

Slide 55

Slide 55 text

SUT Production Imposter

Slide 56

Slide 56 text

Configuration Madness

Slide 57

Slide 57 text

Imposter, but… for client side

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

distributed systems are complicated extremely

Slide 60

Slide 60 text

it’s still possible to improve testability

Slide 61

Slide 61 text

takes effort to do it

Slide 62

Slide 62 text