# baidu/uid-generator

UniqueID generator

Repository: https://github.com/baidu/uid-generator
Canonical: https://ross.abutalabs.com/products/uid-generator
Language: Java
License: Apache-2.0
License Family: permissive
Last push: 2023-05-31T08:04:59+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3446, "days_push": 1190, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5562, forks 1547 (observed 2026-08-28T04:09:22.380350+00:00)

## What it is
UidGenerator is a Java library that generates unique 64-bit IDs based on the Snowflake algorithm, working as an embeddable component with configurable worker ID bits and initialization strategies. It improves on vanilla Snowflake with RingBuffer caching, cache-line padding, and future-time consumption to reach over 6 million QPS per instance.

## Use cases
- generate unique IDs for distributed database primary keys
- assign unique order IDs in a high-throughput e-commerce system
- generate unique identifiers in Docker or virtualized environments
- replace Twitter Snowflake with a higher-throughput Java ID generator
- generate non-sequential unique IDs for microservices

## When to choose
- you need high-throughput unique ID generation in a Java application
- you run in virtualized/containerized environments where worker ID assignment is tricky
- you want configurable Snowflake bit allocation and worker ID strategies

## When to avoid
- your stack is not Java/JVM based
- you need globally coordinated IDs with strict ordering guarantees
- you want a standalone ID generation service rather than an embedded component
- you need an actively developed project - updates are infrequent

## Facets
- artifact type: library
- maturity: maintenance
- function: sdk, concurrency, developer-tools
- domain: microservices, databases, backend, developer-tools
- platform: jvm
- tags: snowflake, unique-id, id-generator, ring-buffer, high-throughput, docker

## Member repositories
- baidu/uid-generator (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:22.380350+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:55:38.097320+00:00, confidence not recorded.
  - readme: https://github.com/baidu/uid-generator (fetched 2026-08-28T04:09:22.380350+00:00, sha ec6fee001595)
- Data as of 2026-08-30T08:39:29.467469+00:00.
