Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Feature Management with LaunchDarkly

You're reading from   Feature Management with LaunchDarkly Discover safe ways to make live changes in your systems and master testing in production

Arrow left icon
Product type Paperback
Published in Oct 2021
Publisher Packt
ISBN-13 9781800562974
Length 314 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Michael Gillett Michael Gillett
Author Profile Icon Michael Gillett
Michael Gillett
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Section 1: The Basics
2. Chapter 1: Introduction to Feature Management with LaunchDarkly FREE CHAPTER 3. Chapter 2: Overview of Feature Management 4. Chapter 3: Basics of LaunchDarkly and Feature Management 5. Section 2:Getting the Most out of Feature Management
6. Chapter 4: Percentage and Ring Rollouts 7. Chapter 5: Experimentation 8. Chapter 6: Switches 9. Chapter 7: Trunk-Based Development 10. Chapter 8: Migrations and Testing Your Infrastructure 11. Section 3: Mastering LaunchDarkly
12. Chapter 9: Feature Flag Management in Depth 13. Chapter 10: Users and Segments 14. Chapter 11: Experiments 15. Chapter 12: Debugger and Audit Log 16. Chapter 13: Configuration, Settings, and Miscellaneous 17. Other Books You May Enjoy

Learning to implement switches within LaunchDarkly

To implement a switch within your application, you only need to encapsulate a feature within a Boolean feature flag, as we saw in Chapter 3, Basics of LaunchDarkly and Feature Management. There is nothing new when it comes to the actual implementation of making use of an if statement to offer two pieces of functionality based on what value LaunchDarkly is configured to serve; that is, either true or false. However, it is designed to always be within your application. You may not need to make any changes to how you would implement a flag, but there might be additional documentation or abstractions within your code to provide greater context about the long-lived flag within the application.

It is worth considering how you want to work with the default value of the feature flag within your application. So far, we have only ever considered the default value to be false if LaunchDarkly can't be unreached by your application. However...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image