# Load Balancing Starts Before the Load Balancer: Routing Patterns for Distributed Systems

DevFeed: [Load Balancing Starts Before the Load Balancer: Routing Patterns for Distributed Systems](<https://devfeed.tech/articles/load-balancing-starts-before-the-load-balancer-routing-patterns-for-distributed-systems-121760.md>)

Original publisher: [Read original article](<https://hackernoon.com/load-balancing-starts-before-the-load-balancer-routing-patterns-for-distributed-systems?source=rss>)

Author: Varsha Ganesh

Published: 2026-11-06T22:19:26Z

Content type: article

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [Load Balancing](<https://devfeed.tech/topics/load-balancing.md>), [consistent hashing](<https://devfeed.tech/topics/consistent-hashing.md>), [stream-processing](<https://devfeed.tech/topics/stream-processing.md>), [Apache Flink](<https://devfeed.tech/topics/apache-flink.md>), [Memcached](<https://devfeed.tech/topics/memcached.md>), [nginx](<https://devfeed.tech/topics/nginx.md>), [IP routing](<https://devfeed.tech/topics/ip-routing.md>)

Tags: [cache](<https://devfeed.tech/tags/cache.md>), [capacity-planning](<https://devfeed.tech/tags/capacity-planning.md>), [cassandra](<https://devfeed.tech/tags/cassandra.md>), [consistent-hashing](<https://devfeed.tech/tags/consistent-hashing.md>), [control-plane](<https://devfeed.tech/tags/control-plane.md>), [databases](<https://devfeed.tech/tags/databases.md>), [distributed-database](<https://devfeed.tech/tags/distributed-database.md>), [distributed-systems](<https://devfeed.tech/tags/distributed-systems.md>), [load-balancers](<https://devfeed.tech/tags/load-balancers.md>), [load-balancing](<https://devfeed.tech/tags/load-balancing.md>), [partitions](<https://devfeed.tech/tags/partitions.md>), [routing](<https://devfeed.tech/tags/routing.md>), [routing-patterns](<https://devfeed.tech/tags/routing-patterns.md>), [stateless-services](<https://devfeed.tech/tags/stateless-services.md>), [stream](<https://devfeed.tech/tags/stream.md>), [streams](<https://devfeed.tech/tags/streams.md>)

## AI overview

For stateless services, DNS or a proxy can distribute requests among healthy interchangeable backends; DNS is coarse and health probes add cost without showing relative load. Stateful systems require routing tied to data placement, so control planes must distribute partitions across hosts while honoring replication, failure domains, and hardware capacity. That placement can still produce hot partitions when particular keys attract disproportionate traffic. The article recommends partition-level metrics, thresholds that account for normal variance, and key attribution, followed by incremental, reversible live splits with routing metadata updated during the transition. Splitting will not help if a single hot key remains the cause. For caches, consistent hashing eases shard rebalancing but not hot keys; request coalescing and local caches can absorb spikes. For Kafka or Flink, ordering ties each key to a partition, making runtime splitting constrained: partition count and key distribution require advance planning. More partitions enable consumer parallelism but increase broker recovery, rebalance, and efficiency costs, and do not solve a single hot key.

## Source excerpt

Load balancing isn't just a load balancer. Learn how routing works for databases, caches, and stream processors, and how to handle hot partitions