Circuit Breaker for Requests

Circuit Breaker for Requests

  • Docs

›Introduction

Introduction

  • Overview
  • Getting Started
  • AWS Serverless example

AWS Serverless example

Running python lambdas using distributed circuit breakers.

sequenceDiagram participant My Lambda participant Redis participant Third Party opt circuit closed My Lambda-->>Redis: Circuit breaker state Note right of Redis: Get count of
successes / failures
within timeframe Redis-->>My Lambda: Circuit closed My Lambda->>Third Party: Call endpoint Third Party->>My Lambda: Successful response My Lambda-->>Redis: Update success count end opt circuit open My Lambda-->>Redis: Circuit breaker state Note right of Redis: Get count of
successes / failures
within timeframe Redis-->>My Lambda: Circuit open Note left of My Lambda: Return a 500 with
X-Circuit-Breaker
header end
Last updated on 6/24/2020 by Chris Tarttelin
← Getting Started
Docs
Getting Started
Copyright © 2020 eelabs.