HLDArena
HLD-327·Geo & Telemetry
Hard · 1,500 pts

Privacy-Preserving Crowd-Sourced BLE Tag Locator Network

Design an Apple Find My / Tile-style offline item-finding network where hundreds of millions of passerby phones upload end-to-end encrypted location reports keyed by rotating 15-minute BLE public-key hashes, without revealing finder or owner identities to the server.

Max p99
≤ 68 ms
Availability
≥ 99.6%
Budget
≤ $11,200

Functional Requirements

  • FR-1POST /v1/locator/reports — Ingests high-volume encrypted location payloads keyed by rotating ephemeral_pub_hash.
  • FR-2POST /v1/locator/query-keys — Fetches recent encrypted sightings for an owner’s batch of rotating key hashes.
  • FR-3DELETE /v1/locator/reports/expired — Enforces rolling 7-day TTL compaction and anti-stalking unwanted-tag alert checks.
  • FR-4Must absorb massive airport/transit hub BLE sighting write floods within budget while surviving storage node crashes.

Workload Profile

Global Background Sightings44,000 Owner Query Read RPS / 22,000 Encrypted Sighting Write RPS
Holiday Airport Baggage Rush118,000 Read RPS / 54,000 Sighting Write RPS
Active Working Set42 GB recent 24h rotating key-hash sightings & bloom filters
Privacy & Scale GateZero server-side plaintext coordinates + write-optimized LSM/queue ingestion

Consistency Model

Append-only eventual (< 5s) sighting visibility keyed strictly by opaque SHA-256(rotating_ble_public_key).

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 ≤ 136 ms
• Availability: ≥ 99.6%
Valid end-to-end Client → Compute → Storage topology