Tagged articles
Order Processing
35 articles · Page 1 of 1
This comprehensive guide covers Spring Boot RabbitMQ integration for production reliability, detailing three message-loss scenarios, the three-layer exchange/queue/binding model, publisher confirms and returns, manual acknowledgment modes, local vs requeue retry strategies, dead letter queue triggers, and practical patterns for idempotency, ordering, and backlog handling with code examples.
Dead Letter QueueIdempotencyManual Acknowledgment
0 likes · 19 min read

The article presents a Java solution for allocating order-level discounts to individual items using integer arithmetic and deterministic remainder distribution, ensuring accurate partial refunds by persisting per-unit prices, allocated discounts, and payable amounts at checkout, with database schema and concurrency considerations.
BigIntegerJavaOrder Processing
0 likes · 12 min read

The article breaks down the complexities of payment processing by outlining business background, decomposing the workflow into modular steps, illustrating sequence diagrams, designing data structures, and addressing related domains such as product and coupon management, while highlighting key technical challenges like TCC transactions, locking, and retry mechanisms.
Order ProcessingTCCbackend architecture
0 likes · 8 min read

This article explains why duplicate order submissions occur in e‑commerce systems and presents a comprehensive solution using request tokens, interface idempotency, and Redis‑based distributed locks, complete with Spring Boot code examples and advanced optimization tips.
IdempotencyOrder Processingduplicate-submission
0 likes · 7 min read

This article explains the State design pattern, illustrates its advantages over traditional conditional logic, provides a complete Java implementation with abstract state, concrete states, and context classes, demonstrates a real‑world order processing scenario using Spring StateMachine, and discusses related patterns, benefits, and drawbacks.
JavaOrder ProcessingSpring StateMachine
0 likes · 19 min read

This article explains how to use segmented (sharded) locks and Redis‑based routing strategies to parallelize inventory deduction and order creation, dramatically increasing orders processed per second while maintaining atomicity and fault tolerance.
ConcurrencyDistributed LockOrder Processing
0 likes · 7 min read

The article explains a simplified order‑payment flow, identifies common causes of lost orders and duplicate payments, and provides practical backend strategies such as intermediate payment states, timeout queries, idempotent notifications, and Redis‑based duplicate‑submission protection.
Order Processingduplicate-submissionpayment
0 likes · 5 min read

This article explains the concept of idempotency in distributed systems, its importance for preventing duplicate orders in e‑commerce, outlines a solution using unique request identifiers, and provides a Java code example illustrating how to implement idempotent order creation.
IdempotencyJavaOrder Processing
0 likes · 4 min read

This article examines the challenges of scaling order‑processing logic in logistics systems and presents a component‑oriented solution using the open‑source LiteFlow framework, detailing its strategic “workbench” pattern, tactical component design, execution rules, and practical Java code examples for building flexible, decoupled workflows.
Component ArchitectureJavaLiteFlow
0 likes · 11 min read

This guide demonstrates how to use Spring State Machine to elegantly manage order status changes by defining states, events, configuring transitions, and implementing listeners, providing Maven dependencies and Java code examples for building extensible, event‑driven workflows in backend applications.
JavaOrder ProcessingSpring State Machine
0 likes · 7 min read

This article analyzes common data‑inconsistency problems in order‑placement workflows that involve many external services and presents a lightweight final‑consistency architecture with practical design guidelines, retry strategies, and compensation mechanisms to ensure reliable backend processing.
Data ConsistencyOrder Processingbackend architecture
0 likes · 6 min read

This article demonstrates how to use the Template Method, Factory Method, and Strategy patterns in a Java Spring e‑commerce fulfillment system to clearly separate channel‑specific order handling, improve code maintainability, and enable rapid addition of new order types.
JavaOrder ProcessingStrategy Pattern
0 likes · 6 min read

This article details how Bilibili's Membership Store tackled massive traffic spikes by optimizing call chains, introducing asynchronous order processing, and implementing a sharding strategy that split databases and tables, ultimately achieving over 4000 TPS and stable performance during large‑scale promotions.
BackendOrder ProcessingSharding
0 likes · 14 min read

The article explains how to handle the most complex part of an e‑commerce order flow—stock deduction under high concurrency—by using JVM and distributed locks, Redis atomic operations, two‑phase commit, hot‑cold routing, fault tolerance, and cache rebuilding strategies.
Distributed LockMySQLOrder Processing
0 likes · 13 min read

The Shenzhen recap of Pupu's 12th server‑side tech salon presents three technical talks covering order transaction system design, community comment‑moderation architecture, and customer‑service platform engineering, highlighting practical challenges, solution strategies, and key architectural decisions.
BackendCustomer ServiceOrder Processing
0 likes · 4 min read

This article explains the fundamentals of finite state machines, demonstrates how to model order lifecycle states and transitions in Java using Spring StateMachine, and provides detailed code examples for persistence, event handling, and advanced error‑handling techniques such as AOP and Redis storage.
AOPJavaOrder Processing
0 likes · 26 min read

This article walks through the complete shopping‑cart‑to‑order workflow of the open‑source Mall project—built with SpringBoot, Vue and uni‑app—detailing database schema, cart promotion logic, confirm‑order generation, order creation, cancellation, and payment‑success callbacks, while highlighting key design considerations and code references.
Order ProcessingShopping CartSpringBoot
0 likes · 8 min read

The article examines why duplicate order submissions occur in e‑commerce, outlines four practical solutions—including button disabling, pre‑generated UUIDs, client‑side ID generation, and Redis‑based idempotency—compares their pros and cons, and explains why a Redis key approach was ultimately chosen for production.
BackendIdempotencyOrder Processing
0 likes · 7 min read

This article explains the fundamentals of finite state machines, introduces the four core concepts of state, event, action, and transition, demonstrates how to model an order lifecycle with a state‑machine diagram, and provides a complete Spring Statemachine implementation—including enums, configuration, persistence (memory and Redis), listeners, testing, and solutions to common exception‑handling issues—complete with runnable Java code examples.
AOPOrder Processingpersistence
0 likes · 26 min read

The article details how a high‑throughput e‑commerce checkout pipeline achieves stability by combining fine‑grained metrics, custom trace logs, version‑based data validation, and targeted alert rules that detect latency spikes, error‑code surges, and downstream service failures, enabling rapid incident localization and reliable order processing.
Order Processingalertinge-commerce
0 likes · 12 min read

This article explains the complete e‑commerce payment workflow, identifies the causes of duplicate payments such as missing deduplication, order loss and multi‑channel issues, and presents practical backend solutions including distributed locking, result caching, payment‑flow cancellation, active polling, and sync‑async notification strategies to ensure order consistency and improve payment success rates.
BackendDistributed LockOrder Processing
0 likes · 13 min read

Ctrip’s hotel order platform evolved from a single SQL Server instance to a multi‑IDC, sharded architecture, and this article details the middleware‑driven migration, unified caching, data‑chain redesign, consistency safeguards, and operational practices that enabled seamless, high‑performance order processing at millions of transactions per day.
MySQLOrder ProcessingSQL Server
0 likes · 29 min read

This article demonstrates how to replace verbose if‑else statements in an order‑processing system with a clean Strategy Pattern implementation, using custom annotations, a handler context, and Spring Boot components, providing complete code examples and a concise summary of the approach.
JavaOrder ProcessingStrategy Pattern
0 likes · 10 min read

This article presents a comprehensive design of an order state machine for transaction systems, addressing multi‑state, multi‑type, multi‑scenario complexities through vertical business isolation, horizontal logic reuse, state pattern, template methods, validators, plugins, and consistency mechanisms between database updates and messaging.
Order Processingdesign patternsmessaging
0 likes · 30 min read

This article explains how to design a robust order‑status flow engine for transaction systems by applying state‑machine and strategy patterns, separating business logic vertically and horizontally, using annotations, context objects, plug‑in extensions, and ensuring scalability, maintainability, and message‑database consistency.
Order Processingdesign patternsstate machine
0 likes · 32 min read

This article explains the typical order‑payment flow, identifies common causes of lost orders—both external and internal—and provides concrete backend techniques such as intermediate payment states, timeout queries, idempotent notifications, and Redis‑based duplicate‑submission prevention to ensure reliable order processing.
IdempotencyOrder ProcessingTimeout
0 likes · 5 min read

This article outlines a simplified order flow involving payment gateways and third‑party channels, identifies external and internal order‑loss scenarios, and proposes practical measures such as intermediate “payment‑in‑progress” states, timeout queries, idempotent handling, retry mechanisms, and Redis‑based duplicate‑submission prevention to ensure reliable order processing.
Order ProcessingRetrypayment
0 likes · 5 min read

The article presents a scalable, two‑dimensional order state machine architecture that separates vertical business isolation via annotated StateProcessor classes from horizontal logic reuse through modular checkers and plugins, employing distributed locks, optimistic DB locking, and a registry to ensure extensible, consistent multi‑dimensional order processing.
ConcurrencyOrder Processingdesign patterns
0 likes · 30 min read

This article dissects the e‑commerce shopping cart database schema, explains the end‑to‑end order lifecycle—from adding items and calculating promotions to generating confirmation orders, creating orders, and handling cancellations—while highlighting key implementation details and code references for backend developers.
Order ProcessingShopping Cartdatabase schema
0 likes · 7 min read

This article explores how applying finite state machines to a ticket order transaction system improves stability, scalability, and maintainability, detailing the system’s architecture, database design, framework selection, custom MSM implementation, and practical challenges such as transaction handling, action matching, asynchronous messaging, and concurrency control.
Asynchronous MessagingOrder Processingstate machine
0 likes · 12 min read

This article chronicles the rapid growth of ZhaiZhai's second‑hand trading platform and explains how its transaction core was refactored from a single‑service monolith into a unified, configurable, FSM‑driven architecture that isolates business lines, abstracts common logic, and improves scalability and maintainability.
Distributed TasksOrder Processingbackend design
0 likes · 12 min read

This technical article discusses implementing an automatic printing solution for e-commerce merchants using WebSocket and Netty frameworks to enable real-time order push notifications and reduce manual intervention in the order processing workflow.
Message QueuingNettyOrder Processing
0 likes · 8 min read

The article explains how introducing the Observer pattern into an order‑completion module improves code readability, separates responsibilities, and enhances extensibility by turning post‑order actions into independent observers that react to a single subject’s state change.
JavaObserver PatternOrder Processing
0 likes · 4 min read

The talk explains how LeTV’s BOSS platform used sharding, a custom distributed ORM called Mango, and Snowflake‑style ID generation together with cluster‑level request routing to expand its order processing from hundreds of thousands to over a million transactions per second.
BackendOrder ProcessingSnowflake
0 likes · 5 min read


21CTONov 17, 2015 · Operations
JD’s Order Fulfillment Center (OFC) evolved from a small data‑transfer team into a highly scalable, distributed architecture that handles massive order volumes during events like 618 and Double‑11, employing Java migration, service decomposition, flow control, and robust operations to ensure data consistency and rapid delivery.
Java migrationOperationsOrder Processing
0 likes · 23 min read
