snowplow / snowplow-java-tracker

Snowplow event tracker for Java. Add analytics to your Java desktop and server apps, servlets and games. (See also: snowplow-android-tracker)
http://snowplowanalytics.com
Apache License 2.0
23 stars 36 forks source link

Add a maximum wait time and jitter to event sending retry #338

Closed mscwilson closed 2 years ago

mscwilson commented 2 years ago

Automatic retry was added in v0.12.0. If the request fails to send to the collector (status code not 2xx), the payloads can be put back into storage for unlimited retries. Every failure increases the retry delay exponentially, starting from 50ms.

Currently, there is no maximum delay. There's also no randomness (jitter) in the delays. These should be added in.