awesome-repositories.com
Blog
MCP
awesome-repositories.com

Entdecke die besten Open-Source-Repositories mit KI-gestützter Suche.

EntdeckenKuratierte SuchenOpen-Source-AlternativenSelf-hosted SoftwareBlogSitemap
ProjektMCP-ServerÜber unsRanking-MethodikPresse
RechtlichesDatenschutzAGB
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
Meituan-Dianping avatar

Meituan-Dianping/Leaf

0
View on GitHub↗
6,730 Stars·1,875 Forks·Java·apache-2.0·12 Aufrufe

Leaf

Leaf is a distributed unique ID generation system that provides two distinct modes for producing identifiers across multiple application instances without central coordination. It offers both a database-backed segment mode, which allocates blocks of IDs from a database table and caches them in memory for high throughput, and a Snowflake-style mode that combines timestamps, worker identifiers, and sequence counters to produce time-sortable unique IDs.

The system distinguishes itself by offering dual-mode generation through a single RESTful endpoint, allowing applications to choose between segment-based allocation for maximum throughput or Snowflake-style generation for time-ordered IDs with minimal persistence. Worker identity coordination ensures no duplicate IDs across distributed nodes, while the segment mode's in-memory caching minimizes per-request database calls. A web-based monitoring dashboard provides visibility into the current state of ID segment caches per business tag, helping operators track consumption.

The system supports globally unique identifier management across services and data centers, with both generation modes designed for high-performance, low-latency operation. It provides a stateless HTTP endpoint that any HTTP client can call to obtain unique identifiers for specific business tags, making integration straightforward for microservice architectures.

Features

  • Database Segment Allocators - Reserves and hands out blocks of unique IDs from a database to avoid per-request round-trips.
  • Unique Identifier Generators - Assigns IDs that are unique across services, data centers, or geographic regions without central coordination.
  • Distributed Identifier Generators - Generates large volumes of unique, non-colliding identifiers across distributed instances without central coordination.
  • Batch ID Caches - Caches blocks of pre-allocated IDs in memory for high-throughput local allocations.
  • Segment Preallocation Strategies - Preallocates ID ranges in a database table and serves them from memory to reduce per-request writes.
  • Snowflake ID Compositions - Composes 64-bit time-sortable IDs from timestamp, worker ID, and sequence counter.
  • Distributed ID Generators - Generates large volumes of unique, non-colliding identifiers across multiple application instances.
  • Dual-Mode ID Generators - Offers both segment-based and Snowflake-style ID generation through a single endpoint.
  • High-Throughput ID Generators - Delivers unique IDs at scale without central coordination, supporting both segment and timestamp-based schemes.
  • Snowflake ID Generators - Produces time-ordered unique IDs using timestamp, worker ID, and sequence counter.
  • Millisecond Clock Sequences - Generates sequence numbers that reset per millisecond for unique, ordered IDs within the same timestamp.
  • Master-Worker Coordination - Uses coordination mechanisms to assign unique worker identities at startup.
  • Worker Identity Assignments - Assigns unique worker identities at startup via coordination to prevent duplicate IDs across nodes.
  • ID Services - Provides a low-latency, scalable endpoint for obtaining unique identifiers under load.
  • Segment Caching Refills - Reserve a range of IDs in a database table and serve them from memory, refilling the range when exhausted to reduce database load.
  • ZooKeeper Worker Assignments - Produce time-ordered unique IDs using a worker ID assigned through ZooKeeper and a local timestamp-based algorithm.
  • Time-Sortable - Providing identifiers that naturally sort by creation time, enabling efficient range queries and ordered storage.
  • Database Tools - Distributed ID generation service.

Star-Verlauf

Star-Verlauf für meituan-dianping/leafStar-Verlauf für meituan-dianping/leaf

KI-Suche

Entdecke weitere awesome Repositories

Beschreibe in einfachen Worten, was du brauchst — die KI bewertet tausende kuratierte Open-Source-Projekte nach Relevanz.

Start searching with AI

Open-Source-Alternativen zu Leaf

Ähnliche Open-Source-Projekte, sortiert nach der Anzahl der gemeinsamen Funktionen mit Leaf.
  • twitter-archive/snowflakeAvatar von twitter-archive

    twitter-archive/snowflake

    7,775Auf GitHub ansehen↗

    Snowflake is a distributed unique ID generation service designed to produce non-colliding, time-ordered identification numbers at high scale. It functions as a scalable ID issuer that creates distinct entity identifiers across multiple server nodes to avoid coordination bottlenecks. The system utilizes stateless identifier coordination, calculating unique IDs through a deterministic mathematical formula rather than relying on a central database to track the last issued number. This approach allows it to generate identifiers for distributed database primary keys and high-scale transaction trac

    Scala
    Auf GitHub ansehen↗7,775
  • baidu/uid-generatorAvatar von baidu

    baidu/uid-generator

    5,572Auf GitHub ansehen↗

    This project is a distributed unique ID generator designed to produce 64-bit globally unique and sortable identifiers across multiple nodes. It implements a Snowflake-compatible algorithm that prevents collisions by combining timestamps, worker identifiers, and sequence numbers into a single integer. The system includes a worker ID orchestrator to allocate and maintain unique machine identities during instance startup and migration using database-backed strategies. To increase request throughput and reduce latency, it utilizes a ring-buffer caching layer that pre-generates identifiers and emp

    Java
    Auf GitHub ansehen↗5,572
  • sony/sonyflakeAvatar von sony

    sony/sonyflake

    4,382Auf GitHub ansehen↗

    Sonyflake is a distributed unique ID library that creates collision-free, chronologically ordered identifiers across multiple machines. It functions as a time-based generator that encodes timestamps into IDs, ensuring that identifiers are monotonically sorted. The system operates without a central coordinating authority, producing unique IDs across distributed nodes without requiring shared state communication or central locks. It prevents collisions between different nodes by incorporating host-aware machine identifiers, which are resolved using private network addresses or cloud instance me

    Gogolangid-generator
    Auf GitHub ansehen↗4,382
  • ulid/specAvatar von ulid

    ulid/spec

    10,753Auf GitHub ansehen↗

    This project provides the official specification for ULIDs, which are 128-bit identifiers that combine a millisecond-precision timestamp and random data. These identifiers are designed to be lexicographically sortable, ensuring that they maintain a strict chronological sequence for database indexing and time-based sorting. The specification defines a standard for binary-to-string serialization using a Crockford-inspired Base32 alphabet. This encoding is intended to produce human-readable strings while excluding ambiguous characters to prevent transcription errors. The technical standards cov

    Auf GitHub ansehen↗10,753
Alle 30 Alternativen zu Leaf anzeigen→

Häufig gestellte Fragen

Was macht meituan-dianping/leaf?

Leaf is a distributed unique ID generation system that provides two distinct modes for producing identifiers across multiple application instances without central coordination. It offers both a database-backed segment mode, which allocates blocks of IDs from a database table and caches them in memory for high throughput, and a Snowflake-style mode that combines timestamps, worker identifiers, and sequence counters to produce time-sortable unique IDs.

Was sind die Hauptfunktionen von meituan-dianping/leaf?

Die Hauptfunktionen von meituan-dianping/leaf sind: Database Segment Allocators, Unique Identifier Generators, Distributed Identifier Generators, Batch ID Caches, Segment Preallocation Strategies, Snowflake ID Compositions, Distributed ID Generators, Dual-Mode ID Generators.

Welche Open-Source-Alternativen gibt es zu meituan-dianping/leaf?

Open-Source-Alternativen zu meituan-dianping/leaf sind unter anderem: twitter-archive/snowflake — Snowflake is a distributed unique ID generation service designed to produce non-colliding, time-ordered identification… baidu/uid-generator — This project is a distributed unique ID generator designed to produce 64-bit globally unique and sortable identifiers… sony/sonyflake — Sonyflake is a distributed unique ID library that creates collision-free, chronologically ordered identifiers across… ulid/spec — This project provides the official specification for ULIDs, which are 128-bit identifiers that combine a… admol/systemdesign — This project is a reference library of architectural blueprints, study materials, and design patterns for building… apachecn/interview — This project is a comprehensive knowledge base and study resource designed for mastering technical interviews. It…