Legion: Enriching internet services with peer-to-peer interactions

Albert Van Der Linde, Pedro Fouto, João Leitão, Nuno Preguiça, Santiago Castiñeira, Annette Bieniusa

Research output: Chapter in Book/Report/Conference proceedingConference contribution

11 Citations (Scopus)


Many web applications are built around direct interactions among users, from collaborative applications and social networks to multi-user games. Despite being user-centric, these applications are usually supported by services running on servers that mediate all interactions among clients. When users are in close vicinity of each other, relying on a centralized infrastructure for mediating user interactions leads to unnecessarily high latency while hampering fault-tolerance and scalability. In this paper, we propose to extend user-centric Internet services with peer-to-peer interactions. We have designed a framework named Legion that enables client web applications to securely replicate data from servers, and synchronize these replicas directly among them. Legion allows for client-side modules, that we dub adapters, to leverage existing web platforms for storing data and to assist in Legion operation. Using these adapters, legacy applications accessing directly the web platforms can co-exist with new applications that use our framework, while accessing the same shared objects. Our experimental evaluation shows that, besides supporting direct client interactions, even when disconnected from the servers, Legion provides lower latency for update propagation with decreased network traffic for servers.

Original languageEnglish
Title of host publication26th International World Wide Web Conference, WWW 2017
PublisherInternational World Wide Web Conferences Steering Committee
Number of pages10
ISBN (Print)978-1-4503-4913-0
Publication statusPublished - 1 Jan 2017
Event26th International World Wide Web Conference, WWW 2017 - Perth, Australia
Duration: 3 Apr 20177 Apr 2017


Conference26th International World Wide Web Conference, WWW 2017


  • CRDTs
  • Frameworks
  • Peer-to-Peer Systems
  • Web Applications

Fingerprint Dive into the research topics of 'Legion: Enriching internet services with peer-to-peer interactions'. Together they form a unique fingerprint.

Cite this