Tagged articles

Spring StateMachine

8 articles · Page 1 of 1
Xiaolin Talks Programming
Xiaolin Talks Programming
Jul 17, 2026 · Backend Development

Spring StateMachine in Production: Modeling, Redis Persistence & High-Concurrency Anti-Duplication Patterns

This article shares real-world experience using Spring StateMachine to replace sprawling if-else logic in order systems, covering state/event/guard modeling, Redis-backed persistence, a three-layer concurrency control pattern (distributed lock + optimistic lock + event idempotency), async decoupling, timeout handling, and compensation strategies with concrete code templates.

High ConcurrencyOptimistic LockRedis Persistence
0 likes · 17 min read
Spring StateMachine in Production: Modeling, Redis Persistence & High-Concurrency Anti-Duplication Patterns
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 PatternsJavaSpring StateMachine
0 likes · 19 min read
Master the State Pattern: Java Basics to Spring StateMachine Order Flow
macrozheng
macrozheng
Jun 18, 2025 · Fundamentals

Mastering the State Pattern: Theory, Java Examples, and Real‑World Order Workflow

This article explains the State (State Machine) pattern, its typical scenarios, core roles, and provides complete Java implementations—including a user login example and a Spring StateMachine‑driven order processing workflow—while comparing it with related patterns and outlining its pros and cons.

Design PatternsJavaSpring StateMachine
0 likes · 15 min read
Mastering the State Pattern: Theory, Java Examples, and Real‑World Order Workflow
Programmer DD
Programmer DD
Dec 27, 2023 · Backend Development

Mastering State Machines in Spring: From Design Patterns to Order Workflows

This article explains the State design pattern, compares Spring State Machine with alternatives, and provides a complete Java example that models order status transitions using Spring Statemachine, including code, configuration, listeners, services, and test execution.

Design PatternsOrder WorkflowSpring StateMachine
0 likes · 15 min read
Mastering State Machines in Spring: From Design Patterns to Order Workflows
Architect
Architect
Dec 6, 2023 · Backend Development

Implementing an Order State Machine with Spring Statemachine: Concepts, Persistence, and Testing

This article explains the fundamentals of finite state machines, introduces Spring Statemachine, shows how to define states, events, and transitions for an order lifecycle, demonstrates memory and Redis persistence, provides full Java code for controller, service, listeners, and discusses testing, error handling, and AOP logging.

RedisSpring StateMachine
0 likes · 22 min read
Implementing an Order State Machine with Spring Statemachine: Concepts, Persistence, and Testing
Java Interview Crash Guide
Java Interview Crash Guide
Jun 15, 2023 · Backend Development

Mastering Spring Statemachine: Build Robust Order Workflows with Persistent State

This guide explains the fundamentals of state machines, introduces the four core concepts, shows how to model order transitions with diagrams, and provides a complete Spring Statemachine implementation—including database schema, enums, configuration, persistence, controller, service, listeners, testing, and advanced error‑handling techniques—so developers can create reliable, persisted workflows in Java.

Finite State MachinePersistenceSpring StateMachine
0 likes · 30 min read
Mastering Spring Statemachine: Build Robust Order Workflows with Persistent State
iQIYI Technical Product Team
iQIYI Technical Product Team
Sep 4, 2020 · Backend Development

Applying Axon Framework and Spring StateMachine in iQIYI Contract Platform: Architecture, Practices, and Lessons

iQIYI’s contract platform replaced a cumbersome Activiti workflow with a lightweight combination of Axon Framework and Spring StateMachine, leveraging DDD, CQRS, and event sourcing to achieve clear layered architecture, traceable events, and flexible state transitions, while confronting distributed‑transaction sagas, batch limits, and integration complexities, and planning future Axon Server adoption.

Axon FrameworkCQRSDomain-Driven Design
0 likes · 11 min read
Applying Axon Framework and Spring StateMachine in iQIYI Contract Platform: Architecture, Practices, and Lessons