---
title: "The Adventures of Rendezvous in Heroku’s New Architecture"
description: "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."
url: "https://swe.quest/articles/the-adventures-of-rendezvous-in-heroku-s-new-architecture-fa7c708c1d11ea33"
canonical: "https://www.heroku.com/blog/adventures-of-rendevous/"
source: "Heroku Engineering"
published: "2022-01-19"
difficulty: "medium"
kind: "Incident"
reading_minutes: 9
tags: ["incident-response","debugging","ruby","networking","load-balancing"]
---

# The Adventures of Rendezvous in Heroku’s New Architecture

A post on [Heroku Engineering](https://swe.quest/sources/heroku.md), published 2022-01-19, 9 min read, Incident. Original: [https://www.heroku.com/blog/adventures-of-rendevous/](https://www.heroku.com/blog/adventures-of-rendevous/)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Incidents & postmortems](https://swe.quest/tags/incident-response.md) (Reliability & operations)
- [Debugging](https://swe.quest/tags/debugging.md) (Engineering practices)
- [Ruby](https://swe.quest/tags/ruby.md) (Languages)
- [Networking](https://swe.quest/tags/networking.md) (Infrastructure)
- [Load balancing](https://swe.quest/tags/load-balancing.md) (Infrastructure)

## Prerequisites

- TLS basics ([easy posts on Cryptography](https://swe.quest/tags/cryptography.md?difficulty=easy))
- IO.select / socket polling
- load balancers

## Keywords

Heroku, Rendezvous, AWS Network Load Balancer, EC2 Classic, OpenSSL, IO.select, Hyrum's Law

## Related posts

- [Router 2.0 Common Runtime Router: The Road to Beta](https://swe.quest/articles/router-2-0-common-runtime-router-the-road-to-beta-588e480683057806.md): Heroku Engineering · 2023-10-30 · Medium · 9 min read · Load balancing, Go, Refactoring & migrations, Deployment, Observability
  Heroku is replacing Hermes, its decade-old Erlang Common Runtime router, with Router 2.0 written in Go.
- [Migrating Millions of Concurrent Websockets to Envoy](https://swe.quest/articles/migrating-millions-of-concurrent-websockets-to-envoy-b99b542be70019c3.md): Slack Engineering · 2021-03-15 · Medium · 11 min read · Load balancing, Real-time systems, Deployment, Configuration management, Networking
  Slack moved its websocket ingress tier, serving millions of concurrent connections, from HAProxy to Envoy Proxy.
- [Not just another network latency issue: How we unraveled a series of hidden bottlenecks](https://swe.quest/articles/not-just-another-network-latency-issue-how-we-unraveled-a-series-of-hidden-cc3a7d83431d9610.md): Datadog Engineering · 2023-05-26 · Medium · 8 min read · Networking, Debugging, Performance engineering, Cloud platforms, Kubernetes
  Recurring high-startup-latency pages on every deployment of Datadog's usage estimation \`counter\` service traced back to four stacked bottlenecks rather than one.
- [Incident Report: October 16th, 2025](https://swe.quest/articles/incident-report-october-16th-2025-6eb111a489b39aef.md): Railway · 2025-10-16 · Easy · 3 min read · Incidents & postmortems, Load balancing, Resilience, CDN & edge
  A 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.
- [Pumas, Routers & Keepalives—Oh my!](https://swe.quest/articles/pumas-routers-keepalives-oh-my-4b676798ea4106ef.md): Heroku Engineering · 2024-11-21 · Medium · 17 min read · Debugging, Performance engineering, Ruby, Load balancing, Networking
  Elevated tail latency seen by some Puma apps after enabling Heroku Router 2.0 turned out to be a Puma bug, not a router problem.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
