# didi/tinyid

ID Generator id生成器 分布式id生成系统，简单易用、高性能、高可用的id生成系统

Repository: https://github.com/didi/tinyid
Canonical: https://ross.abutalabs.com/products/tinyid
Language: Java
License: Apache-2.0
License Family: permissive
Archived: true
Last push: 2022-06-21T00:47:59+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2898, "days_push": 1535, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2355, forks 596 (observed 2026-08-28T04:06:40.575540+00:00)

## What it is
Tinyid is a distributed unique ID generator service built in Java, backed by MySQL, exposing a REST API and a high-performance Java client. It supports over 10 million QPS per instance via the client and allows configurable delta/remainder sequences for custom ID patterns.

## Use cases
- generate unique distributed ids for database primary keys
- get high-throughput sequential ids in a java microservice
- fetch ids over a rest api from non-java services
- generate odd or stepped id sequences like 1,3,5,7
- batch-generate multiple ids in one call

## When to choose
- you need globally unique numeric ids across multiple services or datacenters
- you want a self-hosted alternative to leaf/snowflake-style id services with mysql storage
- your java application needs millions of id generations per second

## When to avoid
- you only need single-instance auto-increment ids from your database
- you require string or uuid-style ids rather than numeric sequences
- you need an actively developed project with recent releases

## Facets
- artifact type: service
- maturity: maintenance
- function: api-framework, http-server, database
- domain: backend, microservices, developer-tools
- platform: jvm, self-hosted
- tags: id-generator, distributed-id, unique-ids, mysql, rest-api, java-client, web-server

## Member repositories
- didi/tinyid (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:40.575540+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-30T02:36:26.813561+00:00, confidence not recorded.
  - readme: https://github.com/didi/tinyid (fetched 2026-08-28T04:06:40.575540+00:00, sha b2c20ade955b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
