testing in production

43
Testing in Production Why should you do it?

Upload: jyrki-pulliainen

Post on 21-Aug-2015

52 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Testing in production

Testing in ProductionWhy should you do it?

Page 2: Testing in production

Outline

• What testing in production is not

• Why should you do it

• How should you do it

Page 3: Testing in production

Disclaimer

Page 4: Testing in production

@nailor

Page 5: Testing in production

Testing in Production

Page 6: Testing in production
Page 7: Testing in production

What it is not?

Page 8: Testing in production

It’s not a way to make you care less

Page 9: Testing in production

It’s not the replacement for all the testing

Page 10: Testing in production

It’s not the end of the world.

Page 11: Testing in production

Why should you do it?

Page 12: Testing in production

Let’s have a short quiz

Page 13: Testing in production

Staging environment?

Page 14: Testing in production

Problem free staging environment?

Page 15: Testing in production

ProductionStaging environment on steroids

Page 16: Testing in production

The environment

Page 17: Testing in production

The data

Page 18: Testing in production

The users

Page 19: Testing in production

How to test in production?

Page 20: Testing in production

(Like steroids, it comes with downsides)

Page 21: Testing in production
Page 22: Testing in production

You want to limit the blast radius

Page 23: Testing in production

Limiter #1: Feature flags

Page 24: Testing in production

[ ] Feature A

[x] Feature B

Page 25: Testing in production

Add broken code behind the flag

Page 26: Testing in production

Staged roll-outs

Page 27: Testing in production

Easy to support

Page 28: Testing in production

Limiter #2: Dark load

Page 29: Testing in production

One request Two execution paths

One response

Page 30: Testing in production

Real usereal problems

Page 31: Testing in production

Trickier to implement

Page 32: Testing in production

Limiter #3:Easy rollback

Page 33: Testing in production

Knowing that breaking things is not fatal is the

key

Page 34: Testing in production

How?

Page 35: Testing in production

Checklists

Page 36: Testing in production
Page 37: Testing in production

What do you gain?

Page 38: Testing in production

Confidence in your code

Page 39: Testing in production

A / B testing

Page 40: Testing in production

Verifiability of ideas

Page 41: Testing in production

Speed

Page 42: Testing in production

Go and test in production!

(Author takes no responsibility for anything)

Page 43: Testing in production

Thank [email protected] / @nailor