How to save during real-time collaboration
Posted
by
dev.e.loper
on Programmers
See other posts from Programmers
or by dev.e.loper
Published on 2013-06-26T13:24:06Z
Indexed on
2013/06/26
16:28 UTC
Read the original article
Hit count: 298
problem-solving
|real-time
I want multiple users to edit same document. Problem I'm facing is when a new user joins, he might see an outdated document. How do I make sure that new users get most recent changes?
Some solutions I thought of:
Save on every change. I don't like this solution because it will slow things down on UI and put load on db.
When new user joins, trigger save on all other clients. After other clients saved, load document. With this there can be inconsistency still.
Any other suggestions would be helpful.
© Programmers or respective owner