Welcome! Log In Create A New Profile

Advanced

Re: Asynchronous/multiplexing FastCGI for nginx (incl. ref serverimplementation)

June 30, 2010 03:38PM
Wed, 30 Jun 2010 22:11:03 +0300 письмо от "maxhl" <maxhl@hitline.net.ua>:

> Primarily a modified version of the Nginx FastCGI module which implements
> multiplexing of connections, allowing a single FastCGI server to handle many
> concurrent requests.

> This paves the way for long-lived connections in web apps without wasting
> resources -- i.e. optimally you only need to run one server process per CPU
> (or one server with one thread per CPU) instead of one process per request.

Вообще, если один FCGI процесс находится внутри цикла и пришло новое
соединение, то оно просто становится в очередь, пока не будет принято
accept()'ом. Т.е. тот же самый multiplexing, но системой и нужно абсолютно
точно также по одному процессу на CPU, если нет ввода-вывода, о чем автор
забыл сообщить.

Преимущество может быть только одно, отсутствие оверхеда на установку соединения.
Но это обычно сильно меньше, чем время обработки запроса.
А из недостатков -- риск свежих багов.



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

Asynchronous/multiplexing FastCGI for nginx (incl. ref server implementation)

maxhl June 30, 2010 03:12PM

Re: Asynchronous/multiplexing FastCGI for nginx (incl. ref serverimplementation)

jjjx128 June 30, 2010 03:38PM

Re: Asynchronous/multiplexing FastCGI for nginx (incl. ref server implementation)

Maxim Dounin June 30, 2010 07:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 321
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