punchclock
punchclock copied to clipboard
feature: extend the OperationQueue by adding support for randomness
Is your feature request related to a problem? Please describe. I want to add jittering (noise) to my http-request-queues for a specific endpoint. Discovered Fusillade and it would be awesome to have this on OperationQueue.
Describe the solution you'd like Trying to improve the performance of a system by adding randomness, as well as trying to avoid limiting of some endpoint that requires noise.
Describe alternatives you've considered Set maximumConcurrent to 1 and use:
Observable
.Return(Unit.Default)
.Delay(TimeSpan.FromMilliseconds(new Random().Next(min, max)))
Probably would want to store the Random instance away so we don't alloc every time but seems reasonable.