Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Circuit Breaker Implementation in Java

HardCoding00:00
Practice interviewer
In session
5 left
00:00

Your question is Circuit Breaker Implementation in Java. Take a moment with it on the right.

Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).

You need to log in / sign up to chat or submit.

Problem

Circuit breaker implementation in Java: The service A calls service B and service C every time. If one service fails 3-times in 10 minutes ( or 20 seconds in the implementation) the next call will be blocked for 5 minutes (10 seconds in the implementation). There was given a simulation of remote method calls, I needed to implement only the execute() which calls the remote service if possible.