On 14/04/2010, at 5:02 PM, Clifford Heath wrote:

> On 14/04/2010, at 4:53 PM, Mike Bailey wrote:
>> Nathan de Vries blogged that Passenger added Chunked Transfer Encoding 
>> support in April 2009.
>> I'm looking for an example of how to use it in Rails now...
> 
> Doesn't the Rack API make it impossible?

It gets terminated by Passenger. Rack can't handle it, and my afternoon spent 
getting it to work wasn't particularly fruitful.
I think you'd end up fighting half of Rails core, for example the template 
generation is buffered in order to give timestamps in the log, around_filters 
in ApplicationController, AR transactions... are some problems I can think of.

Perhaps the best thing would be to firstly entirely cache your page responses 
and then serve them with a simple middleware (or a custom apache module if 
they're just cached into files).

>> On Wed, Apr 14, 2010 at 3:57 PM, Keith Pitt <[email protected]> wrote:
>> Awesome video, cheers for the link.
>> 
>> Chunked encoding sounds like a really good way to improve page rendering. Is 
>> there ways to do this in Rails?
>> 
>> On Tue, Apr 13, 2010 at 8:28 PM, Mike Bailey <[email protected]> wrote:
>> http://www.youtube.com/watch?v=WFsQvcdmLxc&feature=channel
>> 
>> Latency is super relevant to Aussies. Connections are expensive and our 
>> users pay dearly for extra requests sent across the pond.
>> 
>> Marissa puts it well, "a small image costs a dollar and a big image costs a 
>> dollar and a penny".
>> 
>> Hope others find this interesting.
>> 
>> - Mike
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Ruby or Rails Oceania" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to 
>> [email protected].
>> For more options, visit this group at 
>> http://groups.google.com/group/rails-oceania?hl=en.
>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Ruby or Rails Oceania" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to 
>> [email protected].
>> For more options, visit this group at 
>> http://groups.google.com/group/rails-oceania?hl=en.
>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Ruby or Rails Oceania" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to 
>> [email protected].
>> For more options, visit this group at 
>> http://groups.google.com/group/rails-oceania?hl=en.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby or Rails Oceania" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/rails-oceania?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.

Reply via email to