A slow live-feed viewer no longer holds up the event dispatcher or query logging #469
No reviewers
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lantea-one/ninlil!469
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/227-slow-viewer-cannot-slow-dispatcher"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A live-activity viewer that stops reading can delay the other viewers in its permission group. Query logging and delivery to the other permission groups continue.
Closes #227
Each permission group has one sender and a shared queue of 2,000 events. A full queue drops its oldest pending event. The server counts skipped feed events and reports them at most once per minute. A transport error during a send also allows the sender to stop cleanly at host shutdown.
Measurement
On Linux x64 with .NET 10.0.14, a SignalR client in the query group left its 64 KiB in-memory transport unread. Each trial published 6,000 synthetic answered events in batches of 30 every 10 ms (3,000 events/s). The observation window ended one second after the final batch. A subscriber registered after the broadcaster and the query log recorded the elapsed time from publication. Each version ran three times.
developat3315d126The publisher had room for the whole burst. On
develop, 5,736 events were still pending when measurement ended, and their ages at that point give the lower bound on latency. The query-log queue itself reported zero drops in both versions. This exercise measured delivery into that queue, before database writes.Verification
developand passed with the queued broadcaster. The shutdown regression also failed before the transport-error fix.Ninlil.Web.Testspassed, including the shutdown regression. No tests were skipped.Forgejo CI
Linux jobs use the
asgard-cirunner. Toolchain containers mount the job’s checkout volume and use a Docker-managed package cache. The live Router Advertisement recovery test waits for the failed unicast attempt’s three-second reply window before retrying.Run 1997 passed all three checks on
4bbb8a60, with 7,871 .NET tests and 1,721 admin-console tests passing.