Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend availability check #2641

Open
DmyMi opened this issue Sep 30, 2024 · 0 comments
Open

Backend availability check #2641

DmyMi opened this issue Sep 30, 2024 · 0 comments
Assignees
Labels
improvement task ui Issue involves frontend functionality

Comments

@DmyMi
Copy link
Contributor

DmyMi commented Sep 30, 2024

Description

Implement a feature to monitor the availability of the backend service and handle cases when it is not responding.

Requirements

Backend availability check

  • Make periodic requests to the backend to verify its status.
  • If 3 consecutive requests do not receive a positive status response, consider the backend as unavailable.

Error page

  • Display a special error page informing the user that something is wrong and to try again later.
  • This page should replace the current content when the backend is unavailable.

"Try Again" button with exponential delay

  • Include a "Try Again" button on the error page using the /healthz/active endpoint.
  • If the backend is still not responding, pressing the button should trigger an exponential backoff delay before it can be pressed again.
    • The delay should start at 1 second and double each time up to a maximum of 1 minute.
    • The delay should persist through page refreshes for at least 10 minutes.

Additional notes

  • The implementation should not interfere with other application functionalities.
  • The delay persists across page refreshes for at least 10 minutes.
  • Once the backend responds positively, the application returns to normal operation.
  • Ensure that the backend check does not overload the server with too many requests.
  • Handle edge cases where the application starts with the backend already unavailable.
@DmyMi DmyMi added ui Issue involves frontend functionality improvement task labels Sep 30, 2024
@Dzheerro Dzheerro self-assigned this Oct 8, 2024
@DmyMi DmyMi assigned DimaShapoval and unassigned Dzheerro Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement task ui Issue involves frontend functionality
Projects
None yet
Development

No branches or pull requests

3 participants