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

Server replicas system #12

Open
arthuro555 opened this issue Aug 9, 2022 · 0 comments
Open

Server replicas system #12

arthuro555 opened this issue Aug 9, 2022 · 0 comments
Labels
✨ Feature New feature or request
Milestone

Comments

@arthuro555
Copy link
Owner

Servers may always go down. That is a risk, and can cause a lot of issues: Clients suddenly left hanging, data lost, etc.
THNK could replicate not only client-only state, but also between servers: that way, if a server disconnects, the replica can take over: the replica would always get state updates alongside the clients, with potentially extra data that is private to the server, and the clients would be given by the server the details to connect to the replica. When and if the main server goes down, clients will automatically connect to the replica, which will start running the main server loop in the stead of the server.

This should be an opt-in behavior: Replicas don't make sense in some games and multiplayer types. For example, in a P2P among us clone, a replica would be another client, which could use a cheat client to read the private server state and know the imposters.
Replicas may also not work if some private server state that is crucial is not marked as such and therefore not synchronized.

@arthuro555 arthuro555 added this to the THNK Release milestone Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature New feature or request
Projects
Status: 🔙📋 Backlog
Development

No branches or pull requests

1 participant