Push-based versus pull-based data transfer in AJAX applications.
The Internet contains an ever increasing number of interactive applications, powered by technologies like AJAX and COMET. The latter has multiple ways of achieving the desired functionality, namely long-polling and streaming. While there have been many comparisons between AJAX and the traditional model of the web and even AJAX and long-polling, little research has been done comparing streaming to long-polling. This thesis aims to compare the different technologies in a framework created by Ali Mesbah et al., who compared polling and long-polling solutions in their 2008 article „Performance Testing of Data Delivery Techniques for AJAX Applications“. A new streaming test was created and compared with the other tests included in the framework. The results showed that streaming used very little network resources, using only one packet per message after the initial connections were made. Latency was also not an issue as messages were received by the client in 1305ms on average. However CPU usage and data coherence were not as good. Streaming dropped 1-2 messages where long-polling dropped none and the CPU usage was high at unpredictable times. These results, along with other shortcomings of the streaming method, led the author to determine that streaming is not a viable alternative to long-polling or polling at this time.
Graduation Thesis language
Graduation Thesis type
Bachelor - Computer Science