multiple HTTP GET requests in one TCP/IP connection - processed parallel or sequential multiple HTTP GET requests in one TCP/IP connection - processed parallel or sequential nginx nginx

multiple HTTP GET requests in one TCP/IP connection - processed parallel or sequential


are these GET request (all in the same TCP/IP connection) processed via the server in

parallel or in sequence?

It is processed in sequence. It is called pipelining. Pipelining is part of HTTP/1.1 and it means that the client need not wait for the current request tocomplete before sending the next request over a persistent connection. It can send several requests over the same connection without waiting for responses for previous requests. The requests are processed in FIFO manner i.e. The client can send several requests in sequence, and the server is supposed to send a response to each request in the same order the request was received. So if the server you are using in HTTP/1.1 compliant, then it should be handled in sequence.


HTTP pipelining happens sequentially. There is no support for any kind of interleaving in HTTP.

However, with pipelining, a server may know about all of the requests before it's done servicing the last one. In theory, it could do the necessary I/O in parallel.

It doesn't look like nginx will do that, though.