Tag

unique identifier

1 views collected around this technical thread.

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.

Backend DevelopmentDistributed SystemsRedis
0 likes · 12 min read
How to Design Scalable, Unique Order Numbers for High‑Traffic Systems
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.

Redisbackenddistributed ID
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.

DatabaseRedisdistributed 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.

JavaSecureRandomUUID
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.

PHPPerformancebackend
0 likes · 5 min read
Understanding and Using PHP's microtime() Function
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.

PHPShort URLbackend
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 SystemsIdentifier GenerationPython
0 likes · 6 min read
Understanding ULID: Features, Specification, and Python Usage
Architecture Digest
Architecture Digest
Oct 25, 2022 · Fundamentals

Understanding ULID: Features, Specification, and Python Usage Compared to UUID

This article explains ULID—a lexicographically sortable, 128‑bit identifier combining timestamp and randomness—detailing its advantages over UUID, specifications, binary layout, common use cases, and provides Python code examples for generating and manipulating ULIDs.

Distributed SystemsPythonULID
0 likes · 7 min read
Understanding ULID: Features, Specification, and Python Usage Compared to UUID
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.

Distributed SystemsPythonULID
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.

JavaRedisbackend
0 likes · 15 min read
Designing Distributed Global Unique ID Generation: Snowflake Algorithm and Practical Implementations
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.

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

Javabackenddistributed ID
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.

Backend DevelopmentJavadistributed ID
0 likes · 12 min read
Distributed ID Concepts, Implementation Schemes, and Open‑Source Solutions