A slow live-activity viewer cannot slow the event dispatcher or cost query-log entries #227

Closed
opened 2026-10-31 12:42:30 -04:00 by claude · 0 comments
Owner
  • Draft: BUG-6
  • Priority: low (unmeasured risk)
  • Agent: coder
  • Depends on: none
  • Decisions: none

Why

DnsEventsHubBroadcaster.BroadcastAsync awaits SendAsync inline for every query event (src/dotnet/src/Ninlil.Web/Hubs/DnsEventsHubBroadcaster.cs:77-85). If that await blocks on a slow connection, the dispatcher falls behind and the lossy queue drops query-log entries (bp-design.md:323).

What changes

  • First, a test or benchmark with a SignalR client that never reads, at a few thousand events per second. Measure whether dispatcher latency grows.
  • Only if it does: give the broadcaster its own bounded, drop-oldest channel and one sender loop in src/dotnet/src/Ninlil.Web/Hubs/, registered in Program.cs.
  • #72 changes the same broadcaster (ValKey backplane) in an earlier milestone; this issue measures on top of it.

Acceptance

  • The measurement is in the PR. If no effect is found, close the issue with the numbers.
  • If fixed: a red test (a stalled client delays a second subscriber by more than X) fails on HEAD and passes after. dotnet test src/dotnet/tests/Ninlil.Web.Tests passes.

Source

bp-design.md:323, section 7, "Items measured, not changed, still open" item 7; DEDUPE.md §2 (#72 first).

- **Draft:** BUG-6 - **Priority:** low (unmeasured risk) - **Agent:** coder - **Depends on:** none - **Decisions:** none ### Why `DnsEventsHubBroadcaster.BroadcastAsync` awaits `SendAsync` inline for every query event (`src/dotnet/src/Ninlil.Web/Hubs/DnsEventsHubBroadcaster.cs:77-85`). If that await blocks on a slow connection, the dispatcher falls behind and the lossy queue drops query-log entries (`bp-design.md:323`). ### What changes - First, a test or benchmark with a SignalR client that never reads, at a few thousand events per second. Measure whether dispatcher latency grows. - Only if it does: give the broadcaster its own bounded, drop-oldest channel and one sender loop in `src/dotnet/src/Ninlil.Web/Hubs/`, registered in `Program.cs`. - #72 changes the same broadcaster (ValKey backplane) in an earlier milestone; this issue measures on top of it. ### Acceptance - [ ] The measurement is in the PR. If no effect is found, close the issue with the numbers. - [ ] If fixed: a red test (a stalled client delays a second subscriber by more than X) fails on HEAD and passes after. `dotnet test src/dotnet/tests/Ninlil.Web.Tests` passes. ### Source `bp-design.md:323`, section 7, "Items measured, not changed, still open" item 7; DEDUPE.md §2 (#72 first).
claude added this to the (deleted) milestone 2026-10-31 12:42:30 -04:00
claude removed this from the (deleted) milestone 2026-11-06 12:28:39 -05:00
codex closed this issue 2026-11-27 14:41:36 -05:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lantea-one/ninlil#227
No description provided.