Real-time communication for modern applications

What is SignalR and how it adds real-time communication to your apps

Everything you need to know about SignalR: the Microsoft library for push notifications, chat and live dashboards in .NET applications.

SignalR is the ASP.NET library that adds real-time bidirectional communication to your .NET applications.

Instead of the client asking the server every few seconds for updates (polling), with SignalR the server pushes data to clients the instant something changes.

Chat, live dashboards, real-time notifications, multiplayer gaming: SignalR handles all of this with elegant code and automatic management of the best available transport.

How SignalR works: Hubs, connections and groups

SignalR is based on the concept of Hub: a C# object on the server that exposes methods invocable by the client and vice versa.

SignalR architecture

ConceptDescription
HubC# class that defines the methods that client and server can invoke each other.
ConnectionEach client has a unique ConnectionId. SignalR automatically manages connection/reconnection.
GroupsAllows sending messages to subsets of clients (e.g., chat rooms, thematic channels).
TransportsWebSocket → Server-Sent Events → Long Polling. Automatic negotiation.
ProtocolsJSON (default) or MessagePack (binary, faster) for message serialization.
// SignalR Hub example
public class ChatHub : Hub
{
    public async Task SendMessage(string user, string message)
        => await Clients.All.SendAsync("ReceiveMessage", user, message);
}

On the client side, JavaScript, .NET or Java can connect to the Hub and receive real-time updates.

What you can create with SignalR

ScenarioDescription
Chat and messagingChat rooms, direct messages and live support systems with instant feedback.
Real-time dashboardsMonitoring of KPIs, system metrics and financial data updated by the second.
Push notificationsInstant alerts for orders, system alerts, status updates.
Live collaborationCollaborative editing, shared whiteboards, real-time updates.
Multiplayer gamingState synchronization between players with minimal latency.
IoT monitoringReceiving and displaying data from sensors and devices in real time.

Advantages of SignalR over alternatives

  1. Zero transport configuration, SignalR automatically negotiates the best protocol. You don't need to manage WebSocket manually.

  2. Scalability with backplane, Redis, Azure SignalR Service or SQL Server as backplane to distribute messages across multiple servers.

  3. Native integration with ASP.NET Core, Dependency injection, authentication, authorization: everything works out-of-the-box.

  4. Multiple clients, Official SDKs for JavaScript, .NET, Java. Support for any compatible WebSocket client.

  5. Azure SignalR Service, Managed service that handles millions of connections without infrastructure to maintain.

SignalR vs real-time alternatives

FeatureSignalRSocket.IOPusherFirebase Realtime
Server languageC# / .NETNode.jsHostedHosted
TransportsWebSocket + fallbackWebSocket + pollingWebSocketWebSocket
.NET integrationNativeRequires adapterGeneric SDKGeneric SDK
ScalabilityRedis / Azure ServiceRedisManagedManaged
CostOpen-sourceOpen-sourcePaidLimited free tier

Get started with SignalR: resources and tools

Do you want to create real-time applications?

Master modern web development

With our ASP.NET course you'll learn SignalR, Web API, Blazor and all the technologies to create modern and high-performance web applications.

Frequently asked questions

SignalR è una libreria di ASP.NET Core per aggiungere comunicazione real-time alle applicazioni web. Permette al server di inviare aggiornamenti ai client in tempo reale per chat, notifiche e dashboard.

Sì, SignalR è incluso in ASP.NET Core ed è completamente open-source e gratuito. Azure SignalR Service offre un piano gratuito con limiti e piani a pagamento per alta scalabilità.

SignalR usa WebSocket come protocollo preferito, con fallback automatico a Server-Sent Events e Long Polling per garantire compatibilità con tutti i client.

Sì, SignalR si integra perfettamente con Blazor Server (lo usa internamente) e può essere usato anche in Blazor WebAssembly per comunicazione real-time bidirezionale.

Il modo migliore è seguire un percorso strutturato con progetti pratici. Il nostro corso ASP.NET include SignalR, Web API e tutte le tecnologie per applicazioni web moderne.

Do you want to create real-time applications? Request information

Want to go deeper into this technology with a personalized path? Fill out the form and get all the information.

Free consultation Direct answer from the architect No commitment
Real-time communication for modern applicationsFree consultation, no commitment