
Throttles any stream t to a target rate in Hz with a token bucket, dropping surplus messages rather than buffering them, so a fast producer cannot overwhelm a slower consumer and no back-pressure is introduced.
A high-FPS camera feed is paced to a display-friendly rate before being pushed to a live browser view.
An event stream is rate-limited before an HTTP sink so the downstream API is never called faster than its budget allows.
time_constant sizes the burst allowance — the bucket banks up to message_rate * time_constant tokens, so a larger value lets a longer idle gap burst through at once before steady-rate throttling resumes.Automated release