douhuan1257 2012-07-15 17:27
浏览 22
已采纳

创建谷歌浪潮背后的技术,如异步网络应用程序

I want to try creating a canvas were multiple users can type and edit for brainstorming etc. I am thinking of php as backend. What are the technique used for it? For example, lets say its pure text. How do we update the text like in the google wave(b4) and in google doc?

Is it just using websocket(or js pooling) and updating the text file? or are there any better logical way to solve this issue?

  • 写回答

2条回答 默认 最新

  • douduan2272 2012-07-15 18:49
    关注

    Well, its not as easy as it is said in Brad's answer but he is partially right. You will definitely need WebSockets today to make it happen. But logically, it is not that simple to create a collaborative environment. There are issues like broadcasting changes of every user to every other user viewing the same document. Then you will have to make sure that every user gets to see exactly the same thing no matter who changes what and when. This gets difficult when multiple users are working on the same document collaboratively. There can be conflicts while merging changes of one another.

    As far as PHP is concerned, language is not really a problem. Its how you handle the above stated problem.

    Google released its research and engineering details on Google Wave (I guess after abandoning the project). This link might be some help to you: http://www.waveprotocol.org/whitepapers/

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?