Streaming responses to the client

Igor Sysoev is at rambler-co.ru
Fri Apr 20 17:27:24 MSD 2007


On Fri, Apr 20, 2007 at 09:14:40AM -0400, Paul Dlug wrote:

> Right, but turning off buffering is not the same as streaming the
> response with a buffer. Are there any plans to add this functionality?
> Right now it's the only thing keeping me from using nginx.

You mean to send response part to a client as soon as possible and
to get whole response from backend as soon as posible ?

Yes, I plan it.

> On 4/20/07, Igor Sysoev <is at rambler-co.ru> wrote:
> >On Fri, Apr 20, 2007 at 01:21:31AM -0400, Paul Dlug wrote:
> >
> >> Perhaps there's an obvious answer to this question but it doesn't seem
> >> to be documented anywhere...
> >>
> >> I have nginx running as a reverse proxy for a web application serving
> >> several large pages. Without nginx the page incrementally loads in the
> >> browser (streaming response) so the user is able to view it as it
> >> loads. Behind nginx the it hesitates and loads in one chunk. This
> >> indicates that nginx is reading the response from the backend and then
> >> serving it rather than streaming it to the client as it loads.
> >>
> >> Is there anyway to get nginx to stream responses? To compare, Perlbal
> >> has this behavior implemented and the difference in the perceived
> >> speed when a large page loads is significant. If nginx can stream
> >> responses I assume it would be possible to turn off buffering to a
> >> file completely.
> >
> >proxy_buffering off;
> >
> >
> >--
> >Igor Sysoev
> >http://sysoev.ru/en/
> >
> >
> 

-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list