Tag

order ID

0 views collected around this technical thread.

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

Distributed SystemsSpring BootUUID
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 DevelopmentConcurrency
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.

ConcurrencyDistributed Systemsbackend
0 likes · 11 min read
Improving Order Number Generation to Avoid Duplicates in High‑Concurrency Java Applications
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.

Distributed SystemsHigh AvailabilityPayment System
0 likes · 15 min read
Design and Implementation of a High‑Throughput Payment System: Sharding, Order ID Generation, and High Availability