Question: Must be java Load Balancer Imagine your intern project is to build aload balancer application that distributes load (ie, requests) across Box servers. Every minute
Must be java


Load Balancer Imagine your intern project is to build aload balancer" application that distributes load (ie, requests) across Box servers. Every minute your application gets a list of requests and distributes them across S servers. You're using a round-robin strategy to decide which server gets the next request, i.e. simply cycle through all servers. For example, with 3 servers send request 0 to server 0 send request 1 to server 1 send request 2 to server 2 send request 3 to server send request 4 to server 1 send request 5 to server 2 send request 6 to server 0 send request 7 to server 1 Each server has different capacity- a hard limit on the number of requests it can process within a minute. Once a server reaches its limit, your algorithm will stop sending requests to the server For example, with 3 servers having capacity [0]-5, capacity [1]-1, capacity [21-2: send request 0 to server 0 send request 1 to server 1 server 1 capacity reached, will not send more requests to it send request 2 to server 2 send request 3 to server 0 send request 4 to server 2 1/ server 2 capacity reached, will not send more requests to it Load Balancer Imagine your intern project is to build aload balancer" application that distributes load (ie, requests) across Box servers. Every minute your application gets a list of requests and distributes them across S servers. You're using a round-robin strategy to decide which server gets the next request, i.e. simply cycle through all servers. For example, with 3 servers send request 0 to server 0 send request 1 to server 1 send request 2 to server 2 send request 3 to server send request 4 to server 1 send request 5 to server 2 send request 6 to server 0 send request 7 to server 1 Each server has different capacity- a hard limit on the number of requests it can process within a minute. Once a server reaches its limit, your algorithm will stop sending requests to the server For example, with 3 servers having capacity [0]-5, capacity [1]-1, capacity [21-2: send request 0 to server 0 send request 1 to server 1 server 1 capacity reached, will not send more requests to it send request 2 to server 2 send request 3 to server 0 send request 4 to server 2 1/ server 2 capacity reached, will not send more requests to it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
