A retry policy which will back off using a configurable policy which
incorporates random jitter. This has the advantage of reducing contention
if you have threaded clients using the same service.
val policy = retry.JitterBackoff()
val future = policy(issueRequest)
The following pre-made jitter algorithms are available for you to use:
implicitval jitter = retry.Jitter.full(cap = 5.minutes)
val policy = retry.JitterBackoff(1 second)
val future = policy(issueRequest)
If a jitter policy isn't in scope, it will use retry.Jitter.full by
default which tends to cause clients slightly less work at the cost of
slightly more time.
For more information about the algorithms, see the following article:
A retry policy which will back off using a configurable policy which incorporates random jitter. This has the advantage of reducing contention if you have threaded clients using the same service.
The following pre-made jitter algorithms are available for you to use:
You can choose one like this:
If a jitter policy isn't in scope, it will use retry.Jitter.full by default which tends to cause clients slightly less work at the cost of slightly more time.
For more information about the algorithms, see the following article:
https://www.awsarchitectureblog.com/2015/03/backoff.html