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

When 2 client change the same property at the same time they may are unsynchron. #16

Open
rbi opened this issue Jan 23, 2014 · 2 comments

Comments

@rbi
Copy link
Contributor

rbi commented Jan 23, 2014

The server does not send changes originating from a client back to the same client. It does only send them to all other clients.

Suppose there are 2 clients A and B connected to a serve.

If client A sends a change of a property, the server sends these changes only to client B. If client B send a change of the same property before it recieves the change of A, the server does send this change only to A. When B than recieves the change of A, the same property has different values in both clients.

@rbi
Copy link
Contributor Author

rbi commented Jan 23, 2014

Just sending all changes to all clients including the client that send them is not possible as this would result in flickering in continuously changing properties, like the position property of the slider in the slider demo.

It also would result in duplicated add and remove operations on ListProperties if no additional countermeasures are taken. All other properties (Set, Map, single value properties) should have no problems with duplicate remove and set operations except for the flickering.

rbi added a commit that referenced this issue Jul 21, 2014
@rbi rbi added this to the 1.0 milestone Sep 11, 2014
rbi added a commit that referenced this issue Dec 1, 2014
rbi added a commit that referenced this issue Jan 27, 2015
rbi added a commit that referenced this issue Feb 3, 2015
rbi added a commit that referenced this issue Feb 17, 2015
rbi added a commit that referenced this issue Feb 23, 2015
rbi added a commit that referenced this issue Feb 26, 2015
rbi added a commit that referenced this issue Mar 9, 2015
rbi added a commit that referenced this issue Mar 10, 2015
@rbi
Copy link
Contributor Author

rbi commented Mar 26, 2015

Single Value Properties and ListProperties should eventually synchronize them selves now event if multiple clients do changes at the same time. Map Properties and Set Properties are still todo.

Also there needs to be ensured, that all changes on the domain model on the server are done in the same Thread. This is comperable to the JavaFX platform thread.

@rbi rbi modified the milestones: 0.6, 1.0 Mar 26, 2015
@rbi rbi modified the milestones: 0.6, 0.7 Oct 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant