Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Expect the un-expected: How to handle errors gracefully

Expect the un-expected: How to handle errors gracefully

Even though you tested your application perfectly errors and bugs will still happen in production, especially if other services or databases go down or are under high load. Thus it is very important to see errors happing and to be able to react to them quickly. In this talk I’ll introduce you to efficient ways for monitoring and logging for errors and show how you can handle them if they happen, covering deployment strategies, using intelligent circuit breakers and gracefully reducing functionality.

Bastian Hofmann

June 08, 2017
Tweet

More Decks by Bastian Hofmann

Other Decks in Programming

Transcript

  1. web server http service http service http service http service

    create unique trace_id for request user request trace_id trace_id trace_id trace_id log log log log log
  2. Service A Service B Error Circuit Breaker Status: -> open

    Error rate: > threshold Test if still failing
  3. Service A Service B 200 OK Circuit Breaker Status: ->

    close Error rate: 0 Test if still failing