169 points · by igrigorik · 14y ago · 33 comments
I might be fuzzy on my 0MQ knowledge and Mongrel2 but I thought PUSH/PULL are distinct socket types from PUB/SUB...
The reimplementation side of things is one more strike against software patentry, at least.
Novadays I can hold 1.5M open sockets on single server ...
Also, there's an attempt for 0MQ module for Nginx: https://github.com/FRiCKLE/ngx_zeromq
Once a request enters your "back office" it should all be message oriented, over persistent connections, with flow control / QoS, and the like.
Yes, replacing or modifying TCP would be a long, slow process, but so is re-implementing all its functionality at the application layer. Google introduced SPDY over two years ago (Nov 11, 2009), and as the article points out, there is still a whole lot of work that needs to be done before it lives up to its promise.
Edit: I confused web sockets with SPDY. I have to go read up on what these things actually are.
In many cases, you don't need bi-directional communication.. Which is also why HTML5 spec introduced Server Sent Events (SSE): http://www.igvita.com/2011/08/26/server-sent-event-notificat...
Ever edit a document with multiple people, at the same time? Much easier with web sockets.
Ever get a notification that a new email has arrived the second it arrived? Much easier with web sockets.
And yes, there's chat and messaging.
There are many more scenarios that will become evident as people start using the tech. It is a step up from XHR.
Thanks, this is the simplification I was after.
Or... don't have to deal with concurrent editing/locking mechanism? WebSockets do that for us?
Nope. However, it will allow you to contact any connected client at will from the server-side. Try doing that with XHR without constantly polling the server.
How does one pronounce that? Yur-m-k?
http://webcache.googleusercontent.com/search?q=cache:zsS5aXX...
http://answers.yahoo.com/question/index?qid=20100101105722AA...
(but really, it's ZeroMQ)