---
title: "Snowflake ID design"
description: "Pack a timestamp, a worker identity and a sequence into one sortable integer: field ranges, filling one millisecond, assigning workers, and serialization."
canonical_url: "https://fanout.sh/system/archive/snowflake-id-design"
md_url: "https://fanout.sh/system/archive/snowflake-id-design.md"
last_updated: "2026-11-11"
access: "pro-preview"
---

# Snowflake ID design

Pack a timestamp, a worker identity and a sequence into one sortable integer: field ranges, filling one millisecond, assigning workers, and serialization.

- Access: Fanout Pro (public preview)

## The core idea

A Snowflake-style generator packs time, a worker identity and a sequence into one integer.

Assigned workers can generate locally, while the time prefix makes their values roughly sortable by generation time.

## In this lesson

- Give each field a fixed range
- Fill one millisecond
- Worker assignment is part of correctness
- Keep every bit through serialization

## Continue reading

Pro unlocks video lessons, visual walkthroughs, full notes, diagrams, case studies, and implementations across the System Design archive.

---
This representation contains public Fanout content only. Protected Pro lessons, account data, billing, checkout, and pricing are not included.

Browse the public content map: https://fanout.sh/sitemap.md
