---
title: "SignalR Scalability: Scaling Real-Time SignalR Applications on Heroku"
description: "Scaling a SignalR chat app across multiple Heroku dynos takes two pieces: a Redis backplane so every instance relays hub messages to its own connected clients, and sticky sessions so long-lived WebSocket connections stay pinned to one dyno."
url: "https://swe.quest/articles/signalr-scalability-scaling-real-time-signalr-applications-on-heroku-1ba3b1c0a22c9917"
canonical: "https://www.heroku.com/blog/scaling-real-time-signalr-applications-on-heroku/"
source: "Heroku Engineering"
published: "2025-05-21"
difficulty: "medium"
kind: "How-to"
reading_minutes: 11
tags: ["realtime","dotnet","scalability","load-balancing","cloud"]
---

# SignalR Scalability: Scaling Real-Time SignalR Applications on Heroku

A post on [Heroku Engineering](https://swe.quest/sources/heroku.md), published 2025-05-21, 11 min read, How-to. Original: [https://www.heroku.com/blog/scaling-real-time-signalr-applications-on-heroku/](https://www.heroku.com/blog/scaling-real-time-signalr-applications-on-heroku/)

## Summary

Scaling a SignalR chat app across multiple Heroku dynos takes two pieces: a Redis backplane so every instance relays hub messages to its own connected clients, and sticky sessions so long-lived WebSocket connections stay pinned to one dyno. The walkthrough builds Microsoft's sample chat on .NET 9, adds Microsoft.AspNetCore.SignalR.StackExchangeRedis with REDIS\_URL parsing and TLS settings for Heroku Key-Value Store, and confirms backplane traffic by subscribing to the hub's Redis pub/sub channels. It then deploys with a Procfile and moves to standard-1x dynos, since Eco and Basic dynos cannot scale out. Scaling to three dynos produces 404 and WebSocket errors that sticky sessions are meant to fix.

Written by swe.quest, not by the author.

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

## Topics

- [Real-time systems](https://swe.quest/tags/realtime.md) (Backend & APIs)
- [.NET](https://swe.quest/tags/dotnet.md) (Languages)
- [Scaling](https://swe.quest/tags/scalability.md) (Distributed systems)
- [Load balancing](https://swe.quest/tags/load-balancing.md) (Infrastructure)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)

## Prerequisites

- ASP.NET Core basics
- WebSockets ([easy posts on Real-time systems](https://swe.quest/tags/realtime.md?difficulty=easy))
- Redis pub/sub ([easy posts on Caching](https://swe.quest/tags/caching.md?difficulty=easy))

## Keywords

SignalR, Heroku, Redis, StackExchange.Redis, ASP.NET Core, WebSockets, Heroku Key-Value Store

## Related posts

- [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.
- [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.
- [Rapidly scaling online storage to serve over 1 billion ChatGPT users](https://swe.quest/articles/rapidly-scaling-online-storage-to-serve-over-1-billion-chatgpt-users-05665dfd2bff721d.md): OpenAI · 2026-09-11 · Medium · 14 min read · Scaling, Python, Concurrency, Performance engineering, Resilience
  Habitat, OpenAI's online storage platform, grew from a client-side Python library over Azure Cosmos DB into a centralized Python service handling 70M+ requests per second and 500+ PB across about 40 regions.
- [Real-time Messaging](https://swe.quest/articles/real-time-messaging-63eff1981479ebae.md): Slack Engineering · 2023-04-11 · Medium · 6 min read · Real-time systems, System design, Distributed systems, Communications, Scaling
  Slack's real-time messaging runs on four Java services: stateful in-memory Channel Servers sharded by consistent hashing, regionally deployed Gateway Servers holding websocket subscriptions, stateless Admin Servers bridging the Webapp backend, and Presence Servers tracking online users.
- [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.

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)
