module Burst
Provides burst control strategies for timing limiters.
Burst strategies are stateless modules that determine whether tasks can execute immediately or must wait for frame boundaries, controlling task distribution over time.
Strategy Comparison
Greedy vs Smooth behavior with 5 tasks per 60-second window:
Greedy Strategy (allows clustering): |█████ |█████ |█████ |█████ | 0s 60s 120s 180s All 5 tasks execute immediately when window opens
Smooth Strategy (enforces even distribution): |█ █ █ █ █ |█ █ █ █ █ |█ █ █ █ █ |█ █ █ █ █ | 0s 60s 120s 180s Tasks spread evenly: 0s, 12s, 24s, 36s, 48s
Nested Classes and Modules
module GreedyAllows tasks to cluster within windows for high-throughput scenarios.
module SmoothEnforces even task distribution to prevent clustering.