Uber - machine coding

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2024-04-20Added By Anonymous
Source: Link

Company: Uber

Interview Stage: Onsite


Original Post Content:


Implement simple circuit breaker given a rpc method.


please consider the generic circuit breaker options like the following:

// * timeWindowSec - (10s) time sliding window size.


// * failureRatioThreshhold - (50%) failure ratio threshold in which the circuit open


// * circuitCloseTimeSec - (5s) required time to circuit re-close


// * min requests - 10


// Main class should be named 'Solution' and should not be public.

Comments