[zeromq-dev] hitting file descriptor using gevent

Paul Colomiets paul at colomiets.name
Sat Jul 16 00:06:19 CEST 2011


Hi Tim,


On Sun, Jul 10, 2011 at 4:59 PM, Tim Cooijmans <timcooijmans at gmail.com> wrote:
> Hi,
>
> I'm having problems building an asynchronous application using zeromq:
>
> My aim is to have a number of front-end servers running gevent. These
> front-end servers will receive HTTP-requests. When they receive a request
> they will send off a request to do some calculation to a worker-server via
> zeromq, then wait for a reply to come back and when it comes back parse some
> data from the response in the HTTP-response body. The waiting can take up to
> 1 second and the servers should be able to process thousands of request per
> second so a asynchronous server is needed.
> A worker-server has to be able to process multiple requests at once because
> there is a lot of waiting to be done when processing.

Have you considered using Mongrel2 or Zerogw for your task?
I think both of them are capable of doing work for you. Probably they also
faster, use less RAM and more stable.

-- 
Paul



More information about the zeromq-dev mailing list