Tagged articles
11 articles
Page 1 of 1
Architect's Journey
Architect's Journey
Sep 10, 2025 · Databases

Why Taobao Order IDs End with the Same Six Digits: Inside the Gene Method

The article explains why the last six digits of Taobao order numbers are constant, revealing the “gene” method that embeds a hashed user identifier to bind orders to specific shards, thereby improving query performance, ensuring balanced data distribution, and supporting scalability in large e‑commerce systems.

Database designTaobaodistributed databases
0 likes · 8 min read
Why Taobao Order IDs End with the Same Six Digits: Inside the Gene Method
Java Backend Full-Stack
Java Backend Full-Stack
Sep 9, 2025 · Backend Development

Why Do the Last Six Digits of Taobao Order IDs Remain Constant?

The article explains how Taobao embeds a user‑specific “gene” in the last six digits of its order numbers, enabling efficient sharding routing, uniform data distribution, and idempotent order handling while maintaining global uniqueness in a large e‑commerce system.

Taobaodatabase routinge‑commerce
0 likes · 7 min read
Why Do the Last Six Digits of Taobao Order IDs Remain Constant?
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
Selected Java Interview Questions
Selected Java Interview Questions
Feb 23, 2024 · Backend Development

Designing an Order Number Generation System in Spring Boot

This article presents several approaches for generating unique, scalable order numbers in Spring Boot, including UUIDs, database sequences or auto‑increment IDs, timestamp‑based strings with random components, and distributed Snowflake IDs, each accompanied by Java code examples and discussion of their advantages and drawbacks.

Spring Bootjavaorder ID
0 likes · 10 min read
Designing an Order Number Generation System in Spring Boot
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
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 Systemsconcurrency
0 likes · 11 min read
Improving Order Number Generation to Avoid Duplicates in High‑Concurrency Java Applications
21CTO
21CTO
Oct 17, 2018 · Databases

Scaling Payment Systems: Sharding, Snowflake IDs, and High‑Availability

This article explains how to design a high‑throughput payment system using database sharding, Snowflake‑style globally unique order IDs, eventual consistency via message queues, high‑availability architectures, data tiering, and coarse‑fine traffic control to handle massive request spikes.

Data Tieringdatabaseeventual consistency
0 likes · 15 min read
Scaling Payment Systems: Sharding, Snowflake IDs, and High‑Availability
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Oct 16, 2018 · Databases

Scaling Payment Systems: Sharding, Snowflake IDs, and High‑Availability Databases

This article explains how a high‑throughput payment platform uses database sharding by user ID, Snowflake‑style globally unique order IDs, asynchronous replication for eventual consistency, multi‑level data caching, and coarse‑fine traffic pipelines to achieve millions of requests per second with robust high‑availability.

Data Tieringhigh-availabilityorder ID
0 likes · 16 min read
Scaling Payment Systems: Sharding, Snowflake IDs, and High‑Availability Databases
dbaplus Community
dbaplus Community
May 8, 2016 · Backend Development

How LeTV Scaled Its Payment System to 100k Orders per Second

LeTV upgraded its payment architecture in 2015 by sharding databases, designing a Snowflake‑based globally unique order ID, implementing asynchronous replication for eventual consistency, building high‑availability master‑slave clusters with LVS and KeepAlive, tiering data caches, and adding a coarse‑fine traffic pipeline to reliably handle up to 100,000 orders per second.

BackendScalabilityhigh-availability
0 likes · 16 min read
How LeTV Scaled Its Payment System to 100k Orders per Second
Architecture Digest
Architecture Digest
Apr 30, 2016 · Databases

Design and Implementation of a High‑Throughput Payment System: Sharding, Order ID Generation, and High Availability

The article details how LeTV upgraded its payment platform in 2015 to handle up to 100,000 orders per second by implementing database sharding based on user IDs, a Snowflake‑style globally unique order ID, asynchronous consistency via message queues, multi‑level data caching, and high‑availability architectures for both master‑slave and load‑balanced deployments.

databasesdistributed-systemshigh-availability
0 likes · 15 min read
Design and Implementation of a High‑Throughput Payment System: Sharding, Order ID Generation, and High Availability
21CTO
21CTO
Apr 29, 2016 · Backend Development

How LeTV Scaled Its Payment System to 100k Orders per Second with Sharding and HA

This article explains how LeTV's payment platform handled a hundred‑fold surge in traffic by redesigning its architecture with database sharding, a custom order‑ID scheme, asynchronous consistency, high‑availability clustering, data tiering, and a coarse‑fine request pipeline to sustain up to 100,000 orders per second.

databasehigh-availabilityorder ID
0 likes · 15 min read
How LeTV Scaled Its Payment System to 100k Orders per Second with Sharding and HA