Peer-to-peer wiki is a
server-less system that allows
wiki sites to be shared between
peers. It is based on a peer-to-peer
version control system, which takes care of sharing, transmitting the updates, and storing the history of pages. The first P2P wiki system was designed and implemented by
Reliable Software as part of their P2P version control system,
Code Co-op.
Architecture
Rather than using an internet server, a P2P wiki site is stored directly on each user's computer as a collection of wiki files. This forbids "write locks" on files designed to maintain file consistency during contention for writing. Many people can read a file even while it is being written: they may be reading different versions of the same file. However, if more than one person can write a file at any given time, and they are working from different versions, then a wiki file stored on many servers can be structurally inconsistent: the data being written can only have one length. Wikipedia itself solves this problem by letting one editor, the latest, edit the former submission.
Viewer
A special viewer is used to display local wiki files in the form of web pages. The viewer also takes care of resolving wiki links. When the user clicks on a wiki link, the wiki page to which the link points to is loaded into the viewer and displayed. If the page doesn't exist, a new page is created and the user may start editing it with a text editor. What if the page exists on some other site? Should the...
Read More