High performance networking

(Similar in spirit, but differently in practice from this question .)

Is there any browser compatible technology in the browser that allows a high performance persistent network connection between a server application and a client written in, say, Javascript? Consider XMLHttpRequest

caffeine. I am working on a rendering system that is limited to no more than a few users at the same time, and the server is pretty robust so it can handle as much as it needs to. I would like to allow the client to access the video streamed from the server at a minimum of about 20 frames per second, no matter what their graphics hardware capabilities are.

Simply put: Is it doable without resorting to Flash or Java?

+2


source to share


1 answer


I'm not sure what you mean by caffeinated XMLHttpRequest ... the performance of a remote polling object like this depends on the performance of the client and server, not the language constructs themselves. Of course, there is HTTP overhead in AJAX, but the only viable alternative is to use long HTTP polling (which basically delays the connection to the server longer and skips a little bit of data in the background. This is literally the same as AJAX, except the connection stays open until until something happens (thus wrapping the HTTP header for downtime).



If I recall correctly, Opera had some socket implementation but nobody uses Opera.

+2


source







All Articles