How to do HTTP Server Push — aka do I NEED STOMP, AMPQ, etc?

There's an HTTP technique called COMET in which the client spins up a thread that makes a potentially very long-lived request to the HTTP server. Whenever the server wants to send something to the client, it sends a response to this request. The client processes this response and immediately makes another long-lived request to the server.In this way the server can send information while other things happen in the client's main execution thread(s).

The information sent by the serve can be in any format you like. (In fact, for clients in a web browser doing COMET with a Javascript library, JSON is perfect.) DevDevDev: It's true that COMET is most often associated with a Javascript-enabled browser, but I don't think it has to be. You might check out iStreamLight which is an Objective-C client for the iPhone that connects to COMET servers.

It's also discussed in this interview with the author.

There's an HTTP technique called COMET in which the client spins up a thread that makes a potentially very long-lived request to the HTTP server. Whenever the server wants to send something to the client, it sends a response to this request. The client processes this response and immediately makes another long-lived request to the server.In this way the server can send information while other things happen in the client's main execution thread(s).

The information sent by the serve can be in any format you like. (In fact, for clients in a web browser doing COMET with a Javascript library, JSON is perfect.) @DevDevDev: It's true that COMET is most often associated with a Javascript-enabled browser, but I don't think it has to be. You might check out iStreamLight, which is an Objective-C client for the iPhone that connects to COMET servers.

It's also discussed in this interview with the author.

Yes I know very well about Comet. Technically speaking Comet applies only to In-browser Javascript (sort of the reverse of AJAX). Anyway if you have an example implementation of Non-message brokered Comet?

More like a bi-directional web-service. – DevDevDev Oct 7 '09 at 3:12.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions