Process Flow - Connection pooling to upstream
Client sends request
Nginx receives request
Check for idle connection in pool
Reuse connection
Send request to upstream server
Receive response from upstream
Return response to client
Keep connection alive in pool for reuse
Nginx receives a client request and tries to reuse an existing connection to the upstream server from the pool. If none is available, it creates a new connection. After response, the connection is kept alive for future reuse.