Feature Toggle¶
Benefits¶
- Roll out or rollback in seconds
- decouple deploy and rollout of features 2. decouple them to isolate the issues (deploy vs feature issue)
- Beta Test in production 4. Only test on 10% of users
- Always be able to merge code (even if incomplete) into the main branch 6. fewer merge issues
Why Feature Toggles?
what's a feature flag?
Why use LaunchDarkly instead of building your own¶
- funfun functions
- there are lot of edge cases¶
Using Launch Darkly¶
- have feature flags on the backend
- have the frontend make an API call to get the feature flag list 3. store it in redux or a global store
How to test feature flags¶
How to have tests with feature flags?
- Override the DefaultTestRunner
- [[django-testing#Using another testing framework]]
Last update:
2023-04-24