Tag

order processing

1 views collected around this technical thread.

Selected Java Interview Questions
Selected Java Interview Questions
Apr 7, 2025 · Backend Development

Preventing Order Loss and Duplicate Submissions in Payment Systems

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.

Idempotencyduplicate submissionorder processing
0 likes · 5 min read
Preventing Order Loss and Duplicate Submissions in Payment Systems
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Dec 24, 2024 · Backend Development

Understanding Idempotency in Distributed Systems and Order Creation

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.

IdempotencyJavabackend
0 likes · 4 min read
Understanding Idempotency in Distributed Systems and Order Creation
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.

JavaSpring BootSpring State Machine
0 likes · 7 min read
Mastering Order State Management with Spring State Machine
Lobster Programming
Lobster Programming
Jul 13, 2024 · Backend Development

Simplify Multi‑Channel Order Processing with Template, Factory & Strategy Patterns

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.

Design PatternsFactory MethodJava
0 likes · 6 min read
Simplify Multi‑Channel Order Processing with Template, Factory & Strategy Patterns
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 23, 2023 · Backend Development

Designing High‑Concurrency Order Processing with Distributed Locks and Redis

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.

ConcurrencyDistributed LockRedis
0 likes · 13 min read
Designing High‑Concurrency Order Processing with Distributed Locks and Redis
Architect's Tech Stack
Architect's Tech Stack
Oct 12, 2023 · Backend Development

Implementing a Finite State Machine for Order Processing with Spring StateMachine

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.

JavaPersistenceRedis
0 likes · 26 min read
Implementing a Finite State Machine for Order Processing with Spring StateMachine
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.

E-commerceSpringBootbackend design
0 likes · 8 min read
Mastering End-to-End Shopping Cart to Order Flow in a SpringBoot E‑Commerce System
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.

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

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

Distributed LockE-commercebackend
0 likes · 13 min read
How to Prevent Duplicate Payments in E‑commerce Orders
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.

ConcurrencyDesign PatternsJava
0 likes · 30 min read
Designing a Scalable Order State Machine for Complex Transaction Systems
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.

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

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

E-commercebackend-developmentdatabase schema
0 likes · 7 min read
Mastering E‑Commerce Cart & Order Flow: Database Schema and Process Walkthrough
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.

State MachineTransaction Systembackend design
0 likes · 12 min read
Evolution of ZhaiZhai Transaction System: From Monolithic Design to FSM‑Based Modular Architecture
Dada Group Technology
Dada Group Technology
Apr 4, 2018 · Backend Development

Implementing Real-Time Order Printing via WebSocket and Netty in Backend Development

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 QueuingNettyWebSocket
0 likes · 8 min read
Implementing Real-Time Order Printing via WebSocket and Netty in Backend Development
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.

Design PatternsObserver Patternorder processing
0 likes · 4 min read
Applying the Observer Pattern to Refactor Order Completion Logic