ByteByteGo Logo
ID Generation System Design

Unique ID Generator

Explore unique ID generation for scalable backend systems.

IDs are very important for the backend. Do you know how to generate globally unique IDs?

In this post, we explore common requirements for IDs that are used in social media such as Facebook, Twitter, and LinkedIn.

Requirements:

  • Globally unique

  • Roughly sorted by time

  • Numerical values only

  • 64 bits

  • Highly scalable, low latency

The implementation details of the algorithms can be found online so we will not go into detail here.