Parallel subrequests

Maxim Dounin mdounin at mdounin.ru
Thu Dec 26 13:15:00 UTC 2013


Hello!

On Thu, Dec 26, 2013 at 07:50:01AM -0500, honwel wrote:

> hi, agentzh
> 
>     There is also a problem that how can hold the one subrequest's response
> meanwhile waiting others(subrequest) comes, then combine the all
> response(data) and send it to client?  is it possible?
>     thanks a lot!

By default, responses to subrequests are serialized in correct 
order by postpone filter module, see 
src/http/ngx_http_postpone_filter_module.c.

That is, if you want to just return responses in order there is no 
need to do anything, it will happen automatically.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx mailing list