Meituan-Dianping/Leaf
Distributed ID Generate Service observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2822
- days_rel: n/a
- days_push: 1142
- n_releases_24m: 0
Adoption not part of the score
6765 stars · 1865 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Leaf is a distributed unique ID generation service from Meituan offering segment (database-based) and snowflake (ZooKeeper-based) modes, deployable as a Spring Boot HTTP server or used as a Java library. It is battle-tested at Meituan with ~50k QPS and sub-millisecond TP999 latency.
Use cases
- generate unique distributed ids for microservices
- replace uuid with ordered unique ids
- build an id distribution center for SOA architecture
- generate order ids for e-commerce at high qps
- snowflake id generation with zookeeper worker assignment
- database-backed segment id allocation
When to choose
- you need globally unique, roughly ordered IDs across services in a JVM stack
- you want a proven, high-throughput ID generator with both DB-segment and snowflake modes
- you can run a small HTTP ID service backed by MySQL or ZooKeeper
When to avoid
- you only need single-machine unique IDs (UUIDs suffice)
- your stack is not JVM-based and you cannot call the HTTP server
- you need an actively developed project with frequent releases
Facets
library · maturity maintenance
database http-server sdk microservices backend developer-tools jvm distributed-id-generation snowflake segment-mode unique-ids microservices docker web-server
1 source
- readme: https://github.com/Meituan-Dianping/Leaf · fetched 2026-08-28 · eaccfaa25a59
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Meituan-Dianping/Leaf | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="Meituan-Dianping/Leaf")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem