Tagged articles
35 articles
Page 1 of 1
Coder Trainee
Coder Trainee
Feb 19, 2026 · Fundamentals

Why Switch from UUID to ULID? Exploring Benefits and Features

The article explains why developers are moving from UUID to ULID, detailing ULID’s 128‑bit compatibility, massive per‑millisecond uniqueness, lexicographic sorting, compact 26‑character Base32 encoding, timestamp integration, strong randomness, and practical use cases such as distributed systems and database sharding.

Base32Distributed SystemsULID
0 likes · 3 min read
Why Switch from UUID to ULID? Exploring Benefits and Features
php Courses
php Courses
Aug 27, 2025 · Backend Development

Master PHP’s microtime(): Precise Timing, Float vs String, and Real‑World Uses

This article explains PHP's microtime() function, covering its basic concept, syntax with optional boolean parameter, practical code examples for retrieving timestamps as strings or floats, and common applications such as measuring execution time and generating unique identifiers.

PHPmicrotimeperformance measurement
0 likes · 4 min read
Master PHP’s microtime(): Precise Timing, Float vs String, and Real‑World Uses
Lobster Programming
Lobster Programming
May 27, 2025 · Backend Development

Ensuring API Idempotency with Redis and Unique Serial Numbers

This article explains how to achieve API idempotency by having clients send a short‑lived unique serial number, storing it as a Redis key with SETNX and an expiration, and handling the Redis response to process or reject duplicate requests.

API idempotencyredissetnx
0 likes · 3 min read
Ensuring API Idempotency with Redis and Unique Serial Numbers
macrozheng
macrozheng
Sep 12, 2024 · Backend Development

How to Design Scalable, Unique Order Numbers for High‑Traffic Systems

This article examines common order‑number generation rules and compares four practical solutions—UUID, database auto‑increment, Snowflake algorithm, and Redis INCR—providing code examples and best‑practice recommendations for building globally unique, fast‑producing identifiers in distributed backend systems.

Distributed Systemsorder IDunique identifier
0 likes · 12 min read
How to Design Scalable, Unique Order Numbers for High‑Traffic Systems
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
DeWu Technology
DeWu Technology
Jul 24, 2024 · Backend Development

Mastering Unique Identifiers and Distributed Locks: From UUIDs to CAS

This article explores how various unique identifier schemes—random UUIDs, sequential numbers, hierarchical paths, and distributed ID generators—are applied across programming languages, file systems, databases, and networks, and explains when and how to enforce uniqueness using pre‑validation, database constraints, or distributed locks such as Redis and Zookeeper, while also linking these mechanisms to CAS‑based concurrency control.

Backend DevelopmentCASDistributed Systems
0 likes · 23 min read
Mastering Unique Identifiers and Distributed Locks: From UUIDs to CAS
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
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
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 18, 2024 · Backend Development

Understanding Java's UUID.randomUUID() Implementation

This article examines the inner workings of Java's java.util.UUID class, detailing how UUID.randomUUID() generates version‑4 UUIDs using SecureRandom, the bitwise adjustments for version and variant fields, and the constructor logic that assembles the final 128‑bit identifier.

BackendJavaSecureRandom
0 likes · 9 min read
Understanding Java's UUID.randomUUID() Implementation
Architecture Digest
Architecture Digest
Dec 1, 2023 · Databases

Understanding ULID: A Lexicographically Sortable Unique Identifier and Its Python Implementation

ULID (Universally Unique Lexicographically Sortable Identifier) offers a 128‑bit, time‑based and random identifier that is URL‑safe, sortable, and more collision‑resistant than UUID, with detailed specifications, binary layout, and Python usage examples including generation, conversion, and component extraction.

Distributed SystemsPythonULID
0 likes · 7 min read
Understanding ULID: A Lexicographically Sortable Unique Identifier and Its Python Implementation
php Courses
php Courses
Oct 24, 2023 · Backend Development

Understanding and Using PHP's microtime() Function

This article explains PHP's microtime() function, covering its basic concept, syntax, optional parameters, practical code examples for retrieving timestamps as strings or floats, and common use cases such as measuring execution time and generating unique identifiers.

Code Executionmicrotimetime handling
0 likes · 5 min read
Understanding and Using PHP's microtime() Function
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
MaGe Linux Operations
MaGe Linux Operations
Jan 13, 2023 · Fundamentals

Why ULID Beats UUID: A Deep Dive into Unique, Sortable IDs

This article explains what ULID is, why it often outperforms UUID by combining timestamp and randomness for collision‑free, lexicographically sortable identifiers, details its specification, binary layout, encoding, and shows practical Python usage and common application scenarios.

Distributed SystemsULIDunique identifier
0 likes · 8 min read
Why ULID Beats UUID: A Deep Dive into Unique, Sortable IDs
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
Sohu Tech Products
Sohu Tech Products
Nov 2, 2022 · Fundamentals

Understanding ULID: Features, Specification, and Python Usage

This article explains ULID (Universally Unique Lexicographically Sortable Identifier), compares it with UUID, outlines its technical specifications, lists its advantages and typical application scenarios, and provides detailed Python examples for generating and manipulating ULIDs.

Distributed SystemsPythonULID
0 likes · 6 min read
Understanding ULID: Features, Specification, and Python Usage
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
Architect's Tech Stack
Architect's Tech Stack
Oct 20, 2022 · Fundamentals

Understanding ULID: A Better Alternative to UUID

ULID (Universally Unique Lexicographically Sortable Identifier) combines a millisecond-precision timestamp with high-entropy randomness to produce 128‑bit, URL‑safe, lexicographically sortable IDs that avoid UUID’s collision risks, offering advantages such as monotonic ordering, compact Base32 encoding, and suitability for distributed database primary keys.

Distributed SystemsPythonULID
0 likes · 8 min read
Understanding ULID: A Better Alternative to UUID
Top Architect
Top Architect
Oct 17, 2022 · Fundamentals

Understanding ULID: Features, Specification, and Python Usage

This article explains ULID (Universally Unique Lexicographically Sortable Identifier) as a time‑based, collision‑resistant alternative to UUID, outlines its specifications, highlights its advantages, and provides practical Python examples for generating and manipulating ULIDs.

PythonULIDUUID alternative
0 likes · 7 min read
Understanding ULID: Features, Specification, and Python Usage
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
Java Backend Technology
Java Backend Technology
Jun 24, 2022 · Fundamentals

Why NanoID Is Faster, Smaller, and Safer Than UUID – A Deep Dive

NanoID, a modern alternative to UUID, offers significantly smaller IDs, up to 60% faster generation, stronger security via crypto APIs, customizable alphabets, and broad language support, making it a compelling choice for developers seeking efficient, compact, and secure unique identifiers across various platforms.

ID generationJavaScriptSecurity
0 likes · 8 min read
Why NanoID Is Faster, Smaller, and Safer Than UUID – A Deep Dive
Top Architect
Top Architect
Mar 26, 2022 · Information Security

Why NanoID Is Replacing UUID: Features, Advantages, and Limitations

This article explains how NanoID, a compact and faster alternative to UUID, offers better security, smaller size, higher performance, and broad language support, while also discussing its limitations and future prospects for unique identifier generation in software development.

JavaScriptSecuritynanoid
0 likes · 8 min read
Why NanoID Is Replacing UUID: Features, Advantages, and Limitations
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.

BackendJavadistributed-id
0 likes · 11 min read
Mastering Snowflake: Build High‑Performance Distributed IDs in Java
Architecture Digest
Architecture Digest
Aug 14, 2021 · Backend Development

Solving Duplicate Order Number Issues in High-Concurrency Java Applications

After encountering duplicate order IDs during a system upgrade, the author analyzes the shortcomings of the original timestamp-and-random-based generator, demonstrates concurrency tests revealing collisions, and presents a revised Java implementation using atomic counters, shortened timestamps, and IP suffixes to reliably produce unique order numbers even under high load.

AtomicIntegerBackend DevelopmentJava
0 likes · 9 min read
Solving Duplicate Order Number Issues in High-Concurrency Java Applications
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.

Javadistributed-idsnowflake
0 likes · 10 min read
Understanding Distributed ID Generation and Snowflake Algorithm in Java
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
Java Backend Technology
Java Backend Technology
Sep 10, 2020 · Backend Development

How to Prevent Duplicate Order Numbers in High-Concurrency Java Applications

This article analyzes a real incident where duplicate order numbers were generated under high concurrency, critiques the original timestamp‑based approach, and presents a thread‑safe Java solution using AtomicInteger, Java 8 date formatting, and optional IP suffixes to ensure globally unique identifiers.

AtomicIntegerDistributed Systemsorder-number
0 likes · 9 min read
How to Prevent Duplicate Order Numbers in High-Concurrency Java Applications
Fulu Network R&D Team
Fulu Network R&D Team
Sep 10, 2020 · Backend Development

Snowflake ID Algorithm: Theory, Advantages, and .NET Implementation with Redis

This article explains the principles of primary keys, compares auto‑increment IDs and GUIDs, introduces the Snowflake ID structure, discusses its benefits and drawbacks, and provides a complete .NET implementation using Redis for dynamic worker‑ID allocation, including handling clock rollback and code examples.

CDistributed SystemsSnowflake ID
0 likes · 17 min read
Snowflake ID Algorithm: Theory, Advantages, and .NET Implementation with Redis
Top Architect
Top Architect
Sep 1, 2020 · Backend Development

Improving Order Number Generation to Avoid Duplicates in High‑Concurrency Java Applications

The article analyzes a real‑world incident where duplicate order IDs were generated under high concurrency, demonstrates the shortcomings of the original Java implementation, and presents a thread‑safe redesign using AtomicInteger, Java 8 date‑time API and container IP suffix to guarantee unique identifiers across parallel requests and clustered instances.

BackendDistributed SystemsJava
0 likes · 11 min read
Improving Order Number Generation to Avoid Duplicates in High‑Concurrency Java Applications
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
FunTester
FunTester
Dec 7, 2019 · Backend Development

Generating Unique Order Numbers in Java: Risks, Testing, and Improved Approaches

The article examines a Java method that creates unique transaction order numbers by combining a timestamp with a four‑digit random code, discusses its collision risk, evaluates testing strategies—including stress testing and UUID replacement—and provides sample code for both generation and duplicate detection.

Javaorder-numberunique identifier
0 likes · 6 min read
Generating Unique Order Numbers in Java: Risks, Testing, and Improved Approaches