elastic / stream

Test utility for streaming data via udp/tcp/tls/webhook/GCP Pub-Sub/Kafka.
https://container-library.elastic.co/r/observability/stream
Apache License 2.0
8 stars 13 forks source link

Add rate-limit to control delivery rate #108

Open andrewkroh opened 3 months ago

andrewkroh commented 3 months ago

stream reads data (from log file or pcap) and writes it to the output destination as fast as it can. To better match real-world systems it would useful in some scenarios to control the speed at which data is delivered to the destination. This is particularly true for protocols without delivery guarantees (UDP).

There's a TODO in the code related to this.

https://github.com/elastic/stream/blob/09126d20b9ee68b1c0ba9c561b22680eca690698/internal/command/pcap.go#L87