GOAT EngineerPreparing your learning space…

System Design · Hatch · Interactive chapter

Ship the Product

Enforce one identity on the write path, then keep the lookup read fast as the table grows.

A URL shortener has two paths with different jobs. Creating a link writes a durable row and must prevent two destinations from claiming the same public code. Resolving a link reads far more often and must find one destination without scanning a growing table.

This public chapter lets you choose the identifier policy, compare a scan with an indexed lookup, and trace the write and read paths through one database. The goal is to connect product promises to specific mechanisms: a uniqueness constraint for identity and an index for lookup.

What you will be able to do

  • Separate a URL shortener’s create and resolve access patterns.
  • Use a database uniqueness rule as the final collision boundary.
  • Explain how an index keeps a selective lookup from growing with the table scan.

Ideas used in the chapter

  • Databases
  • short codes
  • unique constraints
  • B-tree indexes
  • read and write paths

The full interactive lesson is available on this page without an account. Sign in only if you want GOAT Engineer to save your decisions and resume position.

Back to the Hatch saga. Read our Privacy Policy, Terms, or contact [email protected].