What is the purpose of a load balancer in a microservices architecture?
A load balancer ensures that the traffic is sent to the fastest service instance by continuously measuring their response times.
Thatâ€™s incorrect. A load balancer can use several strategies to distribute traffic, but it typically does not monitor performance metrics like response times to direct traffic.
Can you explain how a load balancer works with round-robin or least-connections algorithms?