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

Sync-issue: Receiving states in different order #80

Open
jaagut opened this issue Jul 12, 2020 · 1 comment
Open

Sync-issue: Receiving states in different order #80

jaagut opened this issue Jul 12, 2020 · 1 comment
Labels
bug Something isn't working frontend help wanted Extra attention is needed

Comments

@jaagut
Copy link
Contributor

jaagut commented Jul 12, 2020

I think, currently it is not guaranteed, that all state-messages arrive at all clients in the same order (as discovered in #76).
This could result in synchronization issues, since the ground truth of the server is broken and clients could be in different states.

To maintain the servers ground truth, the backend could add some sort of ID or counter to the state message, before propagating it to all clients.

@jaagut jaagut added bug Something isn't working help wanted Extra attention is needed frontend backend labels Jul 12, 2020
@Flova
Copy link
Member

Flova commented Jul 18, 2020

The backend adds the server time when the state update is received. This functions as the ground truth.
I don't know if the frontend checks these timestamps (in short: drops the states that have older timestamps than its current state).

@Flova Flova removed the backend label Jul 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants