Roblox: Design a shared resource loader
Problem. Design a resource loader that fetches assets from local disk or a CDN, keeps them in memory and lets many clients use the same loaded resource.
What the candidate expected. A multithreaded, class-level design: the API, how components call each other, and how concurrent requests for the same resource are handled. They were unsure what the interviewer was actually looking for.
What to think about. Deduplicate in-flight loads so two clients asking for the same asset share one fetch, reference counting or eviction for memory, and fallback from disk to CDN.
Comments 0
No comments yet. Ask the author something, or add what happened in your own round.