adjust / rmq

Message queue system written in Go and backed by Redis
MIT License
1.57k stars 206 forks source link

Add jitter to poll duration #116

Closed bubunyo closed 2 years ago

bubunyo commented 2 years ago

when you create multiple rmq connections with the same poll duration, this creates a staggered consumption of data from the que where the first connections consume all he data leaving almost none for the rest.

This pr introduces a +/-10% jitter to the poll duration to prevent the predictable consumption and solve the stagger.