+Proof of concept: Nginx + Luajit + ZMQ for "zeroconfig router". Meaning, when Nginx is started, our `zmqrouter.lua` module is loaded into the Nginx worker, which in turn opens an XREQ ZeroMQ socket. When a request comes in, we extract the user agent, the body of the request, push it into the XREQ socket, and then wait for the response.

+

+The response is served by a simple ruby worker which accepts ZeroMQ messages and sends an echo response back - this, of course, could be implemented in any language you like.

+Voila! Nginx parsed the request, pushed it to one of our Ruby workers via ZMQ and returned the response back to the client.

+

+## Notes

+

+This is a minimal proof of concept at best - there is a number of issues with the above example. First, the ZMQ socket will block the nginx reactor as implemented: it needs to be integrated into the nginx loop. Further, once you integrate the ZMQ socket into the run loop you'll have to keep track of all the incoming streams and respond to the correct client (not to mention properly handle the header relay, etc).