Blog
1 week ago
Deterministic Routing: The Hidden Key to Low Latency
Random routing scatters requests, kills cache locality, and inflates tail latency in high-throughput systems.We fixed it using a clean two-layer deterministic routing strategy: Layer 1 (Ingress): Istio consistentHash on primary key → same entity always lands on the same app podLayer 2 (App → DB): CockroachDB client handles leaseholder routing with zone configs and follower reads Production results (>1600 TPS):• 29% P95 latency reduction• 2.1× throughput on same infrastructure• 42% faster failover recovery• $1.2M annualized cost savingsCore insight: Many latency problems aren’t tuning issues — they’re routing problems. Align routing with data locality and keep the layers separate.
Source: HackerNoon →