perf(comm): coalesce live-alarm delta publishes (250ms window, 0 = legacy) (plan R2-02 T10)
This commit is contained in:
@@ -122,4 +122,13 @@ public class CommunicationOptions
|
||||
/// count; this just bounds the subscriber list. Default 200.
|
||||
/// </summary>
|
||||
public int LiveAlarmCacheMaxSubscribersPerSite { get; set; } = 200;
|
||||
|
||||
/// <summary>
|
||||
/// Publish-coalescing window for live alarm deltas: an applied delta marks the cache
|
||||
/// dirty and one publish (fresh snapshot + per-viewer onChanged fan-out) fires after
|
||||
/// this window, batching an alarm storm into ~4 publishes/second instead of one per
|
||||
/// transition (review 02 round 2, N6). Zero = publish per delta (legacy). Seed and
|
||||
/// reconcile publishes are always immediate. Default 250 ms.
|
||||
/// </summary>
|
||||
public TimeSpan LiveAlarmCachePublishCoalesce { get; set; } = TimeSpan.FromMilliseconds(250);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user