~/talk

Streaming three ways with Blazor: REST, gRPC, and SignalR

Talkat NDC Porto 2022 · 2022-04-25..04-29· [nodejs]
slides:none on file

Live demos build a Blazor Server app, a SignalR hub using SignalR channels push and IAsyncEnumerable endpoints, a Web API method that returns async streams, and a gRPC service with a proto-defined stream. Measurements show fetching 5,000 records: Web API ~2s, gRPC RPC ~0.3–0.5s, gRPC stream ~1s, but initial-item latency falls dramatically — first 20 items: Web API stream ~57ms, gRPC stream ~34ms after warmup. Conclusion: streaming uses IAsyncEnumerable pull vs channel push to improve perceived performance and scalability, not raw throughput; gRPC web is used for browser clients.

AI-written summary · about

  1. 0:00Start
  2. 6:28Async Streaming
  3. 12:50Signalr Streaming
  4. 13:22Signalr Hubs
  5. 18:28Creating a Bounded Channel
  6. 20:19Get Channel Stream
  7. 23:23Web Api and Grpc
  8. 33:39Json Serializer
  9. 34:38Grpc
  10. 42:02Grpc Generator
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.