Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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 Android Security Essentials Live Lessons this week in the Android 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: 15376
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.

It is sorta covered in the JavaRanch Style Guide.
subject: AJAX real-time push/pull model
Similar Threads
Session Time out
How to push data from server to client in struts
How does Reverse Ajax Works?
Quick Question on updation
Push & Pull models of MVC