algolia / algoliasearch-client-android

Algolia Search API Client for Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shuffle the default host arrays at client init time

clement-leprovost opened this issue · comments

The goal is to systematically avoid overloading the first non-DSN host upon failure. Shuffling should be done once and for all, as retrying a different host every time would likely imply opening a new connection, therefore incur a big overhead. Randomization across all users should be enough to guarantee proper load balancing.