News for hackers. Stuff that matters.
Re:Distributed Systems with ZeroMQ and gevent by j2labs on Friday September 23, 2011 @04:10PM (#3031413)
People interested in these slides might like to check out the Brubeck framework. It can use gevent for concurrency and ZeroMQ to communicate with Mongrel2, it's webserver.

http://brubeck.io

Re:Distributed Systems with ZeroMQ and gevent by espeed on Friday September 23, 2011 @06:38PM (#3031843)
So Mongrel2 sits in front of Brubeck and proxies requests back?

I've been playing with ZeroMQ quite a bit the last few weeks because I needed a fast way to pump data from a Python app into the Neo4j Batch Loader, which runs on the JVM. I wrote a lightweight ZeroMQ server in Jython called Lightsocket and a Python client that (with multiple clients) was pushing about 10,000 inserts per second into Neo4j on my dev system.

Jython was the bottleneck, and I could have rewritten it in Java or Scala, but the data was already loaded. However, I went looking around to see if there was a ZeroMQ-based container or if anyone had modified Tomcat or Jetty to run as a ZeroMQ server, but I couldn't find much on it. Does anyone know of a ZeroMQ server/container for the JVM?

Re:Distributed Systems with ZeroMQ and gevent by j2labs on Saturday September 24, 2011 @12:03AM (#3032475)
Correct. Mongrel2 sends request messages to Brubeck which processes the request and responds with a complete HTTP response.