Write a module to support other protocol that http
191919 at gmail.com
Mon Jun 7 12:24:44 MSD 2010
Perhaps you are right. I didn't find a stable structure for
libevent-based program that scales by numbers of CPU. And the way
which libevent uses epoll/kqueue/etc is not quite efficient.
Furthermore, I want to use event-based multi-process model and take
advantage of some nginx's particular feature such as file AIO, so
nginx looks like a good start point. In fact, it is very easy to set
up such a module.
I have written a sample module which serves the Flash Socket/XMLSocket
cross-domain requests. I will post the source if anyone is interested
2010/6/7 Piotr Sikora <piotr.sikora at frickle.com>:
>> libevent has its own limit and actually it doesn't scale very well.
> Huh? Are you sure? Both nginx and libevent are only adding abstraction level
> on top of existing event mechanism in your operating system (kqueue, epoll,
> etc) and in the end your application calls exactly the same syscalls. I'm
> pretty sure that both solutions scale exactly the same.
>> I found that I can add my own modules without http and mail by adding
>> source file list to CORE_MODULES, and nginx compiles ok and begins to
>> server my protocol. :)
> Yes, you can definitely do that.
> But I would say that you're using wrong tools for this job.
> Best regards,
> Piotr Sikora < piotr.sikora at frickle.com >
> nginx-devel mailing list
> nginx-devel at nginx.org
More information about the nginx-devel