DeveloperWeek Global: Cloud 2020 DeveloperWeek Global: Cloud 2020

Expo Stage - Hopin 1

Join on Hopin

Tuesday, September 29, 2020

OPEN TALK: How We Manage Feature Flags in 280k Lines of Production Javascript Code

At Split, our React/Redux JavaScript application has around 280K lines of code and more active feature flags at any given moment than we have fingers and toes. Understandably, we like feature flags a lot, and believe strongly that they’re they best way to break the tradeoff between speed and reliability in software development

Even as self-professed feature flag experts, when we started out we quickly found ourselves with code that was hard to read, hard to reason about, and hard to manage.

After exploring several strategies, we found a pattern that aligns feature flags with larger code units (components, reducers, actions) rather than at individual lines of code. This alleviates much of the pain that a naîve application of feature flags to a code base can introduce, and ultimately restored the development velocity that is required for any technology company.

In this talk, I’ll share what works for us and pass along some tips for right-sizing practices to your unique situation. While the focus here is on a frontend (JavaScript/React/Redux) codebase, the principles will apply to any language or domain.