News for hackers. Stuff that matters.
Re:Polyglot is a distributed web framework for multiple prog... by jkarneges on Monday July 14, 2014 @04:06PM (#8032896)
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

Re:Polyglot is a distributed web framework for multiple prog... by FooBarWidget on Monday July 14, 2014 @06:37PM (#8033660)
What 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.
Re:Polyglot is a distributed web framework for multiple prog... by jkarneges on Tuesday July 15, 2014 @05:59PM (#8039336)
If 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://sheddingbi...