WarUI

Blazor Batched JS Interop

GRID-A02-F18P1beyond-baselinePlanned

Batches .NET↔JS traffic into frame-aligned messages with compact row diffs instead of per-cell calls. This keeps Blazor Server responsive over SignalR and cuts WASM marshalling cost.

Planned. This page shows the specification from issue #178. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A live ticker of 1k rows updating at a configurable rate, with interop stats showing messages/sec, bytes/sec and frame time.

Expected behavior

With batching on, messages/sec stays at or below the frame rate and bytes drop significantly. With batching off, the stats show the difference.

Planned API surface

InteropBatchWindowMs optionApplyTransactionAsync(adds, updates, removes)InteropStats diagnosticsMaxMessageBytes

Acceptance criteria

  • With batching on, at most 1 interop message is sent per animation frame per grid (pending)
  • Payloads contain only changed fields (pending)
  • Messages are split to stay under the SignalR maximum size (pending)
  • Ordering of transactions is preserved (pending)