SlideShare a Scribd company logo
Feature Flagging
to Reduce Risk in
Database Migrations
By Patrick Kaeding
Lead Engineer at LaunchDarkly
@pkaeding @launchdarkly
About Me & LaunchDarkly
• Current: Lead Engineer at LaunchDarkly
• Past: Engineer at Atlassian
• LaunchDarkly is a cloud-based feature flag management
platform
• Separate deploying code from releasing features
• Manage risk of releasing features
• Measure impact (both KPI and Ops performance)
@pkaeding @launchdarkly
Database Migrations
• Sooner or later, it is inevitable
• Schema changes
• Moving to larger database cluster
• Moving from one kind of DB to another
@pkaeding @launchdarkly
Maintenance window
Database Migrations (Bad Old Days)
Application Old Database
@pkaeding @launchdarkly
Database Migrations (Bad Old Days)
Old Database New Database
Migrate
Maintenance window (application offline)
@pkaeding @launchdarkly
Maintenance window
Database Migrations (Bad Old Days)
Application New Database
@pkaeding @launchdarkly
Maintenance Window Approach
• Pros
 Simplicity
 Can always be used (since both code paths don’t need to
work at the same time)
• Cons
 Downtime
 If there is a problem, redeploy old code and restore from
backup
 All or nothing
@pkaeding @launchdarkly
Zero-Downtime Approach
Database Migrations (The Less Bad Days)
Application Old Database
Write
Read
@pkaeding @launchdarkly
Zero-Downtime Approach
Database Migrations (The Less Bad Days)
Application Old Database
Write
Read
New Database
@pkaeding @launchdarkly
Zero-Downtime Approach
Database Migrations (The Less Bad Days)
Application New Database
Write
Read
@pkaeding @launchdarkly
Zero-Downtime Approach
• Pros
 No downtime
 If there is a problem, you can keep running from the old
database/schema
• Cons
 All or nothing
@pkaeding @launchdarkly
The Feature-Flagged Approach
Database Migrations (Modern Times)
Application Old Database
Write
Read
@pkaeding @launchdarkly
Feature-Flagged Approach
Database Migrations (Modern Times)
Application Old Database
Write 100%
Read 100%
New Database
@pkaeding @launchdarkly
Feature-Flagged Approach
Database Migrations (Modern Times)
Application Old Database
Write 100%
Read 100%
New Database
@pkaeding @launchdarkly
Feature-Flagged Approach
Database Migrations (Modern Times)
Application Old Database
Write 100%
Read 100%
New Database
@pkaeding @launchdarkly
Feature-Flagged Approach
Database Migrations (Modern Times)
Application Old Database
Write 100%
Read 100%
New Database
@pkaeding @launchdarkly
The Feature-Flagged Approach
Database Migrations (Modern Times)
Application New Database
Write
Read
@pkaeding @launchdarkly
Feature-Flagged Approach
• Pros
 No downtime
 Gradual rollout allows you to monitor
 You can roll back just as easily (or partially roll back)
 Compare results with live data
• Cons
 Longer period for both databases to be operational
@pkaeding @launchdarkly
Demonstration
@pkaeding @launchdarkly
What about…
• Schema changes? New fields? Restructured data?
• Which users get the new DB?
• Open source alternatives?
@pkaeding @launchdarkly
Questions
• pkaeding@launchdarkly.com
• @pkaeding
• @launchdarkly
• https://launchdarkly.com
• Blog article: http://kaed.in/db-blog
• Demo code: http://kaed.in/dbcode
@pkaeding @launchdarkly

More Related Content

PDF
When Feature Flags Go Bad : How Not to Have Feature Flags Be Used Incorrectly...
PDF
The Cultural Changes of Feature Flagging
PDF
Faster & Less Risky Releases with Feature Flags
PDF
Continuous Delivery and Feature Flagging
PPTX
Feature flag launchdarkly
PDF
Composable Software Architecture with Spring
PDF
DevOps Maturity Curve v5
PDF
DevOps Evolution - The Next Generation ?
When Feature Flags Go Bad : How Not to Have Feature Flags Be Used Incorrectly...
The Cultural Changes of Feature Flagging
Faster & Less Risky Releases with Feature Flags
Continuous Delivery and Feature Flagging
Feature flag launchdarkly
Composable Software Architecture with Spring
DevOps Maturity Curve v5
DevOps Evolution - The Next Generation ?

What's hot (20)

PDF
Practical DevSecOps - Arief Karfianto
PPTX
API Testing Presentations.pptx
PPTX
Track code quality with SonarQube
PDF
CI/CD (DevOps) 101
PPTX
DEVSECOPS.pptx
PDF
Automação e virtualização de serviços
PDF
DevSecOps The Evolution of DevOps
PDF
Migrating to mule 4 - Are you ready for This.
PDF
"DevOps > CI+CD "
PPTX
API Security Fundamentals
PPTX
DevSecOps : an Introduction
PPTX
Microsoft DevOps Solution - DevOps
PPTX
Foundations of the Scaled Agile Framework 3.0
PDF
AI and Machine Learning for Testers
PPTX
Getting Started with Azure Artifacts
PDF
Pave the Golden Path On Your Internal Platform
PDF
Java Source Code Analysis using SonarQube
PPTX
Test Driven Development & CI/CD
PDF
DevOps or DevSecOps
Practical DevSecOps - Arief Karfianto
API Testing Presentations.pptx
Track code quality with SonarQube
CI/CD (DevOps) 101
DEVSECOPS.pptx
Automação e virtualização de serviços
DevSecOps The Evolution of DevOps
Migrating to mule 4 - Are you ready for This.
"DevOps > CI+CD "
API Security Fundamentals
DevSecOps : an Introduction
Microsoft DevOps Solution - DevOps
Foundations of the Scaled Agile Framework 3.0
AI and Machine Learning for Testers
Getting Started with Azure Artifacts
Pave the Golden Path On Your Internal Platform
Java Source Code Analysis using SonarQube
Test Driven Development & CI/CD
DevOps or DevSecOps
Ad

Viewers also liked (20)

PDF
The Staging Server is Dead! Long Live the Staging Server!
PDF
Feature Flags Are Flawed: Let's Make Them Better
PDF
Feature flags to speed up & de risk development
PPTX
TAO Refresh - Automation of Data Spike Flagging Quality
PPTX
Feature Toggle XP Conference 2016 Kalpana Gulati
PPTX
Waffle: A feature switch/flag/toggle application for Django
PDF
Feature toggling
PPTX
Introduction to Feature Toggle and FF4J
PPTX
Entregas Contínuas com feature toggles
PPTX
Pull requests and testers can be friends
PDF
Who will test your tests?
PDF
Continuous Visual Integration - RailsConf 2016 - Mike Fotinakis - Percy.io
PDF
Overcoming the fear of deployments
PDF
Continuous Integration, Delivery and Deployment
PDF
Refactoring for Software Design Smells - Tech Talk
PPTX
Why we used Feature Branching
PPTX
Requirement and Test for Continuous Delivery - Customer in focus at Scania Co...
PPTX
Feature Flagging to Reduce Risk in Database Migrations
PDF
Trunk Based Development (CBSoft 2011)
PDF
Feature Toggle Examples
The Staging Server is Dead! Long Live the Staging Server!
Feature Flags Are Flawed: Let's Make Them Better
Feature flags to speed up & de risk development
TAO Refresh - Automation of Data Spike Flagging Quality
Feature Toggle XP Conference 2016 Kalpana Gulati
Waffle: A feature switch/flag/toggle application for Django
Feature toggling
Introduction to Feature Toggle and FF4J
Entregas Contínuas com feature toggles
Pull requests and testers can be friends
Who will test your tests?
Continuous Visual Integration - RailsConf 2016 - Mike Fotinakis - Percy.io
Overcoming the fear of deployments
Continuous Integration, Delivery and Deployment
Refactoring for Software Design Smells - Tech Talk
Why we used Feature Branching
Requirement and Test for Continuous Delivery - Customer in focus at Scania Co...
Feature Flagging to Reduce Risk in Database Migrations
Trunk Based Development (CBSoft 2011)
Feature Toggle Examples
Ad

Similar to Feature Flagging to Reduce Risk in Database Migrations (20)

PDF
How to Migrate Without Downtime
PPTX
Checklist for Upgrades and Migrations
PPTX
Flyway (33rd Degree)
PPTX
Flyway: The agile database migration framework for Java
PPTX
SQL Server Database Migration
PDF
Are You Ready for 12c? Data Migration and Upgrade Best Practices
PPTX
Evolutionary database design
PDF
Zero Downtime Migrations at Scale
PDF
Application Migration for Business Growth
PDF
Delivering changes for applications and databases
PPTX
Webinar: Migrating from RDBMS to MongoDB (June 2015)
PDF
Geek Sync | Planning a SQL Server to Azure Migration in 2021 - Brent Ozar
PDF
App Migration Services for Modern Businesses
PPTX
Evolutionary database design
PDF
Zero-downtime Deployment on Kubernetes
PDF
Are we there Yet?? (The long journey of Migrating from close source to opens...
PDF
Migrate to share point 2013 with avepoint 2.14.13
PDF
Database Comparison & Synch | Change Manager Success Story
PDF
Oracle to MySQL 2012
PDF
Lap Around Sql Azure
How to Migrate Without Downtime
Checklist for Upgrades and Migrations
Flyway (33rd Degree)
Flyway: The agile database migration framework for Java
SQL Server Database Migration
Are You Ready for 12c? Data Migration and Upgrade Best Practices
Evolutionary database design
Zero Downtime Migrations at Scale
Application Migration for Business Growth
Delivering changes for applications and databases
Webinar: Migrating from RDBMS to MongoDB (June 2015)
Geek Sync | Planning a SQL Server to Azure Migration in 2021 - Brent Ozar
App Migration Services for Modern Businesses
Evolutionary database design
Zero-downtime Deployment on Kubernetes
Are we there Yet?? (The long journey of Migrating from close source to opens...
Migrate to share point 2013 with avepoint 2.14.13
Database Comparison & Synch | Change Manager Success Story
Oracle to MySQL 2012
Lap Around Sql Azure

Recently uploaded (20)

PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
Transform Your Business with a Software ERP System
PDF
System and Network Administration Chapter 2
PPTX
L1 - Introduction to python Backend.pptx
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Digital Strategies for Manufacturing Companies
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Nekopoi APK 2025 free lastest update
PDF
top salesforce developer skills in 2025.pdf
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
System and Network Administraation Chapter 3
Operating system designcfffgfgggggggvggggggggg
Transform Your Business with a Software ERP System
System and Network Administration Chapter 2
L1 - Introduction to python Backend.pptx
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Wondershare Filmora 15 Crack With Activation Key [2025
Odoo Companies in India – Driving Business Transformation.pdf
How to Choose the Right IT Partner for Your Business in Malaysia
VVF-Customer-Presentation2025-Ver1.9.pptx
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Digital Strategies for Manufacturing Companies
Odoo POS Development Services by CandidRoot Solutions
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Navsoft: AI-Powered Business Solutions & Custom Software Development
Nekopoi APK 2025 free lastest update
top salesforce developer skills in 2025.pdf
wealthsignaloriginal-com-DS-text-... (1).pdf
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
System and Network Administraation Chapter 3

Feature Flagging to Reduce Risk in Database Migrations