mercredi 25 octobre 2017

Why is random jitter applied to back-off strategies?

Here is some sample code I've seen.

int expBackoff = (int) Math.pow(2, retryCount);
int maxJitter = (int) Math.ceil(expBackoff*0.2);
int finalBackoff = expBackoff + random.nextInt(maxJitter);

I was wondering what's the advantage of using a random jitter here?




Aucun commentaire:

Enregistrer un commentaire