TomoLink
CompaniesPhonePeSystem DesignUnique ID Generator
System Design
Mediumcloud-distributed-systems

Unique ID Generator

30 minsID GenerationSystem Design
30 mins
1 sections
ID Generation, System Design

Overview

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.

Unique ID Generator [Medium] | PhonePe System_design | TomoLink