Pavia vs SignalR
Both give a browser one long-lived connection with calls in both directions. SignalR is the real-time layer of ASP.NET Core. Pavia is an open protocol with a Rust server, built around WebTransport, typed contracts and channels that recover without gaps.
SignalR facts checked against Microsoft Learn, November 2026.
Pick SignalR when
- your server is .NET and you want it in the box
- clients sit behind proxies that only pass plain HTTP
- you want a managed service: Azure SignalR
- you need official .NET, Java or Swift clients
Pick Pavia when
- your server is Rust
- you want WebTransport, with no head-of-line blocking between calls
- clients are generated from a contract, not hand-typed
- channels need history, presence and gapless recovery
SIDE BY SIDE
Feature by feature.
| Question | Pavia | ASP.NET Core SignalR |
|---|---|---|
| TRANSPORT | ||
| Bindings | YesWebTransport over HTTP/3, raced against WebSocket | PartlyWebSockets, then SSE, then long polling |
| Plain-HTTP fallback | NoNone by design: WebSocket is the fallback | YesSSE and long polling |
| Wire format | YesBinary CBOR frames; cbor or json payloads | YesJSON or MessagePack |
| CALLS | ||
| Server calls a client | YesEvery call shape, to one session | YesClient results, to one connection |
| Streaming | YesServer, client and bidirectional, with flow control | YesServer, client and bidirectional; no broadcast streams |
| Deadlines | YesIn the protocol, seen by both sides | PartlyA CancellationToken on the server |
| Errors | YesStatus codes with structured details | PartlyGeneric, unless you throw HubException |
| CONTRACTS | ||
| Schema | YesMachine-readable manifest with a fingerprint | PartlyHub<T> interfaces in C# |
| Client generation | YesGenerated from the manifest; compatibility checker | PartlyCommunity generators (TypedSignalR) |
| MESSAGING | ||
| Targets | YesSessions, users, groups, all, except | YesConnections, users, groups, all, except |
| Channel history | YesGapless recovery by epoch and offset | NoNone; keep missed messages in your store |
| Presence | YesSnapshot, joins, leaves, updates | NoGroup members cannot be counted |
| Lossy datagrams | YesReal on WebTransport, latest-value topics | NoNone |
| OPERATIONS | ||
| Scale-out | YesNATS with JetStream | YesAzure SignalR Service or Redis |
| Server | PartlyRust, with an axum adapter | PartlyASP.NET Core |
| Clients | PartlyTypeScript and Rust; open spec for others | YesJavaScript, .NET, Java, Swift |
The Pavia column describes the protocol as its specification defines it, and the reference implementation as it is designed. The conformance matrix shows which levels each implementation passes.
CALLING THE CLIENT
Ask a browser a question, and wait for the answer.
Both can do this, to one connection at a time. In SignalR it is a method name and a generic type. In Pavia it is a method on a contract the client was generated from, with a deadline the client sees too.
RECONNECTS
What is still there after a dropped connection.
A train goes into a tunnel for ten seconds. Here is what each side keeps when the browser comes back.
SignalR with stateful reconnect
- SomeMessages sent during the gap, up to a 100 KB buffer by default
- KeptThe same connection ID, after a temporary network interruption
- LostGroups after a server restart: they live in memory
- SomeOpt-in, on both server and client
Pavia with session resumption
- KeptNotifications and channel frames, replayed in order, 1 MiB buffer by default
- KeptGroups, subscriptions and the authenticated user, for 30 s by default
- KeptLonger outages: channels recover from history by epoch and offset
- LostCalls in flight end with UNAVAILABLE; idempotent ones can retry
COMING FROM SIGNALR
The same ideas, by their Pavia names.
Most of a hub carries over one to one.
- Hub
- Service a #[pavia::service] trait
- Hub<T> client interface
- Client service the methods the server calls
- InvokeAsync<T>
- Server-initiated call any of the four shapes
- Clients.User(id)
- User target every session of that user
- Groups.AddToGroupAsync
- Group add kept across resumption
- IAsyncEnumerable<T> result
- Server stream with flow control
- Stateful reconnect
- Session resumption per-lane replay
- MessagePack protocol
- cbor codec or json
- Redis backplane
- NATS with JetStream for several nodes
Questions
Does Pavia fall back to long polling?
No. The client starts WebTransport, then WebSocket shortly after, and keeps the one that connects first. SSE and long polling are outside the protocol on purpose; SignalR is the better fit if your users sit behind proxies that block WebSocket.
Is there a Pavia server for .NET?
The reference server is Rust. The specification and its test vectors are public, so any language can implement Pavia and prove it with the conformance suite.
Can the server call a whole group and collect the answers?
A call goes to one session, as client results do in SignalR. A server library can issue one call per session and gather the results; notifications go to users, groups or everyone in one send.
What is the difference between resumption and channel recovery?
Resumption bridges short transport drops and keeps the whole session. Channel recovery works across restarts and node failures: the client sends the last epoch and offset it saw and gets every publication after it, or a clear signal to reload.
Does Pavia work with Blazor?
Blazor Server runs on SignalR. Pavia is for apps whose server is not ASP.NET Core, or that want its contract and channel features.
Sources
- ASP.NET Core SignalR overview
- Hubs and client results
- What's new in ASP.NET Core 7.0: client results
- Streaming in SignalR
- Users and groups
- Configuration: stateful reconnect buffer
- Supported platforms
- MessagePack hub protocol
- Redis backplane
- Azure SignalR Service
- Blazor and SignalR
- TypedSignalR.Client: generated strongly typed clients
- Pavia specification, sections 7.8, 8.8, 10 and 13