ow algorithm blocks traffic based on set time blocks (e.g., max 100 calls per minute), which allows clients to burst double their limit right at the boundary edge (e.g., 100 calls at 0:59 and 100 calls at 1:01). The Token Bucket algorithm maintains a dynamic token counter that refills continuously at a set rate, allowing smooth traffic burst capacity while strictly capping sustained usage.
Q: What is the role of a "Half-Open" state inside a system circuit breaker?A: After a circuit breaker trips to an Open state and blocks traffic for a cooling-off period, it transitions to a Half-Open state. In this configuration, the gateway permits a tiny percentage of live user canary requests to pass through to the recovered microservice. If those requests succeed cleanly, the breaker returns to a healthy Closed state; if they fail, it immediately trips back to Open.




































































































