Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Make SSE reconnect strategy configurable, with backoff and jitter #74

Closed
samhaldane opened this issue Sep 30, 2016 · 2 comments
Closed

Comments

@samhaldane
Copy link
Contributor

We currently have tens of thousands of clients connecting to a service running ld-relay. If the SSE connection is closed (e.g. because of a proxy restart or network blip) all clients attempt to reconnect once per second, which hammers our ld-relay service. The reconnect strategy should be configurable, and ideally use exponential backoff with a jitter.

@jkodumal
Copy link
Contributor

jkodumal commented Sep 30, 2016

We'll add this to all our SDKs. For the Java and Android SDKs, this will involve picking up a change to the okhttp-eventsource library: launchdarkly/okhttp-eventsource#7

@jkodumal
Copy link
Contributor

jkodumal commented Oct 5, 2016

This has been added to okhttp-eventsource-- one that's released it we'll need a version bump here, and we'll want to expose a configuration parameter for the reconnection timeout at the LDClient config level.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants