I have a Java (Apache Tomcat) based web application which allows user to write code in browser in different languages like (c, c++, java) and compile and execute them on server. The server security issues are handled by executing every code in chroot jail under ptrace supervision.
- I'm using Ace editor as code editor.
I want to add another feature that is collaborative editing, name says it all.
I have seen some related questions on Stack Overflow.
So if I use code.google.com/p/google-diff-match-patch, and generate a diff every 0.5 seconds, send it to the server and pull all the other diffs and return them from the server.
Do you think above approach would work? Will it be feasible?
I have this web application ready, so i only want someone to point me in right direction so that i can integrate some java script and write some Server side code to achieve my GOAL.
What will be the best way to add Collaborative Editing in my web application?