provides an abstraction for scaling unique ids from 32 bits to any addressing sizes
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Distributed id generator

Data structure

IDs are defined as uint64 arrays.

type ID uint64[]

The id size gets incremented as needed by the system

API Abstraction

  • ID comparaison
  • Hashing

Soft limit

  • Max number of 64 bits chunks


further documentation on dgraph existing codebase is need here.

interface Generator{
    // Initialization context
    Init(InitiatilizationContext) error,
    Synchronize(SynchronizationContext) error,
    GetCurrentState() error,
    NextID() ID