0 day streak
Anonymous · shared experience1 Oct 2025 · 8 views

Uber: Circuit breaker that trips on request volume, not errors

Interview question #Uber SDE 2 Machine coding

Problem. Implement a circuit breaker. The twist is that the requirements read more like a rate limiter: the breaker opens based on how many requests come through, not on how many of them fail.

What was expected.

  • A working implementation with the three states: closed, open and half-open, and correct transitions between them.
  • Test cases that demonstrate each state.
  • Answers to concurrency questions, since many callers hit the breaker at once.

Outcome. The candidate built it, showed all three states with tests and handled the concurrency discussion, earning a hire to strong hire rating.

Context. This was the LLD and machine coding round of an L4 backend loop. Other rounds included a DFS problem that grew into Dijkstra, counting islands in 2D then 3D followed by a 2D union-find, and a stock price tracker that notifies subscribers when movement exceeds a delta, where the interviewer pushed into deep dives very early.

0 comments

Comments 0

No comments yet. Ask the author something, or add what happened in your own round.