Design a daily puzzle platform
I was asked this
No reports yet. Sign in to say where you were asked it.
A system design interview question asked in Uber's system design round, last asked Apr 2026. It tests api design and system design fundamentals.
Design the backend of a daily puzzle platform: every day one new puzzle goes live for all users, who try to solve it, get a score, and see how they compare with others. Think of a daily word game or crossword with streaks and leaderboards. Cover the APIs, the data model, how the service is split, scaling and consistency, scoring, abuse prevention and monitoring.
Requirements
- Functional: editors schedule puzzles ahead of time; each one becomes available at a fixed release time.
- Functional: users fetch today's puzzle, submit attempts or a final answer, and get a score; the server keeps their streak and history.
- Functional: daily leaderboards, globally and among friends.
- Non-functional: millions of users, with a sharp traffic spike right at release; a puzzle must not leak before its release time; one score per user per puzzle; scores must survive retries and dropped connections.
Clarifying questions
- Is release at one global time or at each user's local midnight?
- How is a score computed: correctness, time taken, attempts used?
- Is the check done on the server or in the client? Can users play offline?
- Can users replay old puzzles, and do those count?
- How large are leaderboards, and how fresh must they be?
What a strong answer covers
- APIs such as
GET /puzzles/today,POST /puzzles/{id}/attempts,GET /leaderboards/{puzzle_id}, with idempotency keys on submissions. - Data: puzzles with release time and answer, attempts, one result row per user and puzzle with a unique key, streaks.
- The release spike: puzzle content prepared ahead and served from a CDN or cache, released by time-gated keys so nothing leaks early; per-time-zone releases spreading the load.
- Scoring on the server, so the answer never reaches the client before it is solved; a clear rule for retries and duplicate submissions.
- Leaderboards in a sorted set per puzzle, written asynchronously from results; friends' boards computed on read for small friend lists.
- Abuse: bots and impossible solve times, multiple accounts, sharing answers; rate limits and anomaly flags.
- Monitoring: release succeeded, submission error rate, leaderboard lag, streak correctness.
Follow-ups
- A puzzle goes out with a wrong answer. How do you fix it and rescore everyone fairly?
- Users in every time zone get the puzzle at their local midnight. How does that change caching, leaderboards and leaks?
- A user plays offline on a plane and syncs later. How do you accept the result without opening a cheating hole?
- Add a weekly league with promotion and relegation.
Where it's asked
- Uber · System design · Last asked Apr 202660 min · Whiteboard and discussion
What it tests
api design · system design fundamentals
No official answer yet. Draw yours on the right; publish it and it shows under Community.
Nothing published yet. Publish your canvas and it shows here for others to open and remix.
