76 points · by julien · 15y ago · 28 comments
Except it's messy and ugly. Well, it's somehow feels on par with HTML, where browsers have to support all sorts of weirdness, though. Further reading: http://news.ycombinator.com/item?id=2069810
However, I still consider XMPP as the protocol of last resort when designing apps for the browser that don't map perfectly onto XMPP. I would sooner write a new protocol than set up a new ejabberd cluster. (This opinion is based on the quality of documentation available a year ago and may be out of date.)
My biggest problem with XMPP as a whole is... well, it's XML. Not only is it heavier than it should be across the wire, it feels to me that the XML way of thinking leads to unnecessary verbosity when designing protocol messages. And there seems to be no proper consensus on how to use it among the different XMPP RFCs -- do we re-use a node name or come up with something different? Or just make it an attribute? Do we namespace it?
XMPP works great for what it was designed for though. There are many robust client and server implementations, being able to federate is awesome, and it's pretty easy to extend. But if I were to re-invent it, I would use a binary transport format.
Also, I wish people were more adventurous with XMPP in general and stop thinking that it's just a chat protocol.
For server-to-server passing, prefer (in order):
1. redis pubsub
2. zeromq (if you know what you're doing)
3. amqp (if you think you need it)
4. populate events to a DB transactionally then consume later
Only use XMPP if your problem domain is "someone is paying me $LOTS to set up an XMPP service."Site streams requires making one connection per 100 users; perhaps they were having trouble sharding with XMPP?
https://developer.mozilla.org/en/WebSockets
Can't wait until they fix this!
With the advantages xmpp may or may not have over http/html, this could be interesting.
The most interesting obvious usecase to me would be using XMPP and ejabberd as a message backplane for your website, hanging various components off of ejabberd that can integrate with your web connection.
Why not 0mq and json ? Something like Mongrel2 perhaps?