# Tips & Tricks for Migrating to Router 2.0

DevFeed: [Tips & Tricks for Migrating to Router 2.0](<https://devfeed.tech/articles/tips-tricks-for-migrating-to-router-2-0-26501.md>)

Original publisher: [Read original article](<https://www.heroku.com/blog/tips-tricks-router-2dot0-migration/>)

Author: Agne

Published: 2024-11-21T18:13:00Z

Content type: tutorial

Language: en

Sources: [Heroku](<https://devfeed.tech/sources/heroku.md>)

Topics: [Heroku](<https://devfeed.tech/topics/heroku.md>), [Monitoring & Alerting](<https://devfeed.tech/topics/monitoring-alerting.md>)

Tags: [cli](<https://devfeed.tech/tags/cli.md>), [cloud-infrastructure](<https://devfeed.tech/tags/cloud-infrastructure.md>), [compatibility](<https://devfeed.tech/tags/compatibility.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [heroku](<https://devfeed.tech/tags/heroku.md>), [heroku-pipelines](<https://devfeed.tech/tags/heroku-pipelines.md>), [http-2](<https://devfeed.tech/tags/http-2.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [infrastructure-modernization](<https://devfeed.tech/tags/infrastructure-modernization.md>), [latency](<https://devfeed.tech/tags/latency.md>), [opt-out](<https://devfeed.tech/tags/opt-out.md>), [performance](<https://devfeed.tech/tags/performance.md>), [production](<https://devfeed.tech/tags/production.md>), [router-2-0](<https://devfeed.tech/tags/router-2-0.md>), [staging](<https://devfeed.tech/tags/staging.md>), [test](<https://devfeed.tech/tags/test.md>), [tips](<https://devfeed.tech/tags/tips.md>)

## AI overview

Heroku recommends testing Router 2.0 in a staging app that mirrors production, then restarting all web dynos after enabling it to close legacy-router connections that may temporarily raise response times. Confirm routing through Router 2.0 using HTTP response headers or the protocol field in logs. HTTP/2 is enabled by default, with a CLI option to revert to HTTP/1.1 for compatibility issues. Keepalives are always enabled; Puma users should opt out because of a known tail-latency bug.

## Source excerpt

Heroku Router 2.0 is now generally available, marking a significant step forward in our infrastructure modernization efforts. The new router delivers enhanced performance and introduces new features to improve your applications' functionality. There are, of course, nuances to be aware of with any new system, and with Router 2.0 set to become the default router [...] The post Tips & Tricks for Migrating to Router 2.0 appeared first on Heroku.