Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Client pull and Server Push

 
Reba Shahid
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Could somebody tell me the difference between client pull and server push? As far as I can figure out client pull is when we send a GET request via a browser to fetch information from a server...but I can't figure out server push.
 
Manish Hatwalne
Ranch Hand
Posts: 2595
Android Firefox Browser Ubuntu
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check ou thsi link http://wearcam.org/pushpull.html
You can also search google for more info.
 
chris scalise
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A client pull is when a client program solicits data from the server. A server push is when a server sends unsolicited data to a client. An example of a server push would be an application where a client registers interest in a particular data item (lets say a stock symbol) and the server pushes data (such as stock purchase and sell data) as it occurs without the client having to continuously ask for updates.
 
Toby Davis
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FYI - note that a form of server push (such as MultipartResponse, from o'reilly) is not supported if you use Internet Explorer browsers as clients.
A situation would be when you want to change the header content type twice with one request. For example, you push an application/octet-stream to force a file-save, then you want to display html on the browser afterwards stating "finished!" by switching to text/html... all with one client request. Fails badly in IE.
---
[ April 24, 2002: Message edited by: Toby Davis ]
 
Val Pecaoco
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, here's the link to the com.oreilly.servlet.MultipartResponse doc.
Ex Animo Java!
-- Val
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And just to make it formal: under HTTP, you can ONLY do client pull, not serverf push (sneaking headers into the middle of a pull's response stream isn't really a push, since a pull already initiated it).
 
Wouter Zelle
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tim Holloway:
And just to make it formal: under HTTP, you can ONLY do client pull, not serverf push (sneaking headers into the middle of a pull's response stream isn't really a push, since a pull already initiated it).

Correct, if you need to push info to a browser you should use an applet or Flash.
 
Reba Shahid
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for all the info...
So is it possible to incorporate server push using Servlets ? :roll:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic