Original URL: http://www.theregister.co.uk/2007/11/26/virgin_america_open_source/

Virgin America tunes up with YSlow

Soaring open source skies

By Gavin Clarke

Posted in Applications, 26th November 2007 00:02 GMT

Me and my... Firefox plug in Ravi Simhambhatla's latest project employing open source has been to juice up the web site for Virgin America, the US's newest carrier, so travelers can surf smoothly and purchase tickets without waiting for pages to build.

Virgin America relies heavily on the power of virginameica.com, which pulls in 80 per cent of sales, with 150,000 unique hits a day in the week and 100,000 at weekends.

While Virgin America was this month voted one of America's top five airlines in Zagat's annual survey of carriers, though, the domestic web site came fourth.

That's not bad going, considering Virgin America only started flying in August and it made the top five against bigger and more established rivals. Plus, Simhambhatla and his IT team had to roll out the company's IT infrastructure at the last minute, as it wasn't certain until close to the launch date that Sir Richard Branson's latest venture would even gain US regulatory approval. However, there's clearly room for improvement if Virgin's web site is to match the same levels demanded of the rest of its service.

In tuning the web site, Simhambhatla - Virgin America's director of architecture and integration - picked YSlow, Yahoo!'s Firefox plug in, that's available under the Mozilla Public License and BSD. Working off YSlow's report card, Simhambhatla drew up a list of 13 action points that included reducing the number of JavaScript and CSS files, eliminating white space in the remaining JavaScript files - cutting their size by half - and adopting Gzip compression.

"Many web sites don't do it [Gzip compression]," Simhambhatla told El Reg in a recent interview.

The next big thing was utilizing the client-side cache. "We are targeting each object for caching. You must assume 80 per cent of visitors to the site will have cache not primed to your site - they have none of the objects. That's when you need to do the other things - build your own content networks (which we don't do), minimize the number of hits to the page and the number of style sheets and scripts. All the other things come into the picture. Each intertwines on the other," Simhambhatla said.

"The visual perception of how quickly or slowly a page loads is more important than the technology behind it," Simhambhatla said. "It comes up more quickly... they [customers] see the page is not bouncing back and forth. Our product site [which rolled out on 8 November] is perceptibly faster."

With the YSlow reality check under his belt and the site's performance tested using three types of network, Simhambhatla believes Virgin America will become the only US travel site to land an "A" grade ranking for all its web pages.

Virgin America plane in flight

Virgin America: online airline

Competition is fierce in the US with consumer groups monitoring carriers' performance and customer service. The company is up against both the lean and the mighty: equally cost-conscious, low-price carriers like Southwest and JetBlue Airways and big-ticket operators Continental and American Airlines. All that as the Virgin business tries to grow, adding more routes - the sixth in November - and as carriers experience record levels of travel during the Thanksgiving and Christmas holiday periods.

The travel start up has been making great use of open source in its software infrastructure during the launch phase, with Red Hat and Fedora running in its data center and on its web servers, a virtual private network using open source, and in-flight entertainment severs using MySQL and back-of-seat TV sets that are powered by Panasonic's Linux aboard its aircraft.

Virgin America is now looking to move its web site off of Apache's Tomcat and onto Red Hat's JBoss for the clustering, caching and Hibernate. Also, there's the Red Hat support factor: "We can buy support from JBoss. [With] Tomcat the only way to get support is to send an email to the mailing list.

"We will stick with open source [technologies] because they are fantastic, and work well and are so mature." Simhambhatla said. "It's proven huge for us in economy of scale, performance, management and bringing up servers and services for the business.®