Welcome! Log In Create A New Profile

Advanced

Re: How does FastCGI work under the covers?

Maxim Dounin
June 30, 2013 06:36PM
Hello!

On Sun, Jun 30, 2013 at 05:10:23PM -0400, kgk wrote:

> Hello Everybody,
>
> I have a simple question about the Nginx FastCGI implementation. Let's say
> that 1,000 web browsers are requesting pages from our server, and we're
> using FastCGI within Nginx.
>
> While the FastCGI specification permits sending little pieces of each
> request ("multiplexing" them), my understanding is that most (all?)
> implementations don't do this. Therefore,
>
> (1) does Nginx FastCGI provide exactly one complete HTTP request at a
> time?
>
> (2) does Nginx FastCGI want us to respond to that particular HTTP request
> before it gives us the next one?
>
> The reason that I ask is this: If my FastCGI server is high-latency, I'm
> wondering if it can get lots of requests to work on, or if it will have to
> finish one and only then get the next one, and only Nginx knows the answer
> to this question. :)

FastCGI multiplexing isn't used by nginx. That is, within a
single connection to a fastcgi application only one request is
sent, and then nginx will wait for a response. More connections
will be opened if there are multiple simulteneous requests.

--
Maxim Dounin
http://nginx.org/en/donation.html

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

How does FastCGI work under the covers?

kgk June 30, 2013 05:10PM

Re: How does FastCGI work under the covers?

Maxim Dounin June 30, 2013 06:36PM

Re: How does FastCGI work under the covers?

kgk July 01, 2013 11:57AM

Re: How does FastCGI work under the covers?

Maxim Dounin July 01, 2013 01:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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