HLD-249·Storage & Media
Medium · 1,000 ptsVisual Discovery Pin-Board Graph & Home Feed Service
Design a Pinterest-style visual bookmarking and personalized board/home-feed backend supporting multi-resolution responsive image delivery, perceptual near-duplicate pin linking, and low-latency repin graph writes.
Max p99
≤ 50 ms
Availability
≥ 99.6%
Budget
≤ $4,950
Functional Requirements
- FR-1POST /v1/boards/{board_id}/pins — Deduplicates uploaded media hash, generates responsive aspect-ratio thumbnails, and links pin to board.
- FR-2GET /v1/users/{user_id}/home-feed — Serves cursor-paginated blended candidate pins from followed boards and visual-taste clusters.
- FR-3DELETE /v1/boards/{board_id}/pins/{pin_id} — Unlinks a saved pin from a board and updates board pin counts.
- FR-4Must offload 85%+ image byte egress via global Edge CDN while keeping metadata/feed p99 <= 50 ms under viral trend spikes.
Workload Profile
Steady Browsing & Saving44,000 Feed & Board Read RPS / 4,800 Pin/Repin Write RPS
Seasonal Holiday Decor Surge112,000 Read RPS / 12,000 Write RPS
Active Working Set28 GB hot pin card metadata, board graphs & candidate slates
Media OffloadHigh CDN cache hit ratio on immutable content-addressed image renditions
Consistency Model
Read-your-own-pin on the author’s board view; bounded eventual (< 5s) fanout into follower discovery feeds.
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