Nginx, SPDY, and Automattic

16 Jun

Yesterday, Valentin Bartenev, a developer at Nginx, Inc., announced SPDY support for the Nginx web server. SPDY is a next-generation networking protocol developed by Google and focused on making the web faster. More information on SPDY can be found on Wikipedia.

At Automattic, we have used Nginx since 2008. Since then, it has made its way into almost every piece of our web infrastructure. We use it for load balancing, image serving (via MogileFS), serving static and dynamic web content, and caching. In fact, we have almost 1000 servers running Nginx today, serving over 100,000 requests per second.

I met Andrew and Igor at WordCamp San Fransicso in 2011.  For the next six months, we discussed the best way for Automattic and Nginx, Inc. to work together. In December 2011, we agreed that Automattic would sponsor the development and integration of SPDY into Nginx. The only real requirement from our end was that the resulting code be released under an open source license so that others could benefit from all the hard work.

For the past 6 months, Valentin and others have been implementing SPDY support in Nginx, and for the past month or so, we have been continually testing SPDY, fixing bugs, and improving stability. Things are almost ready for production and we hope to enable SPDY for all of WordPress.com in the next few weeks. Today, this site is SPDY-enabled if you are using a recent version of Chrome or Firefox and accessing this site over SSL. You can download the Chrome extension here and the one for FireFox here.

Thanks to the Nginx team for all their hard work implementing SPDY, and thanks to all of my Automattic co-workers who helped us test SPDY.  I hope to post some real-world performance numbers in the next few weeks as we complete our SPDY deployment and gather more data. We are also looking forward to SPDY support being part of the official Nginx source in the near future.

“We’d like to say big thanks to the team at Automattic and especially to Pyry Hakulinen who has been great in helping us test and debug this first public version of SPDY module for nginx. Automattic is a great partner, and we will continue to work with Barry and his team on improvements to nginx and to nginx/SPDY in particular.”

Andrew Alexeev – Nginx, Inc.

23 Responses to “Nginx, SPDY, and Automattic”

  1. Daniel Bachhuber June 17, 2012 at 4:39 am #

    Reblogged this on danielbachhuber.

  2. Mo Jangda June 17, 2012 at 5:15 am #

    Reblogged this on Developer Resources.

  3. Ryan Markel June 17, 2012 at 8:18 am #

    Reblogged this on Ryan Markel and commented:

    We have the best systems engineers in the world at Automattic. They’re ever better than you think they are because what they do is silent and unnoticeable, like ninjas.

    They just keep the service running solid, day after day.

  4. Matthew King June 17, 2012 at 2:20 pm #

    Note for Chrome users: If you don’t want to install a Chrome extension, you can enter the following into the JavaScript console:

    window.chrome.loadTimes().wasFetchedViaSpdy

    • Barry June 18, 2012 at 2:44 am #

      Thanks for the tip Matthew.

  5. Pothi Kalimuthu June 18, 2012 at 11:20 am #

    Awesome. Looking forward to real-world performance numbers.

  6. Egill June 19, 2012 at 3:00 am #

    Reblogged this on Egill.

  7. Jay Donovan July 5, 2012 at 11:34 pm #

    Cool. Are you still using Wackamole to balance between NGinx instances?

    • Barry July 5, 2012 at 11:35 pm #

      We have mostly moved to Keepalived at this point.

      • Jay Donovan July 6, 2012 at 10:31 am #

        Thanks Barry. Wackamole looks great but I’m not fond of services left at the orphanage’s door. :)

      • Ryan July 10, 2012 at 12:48 pm #

        I don’t like WordPress at all but fair play for sponsoring Nginx.

  8. lbr July 15, 2012 at 12:28 pm #

    Barry, good to know that automattic is helping nginx evolution.

    But why disabled the spdy and what is the current status after one month of this post?

    btw, i was at wcsf 2011 too, great talk ;)

    • Barry July 15, 2012 at 9:24 pm #

      SPDY is still enabled for this site. We are still working on some stability issues before enabling it more widely. As you can see from the change log there have been quite a few improvements in the past month.

      • todd December 4, 2012 at 3:37 pm #

        Hey Barry,

        It doesn’t seem to be enabled. Both the chrome extension and scripts to show protocol report false. Are you able to shine some light on this? Is there a reason you’ve disabled spdy?

        Best,
        todd

        • Barry December 4, 2012 at 3:57 pm #

          HI Todd – it is still enabled. It only works over SSL, so you need to be sure you are using https://

          • todd December 4, 2012 at 4:02 pm #

            Ooops, my mistake. We’re working on activating it today on flightfox.com. Looks like we’ll have to compile the spdy patch into nginx because it’s not yet in the stable release. Looking forward to testing performance and seeing results.

  9. Felipe Veiga July 20, 2012 at 10:45 pm #

    I just want to thank you for working on this matter. Nginx is great and the SPDY protocol will certainly improve nginx a lot and give it many more years ahead. Hopefully it will become the standard not the exception in the months to come.

Trackbacks/Pingbacks

  1. קצרים 2/12 – גלישה בחול, .קוֹם ו- SPDY | אלעד בבלוגלי - June 18, 2012

    [...] שילוב SPDY ב- Nginx This entry was posted in קצרים and tagged gtld, icann, nginx, spdy, אורנג, סינגפור, קוֹם, קום by אלעד. Bookmark the permalink. [...]

  2. SPDY in Nginx — Matt Mullenweg - June 18, 2012

    [...] on 24% of the top thousand websites (a good chunk of them WordPress). I was very proud of our team helping sponsor and debug SPDY support in the latest release. Hopefully this accelerates the adoption of technology like SPDY that improves the user experience [...]

  3. Matt: SPDY in Nginx | WordPress Planet - June 18, 2012

    [...] on 24% of the top thousand websites (a good chunk of them WordPress). I was very proud of our team helping sponsor and debug SPDY support in the latest release. Hopefully this accelerates the adoption of technology like SPDY that improves the user experience [...]

  4. Barely sufficiently supporting SPDY - June 21, 2012

    [...] you may have heard, Automatic sponsored the development of SPDY support for nginx. Since this blog was already running nginx, I thought I would do an upgrade and test. So I created [...]

  5. Sysadmin Sunday 85 | Server Density Blog - June 24, 2012

    [...] Nginx, SPDY, and Automattic [...]

  6. Quora - October 12, 2012

    Will nginx support SPDY?…

    The latest patch, N. 52, to support SPDY with Nginx is considered stable, it’s however based on the development version of Nginx, 1.3 so it’ll take some time to see it fully integrated in Nginx. It’s woth noting that this development was sponsored b…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 853 other followers

%d bloggers like this: