The Adventures of Rendezvous in Heroku’s New Architecture
Moving Heroku's Rendezvous proxy, which splices CLI and one-off dyno connections across NATs, from EC2 Classic to VPC behind AWS Network Load Balancers with TLS termination broke one customer's request-scoped one-off dyno workflow with H12 router timeouts. The root cause was a single-threaded agent loop using IO.select on the raw TCP socket. The NLB's larger TLS frames left decrypted bytes buffered inside OpenSSL's SSLSocket where IO.select couldn't see them, so the loop blocked until an idle timeout longer than the router's 30s limit. The fix split the agent into one thread per direction and changed the read logic so buffered SSL data is drained before selecting again.
Related posts
- Router 2.0 Common Runtime Router: The Road to Beta
Heroku Engineering mediumAdeptHeroku is replacing Hermes, its decade-old Erlang Common Runtime router, with Router 2.0 written in Go. Hermes became hard to upgrade: Erlang expertise declined, its dependencies were pinned, and features like HTTP/2 were blocked. The new L7 router runs in-memory behind an existing L4 proxy that also terminates TLS. Using the Strangler pattern, it routes per-app traffic either through Hermes or directly to dynos, and it shares an HTTP library with the Private Spaces router. Before beta, the team added gated deployment automation, continuous load testing tied to SLOs, and W3C Network Error Logging to measure real client routing failures.
- Migrating Millions of Concurrent Websockets to Envoy
Slack Engineering mediumAdeptSlack moved its websocket ingress tier, serving millions of concurrent connections, from HAProxy to Envoy Proxy. HAProxy reloads spawned long-lived draining processes that had to be reaped and rate-limited. Envoy's dynamic clusters, hot restarts and panic routing removed that operational overhead. Envoy config was generated through custom Chef resources with --mode validate checks, and traffic shifted region by region via NS1 weighted DNS in 10–100% steps on a parallel stack, completing in six months with no customer impact. Key lessons: the organically grown HAProxy config hid behaviours services depended on, a test suite for load balancer routing would have saved effort, and limiting Chef libraries to a subset of Envoy features kept them simple but made later additions like vhosts awkward.
- Not just another network latency issue: How we unraveled a series of hidden bottlenecks
Datadog Engineering mediumAdeptRecurring high-startup-latency pages on every deployment of Datadog's usage estimation `counter` service traced back to four stacked bottlenecks rather than one. The fixes were raising CPU for a throttled Envoy sidecar, patching a Linux kernel bug that pinned all traffic to the first of eight AWS ENA transmit queues, and moving to network-optimized EC2 instances after bandwidth-allowance-exceeded metrics revealed hypervisor packet drops. A Kubernetes preStop hook with a maintenance-mode key then kept Envoy from routing requests to terminating remote-cache pods. With p99 latency back under 100 ms, the team scaled the remote cache down 6x, saving hundreds of thousands of dollars a year, and now alerts on ENA bandwidth and pod- and host-level network drop metrics.
- Incident Report: October 16th, 2025
Railway easyNoviceA traffic spike on Railway's Edge Network coincided with a routine edge service upgrade and exhausted memory in an internal routing service that was already running at high utilization. New proxies could not initialize, failed health checks and were pulled by load balancers, causing 2-3 minutes of intermittent HTTP/TCP failures (404s, 522s) across all regions while private networking stayed unaffected. Recovery came as caching absorbed the load. Fixes include higher memory limits, tiered memory alerts and overload safeguards, with a memory-efficient rewrite and a multi-region architecture planned to isolate failures per region.
- Pumas, Routers & Keepalives—Oh my!
Heroku Engineering mediumAdeptElevated tail latency seen by some Puma apps after enabling Heroku Router 2.0 turned out to be a Puma bug, not a router problem. Under load with roughly 200ms of server-side work, keepalive connections pushed p95/p99 response times above 2 seconds. The cause was traced by reproducing it locally with hey and ab, which showed the slowdown occurs with any keepalive client hitting Puma directly. Tuning Go's http.Transport MaxIdleConnsPerHost reduced connection churn but did not fix latency. Puma 7.0.4 or later fixes the bug.