Skip to content

[zz] A Comparison of Push vs Pull Ajax

2007/07/19

The advent of AJAX has made it possible to develop browser based web applications with high user interactivity and low user-perceived latency. Real-time dynamic web data such as news headlines, stock tickers, and auction updates need to be propagated to the users as soon as possible. However, AJAX still suffers from the limitations of the web’s request/response architecture which prevents servers from pushing real-time dynamic web data.

Engin Bozdag, Ali Mesbah and Arie van Deursen of the Delft University of Technology have discussed the following approcahes to achieve web-based real time event notification:

1. HTTP Pull: In this traditional approach , the client checks with the server for latest data at regular user definable intervals . The pulling frequecncy needs to be high to ensure high data accuracy, but high pulling frequency may induce redundant checks leading to high network traffic. Low pulling frequency, on the other hand, may lead to missed updates. Ideally, the pulling interval should be equal to the rate at which the server state changes.

2. HTTP Streaming: This method consists of streaming server data in the response of a long-lived HTTP connection (Page Streaming) or an XMLHttpRequest connection (Service Streaming).

3. Reverse AJAX: Service Streaming, as applied to AJAX, is known as Reverse AJAX or COMET . It enables the server to send a message to the client when an event occurs, without the client having to explicitly request. The goal is to achieve a real-time update of the state changes. COMET uses the persistent connection feature in HTTP/1.1. With HTTP/1.1, unless specified otherwise, the TCP connection between the server and the browser is kept alive, until an explicit ‘close connection’ message is sent by one of the parties, or a timeout/network error occurs.

4. Long Polling: Also known as Asynchronous Polling, this method is a hybrid of pure server push and client pull. It is based on BAYEUX protocol. This protocol follows the topic based publish – subscribe scheme. After a subscription to a channel, the connection between the client and the server is kept open, for a defined amount of time. If no event occurs on the server side, a timeout occurs, and the server asks the client to reconnect asynchronously. If an event occurs, the server sends the data to the client, and the client reconnects.

In their experimental study, the authors compared Data Coherence, Server Performance, Network Performance and Data Misses of an AJAX application using a COMET push implementation (Dojo’s Cometd library), as opposed to a pure pull approcah.

The authors concluded that:

"…If we want high data coherence and high network performance, we should choose the push approach. However, push brings some scalability issues; the server application CPU usage is 7 times higher as in pull. According to our results, the server starts to saturate at 350-500 users. For larger number of users, load balancing and server clustering techniques are unavoidable.

With the pull approach, achieving total data coherence with high network performance is very difficult. If the pull interval is higher than the publish interval, some data miss will occur. If it is lower, network performance will suffer. Pull performs well only if the pull interval equals to publish interval. However, in order to achieve that, we need to know the exact publish interval beforehand. However, the publish interval is rarely static and predictable. This makes pull useful only in situations where the data is published frequently according to some pattern…"

Some other implementations of the Comet Ajax server-push model are:

  • Orbited: An Open Source Distributed Comet Server.
  • AjaxMessaging: Comet plugin for Ruby on Rails.
  • Pushlets: An open source framework for server-side java objects to push events to browser-side javascript, java applet, or flash application.
  • Lightstreamer: Commercial implementation offering HTTP streaming based on the AJAX-COMET paradigm.
  • Pjax: Push technology for Ajax.

 

Advertisements
6条评论 leave one →
  1. Unknown permalink
    2008/09/08 22:29

    塑料托盘 仓储笼   塑料托盘 手推车 仓储笼 钢托盘  钢托盘  托盘  塑料托盘 手推车 仓储笼 料箱 钢托盘 托盘  手推车  仓储笼 塑料托盘 料箱  钢托盘 托盘 塑料托盘 手推车 仓储笼 仓储笼 手推车 料箱 塑料托盘 钢托盘 仓储笼 手推车 料箱 塑料托盘 钢托盘 仓储笼 手推车 料箱 塑料托盘 钢托盘 托盘转运车 仓储笼 手推车 料箱 塑料托盘 钢托盘 托盘转运车 手推车 尼龙吊带 尼龙吊带钢丝绳 起重链条 钢板起重钳 钢板起重吊具 吊钩附件 横梁/吊具 成套索具 钢丝绳 起重链条 钢板起重钳 钢板起重吊具 吊钩附件 横梁/吊具 成套索具  托盘 泰州托盘塑料托盘  手推车 钢托盘 塑料托盘 扬州托盘 各式托盘 泰州托盘  手推车 钢托盘 塑料托盘 扬州托盘 各式托盘 泰州托盘  起重链 柔性吊带 酸性吊带  江苏吊具       

  2. Unknown permalink
    2008/09/08 22:30

     
     柔性吊带 柔性吊带 柔性吊带 扁平吊带 扁平吊带 扁平吊带 钢板起重吊具 横梁/吊具 吊钩附件 尼龙吊带 电工吊带 钢丝绳 起重链条 工业吊带 柔性吊带 扁平吊带 钢板起重吊具 横梁/吊具 吊钩附件 尼龙吊带 吊带 钢丝绳 起重链条 工业吊带 成套索具 钢板起重钳 托盘  托盘转运车 钢托盘  托盘 塑料托盘 料箱  钢料箱 仓储笼 托盘车  托盘车 托盘车 托盘车  托盘 钢托盘 塑料托盘 料箱 手推车 仓储笼 托盘转运车 托盘车 托盘车 托盘车 托盘车 手推车  手推车 手推车 手推车 仓储笼 钢制料箱 塑料托盘 钢制托盘 登高车 手推车 托盘托盘转运车 威海托盘 扬州仓储笼 钢托盘 塑料托盘 泰州托盘 南通托盘 扬州料箱 扬州手推车 仓储笼 钢制料箱  扬州仓储笼  钢托盘 塑料托盘 泰州托盘 南通托盘 扬州料箱 扬州手推车 仓储笼 钢制料箱 吊具 
     

  3. Unknown permalink
    2008/09/08 22:30

     
     柔性吊带 柔性吊带 柔性吊带 扁平吊带 扁平吊带 扁平吊带 钢板起重吊具 横梁/吊具 吊钩附件 尼龙吊带 电工吊带 钢丝绳 起重链条 工业吊带 柔性吊带 扁平吊带 钢板起重吊具 横梁/吊具 吊钩附件 尼龙吊带 吊带 钢丝绳 起重链条 工业吊带 成套索具 钢板起重钳 托盘  托盘转运车 钢托盘  托盘 塑料托盘 料箱  钢料箱 仓储笼 托盘车  托盘车 托盘车 托盘车  托盘 钢托盘 塑料托盘 料箱 手推车 仓储笼 托盘转运车 托盘车 托盘车 托盘车 托盘车 手推车  手推车 手推车 手推车 仓储笼 钢制料箱 塑料托盘 钢制托盘 登高车 手推车 托盘托盘转运车 威海托盘 扬州仓储笼 钢托盘 塑料托盘 泰州托盘 南通托盘 扬州料箱 扬州手推车 仓储笼 钢制料箱  扬州仓储笼  钢托盘 塑料托盘 泰州托盘 南通托盘 扬州料箱 扬州手推车 仓储笼 钢制料箱 吊具 
     

  4. Unknown permalink
    2008/09/18 06:33

    长沙托盘 杭州托盘 南昌托盘 镇江托盘  大连托盘 青岛托盘 烟台托盘 广州托盘 威海托盘 扬州托盘 泰州托盘 苏州托盘 连云港托盘 上海托盘 北京托盘 江苏托盘  浙江托盘 徐州托盘  江阴托盘 江阴托盘 江阴托盘 江阴托盘 江阴托盘 江阴托盘 江阴托盘 江阴托盘  昆山托盘  昆山托盘 昆山托盘 昆山托盘 昆山托盘  昆山托盘 昆山托盘 昆山托盘 昆山钢托盘 昆山钢托盘 昆山钢托盘 昆山钢托盘 常州托盘 常州托盘 常州托盘 常州托盘 常州托盘  常州托盘 常州托盘 常州托盘 常州钢托盘 常州钢托盘 常州钢托盘 常州钢托盘 无锡托盘 无锡托盘 无锡托盘 无锡托盘 无锡托盘  无锡托盘 无锡托盘 无锡托盘 无锡钢托盘 无锡钢托盘 无锡钢托盘  无锡钢托盘  江阴钢托盘  江阴钢托盘 江阴钢托盘 江阴钢托盘 昆山钢托盘 昆山钢托盘 昆山钢托盘 昆山钢托盘 常州钢托盘

  5. Unknown permalink
    2008/09/18 06:34

     柔性吊带 柔性吊带 柔性吊带 扁平吊带 扁平吊带 扁平吊带 钢板起重吊具 横梁/吊具 吊钩附件 尼龙吊带 电工吊带 钢丝绳 起重链条 工业吊带  柔性吊带 扁平吊带 钢板起重吊具 横梁/吊具 吊钩附件 尼龙吊带 吊带 钢丝绳 起重链条 工业吊带 成套索具 钢板起重钳 托盘  托盘转运车 钢托盘  托盘 塑料托盘 料箱  钢料箱 仓储笼 托盘车  托盘车 托盘车 托盘车  托盘 钢托盘 塑料托盘 料箱 手推车 仓储笼 托盘转运车 托盘车 托盘车 托盘车 托盘车 手推车  手推车 手推车 手推车 仓储笼 钢制料箱 塑料托盘 钢制托盘 登高车 手推车 托盘托盘转运车 威海托盘 扬州仓储笼 钢托盘 塑料托盘 泰州托盘 南通托盘 扬州料箱 扬州手推车 仓储笼 钢制料箱  扬州仓储笼  钢托盘 塑料托盘 泰州托盘 南通托盘 扬州料箱 扬州手推车 仓储笼 钢制料箱 吊具 仓储笼

  6. Unknown permalink
    2008/09/18 06:35

     扬州托盘 泰州托盘 南京托盘 苏州托盘 连云港托盘 上海托盘 北京托盘  江苏托盘  浙江托盘  徐州托盘  高邮托盘 宿迁托盘  长沙托盘 杭州托盘 南昌托盘  镇江托盘  大连托盘 青岛托盘  烟台托盘  广州托盘 威海托盘  扬州托盘 泰州托盘 南京托盘 苏州托盘 连云港托盘 上海托盘 北京托盘 江苏托盘  浙江托盘  徐州托盘   高邮托盘 宿迁托盘  长沙托盘 杭州托盘 南昌托盘  镇江托盘  大连托盘 青岛托盘  烟台托盘 广州托盘 海托盘威 扬州托盘  泰州托盘 南京托盘 苏州托盘 连云港托盘 上海托盘 北京托盘 江苏托盘  浙江托盘  徐州托盘  高邮托盘 宿迁托盘  长沙托盘  杭州托盘 南昌托盘  镇江托盘  大连托盘 青岛托盘  烟台托盘 广州托盘 威海托盘  扬州托盘 泰州托盘 南京托盘 苏州托盘   连云港托盘 上海托盘 北京托盘 江苏托盘  浙江托盘  徐州托盘  高邮托盘 宿迁托盘  长沙托盘 杭州托盘 南昌托盘  镇江托盘   大连托盘 青岛托盘  烟台托盘 广州托盘 威海托盘 

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: