Position: SDE2
Assume a GET http request to a load balancer server returns a load balanced ip. Cache the IP into a datastructure.
requirement explained by the interviewer:
- create a load balancer client object , which would use a request object.
- Do a get, which returns an ip, store in cache if not found.
- write an efficient load balancer client code.