16
How would you design a feature flag service?
Tap to write answer
0 words | 0 charsPress Enter ↵ to reveal
Your Attempt
0 wordsRefined Model Answer
ReferenceI would first clarify whether the flags are for experiments, gradual rollout, kill switches, or all of those. My design would include a central config store, a fast local cache on application servers, and a rules engine that decides which users see which values. The reason I choose this structure is that flag checks need to stay lightweight while still being flexible. I would also think about audit logs, rollbacks, and stale flags that need cleanup. If the interviewer asks, I would talk about percentage rollout and targeting by user attributes.