| With the rapid development of computer and network technology, the collaborative work between users has entered the era of collaborating Internet, collaborative technology has been used in various scenes, which always affecting people’s lives. Synergies technology is mostly based on the operation transformation technology, and now is the rapid rise of users to limit the scale of the operation based on the performance of the system clock used conversion technology. And the rapid development of emerging technologies, such as peer-to-peer network, make people aware of P2P network technology is well suited for multi-user scenarios.In this paper, taking rural medical-platform data acquisition system for the background, using JXTA platform to achieve the peer-to-peer network, and using Logoot algorithm based on the abstract data type to implement the concurrency control service, we design and implement a editing system suitable for rural cooperative medical applications. It can effectively improve system flexibility, scalability and performance. Finally, the feasibility and scalability of the system are verified through functional testing and performance testing. The main work is as follows:First in-depth study of the concurrency control algorithm, we choose Logoot concurrency control algorithm which is suitable used in the peer network platform, then we use the open network platform JXTA, and design and implement a three-tier architecture based on JXTA collaborative editorJXTA platform architecture includes three layers:the core layer, service layer and application layer. In accordance with the hierarchical structure of JXTA, this paper designs and implements the service layer and application layer, JXTA Based on the three-tier, service layer and application layer as the controller, and Logoot model as a system model, the user interface as a common view, which constitutes a model (Model)-controller (Controller)-view (View) mode. Among them, the service layer interacts with the model, the model is used to ensure the consistency of the file; the application layer and the view interact to ensure the user experience. |