Tagged articles
15 articles
Page 1 of 1
Sohu Tech Products
Sohu Tech Products
Apr 22, 2026 · Databases

How to Resolve ID Conflicts After Sharding? 5 Proven Solutions

When sharding databases, independent auto‑increment IDs can collide, causing data integrity issues; this article explains why the conflict occurs and walks through five practical solutions—including UUID, custom auto‑increment steps, segment mode, Snowflake, and Meituan Leaf—detailing their trade‑offs, performance, and implementation steps.

ID generationLeafdatabase
0 likes · 15 min read
How to Resolve ID Conflicts After Sharding? 5 Proven Solutions
Su San Talks Tech
Su San Talks Tech
Sep 15, 2024 · Backend Development

Mastering Distributed ID Generation: From UUID to Snowflake and Beyond

This article explores common distributed ID generation strategies—including UUID, database auto‑increment, segment allocation, Redis, Zookeeper, Snowflake, and open‑source solutions like Leaf, Tinyid, and Baidu UID‑Generator—detailing their principles, advantages, drawbacks, and implementation examples for high‑performance backend systems.

LeafTinyidZooKeeper
0 likes · 17 min read
Mastering Distributed ID Generation: From UUID to Snowflake and Beyond
Sanyou's Java Diary
Sanyou's Java Diary
May 6, 2024 · Backend Development

Mastering Global ID Generation: From MySQL Auto‑Increment to Snowflake & Leaf

This article compares common global ID generation strategies for microservice architectures, covering database‑level solutions like auto‑increment configuration and MyCat + ZooKeeper, as well as application‑level approaches such as UUID, Snowflake, Leaf (segment and Snowflake modes), Redis, and ZooKeeper, with configuration steps, code samples, and pros‑cons.

JavaLeafdistributed-id
0 likes · 16 min read
Mastering Global ID Generation: From MySQL Auto‑Increment to Snowflake & Leaf
Java Tech Enthusiast
Java Tech Enthusiast
Mar 24, 2024 · Backend Development

Global ID Generation Strategies for Distributed Systems

The article surveys common global ID generation strategies for distributed systems—database‑managed approaches like MySQL auto‑increment and MyCat‑Zookeeper, and Java‑based methods such as UUID, Snowflake, Leaf, Redis INCRBY and direct Zookeeper—comparing their trade‑offs and recommending Leaf (segment or Snowflake mode) or MyCat‑Zookeeper for reliable, scalable identifiers.

BackendLeafZooKeeper
0 likes · 15 min read
Global ID Generation Strategies for Distributed Systems
Senior Tony
Senior Tony
Feb 22, 2024 · Backend Development

Eight Distributed ID Generation Strategies: Pros, Cons, and Implementation Guide

This article reviews eight popular distributed ID generation methods—including UUID, database auto‑increment, Redis INCR, Snowflake, database segment, Meituan Leaf, Didi Tinyid, and Baidu UidGenerator—detailing their principles, code examples, advantages, disadvantages, and practical considerations for choosing the right solution.

LeafTinyiddatabase segment
0 likes · 11 min read
Eight Distributed ID Generation Strategies: Pros, Cons, and Implementation Guide
21CTO
21CTO
Jun 6, 2022 · Backend Development

How Meituan’s Leaf Service Generates High‑Performance Distributed IDs

This guide explains how the Leaf distributed ID service, built with Spring Boot, supports segment and Snowflake modes, details its configuration, deployment steps, code examples, and operational considerations for high‑throughput backend systems.

LeafSpring Bootdistributed-id
0 likes · 6 min read
How Meituan’s Leaf Service Generates High‑Performance Distributed IDs
Java High-Performance Architecture
Java High-Performance Architecture
Feb 26, 2022 · Mobile Development

Top Open‑Source Tools for Mini‑Programs, Android Packaging & Hot‑Update

This article introduces five open‑source projects—mpvue for mini‑program development, Walle for Android channel‑package generation, SQLAdvisor for MySQL index optimization, Leaf for distributed ID generation, and Robust for Android hot‑update—detailing their key features, configuration steps, and source repositories.

LeafMobile DevelopmentRobust
0 likes · 10 min read
Top Open‑Source Tools for Mini‑Programs, Android Packaging & Hot‑Update
Architecture Digest
Architecture Digest
Feb 17, 2022 · Backend Development

Overview of Open‑Source Development Tools: mpvue, Walle, SQLAdvisor, Leaf, and Robust

This article introduces several open‑source development tools—including the Vue‑based mini‑program framework mpvue, the Android channel‑packaging utility Walle, the MySQL index advisor SQLAdvisor, the distributed ID service Leaf, and the Android hot‑fix system Robust—detailing their main features, configuration examples, and GitHub project links.

LeafRobustSQLAdvisor
0 likes · 7 min read
Overview of Open‑Source Development Tools: mpvue, Walle, SQLAdvisor, Leaf, and Robust
Java Architect Essentials
Java Architect Essentials
Aug 31, 2021 · Backend Development

Open‑Source Architecture Tools: mpvue, Walle, SQLAdvisor, Leaf, and Robust

This article introduces several open‑source tools for software architecture—including the Vue‑based mini‑program framework mpvue, the Android channel‑packaging tool Walle, the MySQL index advisor SQLAdvisor, the distributed ID service Leaf, and the hot‑update system Robust—detailing their features, configurations, and GitHub links.

AndroidLeafRobust
0 likes · 7 min read
Open‑Source Architecture Tools: mpvue, Walle, SQLAdvisor, Leaf, and Robust
Java Architect Essentials
Java Architect Essentials
Aug 16, 2021 · Backend Development

Overview of Meituan-Dianping Open-Source Development Tools: mpvue, Walle, SQLAdvisor, Leaf, and Robust

This article introduces several Meituan‑Dianping open‑source tools—including the mpvue front‑end framework, Walle channel‑packaging plugin, SQLAdvisor index‑optimization utility, Leaf distributed ID service, and Robust hot‑update system—detailing their main features, configuration steps, and source repositories.

DevToolsLeafOpenSource
0 likes · 9 min read
Overview of Meituan-Dianping Open-Source Development Tools: mpvue, Walle, SQLAdvisor, Leaf, and Robust
Yanxuan Tech Team
Yanxuan Tech Team
Mar 5, 2021 · Backend Development

How We Built a High‑Availability Distributed ID Service for Order Management

This article explains why Yanxuan needed a distributed ID system, describes the selection of Leaf's segment mode, details architectural optimizations such as double‑buffering and dynamic step adjustment, shares operational safeguards, and outlines the pitfalls and solutions discovered during implementation.

Leafdistributed-idhigh-availability
0 likes · 13 min read
How We Built a High‑Availability Distributed ID Service for Order Management
NetEase Yanxuan Technology Product Team
NetEase Yanxuan Technology Product Team
Mar 4, 2021 · Backend Development

How We Built a High‑Availability Distributed ID Service with Leaf

This article details the motivation, design choices, architecture, performance optimizations, and operational lessons learned while implementing a distributed ID generation system using Leaf's segment mode to achieve global uniqueness, high availability, and low latency for large‑scale e‑commerce services.

Backend ArchitectureJavaLeaf
0 likes · 13 min read
How We Built a High‑Availability Distributed ID Service with Leaf
macrozheng
macrozheng
Mar 31, 2020 · Backend Development

Mastering Distributed ID Generation: 9 Proven Methods and Their Trade‑offs

This article explains why distributed IDs are essential, outlines the key requirements for a global unique identifier, and compares nine popular generation strategies—including UUID, database auto‑increment, segment mode, Redis, Snowflake, TinyID, Baidu uid‑generator, and Meituan Leaf—detailing their advantages, drawbacks, and sample implementations.

LeafUID generatordistributed-id
0 likes · 21 min read
Mastering Distributed ID Generation: 9 Proven Methods and Their Trade‑offs
Meituan Technology Team
Meituan Technology Team
Apr 21, 2017 · Backend Development

Design and Implementation of Meituan's Distributed ID Generation System Leaf

Meituan’s Leaf system merges segment‑based caching with Snowflake‑style bit fields to deliver globally unique, trend‑increasing 64‑bit IDs at ultra‑low latency, using double‑buffered DB segments, master‑slave MySQL replication, Zookeeper‑assigned worker IDs, and clock‑rollback safeguards, achieving ~50 k QPS and 1 ms 99.9th‑percentile response across billions of daily IDs.

BackendDistributed SystemsID generation
0 likes · 18 min read
Design and Implementation of Meituan's Distributed ID Generation System Leaf