Urgent.News

One page, thousands of outlets. See who else covered it.

Editions

Tech

Feature Flags in the Real World: Use Cases That Won't Get You Fired

Why do teams use feature flags? Because "move fast and break things" is only fun until you break prod. Feature flags let you move fast and break things slightly less dramatically. Here’s how real engineering teams actually use them. Canary Releases A canary release means you roll out a change to a small percentage of users first—say, 1%—before exposing it to everyone. If the 1% starts screaming,…

Engineering teams utilize feature flags to introduce changes to a select portion of users before making them available to everyone. This approach, known as a canary release, enables teams to identify issues early, minimizing potential negative impacts on a larger user base. The concept derives from the practice of using a canary bird in coal mines to detect toxic gases.

By rolling out changes gradually, teams can gather valuable insights without risking a system-wide failure. Feature flags also facilitate A/B testing, allowing teams to compare two distinct versions of a feature and determine which performs better through user data analysis. Similarly, they aid in kill switches, enabling rapid disabling of problematic features during emergency situations, such as third-party API failures or database lockups.

For gaining real-world feedback, feature flags enable beta testing and early access programs, granting specific users, including power users and beta program participants, access to upcoming features. This method allows for gathering early user feedback without committing to a full release. Dark launches further enhance this process by running new code in production while remaining invisible to users, enabling teams to test performance and correctness under real-world conditions.

Consequently, feature flags provide a safer and more controlled environment for production rollouts, helping teams break things more cautiously and maintain a high level of operational stability. For teams seeking an efficient means to manage feature flags without developing their own administration interface, FeatureFlags.app offers a streamlined solution.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Unlocking the Power of Feature Flags

So, you shipped a new feature. Congrats! 🎉 Now the app's acting weird. Do you nuke the whole release? Nah. Enter feature flags. What Are Feature Flags?

  • Feature flags allow turning features on/off without new code deployment
  • Enable safe testing, A/B testing, gradual rollouts of changes
  • Store flags in code, DB, SaaS; customize by user, time, phases

The loudest attacks on our Next.js site were aimed at software it never ran

This is a case study of a small business website we designed and built. To see whether the design held up, we read its own edge logs over a 28-day window.

  • Website built with Next.js and Node.js targeted by malicious automated scans.
  • Attacks aimed at non-existent software components like WordPress and PHP panels.
  • /.env file containing sensitive data was not part of served filesystem.

Feature Flag Pitfalls: How to Turn Your Codebase Into a Haunted House

Feature flags are easy to add and hard to remove. That asymmetry is where the trouble starts. Used properly, feature flags give you safer deployments, gradual rollouts, and emergency kill switches.

  • Feature flags can create technical debt and hinder code navigation if not managed properly.
  • Flag explosion occurs when too many flags accumulate, complicating tracking and testing.

More from Monday 17 August →