Ruby on Rails getting HTTP streaming

With the planned 3.1 release of the popular Ruby on Rails Web development framework, developers will see support for HTTP streaming, to improve page performance. They also will find that JQuery becomes Rails’s new default JavaScript library.

Details of the release have been appearing on the Rails blog this week, and Rails founder David Heinemeier Hansson subsequently offered his own perspectives. “HTTP streaming makes it possible for the browser to fetch expensive assets like stylesheets and JavaScripts before the server is done processing the whole request. This means a page that feels significantly faster because it’s ready to use by the user sooner.” HTTP streaming also is known as “chunked responses,” the Rails blog states.

In making jQuery the default JavaScript library, Rails builders are recognizing the momentum behind jQuery and extracting out the RJS (Ruby-to-JavaScript) compiler that worked with the Prototype JavaScript framework. “JQuery has more momentum, but the practical change is very little. People could already very easily use jQuery with Rails before this (and many did). This just updates the default to fit with that,” Hansson said. RJS becomes available as a gem add-on to Rails instead of being part of the standard distribution.

No specific date has been set yet for the release of Rails 3.1. “Rails is still baking, but we can see the end,” Hansson said. The Rails blog also notes the release this week of Rails 3.0.7. “The main change in this release is to fix a performance regression in Active Record that was introduced in version 3.0,” according to the blog. Active Record offers a base for models in a Rails application as well as database independence.

Would you recommend this article?

Share

Thanks for taking the time to let us know what you think of this article!
We'd love to hear your opinion about this or any other story you read in our publication.


Jim Love, Chief Content Officer, IT World Canada

Featured Download

Featured Articles

Empowering the hybrid workforce: how technology can build a better employee experience

Across the country, employees from organizations of all sizes expect flexibility...

What’s behind the best customer experience: How to make it real for your business

The best customer experience – the kind that builds businesses and...

Overcoming the obstacles to optimized operations

Network-driven optimization is a top priority for many Canadian business leaders...

Thriving amid Canada’s tech talent shortage

With today’s tight labour market, rising customer demands, fast-evolving cyber threats...

Staying protected and compliant in an evolving IT landscape

Canadian businesses have changed remarkably and quickly over the last few...

Related Tech News

Tech Jobs

Our experienced team of journalists and bloggers bring you engaging in-depth interviews, videos and content targeted to IT professionals and line-of-business executives.

Tech Companies Hiring Right Now