System Overview - Feature toggles
This system manages feature toggles to enable or disable features dynamically in a microservices environment. It allows safe rollout, testing, and rollback of features without redeploying services.
Jump into concepts and practice - no test required
This system manages feature toggles to enable or disable features dynamically in a microservices environment. It allows safe rollout, testing, and rollback of features without redeploying services.
User
|
v
Load Balancer
|
v
API Gateway
|
v
+-----------------+ +------------------+
| Feature Toggle |<----->| Configuration DB |
| Service | +------------------+
+-----------------+
|
v
+-----------------+
| Microservice A |
+-----------------+
|
v
+-----------------+
| Microservice B |
+-----------------+feature toggles in microservices?newUI in a microservice code snippet?isEnabled('featureName') returning boolean.if (featureToggle.isEnabled('betaFeature')) {
return 'Beta feature active';
} else {
return 'Beta feature inactive';
}
If the toggle betaFeature is OFF, what will be the output?betaFeature is OFF, isEnabled returns false, so else branch runs.if (featureToggle.isEnabled = true) {
enableFeature();
} else {
disableFeature();
}
What is the main error causing this behavior?isEnabled to true, always true.