▲ | Filligree 5 days ago | |
Random delays specifically do not, as they average out. Delays until a specific point in time do work, so long as the delay is never negative. | ||
▲ | bostik 4 days ago | parent [-] | |
This particular case would be a fantastic fit for timer wheel.[0] Instead of writing a brittle implementation of "after a fixed time in the future" logic yourself, you queue the outgoing event to occur after N ticks [of granularity X], and let the dedicated data structure engine do the work for you. 0: https://www.snellman.net/blog/archive/2016-07-27-ratas-hiera... |