the lean cloud for startups with aws - leveraging aws for the lean development lifecycle

42
Leveraging AWS for Lean Development Lifecycle Ryan Shuttleworth – Technical Evangelist @ryanAWS

Upload: amazon-web-services

Post on 22-Jan-2018

353 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

Leveraging AWS for Lean Development Lifecycle

Ryan Shuttleworth – Technical Evangelist @ryanAWS

Page 2: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

What is the “lean development cycle”?

Page 3: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

Fast

Flexible Pivot

Iterate Agility

Code not documentation

MVP Sprint Working software

Continuous integration

Page 4: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

Idea Product

Page 5: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

Idea Product

Least friction

Highest quality

Page 6: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

Idea Product

Page 7: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

A Startup Journey (your experiences may vary, but the

following is based on real experiences…)

Page 8: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

“Democracy is the art of running the circus from

the monkey cage.”

H. L. Mencken (1880 - 1956)

Page 9: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

“Democracy is the art of running the circus from

the monkey cage.”

H. L. Mencken (1880 - 1956)

Outside it’s nice and neat: Have a picnic on the lawn at the zoo

Inside it’s chaos: Screaming, swinging, banana-skins

Page 10: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

“Democracy is the art of running the circus from

the monkey cage.”

H. L. Mencken (1880 - 1956)

Outside it’s nice and neat: Have a picnic on the lawn at the zoo

Inside it’s chaos: Screaming, swinging, banana-skins

Sound like a startup? Let everyone feel safe and comfortable looking at you from the outside

Page 11: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

“Democracy is the art of running the circus from

the monkey cage.”

H. L. Mencken (1880 - 1956)

Outside it’s nice and neat: Have a picnic on the lawn at the zoo

Inside it’s chaos: Screaming, swinging, banana-skins

Sound like a startup? Let everyone feel safe and comfortable looking at you from the outside Manage the chaos on the inside

Page 12: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

“Democracy is the art of running the circus from

the startup monkey cage.”

H. L. Mencken (1880 - 1956)

Page 13: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

“Democracy is the art of running the circus from

the startup monkey cage.” (and why the AWS cloud is the perfect place for one)

Page 14: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

The idea… 1 You've got a cracking idea, but don't know if there is point or a market

Page 15: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

The idea… 1 You've got a cracking idea, but don't know if there is point or a market

1x free tier instance Zero cost

What

AWS

Take-away

CloudFormation a Wordpress site Go buy a $30 template Make it look real

Wait and see what traffic/interest you get

Page 16: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

The idea… 1 You've got a cracking idea, but don't know if there is point or a market

http://aws.amazon.com/cloudformation/aws-cloudformation-templates/

Page 17: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

2 Analytics prove you have a point, web hits increase traffic. A lot.

Proving it…

Page 18: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

2 Analytics prove you have a point, web hits increase traffic. A lot.

CDN your marketing presence Easy, 60 minute update You look global

What

AWS

Take-away You now have interest Keep it ticking over Define the Minimum Viable Product (you can get away with)

Proving it…

They came, but then they go because it's too slow to respond They came, signed up for a beta, proving you might actually need to build something…

Page 19: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

3 You’ve got some people to give something to, so give them something

Customers…

Page 20: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

3 You’ve got some people to give something to, so give them something

Beanstalk – sow the seed, don’t worry about complex operations yet Multi-AZ – small instances, but highly available

What

AWS

Take-away

First phase application – make sure you launch it on a positive SLA Features may be lacking, but it needs to be up!

Deliver something simple, deliver it well Keep those early adopters happy

Customers…

Page 21: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

3 You’ve got some people to give something to, so give them something

Beanstalk – sow the seed, don’t worry about complex operations yet Multi-AZ – small instances, but highly available

What

AWS

Take-away

First phase application – make sure you launch it on a positive SLA Features may be lacking, but it needs to be up!

Deliver something simple, deliver it well Keep those early adopters happy

Customers…

Page 22: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

Application package is deployed into Beanstalk

Elastic Beanstalk

CloudFormation

Tools

Page 23: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

User Application

Application Service

HTTP Service

Language Interpreter

Operating System

Host

Which creates the container in EC2

Elastic Beanstalk

CloudFormation

Tools

Page 24: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

Beanstalk takes care of the environment…

Elastic Beanstalk

CloudFormation

Tools

Page 25: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

…adding Elastic Load Balancer…

Elastic Beanstalk

CloudFormation

Tools

Page 26: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

…Auto Scaling groups

Elastic Beanstalk

CloudFormation

Tools

Page 27: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

…and launching instances

Elastic Beanstalk

CloudFormation

Tools

Page 28: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

…all wired into the Beanstalk framework

Elastic Beanstalk

CloudFormation

Tools

Page 29: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

…and published under a CNAME

Elastic Beanstalk

CloudFormation

Tools

Page 30: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

…with logs and app versions held in S3

Elastic Beanstalk

CloudFormation

Tools

Page 31: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

4 Inevitably, 3am on a Saturday night, things start to break….

Stuff breaks….

Page 32: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

4 Inevitably, 3am on a Saturday night, things start to break….

You started on small instances – up them. You’ve plenty to play with

What

AWS

Take-away

Your database grew – you haven’t optimised it Your application is naïve – it doesn’t cache anything

Engineering doesn’t happen overnight With AWS you bought some time – 4-6wks on the clock to make life easy again

Stuff breaks….

Page 33: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle
Page 34: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

5 Got customers, demand is growing and now have functionality to deliver

Survival…

Page 35: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

5 Got customers, demand is growing and now have functionality to deliver

Reserve instances – reduce some cost now Build dev-test disposable environments - Need to test things before we deliver (Beanstalk, CloudFormation)

What

AWS

Take-away

Optimise the data layer Size instance types properly

We bought time to pay down technical debt Reduced costs, started to act like a real outfit

Survival…

Page 36: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

6 Cold sweats at 2.30am – service outage – we could have lost everything!

Resilience…

Page 37: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

6 Cold sweats at 2.30am – service outage – we could have lost everything!

RDS resiliency S3 snapshots and EBS/AMI management

What

AWS

Take-away

How resilient is my RDS setup? What are my snapshot strategies? What is my point in time recovery period for RDS?

Few clicks (and a little more cost) and it’s taken care of 35 days of backup history on RDS Slave failover - automatic

Resilience…

Page 38: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle
Page 39: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

7 You have customers from the real world, and they are EVERYWHERE

Scale…

Page 40: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

7 You have customers from the real world, and they are EVERYWHERE

CDN static content served from application CMSs CDN dynamic content where you can, play with very low TTLs Review Azs, ASGs for origin servers

What

AWS

Take-away

Now your application is your bottleneck App hits are very high, database is fine Do the bare minimum of heavy lifting in your application

Push load away from your core application Again, buy time (spend more time on features) Keeping reviewing so you don’t accrue too much technical debt

Scale…

Page 41: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

9 You grew your service, now focus on ‘supportability ratio’

Automate…

Page 42: The Lean Cloud for Startups with AWS - Leveraging AWS for the Lean Development Lifecycle

9 You grew your service, now focus on ‘supportability ratio’

CLI, APIs CloudFormation, CloudInit

What

AWS

Take-away

More customers to less staff is better – the ratio Focus on tools and automation to keep your team lean Build a DevOps team (you have one by now anyway!)

No more 2.30am problems DevOps from iPhone (on a Friday night at the pub)

Automate…