121M gRPC Connections: Route 53 Fix for CloudFront Scale

Alps Wang

Alps Wang

Jul 16, 2026 · 1 views

The DNS Bottleneck at Extreme Scale

This AWS Architecture Blog post provides an excellent case study on a very specific, yet crucial, scaling challenge faced by bitdrift. The core insight—that Route 53's Weighted routing, when combined with CloudFront's edge caching and long-lived gRPC connections, can lead to severe origin overload due to single IP resolution per TTL—is highly valuable. The solution, migrating to Multi-Value Answer routing, is elegantly simple and demonstrates how a configuration change can unlock massive scalability without architectural overhauls. The detailed explanation of the 'thundering herd' effect and how persistent connections amplify it is particularly insightful for engineers dealing with similar protocols like WebSockets or other streaming data. The article effectively highlights the importance of understanding the nuances of DNS resolution at hyper-scale. The inclusion of a technical walkthrough for implementing the fix is a strong point, making the learnings actionable.

However, while the article focuses on a successful resolution, it could benefit from a deeper dive into the trade-offs of Multi-Value Answer routing. For instance, the inherent complexity of managing health checks across multiple records and the potential for increased DNS query volume (and thus cost) might be areas worth exploring. The article mentions that Multi-Value Answer requires IP address records and is incompatible with Application Load Balancers (ALBs) due to their lack of static IPs, which is a critical limitation for many users. This constraint necessitates the use of Network Load Balancers (NLBs) with Elastic IPs, which might not be the preferred or most cost-effective solution for all scenarios. Furthermore, while the article mentions a 60-second TTL, the impact of TTL duration on connection distribution and failover speed could be elaborated upon. The article's strength lies in its direct, problem-solution narrative, but acknowledging these potential limitations would add further depth and broader applicability.

Key Points

  • Route 53 Weighted routing can cause origin overload behind CloudFront for persistent connections (gRPC, WebSocket) due to single IP resolution per TTL.
  • Multi-Value Answer routing in Route 53, returning up to 8 IPs per query with health checks, effectively distributes traffic across multiple origins immediately.
  • A simple DNS configuration change from Weighted to Multi-Value Answer routing enabled bitdrift to scale to 121 million concurrent gRPC connections with zero server-side errors.
  • Persistent connections amplify DNS routing issues more severely than stateless HTTP requests.
  • Multi-Value Answer routing requires IP address records and is incompatible with ALBs, necessitating NLBs with static IPs.

Article Image


📖 Source: How bitdrift scaled to 121 million concurrent gRPC connections on Amazon CloudFront for live telemetry sporting events

Related Articles

Comments (0)

No comments yet. Be the first to comment!