News for hackers. Stuff that matters.
Re:Messenger.js - dead simple API for multi-server communica... by bascule on Thursday March 01, 2012 @01:33AM (#3651184)
You do know what HTTP keepalive is, right?
Re:Messenger.js - dead simple API for multi-server communica... by weixiyen on Thursday March 01, 2012 @05:00PM (#3654262)
Eh, correct, but you still pass unnecessary headers each time as part of the payload. It would even up the speed theoretically, but it's still a request reply model that demands a response, and you really don't need that for pub/sub for example.

TCP just feels cleaner as a protocol for this kind of stuff but I would certainly concede that speed of HTTP isn't as bad as people would make it out to be.

Also, I'm considering adding createFastSpeaker and createFastListener to the API for people like game makers who don't need to guarantee delivery of certain data over UDP.