HLDArena
HLD-249·Storage & Media
Medium · 1,000 pts

Visual 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.

Relevant practice for

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
Hidden Cases #4–#7 run automatically on Submit
Case 1: Smoke & API ContractInput Workload
Read RPS
2,000 rps
Write RPS
400 rps
Key Distribution
Uniform (Low Skew)
Chaos Fault
None (Healthy Cluster)
Expected Pass CriteriaASSERTIONS
• Tail Latency: p99 ≤ 100 ms
• Availability: ≥ 99.6%
Valid end-to-end Client → Compute → Storage topology