3 ms·
We use Mongrel2 at Fanout.io. I love it. It's part of our general ZeroMQ architecture of having lots of components that each do one thing well. ZeroMQ is an im
by jkarneges 12y ago
We use Mongrel2 at Fanout.io. I love it. It's part of our general ZeroMQ architecture of having lots of components that each do one thing well.
ZeroMQ is an improvement over plain HTTP primarily because you can use fewer internal pipes by interleaving requests and responses over the same sockets.
We even created a HTTP over ZeroMQ spec to help standardize this approach:
http://rfc.zeromq.org/spec:33 http://rfc.zeromq.org/spec:33
- FooBarWidget 12y agoWhat do you mean by internal pipes? Do you mean file descriptors? Why is reducing the number of file descriptors a good thing? After all, the total amount of traffic stays the same.
- jkarneges 12y agoIf you have a lot of fds, then you have fd polling issues to deal with for high performance. To be honest I've not actually benchmarked anything comparing the throughput of an efficient fd poller to multiplexed pipe. It just feels nice to avoid the problem, considering what kind of effort can go into those pollers. Some discussion from Zed about fd polling: https://web.archive.org/web/20120225022154/http://sheddingbikes.com/posts/1280829388.html https://web.archive.org/web/20120225022154/http://sheddingbi...