Description: Implement Google's mathematical approach to handling overload (detailed in the SRE Book). Instead of relying strictly on a circuit breaker that entirely opens or closes, adaptive throttling calculates a dynamic probability of dropping requests locally before they even hit the network, based on the server's recent success/failure ratio.
Description: Implement Google's mathematical approach to handling overload (detailed in the SRE Book). Instead of relying strictly on a circuit breaker that entirely opens or closes, adaptive throttling calculates a dynamic probability of dropping requests locally before they even hit the network, based on the server's recent success/failure ratio.
Architecture & Implementation Requirements:
max(0, (requests - K * accepts) / (requests + 1))(Where K is a configurable multiplier, defaulting to 2).ErrThrottledLocallywithout making the network call.Acceptance Criteria:
Resources: