How to design a multi-user ajax web application to be concurrently safe

前端 未结 8 1142
梦谈多话
梦谈多话 2021-01-29 16:59

I have a web page that shows a large amount of data from the server. The communication is done via ajax.

Every time the user interacts and changes this data (Say user A

8条回答
  •  深忆病人
    2021-01-29 17:30

    These Wikipedia pages may help add perspective to learning about concurrency and concurrent computing for designing an ajax web application that either pulls or is pushed state event (EDA) messages in a messaging pattern. Basically, messages are replicated out to channel subscribers which respond to change events and synchronization requests.

    • https://en.wikipedia.org/wiki/Category:Concurrency_control
    • https://en.wikipedia.org/wiki/Distributed_concurrency_control
    • https://en.wikipedia.org/wiki/CAP_theorem
    • https://en.wikipedia.org/wiki/Operational_transformation
    • https://en.wikipedia.org/wiki/Fallacies_of_Distributed_Computing

    There are many forms of concurrent web-based collaborative software.

    There are a number of HTTP API client libraries for etherpad-lite, a collaborative real-time editor.

    django-realtime-playground implements a realtime chat app in Django with various real-time technologies like Socket.io.

    Both AppEngine and AppScale implement the AppEngine Channel API; which is distinct from the Google Realtime API, which is demonstrated by googledrive/realtime-playground.

提交回复
热议问题