Feature Flag
Feature-Flag
Ein Feature Flag ist ein Schalter, der während das Programm läuft geprüft wird. Es ändert eine Funktion ohne neues Code-Deployment.
Ein weiteres Beispiel
Ein neuer Checkout erreicht zuerst die Mitarbeiter, dann 5 % der passenden Käufer. Fehler-Messungen lösen automatisch den dokumentierten Notausschalter aus.
Hauptteile
- 01Identity or input
- 02Policy or transformation
- 03Stored result and audit evidence
Verwenden Sie es, wenn
Verwenden Sie es für vorsichtige Rollouts, Experimente oder Notabschaltungen. Geben Sie jedem Flag einen Verantwortlichen und ein Enddatum.
Nutze es nicht, wenn
Vermeide dauerhafte Flags, versteckte Rechte-Prüfungen, ungetestete Kombinationen und Zielgruppen-Selection basierend auf sensiblen Merkmalen.
In Code verwendeter Name
flag key + targeting rule + default + expiry Vor dem Ausliefern
Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback.
Outcome: Complete the task with Feature-Flag (Feature Flag). User context: Ein neuer Checkout erreicht zuerst die Mitarbeiter, dann 5 % der passenden Käufer. Fehler-Messungen lösen automatisch den dokumentierten Notausschalter aus. Technical concept or control: Feature-Flag (Feature Flag). Why it fits: Verwenden Sie es für vorsichtige Rollouts, Experimente oder Notabschaltungen. Geben Sie jedem Flag einen Verantwortlichen und ein Enddatum. Do not use it when: Vermeide dauerhafte Flags, versteckte Rechte-Prüfungen, ungetestete Kombinationen und Zielgruppen-Selection basierend auf sensiblen Merkmalen. Engineering requirements: Define inputs, outputs, contracts, and rules that must always hold. Set authorization and input checks. Define failures, timeouts, retries, one-time effects, data moves, and compatibility limits. Operations: Add useful signals and logs that hide sensitive data. Set capacity limits and write an operator guide. Test recovery and rollback. Acceptance criteria: Contract and failure-path tests pass. Data and authorization rules still hold during retries and partial failures. Check performance limits, monitoring, recovery, and rollback. Evidence and limits (evidence boundary): Kein einziger offizieller Standard kontrolliert den gesamten Begriff. Seine Bedeutung kann sich zwischen Teams, Plattformen oder Frameworks ändern. Unknowns to confirm: Where the code runs, data stores, traffic shape, consistency needs, and the security boundary. Also confirm the compatibility period, service goals, and rollback limits.
Diese Anfrage prüfen
Review how Feature-Flag (Feature Flag) is used now. Definition: Ein Feature Flag ist ein Schalter, der während das Programm läuft geprüft wird. Es ändert eine Funktion ohne neues Code-Deployment. Release checks: Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.