Top Banner
Freitag, 3. Mai 13
144

AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Aug 20, 2015

Download

Technology

AWS Germany
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Freitag, 3. Mai 13

Page 2: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Angrybirds fly in the cloud

Freitag, 3. Mai 13

Page 3: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Angrybirds fly in the cloud

Presented byDaniel Pötzinger

AWS Summit 2013

Freitag, 3. Mai 13

Page 4: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Freitag, 3. Mai 13

Page 5: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

danpoetz

Freitag, 3. Mai 13

Page 6: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Freitag, 3. Mai 13

Page 7: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Freitag, 3. Mai 13

Page 8: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Freitag, 3. Mai 13

Page 9: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

152,2 Million €

68,5 Million € Consumer Products

Freitag, 3. Mai 13

Page 10: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Freitag, 3. Mai 13

Page 11: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Freitag, 3. Mai 13

Page 12: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

PC games

Plush toys, shirts, ...

Freitag, 3. Mai 13

Page 13: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

> 24.000.000 likes > 500.000 followers

Social MediaImpact

Freitag, 3. Mai 13

Page 14: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Irregular Traffic Behaviour

Freitag, 3. Mai 13

Page 15: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Challenges

Freitag, 3. Mai 13

Page 16: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Challenges

Frequent development and releasing of new

features

Freitag, 3. Mai 13

Page 17: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Challenges

Frequent development and releasing of new

features

Scalable and stable Operation

Freitag, 3. Mai 13

Page 18: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Freitag, 3. Mai 13

Page 19: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

The solution?

Freitag, 3. Mai 13

Page 20: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Freitag, 3. Mai 13

Page 21: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Continuous Deployment

CloudDevOps

Freitag, 3. Mai 13

Page 22: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Continuous Deployment

CloudDevOps

Freitag, 3. Mai 13

Page 23: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Continuous Deployment

CloudDevOps

Freitag, 3. Mai 13

Page 24: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Why Amazon Web Services ?

Freitag, 3. Mai 13

Page 25: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

✓Scales quickly on demand✓Pay only what for what

you use

Freitag, 3. Mai 13

Page 26: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

8 regions with 2-4 availability zonesA lot of „edge servers“ for content delivery

Freitag, 3. Mai 13

Page 27: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Think cleanly about your operation infrastructureFreitag, 3. Mai 13

Page 28: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Setting up a new environment should always be faster than fixing an existing one

Freitag, 3. Mai 13

Page 29: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

What you should do

Freitag, 3. Mai 13

Page 30: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

What you should do

Automate the setup of new servers

Freitag, 3. Mai 13

Page 31: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

What you should do

Automate the setup of new servers

Automate failover

Freitag, 3. Mai 13

Page 32: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

What you should do

Automate the setup of new servers

Automate failover

Automate scaling

Freitag, 3. Mai 13

Page 33: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

What you should do

Automate the setup of new servers

Automate failover

Automate scaling

Don‘t do work that others did better

Freitag, 3. Mai 13

Page 34: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Powerfull AWS Services for Angrybirds

Freitag, 3. Mai 13

Page 35: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Powerfull AWS Services for Angrybirds

EC2

Freitag, 3. Mai 13

Page 36: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Powerfull AWS Services for Angrybirds

S3EC2

Freitag, 3. Mai 13

Page 37: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Powerfull AWS Services for Angrybirds

S3EC2 RDS

Freitag, 3. Mai 13

Page 38: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Powerfull AWS Services for Angrybirds

CloudFrontS3EC2 RDS

Freitag, 3. Mai 13

Page 39: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Powerfull AWS Services for Angrybirds

CloudFront ElastiCacheS3EC2 RDS

Freitag, 3. Mai 13

Page 40: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Powerfull AWS Services for Angrybirds

CloudFront ElastiCacheS3EC2 RDS ELB

Freitag, 3. Mai 13

Page 41: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Powerfull AWS Services for Angrybirds

CloudFront ElastiCacheS3EC2 RDS ELB R53

Freitag, 3. Mai 13

Page 42: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Powerfull AWS Services for Angrybirds

Amazon Web Services & Amazon Console

CloudFront ElastiCacheS3EC2 RDS ELB R53

Freitag, 3. Mai 13

Page 43: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Powerfull AWS Services for Angrybirds

Rightscale Services

Amazon Web Services & Amazon Console

CloudFront ElastiCacheS3EC2 RDS ELB R53

Freitag, 3. Mai 13

Page 44: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Freitag, 3. Mai 13

Page 45: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Freitag, 3. Mai 13

Page 46: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Cloud Architecture

Freitag, 3. Mai 13

Page 47: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Freitag, 3. Mai 13

Page 48: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Varnish Array

Freitag, 3. Mai 13

Page 49: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Varnish ArrayEC2 EC2

Freitag, 3. Mai 13

Page 50: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Varnish Array

Frontend ArrayEC2 EC2 EC2

EC2 EC2

Freitag, 3. Mai 13

Page 51: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Varnish Array

Frontend Array Backend ArrayEC2 EC2EC2 EC2 EC2

EC2 EC2

Freitag, 3. Mai 13

Page 52: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Varnish Array

Frontend Array Backend Array

RDS

EC2 EC2EC2 EC2 EC2

EC2 EC2

Freitag, 3. Mai 13

Page 53: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

RDS

Varnish Array

Frontend Array Backend Array

RDS

EC2 EC2EC2 EC2 EC2

EC2 EC2

Freitag, 3. Mai 13

Page 54: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

RDS

Varnish Array

Frontend Array Backend Array

RDS

S3Assets Storage

EC2 EC2EC2 EC2 EC2

EC2 EC2

Freitag, 3. Mai 13

Page 55: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

RDS

Varnish Array

Frontend Array Backend Array

RDS

CloudFrontCDN for Assets

S3Assets Storage

EC2 EC2EC2 EC2 EC2

EC2 EC2

Freitag, 3. Mai 13

Page 56: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

RDS

Varnish Array

Frontend Array Backend Array Worker Array

RDS

CloudFrontCDN for Assets

S3Assets Storage

EC2 EC2 EC2EC2 EC2 EC2

EC2 EC2

Freitag, 3. Mai 13

Page 57: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

RDS

Varnish Array

Frontend Array Backend Array Worker Array

ELB

RDS

CloudFrontCDN for Assets

S3Assets Storage

EC2 EC2 EC2EC2 EC2 EC2

EC2 EC2

Freitag, 3. Mai 13

Page 58: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

RDS

„Deployment Definition“ + Autoscaling

Varnish Array

Frontend Array Backend Array Worker Array

ELB

RDS

CloudFrontCDN for Assets

S3Assets Storage

EC2 EC2 EC2EC2 EC2 EC2

EC2 EC2

Freitag, 3. Mai 13

Page 59: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

RDS

„Deployment Definition“ + Autoscaling

Varnish Array

Frontend Array Backend Array Worker Array

ELB

RDS

CloudFrontCDN for Assets

S3Assets Storage

EC2 EC2 EC2EC2 EC2 EC2

EC2 EC2Monitoring

Freitag, 3. Mai 13

Page 60: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

RDS

„Deployment Definition“ + Autoscaling

Varnish Array

Frontend Array Backend Array Worker Array

ELB

RDS

CloudFrontCDN for Assets

S3Assets Storage

EC2 EC2 EC2EC2 EC2 EC2

EC2 EC2MonitoringAPI

Freitag, 3. Mai 13

Page 61: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

RDS

„Deployment Definition“ + Autoscaling

Varnish Array

Frontend Array Backend Array Worker Array

CloudFrontCDN for Skin

ELB

RDS

CloudFrontCDN for Assets

S3Assets Storage

EC2 EC2 EC2EC2 EC2 EC2

EC2 EC2MonitoringAPI

Freitag, 3. Mai 13

Page 62: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

RDS

„Deployment Definition“ + Autoscaling

Varnish Array

Frontend Array Backend Array Worker Array

CloudFrontCDN for Skin

ELBR53DNS

RDS

CloudFrontCDN for Assets

S3Assets Storage

EC2 EC2 EC2EC2 EC2 EC2

EC2 EC2MonitoringAPI

Freitag, 3. Mai 13

Page 63: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

RDS

„Deployment Definition“ + Autoscaling

Varnish Array

Frontend Array Backend Array Worker Array

CloudFrontCDN for Skin

ELBR53DNS

RDSElastiCache

Cache Backend

CloudFrontCDN for Assets

S3Assets Storage

EC2 EC2 EC2EC2 EC2 EC2

EC2 EC2MonitoringAPI

Freitag, 3. Mai 13

Page 64: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

RDS

„Deployment Definition“ + Autoscaling

Varnish Array

Frontend Array Backend Array Worker Array

CloudFrontCDN for Skin

ELBR53DNS

RDSS3

DeploymentElastiCache

Cache Backend

CloudFrontCDN for Assets

S3Assets Storage

EC2 EC2 EC2EC2 EC2 EC2

EC2 EC2MonitoringAPI

Freitag, 3. Mai 13

Page 65: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Scaling is about finding the bottleneck

Freitag, 3. Mai 13

Page 66: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

CPU

Network

Storage (DB)Traffic

Possible BottlenecksOffloading, Optimisation, Caching, add more CPU (scale)...

Offloading, Optimisation, Scale Storage UP (H/V), Replace Storage...

Offloading (CDN, Proxy)Optimize Size of the SiteScale Network IS...

Freitag, 3. Mai 13

Page 67: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

HTTP Caching

Traffic

Freitag, 3. Mai 13

Page 68: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

HTTP Caching

Appl

icat

ion

Traffic

Freitag, 3. Mai 13

Page 69: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

HTTP Caching

Appl

icat

ion

Offload expensive requests

Traffic

Freitag, 3. Mai 13

Page 70: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

HTTP Caching

Appl

icat

ion

Offload expensive requests

Traffic

Brow

ser

Traffic

Freitag, 3. Mai 13

Page 71: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

HTTP Caching

Appl

icat

ion

Offload expensive requests

Traffic

CDN

Brow

ser

Traffic

Freitag, 3. Mai 13

Page 72: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

HTTP Caching

Appl

icat

ion

Varnish (Reverse Proxy) Traffic

Offload expensive requests

Traffic

CDN

Brow

ser

Traffic

Freitag, 3. Mai 13

Page 73: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

HTTP Caching

Appl

icat

ion

Varnish (Reverse Proxy) Traffic

Offload expensive requests

Traffic

CDN

Brow

ser

TrafficPurging

Freitag, 3. Mai 13

Page 74: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

10.000+Possible Pages / Seconde

from ELB & Varnish

Freitag, 3. Mai 13

Page 75: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Autoscaling

Traffic

Freitag, 3. Mai 13

Page 76: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Autoscaling

Traffic

Fron

tend

Arr

ay

EC2

EC2

EC2

Freitag, 3. Mai 13

Page 77: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Autoscaling

Traffic

Fron

tend

Arr

ay

EC2

EC2

EC2

Freitag, 3. Mai 13

Page 78: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Autoscaling

Traffic

Fron

tend

Arr

ay

EC2

EC2

EC2

EC2

EC2

EC2

Freitag, 3. Mai 13

Page 79: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Autoscaling

•Groups with policys•Min, Max•Votingrules for scaling up & down•Replace broken instances

Traffic

Fron

tend

Arr

ay

EC2

EC2

EC2

EC2

EC2

EC2

Freitag, 3. Mai 13

Page 80: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

10.000possible Orders / Hour

Freitag, 3. Mai 13

Page 81: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Be prepared for changes

Freitag, 3. Mai 13

Page 82: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Freitag, 3. Mai 13

Page 83: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Freitag, 3. Mai 13

Page 84: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Continuous Deployment

Freitag, 3. Mai 13

Page 85: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Freitag, 3. Mai 13

Page 86: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Freitag, 3. Mai 13

Page 87: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Don‘t be scared of releasing to production

Freitag, 3. Mai 13

Page 88: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Late night bugfixing?Freitag, 3. Mai 13

Page 89: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

That’s how a deployment should look like

Freitag, 3. Mai 13

Page 90: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

And you?

Freitag, 3. Mai 13

Page 91: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

And you?

• Do you use continuous integration?

Freitag, 3. Mai 13

Page 92: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

And you?

• Do you use continuous integration?• Do you use automated acceptance tests?

Freitag, 3. Mai 13

Page 93: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

And you?

• Do you use continuous integration?• Do you use automated acceptance tests?• Do you keep them green?

Freitag, 3. Mai 13

Page 94: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

And you?

• Do you use continuous integration?• Do you use automated acceptance tests?• Do you keep them green?• Do you use continuous deployment?

Freitag, 3. Mai 13

Page 95: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Continuous Deployment

Freitag, 3. Mai 13

Page 96: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Continuous Deployment

We want on-demand deployment

Freitag, 3. Mai 13

Page 97: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Continuous Deployment

We want on-demand deploymentof tested features and fixes

Freitag, 3. Mai 13

Page 98: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Continuous Deployment

We want on-demand deploymentof tested features and fixesin a quick and reliable way

Freitag, 3. Mai 13

Page 99: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

We reach this by

Freitag, 3. Mai 13

Page 100: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Automating everything

We reach this by

Freitag, 3. Mai 13

Page 101: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Automating everything

We reach this by

Build

Freitag, 3. Mai 13

Page 102: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Automating everything

We reach this by

BuildTesting

Freitag, 3. Mai 13

Page 103: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Automating everything

We reach this by

BuildTesting

Deployment

Freitag, 3. Mai 13

Page 104: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

..and

Freitag, 3. Mai 13

Page 105: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

doing it frequently

..and

Freitag, 3. Mai 13

Page 106: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

doing it frequently

..and

flickr deploys 3 times a day...

Freitag, 3. Mai 13

Page 107: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Freitag, 3. Mai 13

Page 108: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Freitag, 3. Mai 13

Page 109: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

The Deployment Pipeline

Freitag, 3. Mai 13

Page 110: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Freitag, 3. Mai 13

Page 111: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Freitag, 3. Mai 13

Page 112: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Commitand Build

Build Downstream and Test Strategy

SVN Backup Storage

Angry Birds Deployment Pipeline

Feedback to Developers

Freitag, 3. Mai 13

Page 113: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Commitand Build

Build Downstream and Test Strategy

SVN Backup Storage

Unit Tests

Angry Birds Deployment Pipeline

Feedback to Developers

Freitag, 3. Mai 13

Page 114: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Commitand Build

Build Downstream and Test Strategy

SVN Backup Storage

Unit Tests

Angry Birds Deployment Pipeline

Feedback to Developers

Freitag, 3. Mai 13

Page 115: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Commitand Build

Build Downstream and Test Strategy

SVN Backup Storage

Unit Tests Install on “latest”

Angry Birds Deployment Pipeline

Feedback to Developers

Freitag, 3. Mai 13

Page 116: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Commitand Build

Build Downstream and Test Strategy

SVN Backup Storage

Unit Tests Install on “latest”

Angry Birds Deployment Pipeline

Feedback to Developers

Freitag, 3. Mai 13

Page 117: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Selenium Acceptance Tests

Commitand Build

Build Downstream and Test Strategy

SVN Backup Storage

Unit Tests Install on “latest”

Angry Birds Deployment Pipeline

Feedback to Developers

Freitag, 3. Mai 13

Page 118: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Selenium Acceptance Tests

Commitand Build

Build Downstream and Test Strategy

SVN Backup Storage

Unit Tests Install on “latest”

Angry Birds Deployment Pipeline

Feedback to Developers

Freitag, 3. Mai 13

Page 119: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Selenium Acceptance Tests

Commitand Build

Build Downstream and Test Strategy

SVN Backup Storage

Unit Tests Install on “latest”

Performance Tests

Angry Birds Deployment Pipeline

Feedback to Developers

Freitag, 3. Mai 13

Page 120: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Selenium Acceptance Tests

Commitand Build

Build Downstream and Test Strategy

SVN Backup Storage

Unit Tests Install on “latest”

Performance Tests

Angry Birds Deployment Pipeline

Feedback to Developers

Freitag, 3. Mai 13

Page 121: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Angry Birds Deployment Pipeline

Install on Deployment

SystemCopy to S3

Cloud Deployment

Staging

Integration Tests

AOE + Rovio

Cloud deployment production

Freitag, 3. Mai 13

Page 122: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Varnish Array

AutoscalingFrontend Array

Backend Array

Worker Array

Cloud Deployment

ELB

Deployment „Version 88“

Start new release by✓ cloning old deployment✓ adjusting release number

RDSmySQL S3

V V V

WFE FE FE BE BE BE

R53DNS

Freitag, 3. Mai 13

Page 123: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Varnish Array

AutoscalingFrontend Array

Backend Array

Worker Array

Cloud Deployment

ELB

Deployment „Version 88“

RDSmySQL S3

V V V

WFE FE FE BE BE BE

R53DNS

Freitag, 3. Mai 13

Page 124: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Deployment „Version 89“

Varnish Array

AutoscalingFrontend Array

Backend Array

Worker Array

Cloud Deployment

ELB

Deployment „Version 88“

RDSmySQL S3

Varnish Array

AutoscalingFrontend Array

Backend Array

Worker Array

V V V

WFE FE FE BE BE BE

R53DNS

Freitag, 3. Mai 13

Page 125: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Deployment „Version 89“

Varnish Array

AutoscalingFrontend Array

Backend Array

Worker Array

Cloud Deployment

ELB

Deployment „Version 88“

RDSmySQL S3

Varnish Array

AutoscalingFrontend Array

Backend Array

Worker Array

ELB

W

V V V

WFE FE FE BE BE BE

R53DNS

Freitag, 3. Mai 13

Page 126: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Deployment „Version 89“

Varnish Array

AutoscalingFrontend Array

Backend Array

Worker Array

Cloud Deployment

ELB

Deployment „Version 88“

RDSmySQL S3

Varnish Array

AutoscalingFrontend Array

Backend Array

Worker Array

ELB

WFE FE FE BE BE BE

V V VV V V

WFE FE FE BE BE BE

R53DNS

Freitag, 3. Mai 13

Page 127: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Deployment „Version 89“

Varnish Array

AutoscalingFrontend Array

Backend Array

Worker Array

Cloud Deployment

ELB

Deployment „Version 88“

RDSmySQL S3

Varnish Array

AutoscalingFrontend Array

Backend Array

Worker Array

ELB

WFE FE FE BE BE BE

V V VV V V

WFE FE FE BE BE BE

R53DNS

Freitag, 3. Mai 13

Page 128: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

0Seconds Downtime

Freitag, 3. Mai 13

Page 129: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Freitag, 3. Mai 13

Page 130: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Freitag, 3. Mai 13

Page 131: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

The real life

Freitag, 3. Mai 13

Page 132: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Freitag, 3. Mai 13

Page 133: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Freitag, 3. Mai 13

Page 134: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Day 1 - Release 1

Freitag, 3. Mai 13

Page 135: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Day 2 - Release 2 - “Get ready for Space”

Freitag, 3. Mai 13

Page 136: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Day 3 - „People want it so badly“

Freitag, 3. Mai 13

Page 137: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

New release deployed

Day 3 - „People want it so badly“

Freitag, 3. Mai 13

Page 138: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

New release deployed

Space game launchedArray scales up

Day 3 - „People want it so badly“

Freitag, 3. Mai 13

Page 139: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

New release deployed

Space game launchedArray scales up

USA wakes up

Day 3 - „People want it so badly“

Freitag, 3. Mai 13

Page 140: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Day 4 - Release 3 „Performance Improvement“

Freitag, 3. Mai 13

Page 141: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

40% average CPU usage.

1-2 FE Servers are enough for normal operations

Day 4 - Release 3 „Performance Improvement“

Freitag, 3. Mai 13

Page 142: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Freitag, 3. Mai 13

Page 143: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Freitag, 3. Mai 13

Page 144: AWS Summit Berlin 2013 - "Angrybirds fly in the cloud" - Scaling and Market needs for the Angrybirds Shop

Thanks!Follow us on Twitter:

AOE: @aoemediaDaniel P: @danpoetz

Flickr photo contributions in the slide:http://www.flickr.com/photos/the-wanderers-eye/4494147652/sizes/l/http://www.flickr.com/photos/51293088@N05/8195327886/sizes/l/http://www.flickr.com/photos/k1rsch/3818553037/sizes/l/

Freitag, 3. Mai 13