L4 balances TCP/UDP connections fast without inspecting payloads; L7 terminates TLS and routes by HTTP path, headers, or cookies. Modulo hashing (hash(key) % N) remaps almost all keys when a node joins/leaves; consistent hashing maps nodes and keys onto a ring so adding/removing 1 node moves only ~1/N keys, and virtual nodes prevent uneven hotspots.
Follow-up Interview Question · When does least-connections routing beat round-robin (e.g. mixed fast CRUD + slow LLM endpoints)?