Tagged articles
32 articles
Page 1 of 1
SpringMeng
SpringMeng
Apr 11, 2026 · Backend Development

How a New Tech Lead Crafted an Elegant Payment System Architecture

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.

Backend Architecturecoupon rulesorder processing
0 likes · 8 min read
How a New Tech Lead Crafted an Elegant Payment System Architecture
Architect
Architect
Sep 1, 2025 · Fundamentals

Master the State Pattern: Java Basics to Spring StateMachine Order Flow

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.

Design PatternsState Patternjava
0 likes · 19 min read
Master the State Pattern: Java Basics to Spring StateMachine Order Flow
Lobster Programming
Lobster Programming
Jul 7, 2025 · Backend Development

Boost Order Processing Speed with Segmented Locks and Redis

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
Boost Order Processing Speed with Segmented Locks and Redis
JD Cloud Developers
JD Cloud Developers
Oct 31, 2024 · Backend Development

Transform Complex Order Processing with LiteFlow’s Component‑Based Workflow Engine

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 ArchitectureLiteFlowWorkflow Engine
0 likes · 11 min read
Transform Complex Order Processing with LiteFlow’s Component‑Based Workflow Engine
Lobster Programming
Lobster Programming
Oct 21, 2024 · Backend Development

Mastering Order State Management with Spring State Machine

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.

Spring BootSpring State Machinebackend-development
0 likes · 7 min read
Mastering Order State Management with Spring State Machine
Eric Tech Circle
Eric Tech Circle
Jul 29, 2024 · Backend Development

How to Keep Order Data Consistent Across Multiple External Systems

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.

Backend ArchitectureData Consistencydistributed-transaction
0 likes · 6 min read
How to Keep Order Data Consistent Across Multiple External Systems
macrozheng
macrozheng
Oct 11, 2023 · Backend Development

Mastering End-to-End Shopping Cart to Order Flow in a SpringBoot E‑Commerce System

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.

Shopping CartSpringBootbackend design
0 likes · 8 min read
Mastering End-to-End Shopping Cart to Order Flow in a SpringBoot E‑Commerce System
Senior Tony
Senior Tony
Aug 30, 2023 · Backend Development

How to Prevent Duplicate Order Submissions in High‑Traffic E‑Commerce Systems

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.

BackendIdempotencyduplicate submission
0 likes · 7 min read
How to Prevent Duplicate Order Submissions in High‑Traffic E‑Commerce Systems
Top Architect
Top Architect
May 29, 2023 · Backend Development

Understanding Finite State Machines and Spring Statemachine for Order Processing in Java

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.

Persistenceaoporder processing
0 likes · 26 min read
Understanding Finite State Machines and Spring Statemachine for Order Processing in Java
DeWu Technology
DeWu Technology
Apr 26, 2023 · Operations

Stability and Alerting Practices for E‑commerce Order Submission Service

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.

Alertinge‑commercemonitoring
0 likes · 12 min read
Stability and Alerting Practices for E‑commerce Order Submission Service
IT Services Circle
IT Services Circle
Aug 28, 2022 · Backend Development

How to Prevent Duplicate Payments in E‑commerce Orders

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-lockduplicate payment
0 likes · 13 min read
How to Prevent Duplicate Payments in E‑commerce Orders
dbaplus Community
dbaplus Community
May 29, 2022 · Backend Development

How Ctrip Migrated a Decade‑Old Hotel Order System from SQL Server to MySQL

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.

SQL Servermiddlewaremysql
0 likes · 29 min read
How Ctrip Migrated a Decade‑Old Hotel Order System from SQL Server to MySQL
Top Architect
Top Architect
Apr 17, 2022 · Backend Development

Using the Strategy Pattern to Simplify Complex if‑else Logic in Order Processing with Java Spring Boot

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.

Design PatternsSpring BootStrategy Pattern
0 likes · 10 min read
Using the Strategy Pattern to Simplify Complex if‑else Logic in Order Processing with Java Spring Boot
IT Architects Alliance
IT Architects Alliance
Mar 15, 2022 · Backend Development

Designing a Scalable Order State Machine for Complex Transaction Systems

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.

Design PatternsMessagingorder processing
0 likes · 30 min read
Designing a Scalable Order State Machine for Complex Transaction Systems
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Mar 14, 2022 · Backend Development

How to Build a Scalable Multi‑State Order Processing Engine with State‑Machine Patterns

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.

Design Patternsorder processingstate machine
0 likes · 32 min read
How to Build a Scalable Multi‑State Order Processing Engine with State‑Machine Patterns
Programmer DD
Programmer DD
May 25, 2021 · Backend Development

How to Prevent Lost Orders in Payment Systems: Proven Backend Strategies

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.

IdempotencyTimeoutWeChat Pay
0 likes · 5 min read
How to Prevent Lost Orders in Payment Systems: Proven Backend Strategies
Code Ape Tech Column
Code Ape Tech Column
May 12, 2021 · Backend Development

Preventing Order Loss and Duplicate Submissions in Payment Systems

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.

Retryorder processingpayment
0 likes · 5 min read
Preventing Order Loss and Duplicate Submissions in Payment Systems
Amap Tech
Amap Tech
May 11, 2021 · Backend Development

Design and Implementation of a Scalable Order State Machine for Complex Multi‑Dimensional Order Processing

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.

Design Patternsconcurrencymessage consistency
0 likes · 30 min read
Design and Implementation of a Scalable Order State Machine for Complex Multi‑Dimensional Order Processing
macrozheng
macrozheng
Jul 23, 2019 · Backend Development

Mastering E‑Commerce Cart & Order Flow: Database Schema and Process Walkthrough

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.

Shopping Cartdatabase schemae‑commerce
0 likes · 7 min read
Mastering E‑Commerce Cart & Order Flow: Database Schema and Process Walkthrough
Mafengwo Technology
Mafengwo Technology
Apr 11, 2019 · Backend Development

Boosting Ticket Order Systems with State Machines: Design & Lessons

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
Boosting Ticket Order Systems with State Machines: Design & Lessons
Zhuanzhuan Tech
Zhuanzhuan Tech
Dec 28, 2018 · Backend Development

Evolution of ZhaiZhai Transaction System: From Monolithic Design to FSM‑Based Modular Architecture

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 Tasksbackend designmodular architecture
0 likes · 12 min read
Evolution of ZhaiZhai Transaction System: From Monolithic Design to FSM‑Based Modular Architecture
Architecture Digest
Architecture Digest
Jul 31, 2017 · Fundamentals

Applying the Observer Pattern to Refactor Order Completion Logic

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.

Observer PatternSoftware Architecturejava
0 likes · 4 min read
Applying the Observer Pattern to Refactor Order Completion Logic
dbaplus Community
dbaplus Community
Jun 14, 2016 · Backend Development

How LeTV Scaled Its Order System to One Million Transactions per Second

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.

BackendHigh ThroughputScalability
0 likes · 5 min read
How LeTV Scaled Its Order System to One Million Transactions per Second
21CTO
21CTO
Nov 17, 2015 · Operations

How JD Scaled Its Order Fulfillment Center to Handle Millions of Orders

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.

Distributed SystemsJava migrationOperations
0 likes · 23 min read
How JD Scaled Its Order Fulfillment Center to Handle Millions of Orders