Hello!
On Tue, Jan 21, 2014 at 11:13 AM, ming zhang wrote:
> We have some app servers that could generate large http response body for
> GET rest calls. the body could be as large as 10-20MB. if we put nginx in
> front of them. wonder how nginx will work? will all these data be read from
> kernel to user space and then send back to client from user space to kernel
> again?
>
It depends on your actual usage. There are so many different possible
configurations and modules in the Nginx world.
When you *effectively* enable sendfile in Nginx, then the data won't
go through the userspace. But sendfile won't work with nginx upstream
modules.
For large data processing, nonbuffered processing is usually more important.
Regards,
-agentzh