Websocket concurrent connections limit on Heroku

"You can maintain around 6,000 open connections on a single dyno Creating more than 160 connections/sec will cause H11 errors (backlog too deep)"

Take a look to this link:

http://veldstra.org/2013/10/25/heroku-websocket-performance-test.html


I asked support again (as the latest here was from 2016) and got a similar answer:

There is no hard limit on the number of WebSocket connections per dyno, as you mentioned the limit is 50x connections per router. Giving you an exact figure is complicated as the number of available routers is not static. We have a Router layer that has many machines, and each router can track 50 connections to each Dyno in your app. Unfortunately, we don't publish the number of active routers as this figure scales as our platform reacts to the current inbound traffic.

1500 to 2000 is a decent average estimate with a theoretical upper bound somewhere in the range of 4500. Generally, once you have exhausted the number of concurrent connections, you'll start to receive H11 errors back from Heroku. If you're expecting thousands of concurrent users I would recommend having more than 1 dyno not just to increase the number of WebSocket connections but also because horizontal scaling would add some resiliency to your application.