Code RoomEdge authorization
HardPrep Room Coding #3362

Edge authorization

System designSecuritySenior–Staff~45 min

Design edge authorization for a global CDN/API gateway where every incoming request (5M req/sec across 200 PoPs) must be authorized against customer-defined access rules (allow/deny by token claims, geo, IP reputation, path, method) before it hits the origin, with a p99 added latency budget under 1ms, and a guarantee that a customer's rule change is enforced everywhere within ~10 seconds. Walk through where authorization runs, how rules and the data they need reach 200 PoPs, and how you keep edge decisions both fast and consistent with the central config.

What a strong answer looks like

Clarify scale and constraints first. Propose a clean component breakdown, then go deep on the hard parts (data model, bottlenecks, consistency, failure modes) and name the trade-offs you are making.

Clarify5:00 left
Estimate5:00 planned
Design15:00 planned
Deep dive12:00 planned
Failure8:00 planned
0:00
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.