1-second polling interval per channel won't scale #22

Open
opened 2026-07-25 11:16:44 +00:00 by GKaszewski · 0 comments
Owner

Severity: Medium

crates/worker/src/jobs/broadcast_poller.rs uses POLL_INTERVAL_SECS: u64 = 1. With 100 channels that means 100 DB queries per second.

Consider making the interval configurable and/or using a notification-based approach instead of polling.

**Severity: Medium** `crates/worker/src/jobs/broadcast_poller.rs` uses `POLL_INTERVAL_SECS: u64 = 1`. With 100 channels that means 100 DB queries per second. Consider making the interval configurable and/or using a notification-based approach instead of polling.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: GKaszewski/k-tv#22