[zeromq-dev] nginx and 0MQ
sustrik at 250bpm.com
Tue Mar 16 11:20:20 CET 2010
> Anyone any pointers to writing an Nginx module which uses 0MQ.
> I have had a look at the nginx 'upstream',load balancing and memcached
> examples which seem to resolve
> around registering an fd from the thing you have connected to and
> read/write callbacks
> with Nginx itself which doesnt seem to lead itself directly to a 0MQ model.
The problem was discussed couple of times here. 0MQ cannot provide an fd
bound to 0MQ socket because POSIX provides no mechanism to create "fake
fds" controlled from userspace. Platform-specific solutions would
require some kernel hacking, but the only real solution would be to
extend POSIX specification :(
Thus, I am afraid, the only way ahead is to hack nginx to accept 0MQ
sockets as well as BSD sockets.
Pretty awful, but I cannot think of anything better.
More information about the zeromq-dev