Welcome! Log In Create A New Profile

Advanced

Re: Write a module to support other protocol that http

191919
June 07, 2010 04:26AM
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
in.

2010/6/7 Piotr Sikora <piotr.sikora@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@frickle.com >
>
>
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel@nginx.org
> http://nginx.org/mailman/listinfo/nginx-devel
>

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Write a module to support other protocol that http

Jh 2686 June 06, 2010 06:32AM

Re: Write a module to support other protocol that http

Peter Leonov 1037 June 06, 2010 10:38AM

Re: Write a module to support other protocol that http

191919 1163 June 06, 2010 10:50AM

Re: Write a module to support other protocol that http

Boris Dolgov 1615 June 06, 2010 11:26AM

Re: Write a module to support other protocol that http

Jh 1122 June 06, 2010 12:38PM

Re: Write a module to support other protocol that http

Piotr Sikora 1038 June 07, 2010 01:16AM

Re: Write a module to support other protocol that http

191919 1025 June 07, 2010 02:16AM

Re: Write a module to support other protocol that http

Piotr Sikora 1059 June 07, 2010 02:54AM

Re: Write a module to support other protocol that http

191919 1062 June 07, 2010 04:26AM

Re: Write a module to support other protocol that http

Qihang Guo 1396 June 07, 2010 04:48AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 301
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready