Practice this topic in a realistic system design interview
Suppose your team is building a new checkout flow that will take six weeks to complete.
One approach is to develop it on a separate branch and merge it once everything is ready. But during those six weeks, the main codebase keeps changing. By the time the feature is finished, merging it back could mean dealing with dozens of conflicts.
And once you merge and deploy it, every user gets the new checkout flow at the same time. If something goes wrong, you have to deploy the previous version to turn it off.
This creates two problems:
Feature flags help solve both. This chapter covers what feature flags are, how they separate deploying code from releasing features, how flag systems decide which users see what, and the problems that come with keeping too many flags around.