---
title: "Router 2.0 Common Runtime Router: The Road to Beta"
description: "Heroku is replacing Hermes, its decade-old Erlang Common Runtime router, with Router 2.0 written in Go."
url: "https://swe.quest/articles/router-2-0-common-runtime-router-the-road-to-beta-588e480683057806"
canonical: "https://www.heroku.com/blog/router-2dot0-the-road-to-beta/"
source: "Heroku Engineering"
published: "2023-10-30"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["load-balancing","go","refactoring","deployment","observability"]
---

# Router 2.0 Common Runtime Router: The Road to Beta

A post on [Heroku Engineering](https://swe.quest/sources/heroku.md), published 2023-10-30, 9 min read, Case study. Original: [https://www.heroku.com/blog/router-2dot0-the-road-to-beta/](https://www.heroku.com/blog/router-2dot0-the-road-to-beta/)

## Summary

Heroku 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.

Written by swe.quest, not by the author.

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

## Topics

- [Load balancing](https://swe.quest/tags/load-balancing.md) (Infrastructure)
- [Go](https://swe.quest/tags/go.md) (Languages)
- [Refactoring & migrations](https://swe.quest/tags/refactoring.md) (Engineering practices)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)

## Prerequisites

- HTTP reverse proxies ([easy posts on Load balancing](https://swe.quest/tags/load-balancing.md?difficulty=easy))
- L4 vs L7 load balancing ([easy posts on Load balancing](https://swe.quest/tags/load-balancing.md?difficulty=easy))

## Keywords

Heroku, Router 2.0, Hermes, Erlang, Strangler pattern, Network Error Logging, HTTP/2

## Related posts

- [Tips & Tricks for Migrating to Router 2.0](https://swe.quest/articles/tips-tricks-for-migrating-to-router-2-0-d21a58134b52266a.md): Heroku Engineering · 2024-11-21 · Medium · 5 min read · Load balancing, Networking, Cloud platforms, Deployment
  Heroku Router 2.0 is now generally available and will become the default, so apps should be validated on a staging copy first by enabling the http-routing-2-dot-0 feature and restarting dynos to drop legacy-router connections.
- [The Adventures of Rendezvous in Heroku’s New Architecture](https://swe.quest/articles/the-adventures-of-rendezvous-in-heroku-s-new-architecture-fa7c708c1d11ea33.md): Heroku Engineering · 2022-01-19 · Medium · 9 min read · Incidents & postmortems, Debugging, Ruby, Networking, Load balancing
  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.
- [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.
- [Learn How to Lower Heroku Dyno Latency through Persistent Connections (Keep-alive)](https://swe.quest/articles/learn-how-to-lower-heroku-dyno-latency-through-persistent-connections-keep-alive-3816d278b532e549.md): Heroku Engineering · 2025-11-04 · Medium · 6 min read · Networking, Performance engineering, Ruby, Cloud platforms
  HTTP keep-alive connections cut latency by reusing TCP connections, so repeat requests skip the handshake and TCP slow start and run at full bandwidth.
- [Scaling Beyond Limits: Harnessing Route Server for a Stable Cluster](https://swe.quest/articles/scaling-beyond-limits-harnessing-route-server-for-a-stable-cluster-25826a1197db482d.md): Zalando Engineering · 2025-02-16 · Medium · 5 min read · Kubernetes, Load balancing, Scaling, Caching, Deployment
  Zalando put a Route Server between its Skipper ingress proxies and the Kubernetes API after roughly 180 Skipper instances per cluster, each polling Ingresses and RouteGroups, overloaded etcd and throttled the API server.

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)
