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

Building Resilient Services

Building Resilient Services

Damien Mathieu

October 15, 2014
Tweet

More Decks by Damien Mathieu

Other Decks in Programming

Transcript

  1. Building
    Resilient
    Services

    View full-size slide

  2. Fail Fast
    And graceful degradations

    View full-size slide

  3. Timeout::timeout(5) do
    # Perform long operation.
    end

    View full-size slide

  4. Time out at
    all levels
    https://github.com/heroku/rack-timeout

    View full-size slide

  5. App
    Request
    Request
    Request

    View full-size slide

  6. App
    Request
    Request
    Request
    30 seconds
    30 + 10 seconds
    30 + 10 + 10 seconds

    View full-size slide

  7. App
    Request
    Request
    Request
    Timeout after 10 seconds
    10 + 10 seconds
    10 + 10 + 10 seconds

    View full-size slide

  8. Circuit
    Breakers

    View full-size slide

  9. Monitor
    everything

    View full-size slide

  10. Bibliography
    techblog.netflix.com

    View full-size slide