File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes AJAX real-time push/pull model Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "AJAX real-time push/pull model" Watch "AJAX real-time push/pull model" New topic

AJAX real-time push/pull model

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
I am reading some AJAX real-time push/pull model.

1. for real-time data, we could use javascript to set a timer, call AJAX function to refresh data based on timer. is it what we say "pull model" ?

2. How "push model" works ? In the server side, how a server knows which client should be sent(push) data ? each client has different IP address .

3. what about network traffic ? is the performance good ?

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
You can not push data to a computer with an Ajax model. You would need to use Applets or Flex/Flash to do that effectively.

With Ajax you need to do polling/COMET to get data which can be a heavy load on the server.

I agree. Here's the link:
subject: AJAX real-time push/pull model
It's not a secret anymore!