Tag

snowflake algorithm

1 views collected around this technical thread.

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 PerformanceJavaMyBatis-Plus
0 likes · 18 min read
Optimized Snowflake ID Generation with Seata: Solving MyBatis-Plus Duplicate Key Issues
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 30, 2021 · Backend Development

How to Integrate a High‑Performance Snowflake UID Generator into Spring Boot

This guide explains how to integrate the Java‑based Snowflake UIDGenerator into a Spring Boot 2.3 application, covering algorithm fundamentals, RingBuffer optimization, database setup, Maven dependencies, configuration beans, and a test case to generate high‑throughput unique IDs.

JavaSpring Bootdistributed systems
0 likes · 9 min read
How to Integrate a High‑Performance Snowflake UID Generator into Spring Boot
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.

Backend DevelopmentJavadistributed ID
0 likes · 12 min read
Distributed ID Concepts, Implementation Schemes, and Open‑Source Solutions
Manbang Technology Team
Manbang Technology Team
Sep 28, 2018 · Backend Development

Global Unique Ordered ID Generation in Distributed Systems

This article presents a high-availability global unique ordered ID generation solution, Cantor, which addresses the limitations of UUIDs and auto-increment IDs in distributed systems by combining time-based and node-specific sequences for scalability and performance.

CantorGlobal ID GenerationHigh Availability
0 likes · 11 min read
Global Unique Ordered ID Generation in Distributed Systems
Baidu Waimai Technology Team
Baidu Waimai Technology Team
Jul 25, 2017 · Backend Development

Distributed ID Generation Using Redis and Snowflake Algorithm

This article presents a distributed ID generation scheme that leverages existing Redis infrastructure and implements a Snowflake-like algorithm to generate unique IDs without requiring separate deployment.

Backend DevelopmentID generationRedis
0 likes · 10 min read
Distributed ID Generation Using Redis and Snowflake Algorithm