How would you implement feature flags in an application?

Technical