Skip to content

A text line-based naive stream throttler that discards lines above predefined threshold rate.

License

Notifications You must be signed in to change notification settings

romiras/stream-throttler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

stream-throttler

A text line-based naive stream throttler that discards lines above predefined threshold rate.

This utility might be useful sometimes to throttle input stream at given rate.

Example

Infinitely echo current timestamp to emulate some frequent event, then throttle it. Ctrl-C to terminate.

while true; do date '+%FT%T.%N'; sleep 0.1; done | ruby main.rb

About

A text line-based naive stream throttler that discards lines above predefined threshold rate.

Topics

Resources

License

Stars

Watchers

Forks

Languages