history of Nginx

Manlio Perillo manlio_perillo at libero.it
Wed May 7 17:37:37 MSD 2008


Grzegorz Nosek ha scritto:
> On Wed, May 07, 2008 at 12:32:38PM +0200, Manlio Perillo wrote:
>> What are the difference between the Apache and Nginx multiprocess model?
>>
>> Nginx used a master process and all the worker call accept on the same 
>> sockets.
>>
>> But what about Apache?
> 
> I feel sort of qualified to answer :)
> 

 > [...]

Ok, thanks

 > [...]
 >
>> Do you have considered corutines?
>> There are some libraries that implement coroutines in C, using POSIX 
>> setcontext, longjmp or custom ASM code.
>>
>> As an example one librery with a nice API:
>> http://xmailserver.org/pcl.html
> 
> Me personally, I find coroutines hard to wrap my mind around and I
> actually prefer the nginx "horde of callbacks" model.
> 

The problem is that you need to write a program with this model in mind.
With coroutines you can support an application almost unchanged.


I'm planning to ad support to greenlets (a coroutine implementation for 
Python) in the WSGI module for Nginx.

> Best regards,
>  Grzegorz Nosek
> 


Regards  Manlio Perillo





More information about the nginx mailing list