Integrating long polling with an MVC framework

  • Authors:
  • Eric Stratmann;John Ousterhout;Sameer Madan

  • Affiliations:
  • Department of Computer Science, Stanford University;Department of Computer Science, Stanford University;Department of Computer Science, Stanford University

  • Venue:
  • WebApps'11 Proceedings of the 2nd USENIX conference on Web application development
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

Long polling is a technique that simulates server push using Ajax requests, allowing Web pages to be updated quickly in response to server events. Unfortu nately, existing long poll approaches are difficult to use, do not work well with server-side frameworks based on the Model-View-Controller (MVC) pattern, and are not scalable. Vault is an architecture for long polling that integrates cleanly with MVC frameworks and scales for clustered environments of hundreds of application servers. Vault lets developers focus on writing application-specific code without worrying about the details of how long polling is implemented. We have implemented Vault in two different Web frameworks.