DEV Community

Discussion on: The introduction of Feature Flag into your system

Collapse
 
seanfcarroll profile image
Sean • Edited

I like this idea, but is there an example of how to use the Feature Flag?

Would it be something like:

if Feature.enabled?(:awesome_feature)
 ...
end
Enter fullscreen mode Exit fullscreen mode

So in this case to flip the feature flag would require restarting the server?

Collapse
 
kazu9su profile image
toooooooooomy

Yes it should be like that.
This implementation requires rebooting the app instance, but this is beneficial if you have several web servers to distribute the yaml file