Tagged articles
93 articles
Page 1 of 1
Architect's Guide
Architect's Guide
May 11, 2026 · Backend Development

Why UUID Falls Short and How Snowflake Solves Distributed ID Generation

The article examines the limitations of UUIDs for distributed systems, outlines the strict requirements for global unique IDs, compares common approaches such as database auto‑increment and Redis, and provides a detailed analysis of Twitter's Snowflake algorithm with its structure, Java implementation, advantages, drawbacks, and mitigation strategies.

Backenddistributed-idjava
0 likes · 14 min read
Why UUID Falls Short and How Snowflake Solves Distributed ID Generation
Architecture Digest
Architecture Digest
Apr 6, 2026 · Backend Development

Why UUIDv7 Is the Ideal Distributed ID Solution for Java 26 and How to Use It Safely

The article explains how Java 26’s native support for RFC 9562 UUIDv7 provides an ordered, unique, and standards‑compliant distributed identifier, compares it with traditional UUIDs and Snowflake, shows the new API usage, highlights hidden pitfalls, and offers practical best‑practice guidelines for production deployment.

JDKTime‑based UUIDUUIDv7
0 likes · 6 min read
Why UUIDv7 Is the Ideal Distributed ID Solution for Java 26 and How to Use It Safely
Architect's Guide
Architect's Guide
Jan 27, 2026 · Databases

How to Scale an Order System with Sharding, Distributed IDs, and Seata Transactions

This article details a comprehensive redesign of a high‑traffic order system, covering the challenges of massive data volume, concurrency pressure, and poor scalability, and presenting a step‑by‑step solution that includes sharding strategy selection, database product comparison, unique ID generation, middleware choice, migration plan, risk mitigation, and FAQ handling.

Backend ArchitectureSeatadatabase scaling
0 likes · 17 min read
How to Scale an Order System with Sharding, Distributed IDs, and Seata Transactions
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jan 21, 2026 · Backend Development

Generate Time‑Ordered IDs with TSID in Spring Boot 3

This guide explains why random UUIDs are inefficient as primary keys, introduces the TSID library that creates 64‑bit time‑ordered identifiers, and provides step‑by‑step Maven setup, API usage, JPA integration, and testing examples for Spring Boot 3.5.0.

Spring BootTSIDUUID alternative
0 likes · 10 min read
Generate Time‑Ordered IDs with TSID in Spring Boot 3
Coder Trainee
Coder Trainee
Jan 11, 2026 · Backend Development

Ensuring API Idempotency: Primary Keys, Optimistic Locks, and Token Strategies

The article explains three practical methods for achieving API idempotency—leveraging unique database primary keys (with distributed IDs), applying optimistic locking via version fields, and using a global anti‑repeat token stored in Redis—detailing their applicability, requirements, and operational flow.

API idempotencyRedis tokendistributed-id
0 likes · 3 min read
Ensuring API Idempotency: Primary Keys, Optimistic Locks, and Token Strategies
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Dec 25, 2025 · Backend Development

Choosing the Right Distributed ID Generation Strategy: Auto‑Increment, UUID, Snowflake, and Redis

This guide compares four common distributed ID generation techniques—database auto‑increment, UUID, Twitter’s Snowflake, and Redis INCR—detailing their advantages, drawbacks, and ideal use‑cases, helping architects select the most suitable method for their system’s scalability and performance requirements.

Backendauto_incrementdistributed-id
0 likes · 4 min read
Choosing the Right Distributed ID Generation Strategy: Auto‑Increment, UUID, Snowflake, and Redis
Selected Java Interview Questions
Selected Java Interview Questions
Nov 6, 2025 · Databases

Master Spring Boot ShardingSphere: Step-by-Step MySQL Sharding Guide

This article walks through building a Spring Boot project with ShardingSphere‑JDBC, covering Maven dependencies, YAML configuration, database setup, sharding rules, distributed ID generation, binding tables, and testing, providing a complete, hands‑on guide to implementing MySQL horizontal partitioning in a real‑world application.

ShardingSphereSpring Bootdistributed-id
0 likes · 18 min read
Master Spring Boot ShardingSphere: Step-by-Step MySQL Sharding Guide
Ray's Galactic Tech
Ray's Galactic Tech
Oct 14, 2025 · Backend Development

Choosing the Right Distributed ID Strategy for Spring Boot: A Complete Guide

Generating globally unique, ordered, high‑performance IDs is essential for distributed systems, and this guide compares common ID schemes, outlines key selection criteria, and provides step‑by‑step Spring Boot integration examples using Baidu UidGenerator, CosId, and Snowflake, along with configuration, code, and best‑practice recommendations.

Backendcosiddistributed-id
0 likes · 7 min read
Choosing the Right Distributed ID Strategy for Spring Boot: A Complete Guide
Cognitive Technology Team
Cognitive Technology Team
Aug 24, 2025 · Databases

When Auto‑Increment IDs Exhaust: Risks and Scalable Solutions for MySQL & PostgreSQL

This article examines how auto‑increment primary keys work, the limits of common integer types, the failures that occur when those limits are reached, and practical strategies—including type upgrades, distributed ID generators, sharding, and sequence cycling—to prevent and mitigate ID exhaustion in high‑traffic MySQL and PostgreSQL deployments.

auto_incrementdatabase scalingdistributed-id
0 likes · 9 min read
When Auto‑Increment IDs Exhaust: Risks and Scalable Solutions for MySQL & PostgreSQL
macrozheng
macrozheng
Jun 18, 2025 · Backend Development

Mastering TinyID: A High‑Performance Distributed ID System for Java Backend

This article introduces TinyID, a distributed ID service originally developed by Didi, explains its features, segment‑based architecture, database schema, HTTP and client APIs, configuration steps, and provides practical code examples for integrating the system into Java backend applications.

BackendTinyiddistributed-id
0 likes · 11 min read
Mastering TinyID: A High‑Performance Distributed ID System for Java Backend
Top Architecture Tech Stack
Top Architecture Tech Stack
May 8, 2025 · Backend Development

Distributed ID Generation: Requirements and Common Implementation Schemes

The article explains why traditional auto‑increment primary keys are unsuitable for distributed systems, outlines the business requirements for a distributed ID (global uniqueness, trend and monotonic increase, security), and reviews several generation approaches such as UUID, database auto‑increment, segment mode, Redis, Snowflake, Baidu UidGenerator, Meituan Leaf and Didi TinyID, including their advantages and drawbacks.

distributed-idredissegment mode
0 likes · 14 min read
Distributed ID Generation: Requirements and Common Implementation Schemes
Java Backend Full-Stack
Java Backend Full-Stack
Mar 27, 2025 · Databases

Hands‑On Sharding: Implementing Database and Table Partitioning with Spring Boot and Sharding‑JDBC

This article walks through a complete sharding implementation that splits a user table across four MySQL databases and sixteen tables, discusses challenges such as distributed IDs, transactions, data migration and pagination, and provides full Spring Boot, Sharding‑JDBC, Elasticsearch and Redis configurations with code examples.

ElasticsearchSharding-JDBCSpring Boot
0 likes · 10 min read
Hands‑On Sharding: Implementing Database and Table Partitioning with Spring Boot and Sharding‑JDBC
macrozheng
macrozheng
Dec 23, 2024 · Backend Development

Why MyBatis‑Plus ID Collisions Occur and How Seata’s Optimized Snowflake Solves Them

This article explains the primary‑key duplication issue caused by MyBatis‑Plus in clustered Docker/K8S environments, analyzes the limitations of the standard Snowflake algorithm, and presents Seata’s improved Snowflake implementation that provides globally unique, high‑performance IDs while minimizing database page splits.

Seatadistributed-idmysql
0 likes · 19 min read
Why MyBatis‑Plus ID Collisions Occur and How Seata’s Optimized Snowflake Solves Them
IT Services Circle
IT Services Circle
Dec 9, 2024 · Backend Development

Optimized Snowflake ID Generation with Seata: Solving MyBatis-Plus Duplicate Key Issues

This article analyzes why MyBatis-Plus generates duplicate primary keys in clustered Docker/K8S environments due to worker‑id and datacenter‑id collisions, introduces Seata's improved Snowflake algorithm that decouples from the OS clock, explains its implementation with Java code, and shows how to integrate it as a global ID generator to improve database performance and avoid page splits.

Database PerformanceSeataSnowflake algorithm
0 likes · 18 min read
Optimized Snowflake ID Generation with Seata: Solving MyBatis-Plus Duplicate Key Issues
Su San Talks Tech
Su San Talks Tech
Nov 25, 2024 · Backend Development

How a Snowflake ID Overflow Crashed Our System and What We Learned

A production outage on 2024‑11‑20 was traced to a Snowflake‑based UID generator whose timestamp bits ran out, prompting a detailed post‑mortem that explains the root cause, bit‑allocation analysis, and the steps taken to fix and prevent future ID overflow issues.

Production IncidentSnowflake algorithmUID generator
0 likes · 9 min read
How a Snowflake ID Overflow Crashed Our System and What We Learned
macrozheng
macrozheng
Nov 5, 2024 · Backend Development

Mastering Global Unique ID Generation: 7 Proven Strategies for Distributed Systems

This article explores seven practical approaches to generating globally unique identifiers in distributed environments, covering database‑level configurations, MySQL auto‑increment tweaks, MyCat + Zookeeper integration, UUID limitations, Snowflake algorithm implementation, Meituan's Leaf service, Redis counters, and Zookeeper sequential nodes, providing code snippets and configuration guidance.

ZooKeeperdistributed-idglobal ID
0 likes · 18 min read
Mastering Global Unique ID Generation: 7 Proven Strategies for Distributed Systems
Sohu Tech Products
Sohu Tech Products
Oct 30, 2024 · Backend Development

Redis Distributed ID Generator with SpringBoot 3.0

The article presents a Redis‑based distributed ID generator for Spring Boot 3.0 that uses an atomic INCR on a Redis string to produce compact, monotonic, globally unique numeric identifiers, synchronizes the maximum value with MySQL on startup, and offers high performance, availability, and low storage overhead.

ID generationSpringBootdistributed-id
0 likes · 9 min read
Redis Distributed ID Generator with SpringBoot 3.0
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
Open Source Tech Hub
Open Source Tech Hub
Aug 13, 2024 · Backend Development

How to Generate Distributed Unique IDs with Snowflake in PHP

Learn the fundamentals of Twitter's Snowflake distributed ID algorithm, its 64‑bit structure, and step‑by‑step PHP implementation—including installation via Composer, basic usage, custom data‑center and worker IDs, start timestamps, Laravel integration, and custom sequence resolvers—to generate globally unique, time‑ordered identifiers.

LaravelPHPdistributed-id
0 likes · 6 min read
How to Generate Distributed Unique IDs with Snowflake in PHP
Lobster Programming
Lobster Programming
Jun 15, 2024 · Backend Development

Choosing the Right Distributed ID Generation Strategy for Scalable Systems

This guide examines ten popular distributed ID generation techniques—from simple UUIDs and database auto‑increment keys to advanced Snowflake, Redis, Zookeeper, and open‑source solutions like Baidu uid‑generator, Meituan Leaf, and Didi Tinyid—highlighting their pros, cons, and suitable scenarios for high‑traffic systems.

Backenddistributed-idsnowflake
0 likes · 8 min read
Choosing the Right Distributed ID Generation Strategy for Scalable Systems
Ops Development & AI Practice
Ops Development & AI Practice
May 10, 2024 · Backend Development

How Go’s Snowflake Library Generates Distributed Unique IDs

This article explains the Snowflake distributed ID algorithm, breaks down the Go implementation in the bwmarrin/snowflake package, and details how initialization, node validation, timestamp handling, and bit‑wise composition work together to produce unique, time‑ordered 64‑bit identifiers in high‑concurrency environments.

concurrencydistributed-idsnowflake
0 likes · 10 min read
How Go’s Snowflake Library Generates Distributed Unique IDs
Su San Talks Tech
Su San Talks Tech
Apr 19, 2024 · Backend Development

Distributed Primary Keys in ShardingSphere: Strategies & Custom Implementations

This article explores why distributed primary keys are essential for sharding, compares built‑in ShardingSphere ID generation strategies such as UUID, NanoID, Snowflake, CosId and custom algorithms, details their configuration, performance trade‑offs, and provides code examples for implementing and registering custom key generators.

ShardingSpherecustom algorithmdatabase sharding
0 likes · 17 min read
Distributed Primary Keys in ShardingSphere: Strategies & Custom Implementations
Architect
Architect
Mar 1, 2024 · Backend Development

Distributed ID Generation: Requirements, Common Solutions, and Implementation Details

This article explains what a distributed ID is, outlines its essential requirements such as global uniqueness, high performance, high availability, and ease of use, and then reviews common generation strategies—including database auto‑increment, segment mode, NoSQL approaches, UUID, Snowflake, and several open‑source frameworks—providing code examples and practical trade‑offs.

UID generatordatabasedistributed-id
0 likes · 23 min read
Distributed ID Generation: Requirements, Common Solutions, and Implementation Details
Architect Chen
Architect Chen
Mar 1, 2024 · Backend Development

Mastering the Snowflake Algorithm: Generate Distributed Unique IDs in Java

This article explains the Snowflake algorithm's principles, features, and Java implementation for generating high‑performance, ordered, and globally unique IDs in distributed systems, while highlighting key considerations such as node ID allocation and clock synchronization.

algorithmdistributed-idsnowflake
0 likes · 7 min read
Mastering the Snowflake Algorithm: Generate Distributed Unique IDs in Java
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
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 16, 2023 · Backend Development

Common Distributed Unique ID Generation Strategies and Their Implementation

The article reviews five major distributed unique ID generation methods—including UUID, Redis auto‑increment, database auto‑increment, database segment mode, and Snowflake—explains their principles, advantages, drawbacks, and provides practical integration guides and code examples for Java developers.

Leafdatabase segmentdistributed-id
0 likes · 14 min read
Common Distributed Unique ID Generation Strategies and Their Implementation
Architect
Architect
Nov 10, 2023 · Backend Development

Design and Implementation of a High‑Performance Short‑Link Platform

This article details the architecture, core algorithms, security measures, and performance optimizations of a high‑throughput short‑link service, covering hash‑based ID generation, Base62 encoding, distributed ID schemes, caching, database indexing, sharding, and monitoring to ensure efficient and secure URL shortening.

Backend Architecturebase62distributed-id
0 likes · 13 min read
Design and Implementation of a High‑Performance Short‑Link Platform
Architect
Architect
Nov 9, 2023 · Backend Development

How Vivo’s LuBan Service Generates Billions of Unique IDs with Sub‑millisecond Latency

This article explains the business scenarios that drive the need for globally unique distributed IDs, analyzes the challenges of uniqueness, performance, and availability, and details Vivo's self‑built LuBan ID service—including its architecture, three ID formats, custom extensions, SDK usage, performance optimizations, and real‑world deployment metrics.

Backend ArchitectureLuBanMicroservices
0 likes · 18 min read
How Vivo’s LuBan Service Generates Billions of Unique IDs with Sub‑millisecond Latency
Su San Talks Tech
Su San Talks Tech
Aug 30, 2023 · Backend Development

How Tinyid Generates Globally Unique IDs with Segment Allocation

Tinyid is a Didi‑developed distributed ID system that uses a segment‑allocation algorithm to provide globally unique, trend‑increasing long IDs via HTTP or a Java client, supporting multi‑master databases and batch retrieval while offering configurable token‑based access control.

Tinyiddistributed-idjava
0 likes · 12 min read
How Tinyid Generates Globally Unique IDs with Segment Allocation
Zhuanzhuan Tech
Zhuanzhuan Tech
Aug 9, 2023 · Backend Development

Design and Implementation of a High‑Performance URL Shortening Platform

This article details the architecture, core algorithms, security measures, and performance optimizations of a URL shortener platform, covering hash functions, distributed ID generation, Base62 encoding, caching, database indexing, sharding, and monitoring to achieve efficient and secure link redirection.

base62cachingdistributed-id
0 likes · 11 min read
Design and Implementation of a High‑Performance URL Shortening Platform
vivo Internet Technology
vivo Internet Technology
Jun 28, 2023 · Backend Development

Design and Implementation of Vivo's LuBan Distributed ID Service

The article explains distributed ID concepts and business scenarios, compares nine common generation schemes, and details Vivo’s LuBan service architecture—including three built‑in ID formats, custom SPI extensions, Spring‑Boot SDK usage, performance optimizations, and large‑scale deployment metrics—offering practical guidance for building high‑throughput, globally unique ID systems.

Backend ArchitectureID generationMicroservices
0 likes · 16 min read
Design and Implementation of Vivo's LuBan Distributed ID Service
Programmer DD
Programmer DD
May 15, 2023 · Backend Development

Choosing the Right Distributed ID Strategy: UUID, Snowflake, Segment, Redis, and More

This article examines various distributed ID generation techniques—including UUID, database auto‑increment, segment mode, Redis INCR, Snowflake, Meituan Leaf, Baidu UidGenerator, and Didi TinyID—detailing their principles, advantages, drawbacks, and code examples to help developers select the most suitable solution for their systems.

Segmentdistributed-idredis
0 likes · 16 min read
Choosing the Right Distributed ID Strategy: UUID, Snowflake, Segment, Redis, and More
Java High-Performance Architecture
Java High-Performance Architecture
Mar 19, 2023 · Databases

Mastering Distributed ID Generation: From UUID to Snowflake and Beyond

This article explores various distributed ID generation strategies—including UUID, database auto‑increment, segment mode, Redis INCR, Snowflake, Meituan Leaf, Baidu UidGenerator, and Didi TinyID—detailing their principles, advantages, drawbacks, and Java code examples to help developers choose the right solution for high‑scale systems.

distributed-idjavaredis
0 likes · 16 min read
Mastering Distributed ID Generation: From UUID to Snowflake and Beyond
Top Architect
Top Architect
Mar 19, 2023 · Backend Development

Distributed Global Unique ID Generation: Requirements, Common Solutions, and Snowflake Implementation

The article explains why distributed systems need globally unique identifiers, outlines strict generation rules and availability requirements, compares common approaches such as UUID, database auto‑increment and Redis, and provides a detailed overview and Java implementation of Twitter's Snowflake algorithm.

distributed-idredissnowflake
0 likes · 14 min read
Distributed Global Unique ID Generation: Requirements, Common Solutions, and Snowflake Implementation
Code Ape Tech Column
Code Ape Tech Column
Mar 16, 2023 · Backend Development

Designing a 100W QPS Short URL System: Architecture, ID Generation, and High‑Concurrency Strategies

This article explains how to design a high‑performance short‑URL service capable of handling 1 million queries per second, covering system background, URL shortening principles, base‑62 encoding, distributed ID generation options, storage sharding, ambiguity checking with Bloom filters, multi‑level caching, and redirect handling.

Backend Architecturebloom-filterdistributed-id
0 likes · 20 min read
Designing a 100W QPS Short URL System: Architecture, ID Generation, and High‑Concurrency Strategies
Top Architect
Top Architect
Mar 6, 2023 · Backend Development

Distributed ID Generation Strategies: UUID, Auto‑Increment, Segment Mode, Redis INCR, Snowflake and Open‑Source Implementations

This article introduces various distributed ID generation methods—including UUID, database auto‑increment, segment mode, Redis INCR, Snowflake algorithm—and compares open‑source solutions from Meituan (Leaf), Baidu (Uidgenerator) and Didi (TinyID), providing code examples and practical guidance for backend systems.

distributed-idjava
0 likes · 16 min read
Distributed ID Generation Strategies: UUID, Auto‑Increment, Segment Mode, Redis INCR, Snowflake and Open‑Source Implementations
Top Architect
Top Architect
Dec 19, 2022 · Backend Development

Distributed ID Generation: Requirements, Schemes, and Implementations

This article explains why distributed ID generation is needed in micro‑service architectures, outlines business requirements such as global uniqueness and monotonicity, and surveys common generation schemes—including UUID, database auto‑increment, segment mode, Redis, Snowflake, Baidu UidGenerator, Meituan Leaf, and Didi TinyID – with code examples and pros/cons.

Backenddistributed-idsnowflake
0 likes · 13 min read
Distributed ID Generation: Requirements, Schemes, and Implementations
Top Architect
Top Architect
Dec 6, 2022 · Backend Development

Distributed ID Generation: Principles, Requirements, and Common Solutions

The article explains why traditional auto‑increment primary keys are unsuitable for distributed systems, outlines the key requirements for a distributed identifier, and reviews several practical generation schemes—including UUID, database auto‑increment, segment mode, Redis, Snowflake, Baidu UidGenerator, Meituan Leaf, and Didi TinyID—along with their advantages, drawbacks, and sample implementations.

BackendID generationdistributed-id
0 likes · 13 min read
Distributed ID Generation: Principles, Requirements, and Common Solutions
Architect
Architect
Dec 5, 2022 · Backend Development

Distributed ID Generation: Requirements, Schemes, and Implementations

This article explains why distributed systems need special ID generation, outlines the key requirements such as global uniqueness and monotonicity, and compares various solutions including UUID, database auto‑increment, segment mode, Redis, Snowflake, Baidu UidGenerator, Meituan Leaf, and Didi TinyID.

ID generationdistributed-idredis
0 likes · 13 min read
Distributed ID Generation: Requirements, Schemes, and Implementations
Top Architect
Top Architect
Nov 29, 2022 · Backend Development

Distributed ID Generation Strategies: UUID, Auto‑Increment, Segment Mode, Redis, Snowflake, Baidu UidGenerator, Meituan Leaf, Didi TinyID

This article explains why distributed ID generation is needed, outlines business requirements such as global uniqueness and monotonicity, and compares eight practical schemes—including UUID, database auto‑increment, segment mode, Redis, Snowflake, Baidu UidGenerator, Meituan Leaf, and Didi TinyID—detailing their advantages, disadvantages, and implementation examples.

BackendSegmentdistributed-id
0 likes · 16 min read
Distributed ID Generation Strategies: UUID, Auto‑Increment, Segment Mode, Redis, Snowflake, Baidu UidGenerator, Meituan Leaf, Didi TinyID
Java High-Performance Architecture
Java High-Performance Architecture
Nov 28, 2022 · Backend Development

Mastering Distributed ID Generation: Strategies, Pros, and Code Samples

This article explains why distributed ID generation is essential for modern micro‑service architectures, outlines the key requirements such as global uniqueness and monotonicity, and compares popular solutions like UUID, database auto‑increment, segment mode, Redis, Snowflake, Baidu UidGenerator, Meituan Leaf, and Didi TinyID with practical code examples.

BackendID generationdistributed-id
0 likes · 13 min read
Mastering Distributed ID Generation: Strategies, Pros, and Code Samples
Architecture Digest
Architecture Digest
Nov 18, 2022 · Backend Development

Design and Implementation of a Short URL Service

This article explains the value of short URLs, the HTTP redirection principle behind them, and provides detailed design and implementation strategies—including hash‑based and distributed‑ID approaches, base‑62 encoding, database storage, caching, indexing, and security measures—to build a scalable short‑link service.

HTTP redirectcachingdatabase indexing
0 likes · 12 min read
Design and Implementation of a Short URL Service
Wukong Talks Architecture
Wukong Talks Architecture
Nov 15, 2022 · Backend Development

Investigation of Snowflake ID Generation Failures Caused by Clock Rollback and Mitigation Strategies

This article analyzes a production incident where duplicate IDs were generated by the Snowflake algorithm due to server clock rollback, explains the algorithm's structure and pitfalls, and presents several open‑source solutions such as Meituan Leaf, Baidu UidGenerator, and Redis for reliable distributed ID generation.

Clock rollbackID generationNTP
0 likes · 8 min read
Investigation of Snowflake ID Generation Failures Caused by Clock Rollback and Mitigation Strategies
Top Architect
Top Architect
Nov 11, 2022 · Backend Development

Distributed ID Generation Service: Features, Scenarios, and Implementation

This article explains the need for globally unique identifiers in modern applications, outlines the essential characteristics of a distributed ID generation service, examines common implementation techniques, and discusses concrete business scenarios such as order numbers, coupons, short URLs, and tracing with practical code examples.

BackendPHPcoupon code
0 likes · 18 min read
Distributed ID Generation Service: Features, Scenarios, and Implementation
Baidu Geek Talk
Baidu Geek Talk
Oct 20, 2022 · Backend Development

Choosing the Right Distributed ID Generation Strategy for Different Business Scenarios

This article analyzes the diverse business requirements for unique identifiers—such as order numbers, QR‑code payments, coupons, trace IDs, and short URLs—and compares technical implementations like Redis auto‑increment, Snowflake, and custom base‑62 encoding to help engineers select the most suitable distributed ID generation solution.

Backend ArchitectureID generationTrace ID
0 likes · 19 min read
Choosing the Right Distributed ID Generation Strategy for Different Business Scenarios
Selected Java Interview Questions
Selected Java Interview Questions
Sep 1, 2022 · Backend Development

Designing Distributed Global Unique ID Generation: Snowflake Algorithm and Practical Implementations

This article explains the need for globally unique, trend‑increasing IDs in distributed systems, evaluates common solutions such as UUIDs, database auto‑increment, Redis counters, and presents a detailed Java implementation of Twitter's Snowflake algorithm with code examples, deployment tips, and a discussion of its advantages and drawbacks.

Backenddistributed-idsnowflake
0 likes · 15 min read
Designing Distributed Global Unique ID Generation: Snowflake Algorithm and Practical Implementations
Tencent Cloud Developer
Tencent Cloud Developer
Aug 24, 2022 · Backend Development

Go Distributed ID Generation: UUID, ShortUUID, XID, KSUID, ULID, Snowflake, and Segment Modes

The article surveys Go‑based distributed ID generation techniques—from UUID, short‑UUID, XID, KSUID, ULID, and Snowflake to database auto‑increment, Redis, ZooKeeper, and segment/leaf approaches—detailing their characteristics, trade‑offs, implementation snippets, and strategies for ordering, uniqueness, and clock‑rollback handling.

GoSegmentdatabase
0 likes · 12 min read
Go Distributed ID Generation: UUID, ShortUUID, XID, KSUID, ULID, Snowflake, and Segment Modes
Su San Talks Tech
Su San Talks Tech
Aug 11, 2022 · Backend Development

How to Choose the Right Distributed ID Generator for Your System

This article examines common distributed ID generation strategies—including UUID, Snowflake-like algorithms, database auto‑increment, and Redis atomic increment—detailing their requirements, advantages, drawbacks, and suitable scenarios to help engineers select the most appropriate solution for high‑performance, secure systems.

distributed-idredissnowflake
0 likes · 12 min read
How to Choose the Right Distributed ID Generator for Your System
政采云技术
政采云技术
Jun 28, 2022 · Backend Development

Understanding the Snowflake Algorithm: Principles, Issues, and Solutions

This article explains Twitter's open‑source Snowflake distributed ID generation algorithm, detailing its bit‑field structure, common pitfalls such as clock rollback and JavaScript precision limits, and practical mitigation strategies for high‑concurrency, sharding, and sequence handling.

Scalabilityalgorithmbackend-development
0 likes · 7 min read
Understanding the Snowflake Algorithm: Principles, Issues, and Solutions
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
Top Architect
Top Architect
Apr 30, 2022 · Backend Development

Scaling Strategies, Hardware Expansion, and Distributed ID Generation in Backend Systems

The article explains why capacity expansion is needed, compares whole‑machine and component‑level scaling, introduces the AKF splitting principle, discusses challenges of distributed architectures, and reviews database clustering and distributed ID generation techniques such as UUID and Snowflake.

Backend Architecturedistributed-idelastic scaling
0 likes · 12 min read
Scaling Strategies, Hardware Expansion, and Distributed ID Generation in Backend Systems
Top Architect
Top Architect
Apr 4, 2022 · Backend Development

Designing a Distributed Global Unique ID Generation System: From UUID to Snowflake

This article explains the challenges of generating globally unique identifiers in distributed systems and presents various solutions—including UUID, database auto‑increment, Redis atomic counters, and the Snowflake algorithm—detailing their requirements, implementations in Java and SpringBoot, and their pros and cons.

Backenddistributed-idjava
0 likes · 15 min read
Designing a Distributed Global Unique ID Generation System: From UUID to Snowflake
Sanyou's Java Diary
Sanyou's Java Diary
Mar 10, 2022 · Backend Development

Choosing the Right Distributed ID Strategy for Microservices

This article reviews common distributed ID generation methods—including UUID, database auto‑increment, segment mode, Redis, Snowflake, Baidu UidGenerator, Meituan Leaf, and Zookeeper—detailing their principles, advantages, drawbacks, and suitable scenarios to help developers select the most appropriate solution for their microservice architecture.

BackendMicroservicesdistributed-id
0 likes · 9 min read
Choosing the Right Distributed ID Strategy for Microservices
Senior Brother's Insights
Senior Brother's Insights
Feb 22, 2022 · Backend Development

Mastering Snowflake: Build High‑Performance Distributed IDs in Java

This article explains the Snowflake distributed ID algorithm, compares it with other ID generation methods, details its 64‑bit structure, provides a complete Java implementation with thread‑safe code, and discusses practical limits such as the 69‑year timestamp and front‑end numeric handling.

Backenddistributed-idjava
0 likes · 11 min read
Mastering Snowflake: Build High‑Performance Distributed IDs in Java
ITPUB
ITPUB
Jan 26, 2022 · Backend Development

How to Choose the Right Distributed Unique ID Strategy for Your System

This article explains why globally unique identifiers are essential in distributed systems, outlines the key characteristics of a good ID scheme, and compares several generation methods—including UUID, database auto‑increment, segmented DB ranges, Redis INCR, Zookeeper, Meituan Leaf, Snowflake, and Baidu uid‑generator—highlighting their advantages, drawbacks, and practical implementation details.

databasedistributed-idhigh-availability
0 likes · 18 min read
How to Choose the Right Distributed Unique ID Strategy for Your System
Su San Talks Tech
Su San Talks Tech
Dec 13, 2021 · Backend Development

Why Distributed IDs Matter and 9 Efficient Generation Methods

This article explains the need for globally unique, high‑performance, and easy‑to‑integrate distributed IDs, outlines their essential characteristics, and compares nine common generation approaches—including UUID, database auto‑increment, segment mode, Redis, Snowflake, Baidu uid‑generator, Meituan Leaf, and Didi TinyID—detailing each method’s advantages and drawbacks.

ID generationdistributed-idredis
0 likes · 20 min read
Why Distributed IDs Matter and 9 Efficient Generation Methods
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Nov 8, 2021 · Operations

How to Scale Your System: From Hardware Expansion to Distributed ID Strategies

This article explains why capacity expansion is necessary, outlines hardware and component scaling strategies, introduces the AKF splitting principle for Redis clusters, discusses challenges of distributed scaling such as data consistency and high concurrency, and reviews database clustering and distributed ID generation methods like UUID and Snowflake.

AKF principlecapacity planningdatabase clustering
0 likes · 14 min read
How to Scale Your System: From Hardware Expansion to Distributed ID Strategies
21CTO
21CTO
Oct 30, 2021 · Operations

Scaling Systems: Hardware Expansion, Distributed IDs, and Elastic Capacity

This article explains why capacity expansion is necessary, outlines hardware and component scaling strategies, introduces AKF splitting principles, discusses database clustering and distributed ID generation methods such as UUID and Snowflake, and highlights the benefits and challenges of elastic scaling.

capacity planningdistributed-idelastic scaling
0 likes · 13 min read
Scaling Systems: Hardware Expansion, Distributed IDs, and Elastic Capacity
dbaplus Community
dbaplus Community
Sep 26, 2021 · Databases

Why MySQL Auto‑Increment Can Leak Data and How Distributed IDs Offer a Safer Alternative

The article examines the 2012 GitHub data‑leak caused by MySQL master‑slave failover and auto_increment misuse, explains why developers' expectations of uniqueness, monotonicity and continuity are unrealistic, and proposes half‑sync replication and distributed ID algorithms like Snowflake as more reliable solutions.

Data ConsistencyDatabase Replicationauto_increment
0 likes · 9 min read
Why MySQL Auto‑Increment Can Leak Data and How Distributed IDs Offer a Safer Alternative
Code Ape Tech Column
Code Ape Tech Column
Sep 9, 2021 · Databases

Sharding-JDBC Introduction and Practical Guide to Database Sharding with ShardingSphere

This article introduces Sharding-JDBC (now ShardingSphere), explains core sharding concepts such as shards, data nodes, logical and physical tables, sharding keys, algorithms and strategies, shows how it extends JDBC, and provides a step‑by‑step Spring Boot + MyBatis‑Plus example for building a sharded database application.

Sharding-JDBCShardingSphereSpring Boot
0 likes · 30 min read
Sharding-JDBC Introduction and Practical Guide to Database Sharding with ShardingSphere
IT Architects Alliance
IT Architects Alliance
Aug 30, 2021 · Backend Development

Tinyid: A High‑Performance Distributed ID Generation System

Tinyid is a Java‑based distributed ID generator that uses a database segment algorithm, supports multiple master databases, offers both HTTP and Java client interfaces, and provides high throughput and availability for billions of IDs daily.

Microservicesdistributed-idhigh availability
0 likes · 11 min read
Tinyid: A High‑Performance Distributed ID Generation System
360 Quality & Efficiency
360 Quality & Efficiency
Jun 4, 2021 · Fundamentals

Understanding the Snowflake Algorithm for Distributed Unique ID Generation

This article explains the background of migrating from MySQL to TiDB, introduces the Snowflake algorithm’s 64‑bit ID structure, discusses its advantages and disadvantages, provides a Python implementation, and highlights its impact on achieving globally unique, time‑ordered identifiers in distributed systems.

PythonTiDBdatabase migration
0 likes · 5 min read
Understanding the Snowflake Algorithm for Distributed Unique ID Generation
Selected Java Interview Questions
Selected Java Interview Questions
May 12, 2021 · Backend Development

Understanding Distributed ID Generation and Snowflake Algorithm in Java

This article explains the concept of distributed unique identifiers, compares segment‑mode and Snowflake implementations, provides a full Java Snowflake code example, and reviews open‑source solutions such as Meituan Leaf and Baidu UidGenerator, offering guidance on selecting and using these ID generation tools in backend systems.

distributed-idjavasnowflake
0 likes · 10 min read
Understanding Distributed ID Generation and Snowflake Algorithm in Java
dbaplus Community
dbaplus Community
Apr 22, 2021 · Operations

Achieving True Multi‑Region Active‑Active: Bidirectional Sync Across Three Data Centers

This article explains how to implement a true multi‑region active‑active architecture by enabling bidirectional data synchronization among three or more data centers, covering CAP trade‑offs, distributed ID generation algorithms, center closure strategies, final consistency mechanisms, and a disaster‑recovery design.

CAP theoremDistributed Systemsdata synchronization
0 likes · 16 min read
Achieving True Multi‑Region Active‑Active: Bidirectional Sync Across Three Data Centers
Programmer DD
Programmer DD
Mar 31, 2021 · Backend Development

How to Choose the Right Distributed ID Generation Strategy for Scalable Systems

This article examines common distributed ID generation methods—including UUID, MySQL auto‑increment, multi‑instance auto‑increment, Snowflake, and Redis—detailing their advantages, drawbacks, and practical use cases, and presents advanced designs such as database‑driven ID blocks, concurrency handling, and double‑buffer techniques for high‑traffic systems.

database shardingdistributed-idredis
0 likes · 13 min read
How to Choose the Right Distributed ID Generation Strategy for Scalable Systems
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 ArchitectureLeafdistributed-id
0 likes · 13 min read
How We Built a High‑Availability Distributed ID Service with Leaf
21CTO
21CTO
Feb 16, 2021 · Backend Development

Mastering Distributed ID Generation: Concepts, Algorithms, and Open‑Source Solutions

This article explains the fundamentals of distributed ID concepts, compares common generation schemes such as UUID, database auto‑increment, Redis counters, and the Snowflake algorithm, details the Snowflake structure and Java implementation, and reviews open‑source components like Meituan Leaf and Baidu UidGenerator.

Snowflake algorithmbackend-developmentdistributed-id
0 likes · 9 min read
Mastering Distributed ID Generation: Concepts, Algorithms, and Open‑Source Solutions
Architecture Digest
Architecture Digest
Jan 30, 2021 · Backend Development

Distributed ID Concepts, Implementation Schemes, and Open‑Source Solutions

This article explains the need for globally unique identifiers in distributed systems, compares common ID generation schemes such as UUID, auto‑increment, Redis counters, and Snowflake, provides a Java implementation of the Snowflake algorithm, and reviews open‑source components like Meituan Leaf and Baidu UidGenerator.

Snowflake algorithmdistributed-idopen-source
0 likes · 12 min read
Distributed ID Concepts, Implementation Schemes, and Open‑Source Solutions
Code Ape Tech Column
Code Ape Tech Column
Dec 28, 2020 · Backend Development

Distributed ID Concepts, Implementation Schemes, and Open‑Source Solutions

This article explains the need for globally unique identifiers in distributed systems, compares common generation schemes such as UUID, database auto‑increment, Redis counters, and Snowflake, and reviews open‑source implementations like Meituan Leaf and Baidu UidGenerator with a Java Snowflake example.

distributed-idjavaopen-source
0 likes · 10 min read
Distributed ID Concepts, Implementation Schemes, and Open‑Source Solutions
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Nov 4, 2020 · Fundamentals

An Overview of Six Distributed ID Generation Algorithms and Their Trade‑offs

This article introduces the concept of distributed IDs, outlines the required properties of global uniqueness, high availability, performance and simplicity, and compares six generation schemes—UUID/GUID, database auto‑increment, random numbers, random strings, Snowflake, and MongoDB ObjectID—detailing their structures, advantages and disadvantages.

MongoDB ObjectIDauto_incrementdistributed-id
0 likes · 8 min read
An Overview of Six Distributed ID Generation Algorithms and Their Trade‑offs
21CTO
21CTO
Aug 12, 2020 · Backend Development

How to Build a High‑Performance Distributed Unique ID Generator with MySQL and Redis

This article explains the challenges of generating globally unique IDs in sharded databases, compares common solutions such as auto‑increment, UUID, Snowflake, and Redis, and presents a practical MySQL‑based design that uses table‑level auto‑increment combined with in‑memory segment allocation to achieve high concurrency, reliability, and performance.

System Designdistributed-idhigh concurrency
0 likes · 9 min read
How to Build a High‑Performance Distributed Unique ID Generator with MySQL and Redis
ITPUB
ITPUB
Jul 28, 2020 · Backend Development

How Tinyid Delivers High‑Performance Distributed ID Generation

Tinyid is a Java‑based distributed ID generation system that extends the leaf‑segment algorithm with multi‑DB support, offering both HTTP and Java client interfaces, high performance through local generation, and robust availability via dual segment caching and configurable database redundancy.

distributed-idhigh performancesegment-algorithm
0 likes · 12 min read
How Tinyid Delivers High‑Performance Distributed ID Generation
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jul 12, 2020 · Backend Development

Distributed ID Generation Techniques Discussed in an Interview with Java Implementations

During a technical interview, the candidate explains various distributed ID generation methods—including database auto‑increment, sharding, batch allocation, UUID, Redis atomic counters, and the Snowflake algorithm—analyzes their pros and cons, and provides Java code examples for Redis‑based and Snowflake ID generators.

distributed-idjavaredis
0 likes · 18 min read
Distributed ID Generation Techniques Discussed in an Interview with Java Implementations
Top Architect
Top Architect
Jun 2, 2020 · Backend Development

Improving Database Auto‑Increment Primary Keys for Distributed ID Generation

This article examines the limitations of using database auto‑increment primary keys for distributed ID generation and presents a segment‑allocation approach, discusses concurrency challenges, and introduces a double‑buffer strategy to reduce database load and improve fault tolerance.

Concurrency ControlID segment allocationdatabase auto-increment
0 likes · 8 min read
Improving Database Auto‑Increment Primary Keys for Distributed ID Generation
Xiao Lou's Tech Notes
Xiao Lou's Tech Notes
May 17, 2020 · Databases

How to Build a High‑Availability, High‑Performance Distributed ID Generator

Distributed systems need globally unique, often monotonic IDs, and this article examines common ID generation strategies—Snowflake, database auto‑increment, segment allocation, multi‑master databases, and Raft‑based consensus—evaluating each for high availability and high performance, and highlighting trade‑offs and implementation details.

Raftdatabasedistributed-id
0 likes · 8 min read
How to Build a High‑Availability, High‑Performance Distributed ID Generator
Java Architecture Diary
Java Architecture Diary
May 2, 2020 · Backend Development

Mastering Snowflake: How Distributed Systems Generate Unique IDs

This article explores various distributed ID generation methods, focusing on Twitter's Snowflake algorithm, detailing its structure, advantages, drawbacks, and comparisons with UUID, database auto-increment, and Redis, while providing implementation insights and references to related open-source solutions.

algorithmdistributed-idsnowflake
0 likes · 7 min read
Mastering Snowflake: How Distributed Systems Generate Unique IDs
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
Architecture Digest
Architecture Digest
Jan 5, 2020 · Databases

Data Sharding, Partitioning, and Distributed ID Strategies for Relational Databases

This article explains why relational databases become bottlenecks at large scale, introduces vertical and horizontal sharding techniques, discusses the challenges of distributed transactions, cross‑shard queries, pagination, and global primary‑key generation, and provides practical guidelines and middleware options for implementing sharding in production systems.

Vertical Partitioningdatabase partitioningdistributed-id
0 likes · 23 min read
Data Sharding, Partitioning, and Distributed ID Strategies for Relational Databases
Java High-Performance Architecture
Java High-Performance Architecture
Dec 3, 2019 · Backend Development

Choosing the Right Distributed ID Strategy: UUID, DB, Redis, Snowflake Explained

Distributed ID systems must be globally unique, incremental, highly available, and secure; this article compares common generation methods—including UUID, database auto‑increment, Redis atomic counters, and the Snowflake algorithm—detailing their advantages, drawbacks, and suitable use‑cases for modern high‑throughput services.

database auto-incrementdistributed-idsnowflake
0 likes · 5 min read
Choosing the Right Distributed ID Strategy: UUID, DB, Redis, Snowflake Explained
macrozheng
macrozheng
Sep 19, 2019 · Backend Development

Mastering Distributed ID Generation: From MySQL Auto‑Increment to Snowflake

This article reviews various distributed ID generation strategies—including MySQL auto‑increment tables, multi‑master configurations, segment allocation, Snowflake algorithm, and open‑source solutions like Baidu uid‑generator and Meituan Leaf—highlighting their designs, trade‑offs, and implementation details for high‑performance backend systems.

distributed-idmysqlsegment allocation
0 likes · 13 min read
Mastering Distributed ID Generation: From MySQL Auto‑Increment to Snowflake
Architecture Digest
Architecture Digest
Apr 2, 2019 · Databases

Designing Scalable Database Architecture for High‑Concurrency Systems

This article explains how to design a database architecture that can handle millions of daily active users and tens of thousands of concurrent requests by using multi‑server sharding, extensive table partitioning, read‑write separation, and distributed unique‑ID generation techniques such as Snowflake.

Read-Write SeparationSnowflake IDdatabase sharding
0 likes · 20 min read
Designing Scalable Database Architecture for High‑Concurrency Systems
Meituan Technology Team
Meituan Technology Team
Dec 19, 2016 · Databases

MTDDL: Meituan Distributed Data Layer Middleware Overview

MTDDL, Meituan’s in‑house client‑side sharding middleware, was created to address rapid product‑database growth by offering dynamic data‑source routing, read‑write separation, distributed ID generation, configurable database‑and‑table sharding, connection‑pool management, SQL monitoring, and live configuration updates via annotations and extensible strategies.

Dynamic Data SourceSQL Monitoringdistributed-id
0 likes · 12 min read
MTDDL: Meituan Distributed Data Layer Middleware Overview
Hujiang Technology
Hujiang Technology
Nov 9, 2016 · Databases

Risks of Auto‑Increment IDs and Distributed ID Solutions

The article explains how exposing auto‑increment primary keys can leak business information, illustrates the danger with historical examples, and evaluates alternative ID generation strategies such as encoding, UUIDs, and Snowflake‑style distributed IDs, including performance comparisons in MySQL.

Database designauto_incrementdistributed-id
0 likes · 9 min read
Risks of Auto‑Increment IDs and Distributed ID Solutions