Circuit Breaker

Your order-service calls payment-service over HTTP. One day payment-service doesn’t go down. It just gets slow: every request takes 30 seconds, then times out. Here is what happens to order-service: Each incoming request waits 30 seconds on the payment call, holding a goroutine, a connection, some memory. New requests keep coming in, and they wait too. The connection pool runs dry. Requests that have nothing to do with payments start to queue....

September 2, 2024 · Stewie