Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Feature Flag Platform

Design a versioned feature-flag control plane and a deterministic, locally evaluated snapshot path.

Problem statement

For this exercise, assume you are designing a feature-flag platform whose control plane lets authorized teams create, review, publish, audit, and roll back versioned flag configurations. A configuration supports deterministic percentage rollout, allowlists, blocklists, and explicit rule precedence. Client SDKs pull immutable snapshots from object storage, verify compatibility and integrity, cache them locally, and evaluate flags without a network call on the request path. Also assume 5 configuration writes per second, 200,000 SDK evaluations per second, p99 local evaluation below 1 millisecond, 99% of healthy clients receiving a published snapshot within 60 seconds, and evaluation availability of 99.99%. During a transient control-plane or distribution failure, an SDK may continue using its last verified compatible snapshot while emitting staleness telemetry. Exclude experimentation analytics and business-metric attribution.

What to build

  1. Authorized teams can stage, publish, audit, and roll back immutable flag-configuration versions.
  2. All SDKs evaluate allowlists, blocklists, and percentage rules with the same documented precedence and deterministic bucket function.
  3. SDKs accept only integrity-checked compatible snapshots, evaluate locally, and retain a safe last-known version during bounded distribution failures.
  4. Operators can measure publication progress, client staleness, incompatibility, and rollback completion by configuration version.

At scalePractice assumption

  • 5 configuration writes per second and 200,000 local SDK evaluations per second.
  • P99 local evaluation below 1 millisecond and 99% healthy-client propagation within 60 seconds.
  • Evaluation remains available through a transient control-plane or snapshot-distribution failure by using the last verified compatible snapshot.