Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save EliFuzz/4f69c4d14857e92941116e843798063a to your computer and use it in GitHub Desktop.
Save EliFuzz/4f69c4d14857e92941116e843798063a to your computer and use it in GitHub Desktop.
Best Practicies: Feature toggle deployment
Best Practice Description
Feature toggle service Use a dedicated feature toggle service instead of implementing your own feature toggle logic or storing your feature toggle state in your code or configuration files. This will simplify your code, improve your performance, and increase your reliability and security
Deature toggle client Use a feature toggle client library or SDK that integrates well with your programming language, framework, and platform. This will reduce your development effort, ensure consistency, and provide additional features and benefits
Descriptive names Use descriptive and meaningful names for your feature toggles that reflect their purpose and scope. This will make it easier to understand, manage, and document your feature toggles
Consistent conventions Use consistent conventions for naming, organizing, and categorizing your feature toggles. This will make it easier to find, filter, and group your feature toggles
Short-lived toggles Use feature toggles for short-lived experiments or temporary switches that last for days or weeks, not months or years. This will prevent your code from becoming cluttered, outdated, or incompatible with your feature toggles
Clear criteria Use clear and objective criteria for enabling or disabling your feature toggles, such as user segments, contexts, percentages, dates, etc. This will prevent confusion, ambiguity, or bias in your feature toggle decisions
Metrics and monitoring Use metrics and monitoring tools to measure and track the impact of your feature toggles on your system and users. This will help you evaluate the effectiveness and value of your feature toggles and make data-driven decisions
Documentation and communication Document and communicate the status and configuration of your feature toggles to all the relevant stakeholders. This will ensure transparency, accountability, and collaboration in your feature toggle management
Dark launches Use feature toggle deployment to perform dark launches of new features that are hidden from the users but visible to the system. You can use this technique to test the scalability, reliability, or compatibility of new features without affecting the user experience or behavior
Kill switches Use feature toggle deployment to create kill switches that allow you to quickly turn off problematic features in case of emergencies or incidents. You can use this technique to mitigate the damage or recover from failures without having to redeploy your code or roll back your database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment