 So thanks for having me I Really enjoy coming to this conference to speak I'm used to going to these developer conferences and as you scan the audience you will see men and That's it So the developer community is not very diverse and I'm very happy to see such a gender-equal Conference and I'm happy to speak at it Thing got so like the the last time I was at a developer conference There was one company you had I don't know if you've heard of boot ladies it's like when you go to formula one or Like a motorcycle contest. They will have these ladies that are aren't dressed and it's gotten that worse and It's something that we need to talk about and I'm happy to be here And I also I urge you to start coding because that's that's what I do and we need more coders And we need more women as well Let me see. I just want to quickly Switch to Can all fan plate dot s e because that's what I work with daily And so you get a feel for what I do See if I can find the window here Let's zoom out a bit Um So this is the website or actually the the service that I'm working with It Is a new way of or it's an ambitious way of trying to bring the TV to the web most Web TV Websites nowadays you go in you have to know exactly what you want to watch and If you don't find that you go there you leave that place what we're trying to do is and Some people will call that auto-starting but what we're trying to do is we basically Know a lot about our viewers and we know what they want to watch As we see in this case a lot of people maybe some of you even saw breaking news last night That was a show that was aired on cannot them and it's It's available as a catch-up version on our site And we know that basically 80% of all our viewers we want to watch that show. So why not start it? That's how you do when you turn on your telly and you start start using the remote You will start seeing stuff immediately imagine having to confirm every time you go to TV Confirm that you want to watch robin's on or confirm that you want to watch let's dance or I don't know So that's That's the site I'm working with so we also have an iPhone app and an Android app Let's see if I can switch back to this And to and this is kind of a story about how we move to the cloud and to illustrate that story I want to continue and introduce a problem known as the tea kettle problem It's a problem that was first presented to me at some cloud conference a couple of years ago and it's actually I don't really remember who who presented it and I'll explain to you later It's kind of good that I don't remember this because it's a bad example and it's actually not I shouldn't be talking about it but it kind of Shows what I want to say here today and So I'll continue Some of you may recognize this slide. It's a Soap opera shown on BBC anyone from England here No one one or two. Yeah, so EastEnders is a soap opera that's been running since 1985 and according to Wikipedia Which is kind of the The cloud version of the the big case of books that you have in your at home The launch show attracted 17 million viewers and One of the episode the Christmas Day episode in 1986 Attracted a combined 30 point 15 million now canal fam is not that big of a channel. We I think our record is Somewhere around 1 million people but So and I want you to picture all these 30 million British people watching EastEnders and Then picture them what they do after that so I don't know about you but my My thing with British people is that they usually drink tea So 30 million or 20 million or so we want to drink tea just after EastEnders ended on TV So they turn on their tea kettles and to boil all that water. We're gonna need a lot of energy So what happened during or actually after EastEnders the power companies were at on their toes Trying to produce as much energy as possible so that all these tea kettles will be boiled or all these water would be bought for the tea kettles and As you might as you may know Energy can't be stored. So it has to be Construct or you have to produce it once it's needed so and this is kind of the scenario that At least according to the presenter at that conference. This is what happens So the energy consumption will will skyrocket just after EastEnders Now what does that have to do with us? so the next slide I'll just change some of the You might not have noticed that I'll just change some of the titles and texts So this is exactly what happens at our site We have the re-experiencing the tea kettle problem every day every single day or almost every day Fridays and Saturdays we show America's funniest home videos and no one's really watching But so The the big spike here. I wrote Ariasnikan ends on TV Ariasnikan is a rather popular show that we air on canal fem and it's viewed I think it has about half a million viewers and usually what happens with Ariasnikan is that there's a follow-up episode and There's a voice Peter, which is actually really small and he sounds like this big guy You are just people to go to the website to check out what really happened. Did they Were they able to live in the house? What happens to the bathroom and so on? So We will almost I think the worst thing usually our baseline traffic and when I say traffic here, it's Kind of technical. It's the number of hits that our Servers are facing so one if someone goes into the start page that would probably generate about 20 hits So it's not really one hit is not one person But the worst scenario we've had is about 10,000 hits per second and to be able to cope with all that traffic we needed to We needed to find a way to dimension The number of servers that we had so at that point in time this was in 2009 we We had about eight servers. That was it. It was quite expensive. We had to renew them every one and a half two years and We had to store them somewhere. We have to Cool them so we we bought place at this Like a company that has all the cooling and stuff but eight servers in total and we were only able to deal with about Let's say thousand requests per second. So we really didn't know how to deal with this and You might not think that that's too bad because we're we're basically dealing all the traffic that That's underneath our baseline So 99% of the time everything goes smoothly, but then at this one point when everybody wants to enter site No one can get in that's the scenario and that's really problematic so we tried to Think of ways to solve this and we added three more servers and we really worked hard to optimize those servers to be able to Get as much out of these 11 servers as possible, but still we never really got to the to the peak Now a better scenario will be something that worked like this So we would have something that dynamically adapted to the traffic we were having and So it could run while we're at baseline traffic It could run three servers and then on peak traffic. We could run 30 servers and Yeah, I'll get back to that just soon. I just want to end the whole tea kettle problem and say that it's completely Completely bad. So my cousin is chief inspector at the National Electrical Safety Board Yeah, and I had a discussion with him about this problem on Facebook which is the cloud version of telephone and Basically what he said was this There's The all these tea kettles they won't even notice because usually when people turn on their tea kettle the heating goes down so that even sounded and Usually when people stop watching TV, they turn off their TV and that consumes less energy as well So it's it's a good example for us and it's true for us. It's not true in the energy consuming world Now back to the traffic scenario to be able to deal with all the traffic we turn to Google App Engine and Anton already introduced the Service briefly and basically that's that's what it does it adapts to The amount of traffic that you have and it will scale automatically up and down And apart from that it has a number of other features as well. That's they're coming really handy for us But that's basically the the idea of the whole service and the reason why we went there to be able to Focus on what we want to do, which is code develop new services and try to drive Canal fan forward into the future instead of having to deal with all these servers because I was taking a long time and See What I want to do next is something that usually they don't really It's is a bad It's a bad idea I want to Show you some of the features of App Engine and apart from being able to scale up and down automatically it also allows us to Deploy new versions really fast. So what I'm gonna do here is I've talked to the developers back home Mika and Andes and they prepare the version for us So I'm gonna switch to that new version and I don't really know what they've done with that version but it's a new version and I'm gonna switch to that version and show you first how many viewers are on our site and Then switch to that version and show that they're still there So this is a live scenario See I just have to prepare some Let's do that. Oh, then I don't see it here never mind So this is the site and this is The the like the admin console of Google App Engine, so this is like this is our account. This is where we control everything. You'll even you'll even see the The tea kettle problem here. It wasn't that bad yesterday yesterday was a live event Podcasted on TV and on the web and that usually it generates a lot of traffic, but it doesn't produce these spikes So this is even though it's a spike You see minus 18 hours. It's not that bad. We would be able to deal with that even with our own servers so let's I'll open So just to there will be apart from how many Viewers are on the site at the moment. There will be other numbers as well That would be interesting, but don't look at them. I promise not to show them. So oops Board Let me get that window for a while. I need to see what happened All right, all right, we're back. We scroll down for a bit and then we'll see the Dashboard so this is the number I didn't want to show They apparently oh that's bad So four thousand five hundred and thirty six people are on the site now. I'm probably watching breaking news or something else and so we'll switch back to the App Engine admin console and I'll just click the versions option here and Then I can see all the versions that we have on of our site and basically we deploy new versions two or three times a week So even though you won't notice anything we deploy constantly and we were able to Get new functionality out to to you viewers in Less than ten minutes and that's really one of the key features of App Engine So let's I See they prepared a version for me here So what I'll do is I'll just fire this version up and there's a special URL that you can try the new version before It's actually running And hopefully we'll see a website here. Yeah, we do and And so we know that it's it's up Let's just post that and When I'm done here, I'll just Select this new version and then this is the big Red button that I'm not supposed to press but so I'll do it and If all goes well here, we should see a new version of the site There was actually There was actually three changes It's gonna be keep track of all the changes between versions and the last version was 35 18 That's a huge number, but and then the new version is 35 21 so they made three changes, but I don't really know what they made they told me that it's all right And we should be we should be okay So what we'll do is We'll switch to The live version of the site and there it is it's the new version So that's it. Thank you I Think we have time for some questions if there are any let's bring Anton here as well one of the questions I get a lot is that if so Imagine you as a company have your own site That's not running in the cloud and then people ask why can we just switch to? Google App Engine or can we switch to something else and It's kind of a hard questions cuz question cuz usually you have to adapt your Site or your app to conform to certain things that the cloud Really needs so one of the things that you can't do on Google App Engine is write things to files so for example I've been looking at some WordPress themes because my wife is working with WordPress and some of the themes that she uses are using a lot of File the it writes a lot and reads from file and Google App Engine does nothing of that It has cloud versions of file storage, but it doesn't really use the file system at all I would say for those kind of Circumstances you could look at other services like Amazon or Anton maybe knows that better Any more questions of surgery or should we end and you can come back here to talk with us one to one instead? Well, there will be another ten minutes for any more intimate discussions You're welcome up here to grab a cup of coffee or a glass of water and talk with Anton and Henrik So but otherwise Thank you very much. Thank you