Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

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

430 views

Published on

Leveraging AWS for Lean Development Lifecycle

Published in: Technology, Business
  • Be the first to comment

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

  1. 1. Leveraging AWS for Lean Development Lifecycle Ryan Shuttleworth – Technical Evangelist @ryanAWS
  2. 2. What is the “leandevelopment cycle”?
  3. 3. Working software Fast Sprint MVP Pivot Flexible Continuous integration Iterate Agility Code not documentation
  4. 4. Idea Product
  5. 5. Least frictionIdea Product Highest quality
  6. 6. Idea Product
  7. 7. A Startup Journey (your experiences may vary, but thefollowing is based on real experiences…)
  8. 8. “Democracy is the art of running the circus from the monkey cage.” H. L. Mencken (1880 - 1956)
  9. 9. Outside it’s nice and neat:Have a picnic on the lawn at the zooInside it’s chaos: “Democracy is the art ofScreaming, swinging, banana-skins running the circus from the monkey cage.” H. L. Mencken (1880 - 1956)
  10. 10. Outside it’s nice and neat:Have a picnic on the lawn at the zooInside it’s chaos: “Democracy is the art ofScreaming, swinging, banana-skins running the circus from the monkey cage.”Sound like a startup?Let everyone feel safe and H. L. Mencken (1880 - 1956)comfortable looking at you fromthe outside
  11. 11. Outside it’s nice and neat:Have a picnic on the lawn at the zooInside it’s chaos: “Democracy is the art ofScreaming, swinging, banana-skins running the circus from the monkey cage.”Sound like a startup?Let everyone feel safe and H. L. Mencken (1880 - 1956)comfortable looking at you fromthe outsideManage the chaos on the inside
  12. 12. “Democracy is the art of running the circus fromthe startup monkey cage.” H. L. Mencken (1880 - 1956)
  13. 13. “Democracy is the art of running the circus from the startup monkey cage.”(and why the AWS cloud is the perfect place for one)
  14. 14. 1 The idea… Youve got a cracking idea, but dont know if there is point or a market
  15. 15. 1 The idea… Youve got a cracking idea, but dont know if there is point or a marketWhat CloudFormation a Wordpress site Go buy a $30 template Make it look realAWS 1x free tier instance Zero costTake-away Wait and see what traffic/interest you get
  16. 16. 1 The idea… Youve got a cracking idea, but dont know if there is point or a market http://aws.amazon.com/cloudformation/aws-cloudformation-templates/
  17. 17. 2 Proving it… Analytics prove you have a point, web hits increase traffic. A lot.
  18. 18. 2 Proving it… Analytics prove you have a point, web hits increase traffic. A lot.What They came, but then they go because its too slow to respond They came, signed up for a beta, proving you might actually need to build something… CDN your marketing presenceAWS Easy, 60 minute update You look global You now have interestTake-away Keep it ticking over Define the Minimum Viable Product (you can get away with)
  19. 19. 3 Customers… You’ve got some people to give something to, so give them something
  20. 20. 3 Customers… You’ve got some people to give something to, so give them somethingWhat First phase application – make sure you launch it on a positive SLA Features may be lacking, but it needs to be up!AWS Beanstalk – sow the seed, don’t worry about complex operations yet Multi-AZ – small instances, but highly availableTake-away Deliver something simple, deliver it well Keep those early adopters happy
  21. 21. 3 Customers… You’ve got some people to give something to, so give them somethingWhat First phase application – make sure you launch it on a positive SLA Features may be lacking, but it needs to be up!AWS Beanstalk – sow the seed, don’t worry about complex operations yet Multi-AZ – small instances, but highly availableTake-away Deliver something simple, deliver it well Keep those early adopters happy
  22. 22. Elastic Beanstalk Tools CloudFormation Application package is deployed into Beanstalk
  23. 23. Elastic Beanstalk Tools CloudFormation Which creates the container in EC2 User Application Application Service HTTP Service Language Interpreter Operating System Host
  24. 24. Elastic Beanstalk Tools CloudFormation Beanstalk takes care of the environment…
  25. 25. Elastic Beanstalk Tools CloudFormation …adding Elastic Load Balancer…
  26. 26. Elastic Beanstalk Tools CloudFormation …Auto Scaling groups
  27. 27. Elastic Beanstalk Tools CloudFormation …and launching instances
  28. 28. Elastic Beanstalk Tools CloudFormation …all wired into the Beanstalk framework
  29. 29. Elastic Beanstalk Tools CloudFormation …and published under a CNAME
  30. 30. Elastic Beanstalk Tools CloudFormation …with logs and app versions held in S3
  31. 31. 4 Stuff breaks…. Inevitably, 3am on a Saturday night, things start to break….
  32. 32. 4 Stuff breaks…. Inevitably, 3am on a Saturday night, things start to break….What Your database grew – you haven’t optimised it Your application is naïve – it doesn’t cache anythingAWS You started on small instances – up them. You’ve plenty to play withTake-away Engineering doesn’t happen overnight With AWS you bought some time – 4-6wks on the clock to make life easy again
  33. 33. 5 Survival… Got customers, demand is growing and now have functionality to deliver
  34. 34. 5 Survival… Got customers, demand is growing and now have functionality to deliverWhat Optimise the data layer Size instance types properlyAWS Reserve instances – reduce some cost now Build dev-test disposable environments - Need to test things before we deliver (Beanstalk, CloudFormation)Take-away We bought time to pay down technical debt Reduced costs, started to act like a real outfit
  35. 35. 6 Resilience… Cold sweats at 2.30am – service outage – we could have lost everything!
  36. 36. 6 Resilience… Cold sweats at 2.30am – service outage – we could have lost everything!What How resilient is my RDS setup? What are my snapshot strategies? What is my point in time recovery period for RDS?AWS RDS resiliency S3 snapshots and EBS/AMI managementTake-away Few clicks (and a little more cost) and it’s taken care of 35 days of backup history on RDS Slave failover - automatic
  37. 37. 7 Scale… You have customers from the real world, and they are EVERYWHERE
  38. 38. 7 Scale… You have customers from the real world, and they are EVERYWHEREWhat Now your application is your bottleneck App hits are very high, database is fine Do the bare minimum of heavy lifting in your applicationAWS CDN static content served from application CMSs CDN dynamic content where you can, play with very low TTLs Review Azs, ASGs for origin serversTake-away 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
  39. 39. 9 Automate… You grew your service, now focus on ‘supportability ratio’
  40. 40. 9 Automate… You grew your service, now focus on ‘supportability ratio’What 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!) CLI, APIsAWS CloudFormation, CloudInitTake-away No more 2.30am problems DevOps from iPhone (on a Friday night at the pub)

×