Book description
Whether you want to fine-tune operational control or conduct A/B/n tests, feature flags make it easy to deliver software features quickly and safely. With this practical book, software engineers will learn eight best practices for using feature flags in production, including how to configure and manage a growing set of feature flags within your product, maintain them over time, manage infrastructure migrations, and more.
Pete Hodgson and Patricio Echagüe demonstrate how feature flags help modern product delivery teams reduce risk by decoupling code deployment from feature release. You’ll learn how to maintain flag consistency in different scenarios and how to develop, test, and work with feature flags at scale.
With these practices, you will:
- Make sure users in a test still have access once a feature is ramped up
- Learn flag strategies for transitioning users from "anonymous" to "logged in"
- Keep flagging decisions on the server to maintain performance and security
- Use patterns to make incremental, backward-compatible database changes
- Implement flagging decisions as close to business logic as possible
- Have each flag owned by one team responsible for rollout and monitoring
- Consider testability when using feature flags in combination with CI practices
- Maintain a process for identifying and tracking flags
- Examine the effect a feature flag is having on your business
Table of contents
- 1. Introduction
- 2. The Moving Parts of a Feature-Flagging System
- 3. Best Practice #1: Maintain Flag Consistency
- 4. Best Practice #2: Bridge the “Anonymous” to “Logged-In” Transition
- 5. Best Practice #3: Make Flagging Decisions on the Server
- 6. Best Practice #4: Incremental, Backward-Compatible Database Changes
- 7. Best Practice #5: Implement Flagging Decisions Close to Business Logic
- 8. Best Practice #6: Scope Each Flag to a Single Team
- 9. Best Practice #7: Consider Testability
- 10. Best Practice #8: Have a Plan for Working with Flags at Scale
- 11. Best Practice #9: Build a Feedback Loop
- 12. Summary
Product information
- Title: Feature Flag Best Practices
- Author(s):
- Release date: March 2019
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781492050445
You might also like
book
Managing Feature Flags
Developers have long used configuration options or flags to control what their software programs do at …
book
Implementing Domain-Driven Design
“For software developers of all experience levels looking to improve their results, and design and implement …
book
RESTful Web API Patterns and Practices Cookbook
Many organizations today orchestrate and maintain apps that rely on other people's services. Software designers, developers, …
book
Enterprise Integration Patterns: Designing, Building, and Deploying Messaging Solutions
Enterprise Integration Patterns provides an invaluable catalog of sixty-five patterns, with real-world solutions that demonstrate the …