HLD-103·Caching & Edge
Easy · 500 ptsGlobal Feature Flag & Dynamic Config Service
Design a configuration and feature-toggle distribution backend polled by backend and mobile SDKs during coordinated app rollouts.
Max p99
≤ 25 ms
Availability
≥ 99.5%
Budget
≤ $2,950
Functional Requirements
- FR-1GET /v1/flags/{env_id} — Fetches compiled flag evaluation ruleset for an environment.
- FR-2POST /v1/flags/{env_id} — Creates or publishes updated targeting percentages and kill-switch overrides.
- FR-3DELETE /v1/flags/{env_id}/{flag_key} — Archives or disables retired flags and propagates cache eviction across SDK tiers.
- FR-4SDK evaluations must remain available even if the primary config database crashes.
Workload Profile
Baseline SDK Polls22,000 Read RPS / 400 Config Write RPS
Release Rollout Peak60,000 Read RPS / 1,000 Write RPS
Active Working Set6 GB active flag rulesets
Traffic DistributionHeavy read concentration on production env_id keys
Consistency Model
Eventual propagation (< 5s) to edge/cache tiers acceptable; flag rule mutations must be durably stored.
Relevant practice for
Solutions Locked
Sign in and either achieve AC or complete 3 official submissions on this question to inspect community diagrams and writeups.
Loading solutions...
Submission History (0)Select to replay
No submissions yet
Click Submit in the top bar to evaluate against all 7 judge cases and save each run here.
Click an item in Inventory above, or press B to add a component, double-click to name, C to connect.
Design Write-up
Write under ### Architecture for Diagram to take that up directly
Compulsory section · if not written yet, Diagram reads from the start of your write-up.
Architecture: required·FRs mentioned: 0/4·0 boxes · 0 edges
0 words