HLD-111·Caching & Edge
Easy · 500 ptsUser Profile Card & Avatar Metadata Service
Design a foundational user profile microservice hydrating display names, handles, and avatar URLs across internal services on every page render.
Max p99
≤ 30 ms
Availability
≥ 99.5%
Budget
≤ $3,250
Functional Requirements
- FR-1GET /users/{user_id}/profile — Fetches public display name, bio, verification badge, and avatar URL.
- FR-2PATCH /users/{user_id}/profile — Creates or updates profile attributes and persists changes.
- FR-3DELETE /users/{user_id}/avatar — Deletes custom avatars or deactivates profiles while invalidating cached profile cards.
- FR-4Must survive a primary profile database node crash without breaking upstream page renders.
Workload Profile
Baseline Hydrations22,000 Read RPS / 1,100 Profile Write RPS
Prime-Time Peak71,000 Read RPS / 3,000 Write RPS
Active Working Set14 GB active user profile cards
Traffic DistributionZipfian read skew on popular creator user_id profiles
Consistency Model
Eventual profile card propagation (< 5s TTL/async update) acceptable; profile edits must persist durably.
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