Friday, September 16, 2011

What is Client-Pull and Server-Push paradigm?

Client-Pull refers to a technique that enables a browser/client to request (or "pull") data from the server automatically without the user-intervention. It is a method of initiating delivery of content from a server computer to a client on a network. With this capability, it is possible to have a web page that refreshes/reload itself; or even a web page that loads another page, without the user doing anything. A common implementation of Client Pull is to have the browser automatically move to a different page without the user clicking a hyperlink. For example, sites that have changed their URL might use Client Pull to tell a browser to automatically load the new URL. You could also specify the browser to load the new URL after a time frame has expired.

Server-Push, on the other hand, is method of using server computers to send content independent of requests from client computers. A comman example is bulk mail system that delivers mails to each and every "client". In each case, the transfer of the content is initiated by the server rather than the client. Another example is live notifications in GTalk, a widget that lets GMail users chat online. This application lets the clients know if a new user logs in.

No comments :