Consider a product in which the changes that the client makes to a text file are transferred to other clients through the server. A transfer occurs when the person making changes to the editor clicks a button. Another client connects using tcp \ ip pipe, so polling is not required.
In our current solution, every time the button is clicked, all the text is sent, and the broadcast and receivers simply discard the old text and replace it with new | Itβs quite simple, since this approach is when the size of this text increases and the number of users increases sharply, and many of these user groups talk to the same server for their needs, then the trouble
So, we want to transfer the deltas. However, on the receiving side, it is more like a delta merger. (Its an HTML editor, so even things like changing fonts, colors, etc., They all need to be conveyed, and of course people have the annoying habit of deleting things too) My questions
1) there are well-known algorithms in the literature that solve this problem (and are reasonably implemented by mortals)
2) Are there products shrink-wrapped that I can buy \ license \ opensource that basically solve this diff and merge problem
source
share