Saturday, March 14, 2009

What is Server Side Push and how is it implemented and when is it

Question :What is Server Side Push and how is it implemented and when is it

useful? (Servlets)




Answer :Server Side push is useful when data needs to change regularly on the

clients application or browser, without intervention from client. Standard

examples might include apps like Stock's Tracker, Current News etc. As

such server cannot connect to client's application automatically. The

mechanism used is, when client first connects to Server, (Either through

login etc..), then Server keeps the TCP/IP connection open.

It's not always possible or feasible to keep the connection to Server open.

So another method used is, to use the standard HTTP protocols ways of

refreshing the page, which is normally supported by all browsers.



This will refresh the page in the browser automatically and loads the new

data every 5 seconds.



No comments: