Deploying and releasing are usually treated as the same event: code merges, the pipeline runs, and every user gets the change at once. If something breaks, the only fix is another deploy or a rollback.
Feature flags separate the two. Code goes to production switched off, and you decide later who sees it (1% of users, your own team, one pilot customer) without another deploy. Here's how to build a small, dependable flag system in Node.js, how percentage rollouts actually work, and how to keep flags from turning into permanent clutter.
What a feature flag is
At its simplest, a flag is a conditional:
if ( flags .β¦