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

Ephemeral state should survive restart #371

Open
Bios-Marcel opened this issue Dec 23, 2024 · 0 comments
Open

Ephemeral state should survive restart #371

Bios-Marcel opened this issue Dec 23, 2024 · 0 comments
Labels
enhancement improvement of any kind
Milestone

Comments

@Bios-Marcel
Copy link
Member

Restarts without downtime are technically possible, using both canary deployments and persistent state.

However, the state doesn't need to be persistent. We can actually offload this to the clients.
Upon shutting down, the clients receive a signed payload with the gamestate, that is only valid for a short timeframe.

Upon re-establishing the connection, the client sends this payload, which the server uses to reconstruct the lobby state.

This way, we can prevent abuse, won't need persistent storage and can still survive a restart.

@Bios-Marcel Bios-Marcel added the enhancement improvement of any kind label Dec 23, 2024
@Bios-Marcel Bios-Marcel added this to the 1.0.0 milestone Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improvement of any kind
Projects
None yet
Development

No branches or pull requests

1 participant