Skip to Main Content
 

Global Search Box

 
 
 
 

Files

ETD Abstract Container

Abstract Header

A WebSocket-based Approach to Transporting Web Application Data

Hadden, Ross A

Abstract Details

2015, MS, University of Cincinnati, Engineering and Applied Science: Computer Science.
Most web applications serve dynamic data by either deferring an initial page response until the data has been retrieved, or by returning the initial response immediately and loading additional content through AJAX. We investigate another option, which is to return the initial response immediately and send additional content through a WebSocket connection as the data becomes available. We intend to illustrate the performance of this proposition, as compared to popular conventions of both a server-only and an AJAX approach for achieving the same outcome. This dissertation both explains and demonstrates the implementation of the proposed model, and discusses an analysis of the findings. We use a Node.js web application built with the Cornerstone web framework to serve both the content being tested and the endpoints used for data requests. An analysis of the results shows that in situations when minimal data is retrieved after a timeout, the WebSocket method is marginally faster than the server and AJAX methods, and when retrieving populated files or database records it is marginally slower. The WebSocket method considerably outperforms the AJAX method when making multiple requests in series, and when making requests in parallel the WebSocket and server approaches both outperform AJAX by a tremendous amount.
Paul Talaga, Ph.D. (Committee Chair)
Fred Annexstein, Ph.D. (Committee Member)
John Franco, Ph.D. (Committee Member)
36 p.

Recommended Citations

Citations

  • Hadden, R. A. (2015). A WebSocket-based Approach to Transporting Web Application Data [Master's thesis, University of Cincinnati]. OhioLINK Electronic Theses and Dissertations Center. http://rave.ohiolink.edu/etdc/view?acc_num=ucin1427813562

    APA Style (7th edition)

  • Hadden, Ross. A WebSocket-based Approach to Transporting Web Application Data. 2015. University of Cincinnati, Master's thesis. OhioLINK Electronic Theses and Dissertations Center, http://rave.ohiolink.edu/etdc/view?acc_num=ucin1427813562.

    MLA Style (8th edition)

  • Hadden, Ross. "A WebSocket-based Approach to Transporting Web Application Data." Master's thesis, University of Cincinnati, 2015. http://rave.ohiolink.edu/etdc/view?acc_num=ucin1427813562

    Chicago Manual of Style (17th edition)