educative.io

How does the sync happens b/w different users?

The tutorial seems to be missing very fundamental things in design e.g the core of this problem is how the sync happens b/w different users working on the same document which is completely missing. Also, it’s not clear where exactly are the file content stored and which is the right schema ?

Hi Ankit,

Thank you for your question. Let me answer your questions 1 by 1

the core of this problem is how the sync happens b/w different users working on the same document which is completely missing.

If you are implying how the users connect, we have discussed Websockets which enable the users to collaborate on a document. Furthermore. we have discussed the latency for users collaborating on a document and how they can collaborate on a centralized location to perform writing in this section. Lastly, conflict resolution among users is discussed in detail in the next lesson.

Also, it’s not clear where exactly are the file content stored and which is the right schema ?

We have included a number of storages for specific purposes. For example, Time series DB for storing edit history of documents. Please refer to Data stores section in Components.