sexta-feira, 4 de dezembro de 2009

Windows Azure e WordPress


Vocês poderiam imaginar ver o Ray Ozzie, chief software architect da Microsoft, ao lado de Matt Mullenweg, founding developer da WordPress, dividindo o mesmo palco em uma apresentação do PDC09? Imaginar a Microsoft oferecendo suporte para PHP, MySQL e Apache no Windows Azure muito menos?

Separei um trecho da apresentação do Matt Mullenweg no PDC09, contando de forma superficial a adesão da WordPress ao Windows Azure. (Na verdade não sei se adesão foi do WordPress ao Azure ou do Azure ao WordPress :) ). Segue trecho abaixo:

"... MATT MULLENWEG: Good morning, everybody!

Do we have any WordPress users here in the audience? Nice! Thank you, thank you.

I'm very excited to be here. Just to give you a little bit about my timeline, about six years ago, as a 19-year old poly-sci student, I started working on an Open Source GPL, PHP and MySQL project named WordPress. About four years ago, I founded a company called Automattic to bring WordPress to the masses, which was done to about 200 million people with WordPress.com.

Then about a month ago, I get a phone call from a guy named Jeff Sandquist, and he says, Matt, remember that thing I told you would never happen, and I said, what's that? And he said, we're going to have MySQL, PHP, and Apache support on Windows Azure.

So, I looked outside, peaked out the window, made sure there were no pigs, and I said, well, get me out there, I'd love to show this. So, that's what we're going to be showing you right now.

As you can see, right here on the Azure back-end, and we have a production WordPress blog here. So, I can click on it, and you will see the beautiful big blue header, everything that you've come to know and love about WordPress blogs.

But as you know, blogs are no more longer about just personal publishing, they're being used for big news sites, they're being used to cover everything. And so sometimes you get varied traffic.

So, as you can see, we have a MySQL and an Apache instance here. Let's say my blog gets on Slashdot or Channel 9 or Digg or something like that, and we need to scale it up. We go right here in this beautiful XML file and change it from one instance in Apache to -- how many should I go to, a hundred, a thousand? I don't know a thousand to do that.

So, you can put it however you like, though. You just click the button, and that will take you all the way back, it will reload, it will deploy the instances, bring up all the machines, deploy the virtual machines, everything like that, and instantly add it to the load balancer and you have a fully scaled WordPress.

Now, what's interesting a few months ago, because we had the election cycle in the United States, and we hosted about 10 million blogs at the time. So, we were seeing all range of really some of the biggest traffic we'd ever seen to blogs.

There were two blogs that were at the very top. One was CNN Political Ticker. It had deep, insightful analysis, really talking about the future of the free world was in the hands, hung in the balance in this election. And then on the other side we had a blog with pictures of cats and funny captions, battling every day for top traffic. I'm not joking.

So, to show you one of the engineers behind the other biggest blog, WordPress blog in the world, I wanted to invite out Martin Cron, who is one of the engineers behind I Can Has Cheezburger. Hey, Martin.

MARTIN CRON: Hi. Thank you. Nice intro. (Applause.)

Hi, everyone. My name is Martin Cron. I work for the Cheezburger network. You may recognize the site, including I Can Have Cheezburger, and FAIL Blog. You like that one, good. And Pundit Kitchen, which is our news and political blogs.

We have a network of about 40 blogs. They're all humor Web sites, they're all running on the WordPress platform.

We get about 8 million page views a day. All of our content is user-generated. We have about 10,000 submissions to our platform every day. And all of our content is user peer rated. So, we have about 100,000 votes every day that we process to know what things are good enough to feature on the front page. So, we look at the crap so you don't have to of all these funny pictures.

We've been launching more and more news sites. So, the strategy of we don't know exactly what's going to be funny, we don't know exactly what's going to work, so we're going to just throw things out there and see what catches on. We need to be able to throw things out there really cheaply. But we also need them to scale up.

This is some real-life traffic from just a couple of weeks ago, and you can see we're hovering along about 50,000 page views, and then all of a sudden we get a spike. And that spike could be a cross-promotion from FAIL Blog, that site could be showing up on Digg or on ReadIt or on Slashdot or whatever.

And then afterwards, the sort of hungry hordes of Internet users, they move on to the next big thing, but the people who really liked the site, our core audience, the people who are going to comment and send in stuff and come back day after day, that's the people who are the real revenue for us, they come back, and establish what I call the new baseline number.

But this dashed line here shows what would happen if on the day of our spike bad things happen, half of our traffic gets turned away. Well, then half of our recurring audience doesn't even know what we exist really, so they don't come back.

So we need to be able to scale up really quickly, but we also need to be able to scale down, because it's wasteful to support this degree of spike-level traffic all the time. We can't afford to do that. It's really easy to buy new servers, but it's kind of hard to give servers back. It's like, oh never mind, I don't need this one anymore.

So what we're doing is we're launching a new site today on the Windows Azure platform, and it's running with SQL Azure on the back-end where you can go see Windows Azure blob storage.

So, the new site is called OddlySpecific.com, and it's a Web site about really strange signage. (Laughter.)

It might not work for everyone. I think this one is cute. (Laughter.) And, see, I get to decide, because we get a lot of signage permissions from FAIL Blogs that aren't really FAILs, they don't really fit the FAIL Blogs, but they're really funny.

So, this site just launched today, and it's running on SQL Azure at the back-end, Windows Azure for instances, and if it gets really popular, we can just increment the number in the config file, we've got more instances to serve.

On the back-end we have a plug-in for WordPress that lets you use the Windows Azure storage platform, which is great because all the Windows Azure instances are stateless, and you can put in a custom URL, custom domain name for how the images are served, which looks really good, and then we can also use the CDN. So, in addition to this being easier for me, because I don't want to have to deploy servers anymore than anyone else does, we get a better experience for our users.

So, Oddly Specific, all the content is user-generated. If you see a funny sign, please send it to us. Thank you. (Applause.)..."

Para ler a apresentação na íntegra, acesse:

http://www.microsoft.com/presspass/exec/ozzie/2009/11-17PDC.mspx

Nenhum comentário:

Postar um comentário