Web / Traefik Interview questions
How does Traefik handle load balancing across multiple service instances?
When a service has multiple server URLs, Traefik distributes incoming requests across them using a load-balancing algorithm, with weighted round robin as the default behavior for HTTP services.
Each server can be assigned a weight to send it proportionally more or less traffic, which is the same mechanism used for canary releases, where a new version might get a 10% weight against 90% for the stable version.
Traefik also supports passive health checking through active healthCheck probes on the service, so instances that stop responding are automatically pulled out of rotation until they recover, without any manual intervention.
All of this happens at the service level, meaning the router and its rule stay completely unaware of how many backend replicas exist behind the name they point to, or how traffic is actually being split between them.
More Related questions...