Problem Statement
If the internet connection is unstable, Appwrite database client connection requests fail and the client enters an error state. It does not attempt to reconnect automatically when the network recovers, forcing users to refresh the page.
Proposed Solution
Implement exponential backoff reconnection for Appwrite:
- In
src/app.js or database connection instantiation, catch connection errors.
- If connection fails, trigger a reconnection attempt after a delay.
- Scale the delay exponentially (e.g. 1s, 2s, 4s, 8s, up to 30s) to prevent overloading the server.
- Show a non-blocking floating status banner ("Reconnecting to database...") in the UI during retry cycles.
Alternatives Considered
Forcing a page reload, but this clears active form state and results in a bad user experience.
Additional Context
Level: Critical
Affected Files: src/app.js, src/realtime-sync.js
Can you please assign this issue to me? I would like to work on this.
Problem Statement
If the internet connection is unstable, Appwrite database client connection requests fail and the client enters an error state. It does not attempt to reconnect automatically when the network recovers, forcing users to refresh the page.
Proposed Solution
Implement exponential backoff reconnection for Appwrite:
src/app.jsor database connection instantiation, catch connection errors.Alternatives Considered
Forcing a page reload, but this clears active form state and results in a bad user experience.
Additional Context
Level: Critical
Affected Files:
src/app.js,src/realtime-sync.jsCan you please assign this issue to me? I would like to work on this.