Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
hi. i was wondering if anyone has come across, or better, used the comet server push model, esp the implementation that uses IHttpAsyncHandler. if so, any comments?
thanks...
It sounds interesting, but I don't understand how it can work, it must involve the client polling as that is the only way that http is going to work. At which point it basically just AJAX?
It looks like a bit of a half-way house. The server is fudged to artificially keep the connection open, which means it then can send messages to the client without the client having to poll.
But the connection is dropped periodically (the article says 5 seconds) so that the first n clients don't permanently tie up the server's threadpool and available sockets.
So it is a mostly push connection. As long as the event happens whilst the client has an active connection, it's low latency. If the event happens whilst the client is reconnecting or is having to wait for a connection, then it's no better than polling.
that's about the size of it. [initial] tests do show a sig. drop in server load under most conditions and it looks as though it will be a good-ish fit for what i'm doing.
oddly enough, vsj dropped through my letterbox on saturday and had a good article on it, including coverage of various implementations, including long-polling. i couldn't put it down
Comment