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

Recover user sessions after Manager redeploy/crash #84

Open
martinstark opened this issue Apr 30, 2024 · 0 comments
Open

Recover user sessions after Manager redeploy/crash #84

martinstark opened this issue Apr 30, 2024 · 0 comments

Comments

@martinstark
Copy link
Contributor

martinstark commented Apr 30, 2024

By allowing the /heartbeat endpoint to re-create sessions, it would be possible to recover the list of participants in a line after a manager crash or redeploy. It would enable near seamless deploys or restarts while the app is actively in use.

Currently, the /heartbeat URL will respond with an error if the session is not found.

Instead, the manager should re-create the UserSession, which would then populate the Participant list for ongoing conferences. This could be achieved by using query parameters when the client makes the request:

/heartbeat?username=martin&productionId=1&lineId=2

The query parameters would only be parsed by the manager when a session is not found. If a session is not found, validate the query parameter values and create a new UserSession using the id from the incoming heartbeat.

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

No branches or pull requests

1 participant