Code RoomEdge personalization with cache efficiency
HardPrep Room Coding #3435

Edge personalization with cache efficiency

System designStorage & CDNSenior–Staff~45 min

An e-commerce homepage must be personalized (recommended products, A/B test variant, currency by geo, logged-in greeting) yet 95% of the page is identical across users and you want CDN-level cacheability for performance. Naively varying the full HTML by user makes the cache hit rate near zero. Design an edge-personalization architecture that keeps the bulk of the page cached at the edge while injecting the personalized pieces, and explain how you decide what's cacheable, how you assemble the response, and the consistency/security pitfalls.

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.