Back to problems

Debugging a Load Balancer Implementation and Add Round-Robin Routing

AI Coding · DoorDash · Medium

You are given an existing load balancer implementation during the interview. It sends requests to a collection of backend servers, but several defects prevent it from behaving correctly. Tasks Identify and repair several bugs so the load balancer handles fundamental operations correctly, including adding and removing backends, routing requests, and returning the appropriate destination. Build or refine the routing strategy: Add round-robin routing so successive requests are…

Checking your access…