Skip to content
Theory · Unique ID generator · lesson 2 of 10

Estimates

Estimates in this prompt work differently from the URL shortener's. There is almost nothing to store: an ID is eight bytes in someone else's table. Instead you check two things: whether the systems on the path of the ID stream can carry it, and whether 64 bits have room for the next 50 years. The format cannot change later, so a wrong estimate here costs more than a spare server.

In this lesson

  • Why not one shared counter
  • How to split 64 bits
  • Load on shared systems
  • Key points