Thank for your quick reply. But my project must use C++ for other reason.
On Wed, Nov 17, 2010 at 11:18 AM, Brian Granger <elliso...@gmail.com> wrote: > I know you may be tied to C++, but the Python bindings have a nice event > loop that is integrates with the Tornado web server. > > Cheers, > > Brian > > On Tue, Nov 16, 2010 at 8:04 PM, technical issue <techwe...@gmail.com>wrote: > >> Hello all, >> I am a newbie of ZMQ. >> I want to write a web server in C++ that use ZMQ to transfer the job to >> worker and receive the respone from the worker. >> The web server using epoll runs in a process separated from the worker >> process. >> In the web server process we have 1 main thread and two child threads. >> when initializing, the main thread creates two child threads: one for >> transferring the jobs to the PUSH queue (called C1), one for receive the >> response from the SUB queue (like Mongrel2),called C2. >> the main thread uses epoll to accept the connection from the client, >> parses HTTP header and then pushes the job to a queue then the C1 gets job >> from internal queue and push to ZMQ PUSH queue. >> My question is: >> - Is this architect OK? >> - Sholud I use 1 or 2 ZMQ I/O thread for C1 and C2 ? >> - Because ZMQ does not support HTTP, is there any way to integrate HTTP >> socket accepted from epoll into ZMQ polling ? >> >> >> >> >> >> _______________________________________________ >> zeromq-dev mailing list >> zeromq-dev@lists.zeromq.org >> http://lists.zeromq.org/mailman/listinfo/zeromq-dev >> >> > > > -- > Brian E. Granger, Ph.D. > Assistant Professor of Physics > Cal Poly State University, San Luis Obispo > bgran...@calpoly.edu > elliso...@gmail.com > > _______________________________________________ > zeromq-dev mailing list > zeromq-dev@lists.zeromq.org > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > >
_______________________________________________ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev