Joseph Doherty 9b9fdecc9b perf(gateway): attach the dashboard mirror only while a viewer watches (#235)
Every session ran a dashboard-mirror distributor subscriber that woke for every
event only for Publish to discard it, since normally nobody has a
session-details page open. The viewer registry now raises
ViewerPresenceChanged on a session's first viewer and last viewer; the
production broadcaster exposes it as IDashboardViewerPresence, and a session
attaches its mirror while watched and disposes the lease when not.

MarkReady still starts the pump, so draining, replay retention, the alarm lease
and dead-worker detection are unchanged. ACL and value redaction are untouched.
Broadcasters without presence (test doubles) keep the always-on mirror.

Internal distributor subscribers can now pass a filter applied before the
pump's TryWrite; the alarm monitor admits only alarm transitions and provider
mode changes, so data changes no longer wake it.
2026-12-03 09:36:30 -05:00
S
Description
No description provided
42 MiB
Languages
C# 52.7%
Java 35.4%
Python 3%
Rust 2.8%
Go 2.6%
Other 3.4%