Practice / macOS

Work through a system design interview

Turn requirements into a diagram, defend a trade-off, and improve the design with the rubric.

Design Practice with the prompt catalog, drawing board, and review panel.
Design Practice with the prompt catalog, drawing board, and review panel. Select the image to enlarge.
  1. Define scope and estimate scale

    Write the primary user flows, exclusions, traffic, and one quality target. State your assumptions aloud or in the worksheet.

    Example

    Support link creation and redirects. At 1,000 redirects per second and 100 link creations per second, optimize the read path first.

  2. Draw and narrate the critical flow

    Place labeled components on the board and connect them with directional arrows. Show data ownership and a failure path before adding secondary features.

    Example

    Trace client → redirect API → cache → link store. Show where the API goes on a cache miss and what it returns for an expired link.

  3. Evaluate, revise, and explain

    Save a checkpoint, run evaluation, and compare the rubric feedback with your board and the reference. Improve one concrete gap.

    Example

    If the board shows reads but no writes, draw how link creation checks collisions and stores the mapping. Explain when a hot-link cache is useful.

Check your work

Your board explains one normal request, one failure, and one decision you changed after reviewing the rubric.

Try it yourself

Take the URL shortener board and give it one popular link that receives most reads. Trace the request during a cache miss, then during a store outage. Save a checkpoint before revising.

What to look for
The revised design should show which path can still serve a cached link and what happens on a miss during the outage. State how stale the cached mapping may be.