Home > Back-end >  Many collaborative document editing
Many collaborative document editing

Time:01-16

How many collaborative document editing implementation ah websocket not thinking

CodePudding user response:

I also didn't do it, but should be able to achieve: A, B and editing server, A saved to the server after the latest articles from the server synchronization to B, with what you said the websocket can do it

CodePudding user response:

If you want to own implementation may be more trouble, there are some online editing tool of thinking can draw lessons from, mainly by editing the block division, such as editing word documents, three people at the same time operating, can put the file into three pieces, specify edit respectively, cannot operation module, others guess when the bottom should be combined through file split,
When there is a way through the nio, is to read the file cache, editing, respectively, save part will determine whether changes to the original file stream in the memory, if not conflict, change the memory file stream, if a conflict is save failed and prompt, needs to be updated after revision,
Specific implementation technology involves things should have a lot, here can only provide a train of thought, never practice, for your reference

CodePudding user response:

Long polling and websocket should can, I see the graphite document by means of long polling,

CodePudding user response:

Estimates have to websocket data real-time synchronization
  • Related