SlideShare a Scribd company logo
The Hard Problems
of Continuous Deployment
     Timothy Fitz (.com)
“Continuous deployment involves
  deploying early and often, so as to
avoid the pitfalls of "deployment hell".
The practice aims to reduce timely rework and thus
       reduce cost and development time.”
“Our highest priority is to satisfy
  the customer through early
  and continuous delivery of
      valuable software.”
- Principles behind the Agile Manifesto (2001)
The Hard Problems
           (The ones I’m going to cover)
• Data
• Mobile
• Scale
Data makes CD harder
•   Updating data is slow
•   Moving data is slow
•   Schemas live outside code deploy process
•   Rollbacks are often hard or impossible
Schema rev. N, N+1 compatible
• Add the column in production
• Push the code that writes to that column
• Optionally, run a data migration to populate
  the existing rows with data
• Push the code that reads from that column.
Apply only cheap changes
• Only apply changes that are cheap enough to
  not affect live traffic
• More complex changes split into tiny steps:
  – Create new table
  – Write to both
  – Cut over eventually
  – Drop old table
Apply change to standby
•   Run two DB instances
•   Apply change to standby
•   Failover if successfully applied
•   Might run 3rd db instance for availability
Blue/Green Deploy
• Run two copies of entire cluster
• All databases are replicated
• Lets you test, update and rollback both code
  and schema in one step
Schemaless NoSQL
• “Schemaless” really means schema is in your
  source code
  – Which is great! We can CD schema changes
Schemaless-style SQL
• Benefits of existing SQL databases while still
  being pseudoschemaless
• (thing_id, key, value) table
• (guid, blob) table
Recap
•   Apply only cheap changes
•   Apply changes to standby
•   Blue/Green Deploy
•   Schemaless NoSQL
•   Schemaless-style SQL
Mobile
• Users must opt-in to every update
• iOS submissions take a week to be approved
• Luckily, lots of tools aimed at the space
Remember the basics
• CI server / automated tests are critical
• Can’t fallback on production alarms / rollback
• Hosted options: http://cisimple.com
Data-drive everything
• Build your views / content from data files
• Ping server for updates
• Hosted: http://appgrok.com/
  – Lets you deploy txt, png and xib dynamically!
99% HTML
• Entire app is a single UIWebView
• Glue native code to allow access to APIs
• Clutch.io is awesome (and FOSS now)
  – Live reloading for local dev
  – Streamlined deploys
  – https://github.com/clutchio
Hybrid HTML/Native
• Core app is native
• Sections can be replaced by HTML
  – i.e. Facebook stream entries fallback to HTML
• Infrequently used sections are 100% HTML
Recap
•   Remember the basics
•   Data-drive everything
•   99% HTML
•   Hybrid HTML/Native
Scalability
• Maintaining availability, performance and
  happiness
• As a function of # of people
• As a function of # of tests
Availability
• The build must always be green
• Set a “green SLA”
  – 99% green
  – Never red for > 15m
• Measure, track and report on these numbers
Performance
• Measure (intent to) commit to time of deploy
  – Goal: < 5 minutes
• Measure local development test loop
  – Goal: < 2s
Happiness
• CI/CD System is a product
• Software Engineers are the customer
• Keep your customer happy!
Testing Pyramid
How do you make tests fast?
• Tests can exercise large amounts of code
  without being slow
• Minimize system calls (no I/O, no disk)
• Minimize test data size
• Make sure all systems are cheap to
  instantiate/teardown
• No external state makes tests more reliable
Run Tests in Parallel
•   Multiprocess
•   Multimachine
•   Multi-VM
•   Instant multi-VM: http://circleci.com
Hardware Scale
• CI Cluster will get huge
  – Function of cumulative engineering man-months
  – Rule of thumb: 10% of your cluster size
• You will need a CI/CD DevOps person
  – CI cluster monitoring / alerting
  – Configuration Management critical
Scale testing infrastructure recap
• Write the right kind of tests
• Make those tests as fast as possible
• Run those tests in parallel
People / Roles
• Sheriff
  – Designated reverter / problem troubleshooter
  – Common pattern (IMVU, Chromium, Firefox)
• CD “Product Owner”
  – Held accountable for SLA / Performance
  – Manage infrastructure backlog
Single trunk
• Do this until it doesn’t work for you
• Gets painful in the 16 – 32 developer range
• Faster commit->deploy reduces the pain
  – But effort becomes prohibitive
“Try” pipeline
• Conceptually, a second tree that “doesn’t
  matter” but still gets tested for feedback
• Buildbot implements a patch-pushing version
• Takes a significant amount of pressure off of
  trunk builds
CI Server takes active role
• Server automatically reverts red commits
• Server merges green commits to trunk
Feature branches
• All incremental development happens on
  branches, branches land when feature is
  “ready”
• If “feature” is kept small, can be 2-3 per
  engineer per week on average
• Less continuous, but scales much better
  – Feature branches tested before merge
Merge tree
•   Tree per team / feature
•   Trees merged into trunk daily (if green)
•   Scale up via tree of trees (of trees…)
•   Again, less continuous
Federation
•   Each team gets their own deploy pipeline
•   Requires SOA / component architecture
•   Each team can set their own CD pace
•   “Enterprise Ready”
Recap
•   Single trunk + Try pipeline / Autorevert
•   Feature Branches
•   Merge Tree
•   Federation
Questions?

Timothy Fitz (.com)

More Related Content

What's hot (20)

PDF
Continuous delivery @wcap 5-09-2013
David Funaro
 
PDF
The Continuous delivery Value @ codemotion 2014
David Funaro
 
PDF
Introduction to Continuous Integration
Somkiat Puisungnoen
 
PPTX
Continuous integration
Dennis van der Stelt
 
PDF
Continuous Deployment of Rails Applications
Diane Cessna
 
PDF
Continuous integration
hugo lu
 
PDF
Continuous Integration at T3CON08
Sebastian Kurfürst
 
PDF
NYC MeetUp 10.9
Solano Labs
 
PPTX
Best Practices for Database Deployments
Red Gate Software
 
PPTX
Database Deployment Pipeline - SQL In The City Workshop 2014
Red Gate Software
 
PDF
The Continuous delivery value - Funaro
Codemotion
 
PDF
Continuous Integration 101
John Ferguson Smart Limited
 
PPTX
Security & DevOps- Ways To Make Sure Your Apps & Infrastructure Are Secure
Puppet
 
PPTX
Performance monitoring - Adoniram Mishra, Rupesh Dubey, ThoughtWorks
Thoughtworks
 
PDF
WSO2 IoTS Device Manufacturer Guide
hugo lu
 
PPTX
Integration Testing as Validation and Monitoring
Melissa Benua
 
PDF
Agile Engineering Best Practices by Richard Cheng
Excella
 
PPT
The Evolution of Agile - Continuous Delivery - Extending Agile out to Product...
Burns Sheehan
 
PPTX
Continuous integration
Basma Alkerm
 
PPTX
Bootstrapping Quality
Michael Roufa
 
Continuous delivery @wcap 5-09-2013
David Funaro
 
The Continuous delivery Value @ codemotion 2014
David Funaro
 
Introduction to Continuous Integration
Somkiat Puisungnoen
 
Continuous integration
Dennis van der Stelt
 
Continuous Deployment of Rails Applications
Diane Cessna
 
Continuous integration
hugo lu
 
Continuous Integration at T3CON08
Sebastian Kurfürst
 
NYC MeetUp 10.9
Solano Labs
 
Best Practices for Database Deployments
Red Gate Software
 
Database Deployment Pipeline - SQL In The City Workshop 2014
Red Gate Software
 
The Continuous delivery value - Funaro
Codemotion
 
Continuous Integration 101
John Ferguson Smart Limited
 
Security & DevOps- Ways To Make Sure Your Apps & Infrastructure Are Secure
Puppet
 
Performance monitoring - Adoniram Mishra, Rupesh Dubey, ThoughtWorks
Thoughtworks
 
WSO2 IoTS Device Manufacturer Guide
hugo lu
 
Integration Testing as Validation and Monitoring
Melissa Benua
 
Agile Engineering Best Practices by Richard Cheng
Excella
 
The Evolution of Agile - Continuous Delivery - Extending Agile out to Product...
Burns Sheehan
 
Continuous integration
Basma Alkerm
 
Bootstrapping Quality
Michael Roufa
 

Viewers also liked (16)

PDF
Failing Continuous Delivery, JDays, 2015
Daniel Sawano
 
PPTX
Continuous Delivery in the AWS Cloud
Nigel Fernandes
 
PPTX
Analysis of TLS in SMTP World
Binu Ramakrishnan
 
PPTX
AppSec++ Take the best of Agile, DevOps and CI/CD into your AppSec Program
Matt Tesauro
 
PDF
Infrastructure Continuous Delivery using CloudFormation
joehack3r
 
PDF
Infrastructure as Code with AWS CloudFormation
Justyna Janczyszyn
 
PDF
IBM Innovate - Adoption of Continuous Delivery at Scale at a large telco v0 3
Mirco Hering
 
PDF
Dod is not done
Kris Buytaert
 
PDF
Jenkins CI + XebiaLabs for Release Orchestration: A Recipe for Continuous Del...
XebiaLabs
 
PDF
CI&CD on AWS - Meetup Roma Oct 2016
Paolo latella
 
PDF
Continuous Deployment: The Dirty Details
Mike Brittain
 
PDF
The Journey of devops and continuous delivery in a Large Financial Institution
Kris Buytaert
 
PDF
Securing application deployments in multi-tenant CI/CD environments
Binu Ramakrishnan
 
ZIP
Continuous Integration, Build Pipelines and Continuous Deployment
Christopher Read
 
PPTX
O'Reilly/Nginx 2016: "Continuous Delivery with Containers: The Trials and Tri...
Daniel Bryant
 
PDF
Pitfalls of Continuous Deployment
zeeg
 
Failing Continuous Delivery, JDays, 2015
Daniel Sawano
 
Continuous Delivery in the AWS Cloud
Nigel Fernandes
 
Analysis of TLS in SMTP World
Binu Ramakrishnan
 
AppSec++ Take the best of Agile, DevOps and CI/CD into your AppSec Program
Matt Tesauro
 
Infrastructure Continuous Delivery using CloudFormation
joehack3r
 
Infrastructure as Code with AWS CloudFormation
Justyna Janczyszyn
 
IBM Innovate - Adoption of Continuous Delivery at Scale at a large telco v0 3
Mirco Hering
 
Dod is not done
Kris Buytaert
 
Jenkins CI + XebiaLabs for Release Orchestration: A Recipe for Continuous Del...
XebiaLabs
 
CI&CD on AWS - Meetup Roma Oct 2016
Paolo latella
 
Continuous Deployment: The Dirty Details
Mike Brittain
 
The Journey of devops and continuous delivery in a Large Financial Institution
Kris Buytaert
 
Securing application deployments in multi-tenant CI/CD environments
Binu Ramakrishnan
 
Continuous Integration, Build Pipelines and Continuous Deployment
Christopher Read
 
O'Reilly/Nginx 2016: "Continuous Delivery with Containers: The Trials and Tri...
Daniel Bryant
 
Pitfalls of Continuous Deployment
zeeg
 
Ad

Similar to The Hard Problems of Continuous Deployment (20)

PDF
Continuous Delivery: 5 years later (Incontro DevOps 2018)
Giovanni Toraldo
 
PPTX
The Professional Programmer
Dave Cross
 
PPTX
Subverting the monolith!
Sophia Russell
 
PDF
Modern Web development and operations practices
Grig Gheorghiu
 
PDF
Delivery Pipelines as a First Class Citizen @deliverAgile2019
ciberkleid
 
PDF
PHP At 5000 Requests Per Second: Hootsuite’s Scaling Story
vanphp
 
PPT
DevOps / Agile Tools Seminar 2013
Ethan Ram
 
PPTX
What the music of the 1980s taught me about shipping software
Michael Ewins
 
PDF
The Evolution of Continuous Delivery at Scale @ Linkedin
C4Media
 
PDF
Building Enterprise Grade Front-End Applications with JavaScript Frameworks
FITC
 
PDF
Recipes for Continuous Delivery (ThoughtWorks Geeknight)
Gurpreet Luthra
 
ODP
Path dependent-development (PyCon India)
ncoghlan_dev
 
ODP
Path Dependent Development (PyCon AU)
ncoghlan_dev
 
PPTX
Automate Everything! (No stress development/Tallinn)
Arto Santala
 
PDF
Dipping Your Toes Into Cloud Native Application Development
Matthew Farina
 
PPTX
Microservices Vienna 2015
Mike Bild
 
PDF
Experiences with Microservices at Tuenti
Andrés Viedma Peláez
 
PDF
Full stack development
Pavlo Iuriichuk
 
PPTX
B. Durrett The Challenges of Continuous Deployment Social Developer Summit
Mediabistro
 
PPTX
InfrastructureDevOps.pptx it is most sui
pmishra37
 
Continuous Delivery: 5 years later (Incontro DevOps 2018)
Giovanni Toraldo
 
The Professional Programmer
Dave Cross
 
Subverting the monolith!
Sophia Russell
 
Modern Web development and operations practices
Grig Gheorghiu
 
Delivery Pipelines as a First Class Citizen @deliverAgile2019
ciberkleid
 
PHP At 5000 Requests Per Second: Hootsuite’s Scaling Story
vanphp
 
DevOps / Agile Tools Seminar 2013
Ethan Ram
 
What the music of the 1980s taught me about shipping software
Michael Ewins
 
The Evolution of Continuous Delivery at Scale @ Linkedin
C4Media
 
Building Enterprise Grade Front-End Applications with JavaScript Frameworks
FITC
 
Recipes for Continuous Delivery (ThoughtWorks Geeknight)
Gurpreet Luthra
 
Path dependent-development (PyCon India)
ncoghlan_dev
 
Path Dependent Development (PyCon AU)
ncoghlan_dev
 
Automate Everything! (No stress development/Tallinn)
Arto Santala
 
Dipping Your Toes Into Cloud Native Application Development
Matthew Farina
 
Microservices Vienna 2015
Mike Bild
 
Experiences with Microservices at Tuenti
Andrés Viedma Peláez
 
Full stack development
Pavlo Iuriichuk
 
B. Durrett The Challenges of Continuous Deployment Social Developer Summit
Mediabistro
 
InfrastructureDevOps.pptx it is most sui
pmishra37
 
Ad

More from Timothy Fitz (8)

PDF
Good hypothesis testing is surprising!
Timothy Fitz
 
PPT
Gdc 2010 architecture final slideshare edition
Timothy Fitz
 
PPTX
Realtime web2012
Timothy Fitz
 
PPTX
Continuous Deployment
Timothy Fitz
 
PPTX
Shdh
Timothy Fitz
 
KEY
Socket.io
Timothy Fitz
 
PPTX
Shdh
Timothy Fitz
 
PPT
Just In Time Scalability Agile Methods To Support Massive Growth Presentation
Timothy Fitz
 
Good hypothesis testing is surprising!
Timothy Fitz
 
Gdc 2010 architecture final slideshare edition
Timothy Fitz
 
Realtime web2012
Timothy Fitz
 
Continuous Deployment
Timothy Fitz
 
Socket.io
Timothy Fitz
 
Just In Time Scalability Agile Methods To Support Massive Growth Presentation
Timothy Fitz
 

Recently uploaded (20)

PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PPT
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 

The Hard Problems of Continuous Deployment

  • 1. The Hard Problems of Continuous Deployment Timothy Fitz (.com)
  • 2. “Continuous deployment involves deploying early and often, so as to avoid the pitfalls of "deployment hell". The practice aims to reduce timely rework and thus reduce cost and development time.”
  • 3. “Our highest priority is to satisfy the customer through early and continuous delivery of valuable software.” - Principles behind the Agile Manifesto (2001)
  • 4. The Hard Problems (The ones I’m going to cover) • Data • Mobile • Scale
  • 5. Data makes CD harder • Updating data is slow • Moving data is slow • Schemas live outside code deploy process • Rollbacks are often hard or impossible
  • 6. Schema rev. N, N+1 compatible • Add the column in production • Push the code that writes to that column • Optionally, run a data migration to populate the existing rows with data • Push the code that reads from that column.
  • 7. Apply only cheap changes • Only apply changes that are cheap enough to not affect live traffic • More complex changes split into tiny steps: – Create new table – Write to both – Cut over eventually – Drop old table
  • 8. Apply change to standby • Run two DB instances • Apply change to standby • Failover if successfully applied • Might run 3rd db instance for availability
  • 9. Blue/Green Deploy • Run two copies of entire cluster • All databases are replicated • Lets you test, update and rollback both code and schema in one step
  • 10. Schemaless NoSQL • “Schemaless” really means schema is in your source code – Which is great! We can CD schema changes
  • 11. Schemaless-style SQL • Benefits of existing SQL databases while still being pseudoschemaless • (thing_id, key, value) table • (guid, blob) table
  • 12. Recap • Apply only cheap changes • Apply changes to standby • Blue/Green Deploy • Schemaless NoSQL • Schemaless-style SQL
  • 13. Mobile • Users must opt-in to every update • iOS submissions take a week to be approved • Luckily, lots of tools aimed at the space
  • 14. Remember the basics • CI server / automated tests are critical • Can’t fallback on production alarms / rollback • Hosted options: http://cisimple.com
  • 15. Data-drive everything • Build your views / content from data files • Ping server for updates • Hosted: http://appgrok.com/ – Lets you deploy txt, png and xib dynamically!
  • 16. 99% HTML • Entire app is a single UIWebView • Glue native code to allow access to APIs • Clutch.io is awesome (and FOSS now) – Live reloading for local dev – Streamlined deploys – https://github.com/clutchio
  • 17. Hybrid HTML/Native • Core app is native • Sections can be replaced by HTML – i.e. Facebook stream entries fallback to HTML • Infrequently used sections are 100% HTML
  • 18. Recap • Remember the basics • Data-drive everything • 99% HTML • Hybrid HTML/Native
  • 19. Scalability • Maintaining availability, performance and happiness • As a function of # of people • As a function of # of tests
  • 20. Availability • The build must always be green • Set a “green SLA” – 99% green – Never red for > 15m • Measure, track and report on these numbers
  • 21. Performance • Measure (intent to) commit to time of deploy – Goal: < 5 minutes • Measure local development test loop – Goal: < 2s
  • 22. Happiness • CI/CD System is a product • Software Engineers are the customer • Keep your customer happy!
  • 24. How do you make tests fast? • Tests can exercise large amounts of code without being slow • Minimize system calls (no I/O, no disk) • Minimize test data size • Make sure all systems are cheap to instantiate/teardown • No external state makes tests more reliable
  • 25. Run Tests in Parallel • Multiprocess • Multimachine • Multi-VM • Instant multi-VM: http://circleci.com
  • 26. Hardware Scale • CI Cluster will get huge – Function of cumulative engineering man-months – Rule of thumb: 10% of your cluster size • You will need a CI/CD DevOps person – CI cluster monitoring / alerting – Configuration Management critical
  • 27. Scale testing infrastructure recap • Write the right kind of tests • Make those tests as fast as possible • Run those tests in parallel
  • 28. People / Roles • Sheriff – Designated reverter / problem troubleshooter – Common pattern (IMVU, Chromium, Firefox) • CD “Product Owner” – Held accountable for SLA / Performance – Manage infrastructure backlog
  • 29. Single trunk • Do this until it doesn’t work for you • Gets painful in the 16 – 32 developer range • Faster commit->deploy reduces the pain – But effort becomes prohibitive
  • 30. “Try” pipeline • Conceptually, a second tree that “doesn’t matter” but still gets tested for feedback • Buildbot implements a patch-pushing version • Takes a significant amount of pressure off of trunk builds
  • 31. CI Server takes active role • Server automatically reverts red commits • Server merges green commits to trunk
  • 32. Feature branches • All incremental development happens on branches, branches land when feature is “ready” • If “feature” is kept small, can be 2-3 per engineer per week on average • Less continuous, but scales much better – Feature branches tested before merge
  • 33. Merge tree • Tree per team / feature • Trees merged into trunk daily (if green) • Scale up via tree of trees (of trees…) • Again, less continuous
  • 34. Federation • Each team gets their own deploy pipeline • Requires SOA / component architecture • Each team can set their own CD pace • “Enterprise Ready”
  • 35. Recap • Single trunk + Try pipeline / Autorevert • Feature Branches • Merge Tree • Federation

Editor's Notes

  • #2: About me: IMVU, Canvas, Continuous Deployment)Ground rules: I don’t demand your attention, please tweet / follow links while I’m talking. If you have questions, shoot up a hand. If I don’t see you, yell at me.
  • #3: ContinousDeployment vs Continuous Delivery (next slide)
  • #4: Very similarContinuous Delivery is “agile as it should be”Continuous Delivery does NOT advocate for deploy-on-commit (Book and term reaction to Continuous Deployment)Continuous Deployment advocates for MORE THAN deploy-on-commit. (August 2007, 5 years old!)At the end of the day, I don’t care. People seem to be using both terms interchangeably. Whatever you call it, however far you take it, it’s better than not deploying very often.
  • #5: These are the problems I get asked about all the time.No silver bullets.
  • #6: In general I assume some sort of LAMP stack.
  • #7: Seems straightforward, but often means what would’ve been a 1 step process (with downtime) is now a 15 step process. BUT! If you follow it well, you can always step backwards, one small step at a time, in the event that it doesn’t work out / is wrong
  • #8: Sharding your data and keeping your shards balanced (and measured) means you can quantitatively assess this, especially if you keep an offline copy of a single shard.i.e. keep 100k users per shard, letting you do almost anything to any O(user) table.
  • #9: Not hitting on master-master / master-standby / etc distinctions, because the exact setup depends on your db / replication / required availability.
  • #10: http://martinfowler.com/bliki/BlueGreenDeployment.html
  • #11: Hybrid SQL db and NoSQLdb, use each where appropriate
  • #13: Most real world scenarios are a hybrid
  • #14: Experience heavily biased to iOS, would love to hear Android perspective
  • #15: Don’t just throw up your arms and say “CD can’t be done”Apparently cozying up with Apple can lower your submission turnaround time from 1 week to 1 day.
  • #17: Trades development speed for performanceFor most apps that’s probably the right trade (users don’t really notice)
  • #18: Get back the performance you were missing, and native scrollingLose some of the dynamic propertiesMuch more expensive to develop
  • #22: Commit to deploy&lt; 5 minute: stay in flow5 – 15 minutes: can keep working on feature15 minutes: failures are surprises and require expensive rewindingLocal dev loop&lt; 2s: stay in tight flow2s – 10s: tab away from terminal, looser flow10s – 1min: start thinking or coding on next thing, failures require rewinding1m – 5min: significant rewinding, high distraction, painful testing (rolling chair jousting)
  • #23: Example: All metrics green, everything looks great, but got to metrics by shaming anyone who breaks build. Culture of tip-toeing through the bulid system leads to reduced happiness (and reduced throughput!)Sidenote: Measure throughput! Deploys per engineer (avg/median/extremes), is it scaling up with org or are you getting less deploys?
  • #24: GUI Testsi.e. SeleniumIntegration Testsi.e. uses the databaseUnit Testssmall fast tests with no external state
  • #25: i.e. Don’t reload your country code or ipgeo tables, even into memory from disk, on every test
  • #26: Highly recommend Buildbot when you hit scale. It’s proven at huge scale (500+ nodes) and growing, and allows way better pipeline customization at that scale
  • #30: Test time is O(Cumulative man-months)Doubling staff means halving test time, in spite of ever-marching-on increase in tests
  • #33: Github modelMost FOSS is moving to or using this model
  • #34: Lots of people/process overheadClassical way of scaling up to extremely large teams
  • #35: Fortune 500-proof.
  • #36: Remember: Don’t overinvest up front. Better to do something simple until it doesn’t work, than to overbuild.Don’t underbuild either. Use