Tagged articles
126 articles
Page 1 of 2
James' Growth Diary
James' Growth Diary
May 12, 2026 · Frontend Development

Keybinding System & Vim Emulation: 17 Contexts, 5 Result Types, State Machine

Claude Code’s keybinding engine tackles fragile CLI key handling by defining 17 compile‑time UI contexts, a union of five resolve result types, chord support, and a full Vim‑mode state machine, demonstrating how context isolation, chord sequencing, and repeat‑command logic prevent conflicts and enable extensible behavior.

CLITypeScriptVim mode
0 likes · 15 min read
Keybinding System & Vim Emulation: 17 Contexts, 5 Result Types, State Machine
James' Growth Diary
James' Growth Diary
May 6, 2026 · Backend Development

How Claude Code’s Task System Uses 7 TaskTypes and 9‑Char IDs for Clear Debugging

The article dissects Claude Code’s task architecture, explaining the 7‑type TaskType union, the 9‑character prefixed ID scheme, the TaskStatus state machine, guard functions, incremental output handling, a minimal kill‑only interface, and a stall‑watchdog that together make concurrent Agent debugging both readable and secure.

ID generationTaskTypebackend design
0 likes · 18 min read
How Claude Code’s Task System Uses 7 TaskTypes and 9‑Char IDs for Clear Debugging
Architect-Kip
Architect-Kip
Apr 29, 2026 · Backend Development

A Generic State Machine Solution for Managing Business Entity Lifecycles

This article presents a comprehensive state‑machine‑based approach for managing the lifecycle of business entities such as orders and work orders, detailing core pain points, essential questions a state machine must answer, a comparative analysis of four implementation options, and a recommended solution that combines a database transition table, domain services, and optimistic‑lock concurrency control, along with architecture diagrams, code snippets, and operational guidelines.

audit logconcurrencydomain service
0 likes · 15 min read
A Generic State Machine Solution for Managing Business Entity Lifecycles
James' Growth Diary
James' Growth Diary
Apr 28, 2026 · Artificial Intelligence

StreamingToolExecutor: Full Breakdown of Claude Code’s Four‑Layer Parallel Tool Execution Mechanism

The article dissects Claude Code’s StreamingToolExecutor, revealing how a four‑state machine, two simple concurrency rules, and a three‑layer AbortController hierarchy enable true parallel tool execution, reduce latency, preserve result order, and handle failures with nuanced abort semantics.

AI agentsAbortControllerClaude Code
0 likes · 18 min read
StreamingToolExecutor: Full Breakdown of Claude Code’s Four‑Layer Parallel Tool Execution Mechanism
DeepHub IMBA
DeepHub IMBA
Apr 24, 2026 · Artificial Intelligence

LangChain vs LangGraph: Choosing a Toolkit or an Orchestrator

The article compares LangChain and LangGraph by implementing the same three‑stage code‑review pipeline with identical agents and Gemini 2.5 Flash calls, showing when a linear toolkit suffices and when a state‑machine orchestrator becomes necessary.

AgentLLM OrchestrationLangChain
0 likes · 8 min read
LangChain vs LangGraph: Choosing a Toolkit or an Orchestrator
James' Growth Diary
James' Growth Diary
Apr 24, 2026 · Artificial Intelligence

How LangGraph Turns LLMs into a State Machine

This article dissects LangGraph's core execution engine, showing how it transforms LLM calls into a state‑machine workflow with mutable State, Nodes, Edges, Reducers, a scheduler loop, conditional branching, and parallel fan‑out/fan‑in execution.

JavaScriptLLMLangGraph
0 likes · 12 min read
How LangGraph Turns LLMs into a State Machine
Huolala Tech
Huolala Tech
Apr 22, 2026 · Backend Development

How a Platform‑Based Architecture Turns Logistics Fulfillment from Silos to Scalable Services

The article details a step‑by‑step transformation of a logistics fulfillment system from a duplicated, siloed design to a unified, plug‑in‑driven platform, explaining the underlying domain model, split‑and‑route strategies, state orchestration, code contracts, quantitative benefits, and future intelligent extensions.

MicroservicesScalable Systemslogistics fulfillment
0 likes · 15 min read
How a Platform‑Based Architecture Turns Logistics Fulfillment from Silos to Scalable Services
AI Tech Publishing
AI Tech Publishing
Apr 19, 2026 · Artificial Intelligence

How to Build Production‑Ready Agent HITL: State Machines, Event Sourcing, and Distributed Coordination

The article presents a detailed engineering guide for deploying production‑grade AI agents with Human‑in‑the‑Loop, covering a three‑layer decoupled architecture, tool‑level and hook‑level interception, a six‑state session state machine with event sourcing, robust timeout handling using CAS, and cross‑node coordination for multi‑agent workflows.

AgentDistributed CoordinationEvent Sourcing
0 likes · 17 min read
How to Build Production‑Ready Agent HITL: State Machines, Event Sourcing, and Distributed Coordination
AI Step-by-Step
AI Step-by-Step
Apr 5, 2026 · Artificial Intelligence

How Context Engineering Powers Dynamic Business Data Assembly for LLM Agents

The article explains why relying solely on handcrafted prompts leads to hallucinations in LLM agents and presents six concrete context‑engineering practices—XML isolation, hierarchical ordering, KV caching, vector reranking, async memory compression, and minimal few‑shot examples—illustrated with a full e‑commerce refund‑handling case study.

AgentContext EngineeringKV cache
0 likes · 10 min read
How Context Engineering Powers Dynamic Business Data Assembly for LLM Agents
Data STUDIO
Data STUDIO
Feb 3, 2026 · Artificial Intelligence

Build a Self‑Thinking AI Agent with LangGraph: A Step‑by‑Step Guide

This tutorial explains how LangGraph adds explicit control‑flow, cycles, and shared state to LLM applications, and walks through building a Strava‑based intelligent training coach with Python code, node definitions, state design, graph assembly, and GitHub Actions deployment.

AI agentsLLMLangGraph
0 likes · 12 min read
Build a Self‑Thinking AI Agent with LangGraph: A Step‑by‑Step Guide
Liangxu Linux
Liangxu Linux
Dec 24, 2025 · Fundamentals

Mastering C Function Pointers: From Basics to Embedded Applications

This tutorial explains what function pointers are, how to declare and use them in C, and demonstrates practical embedded‑system patterns such as callbacks, state machines, command dispatch, and advanced techniques like pointer arrays and struct members, while highlighting common pitfalls.

CCallbackscommand dispatch
0 likes · 13 min read
Mastering C Function Pointers: From Basics to Embedded Applications
Ray's Galactic Tech
Ray's Galactic Tech
Dec 20, 2025 · Backend Development

Production-Ready Idempotency for RocketMQ Duplicate Consumption (Full Code)

To reliably handle RocketMQ's at-least-once delivery semantics, this guide explains why duplicate consumption is inevitable, outlines three defensive layers—Redis‑based idempotency, database unique constraints, and state‑machine checks—provides production‑grade Java code, and details ACK/retry strategies and monitoring practices for robust systems.

Duplicate ConsumptionIdempotencyJava
0 likes · 9 min read
Production-Ready Idempotency for RocketMQ Duplicate Consumption (Full Code)
Fighter's World
Fighter's World
Dec 16, 2025 · Artificial Intelligence

Boosting Large Language Model Domain Expertise with Claude Skills

The article analyzes why generic LLMs struggle with domain‑specific reasoning, critiques fine‑tuning, RAG and prompt engineering, and presents Claude Skills—using progressive disclosure, Pydantic validation, and state‑machine control—to encode expert constraints as executable rules, illustrated with finance compliance and legal reasoning case studies and backed by Anthropic research.

ClaudeDomain-specificLLM
0 likes · 20 min read
Boosting Large Language Model Domain Expertise with Claude Skills
Selected Java Interview Questions
Selected Java Interview Questions
Nov 23, 2025 · Backend Development

Mastering Order Workflow with Spring Statemachine: A Step‑by‑Step Guide

This tutorial shows how to replace bulky if‑else or switch logic with Spring Statemachine in a Spring Boot application, covering dependency setup, state and event enums, machine configuration, persistence, service implementation, controller endpoints, and advanced conditional transitions for loan processing.

BackendConditional TransitionJava
0 likes · 10 min read
Mastering Order Workflow with Spring Statemachine: A Step‑by‑Step Guide
Amap Tech
Amap Tech
Oct 15, 2025 · Artificial Intelligence

How AI Powers Gaode’s ‘Car Cruise’ for Seamless, Hands‑Free Navigation

Gaode Map’s Car Cruise transforms navigation into an AI‑native, hands‑free experience by automatically detecting routes, providing real‑time voice alerts, lane‑level guidance, and car‑play integration, all driven by a state‑machine architecture that reduces driver distraction while enhancing safety, efficiency, and user personalization.

AI navigationSoftware Architecturecar‑play
0 likes · 19 min read
How AI Powers Gaode’s ‘Car Cruise’ for Seamless, Hands‑Free Navigation
Liangxu Linux
Liangxu Linux
Sep 17, 2025 · Fundamentals

Mastering Event‑Driven Design and State Machines for Embedded Firmware

This article explains how event‑driven programming and state‑machine concepts can be applied to microcontroller firmware, compares a simple flag‑based approach with a message‑queue solution, and presents a reusable GF1.0 framework that combines ISR, message buffering, and a main state machine for robust embedded systems.

Message QueueMicrocontrollerembedded systems
0 likes · 32 min read
Mastering Event‑Driven Design and State Machines for Embedded Firmware
Sohu Tech Products
Sohu Tech Products
Sep 17, 2025 · Mobile Development

How to Supercharge Dual‑State Lottie Animations on iOS: A 3‑Step Performance Boost

This article walks through the performance bottlenecks of using Lottie for dual‑state animations in mobile apps and presents a three‑stage progressive optimization—basic synchronous implementation, asynchronous loading with caching, and a state‑machine‑based pending mechanism—complete with Swift code samples, diagrams, and benchmark results.

Asynchronous LoadingLottieMobile UI
0 likes · 13 min read
How to Supercharge Dual‑State Lottie Animations on iOS: A 3‑Step Performance Boost
Su San Talks Tech
Su San Talks Tech
Sep 2, 2025 · Fundamentals

Mastering Finite State Machines with Spring Statemachine: A Complete Guide

Learn the fundamentals of finite state machines, explore their core concepts and four key elements, and see how to implement and persist a Spring Statemachine for order processing with detailed code examples, diagrams, and troubleshooting tips, while also understanding common pitfalls and best practices.

BackendJavaPersistence
0 likes · 26 min read
Mastering Finite State Machines with Spring Statemachine: A Complete Guide
Zhuanzhuan Tech
Zhuanzhuan Tech
Aug 27, 2025 · Operations

From State Machines to a Custom Workflow Engine: Scaling Quality Inspection Processes

This article chronicles the evolution of a quality‑inspection system from a simple finite state machine to a self‑developed, lightweight workflow engine, detailing the motivations, design decisions, implementation steps, challenges faced, and future roadmap for flexible, configurable process orchestration.

Backend Developmentlow-codeprocess orchestration
0 likes · 19 min read
From State Machines to a Custom Workflow Engine: Scaling Quality Inspection Processes
Data STUDIO
Data STUDIO
Aug 27, 2025 · Fundamentals

Building a Lightweight State Machine with Python Enum

This article demonstrates how to implement a clear, maintainable state machine for a publishing workflow using Python's Enum type, covering state definitions, forward and backward transitions, validation, entry actions, and visualisation without external dependencies.

Pythondesign patternenum
0 likes · 7 min read
Building a Lightweight State Machine with Python Enum
Tech Freedom Circle
Tech Freedom Circle
Jul 16, 2025 · Interview Experience

How to Use and Optimize State Machines in Java for Interview Success

This article explains the concept of state machines, why traditional if‑else logic is problematic, compares popular Java state‑machine frameworks, provides performance benchmarks, walks through a complete Spring Statemachine implementation for order processing, and offers practical optimization and monitoring tips for high‑throughput scenarios.

Javainterviewoptimization
0 likes · 30 min read
How to Use and Optimize State Machines in Java for Interview Success
Architect
Architect
Jun 13, 2025 · Fundamentals

Mastering the State Pattern: Real‑World Java Examples and Spring State Machine

This article explains the State (State Machine) pattern, its typical scenarios such as order processing and elevator control, presents a complete Java implementation with abstract, concrete, and context classes, demonstrates how to model order workflows using Spring State Machine, compares related patterns, and discusses the pattern’s advantages and drawbacks.

JavaSpring State MachineState Pattern
0 likes · 14 min read
Mastering the State Pattern: Real‑World Java Examples and Spring State Machine
Bilibili Tech
Bilibili Tech
Jun 13, 2025 · Mobile Development

How Bilibili Scaled Kotlin Multiplatform Across Android, iOS, and HarmonyOS

This article details Bilibili's practical experience with Kotlin Multiplatform (KMP), covering the choice of Bazel as a build system, multi‑language interop, dependency injection, modular export, state‑machine driven single‑direction data flow, and the successful deployment of shared logic and UI across Android, iOS, and HarmonyOS platforms.

BazelCompose UICross‑platform
0 likes · 20 min read
How Bilibili Scaled Kotlin Multiplatform Across Android, iOS, and HarmonyOS
Go Programming World
Go Programming World
May 26, 2025 · Fundamentals

Using Finite State Machines in Go with the looplab/fsm Package

This article introduces the concept of finite state machines, demonstrates how to implement them in Go using the looplab/fsm library with practical code examples, explains the lifecycle callbacks, and shows how to apply FSMs to real‑world scenarios such as door state management.

FSMFinite State MachineGo
0 likes · 17 min read
Using Finite State Machines in Go with the looplab/fsm Package
Code Ape Tech Column
Code Ape Tech Column
Apr 1, 2025 · Backend Development

Designing a Payment System State Machine and Status History Table

This article explains why payment systems need a state machine, details common payment statuses, illustrates typical state transition flows, describes the design of a status‑change history table, and provides implementation guidance using hand‑written code or Spring StateMachine to ensure maintainability, auditability, and robust handling of exceptional scenarios.

auditpaymentstate machine
0 likes · 14 min read
Designing a Payment System State Machine and Status History Table
Liangxu Linux
Liangxu Linux
Mar 22, 2025 · Backend Development

Boost CPU Efficiency and Code Clarity with State‑Machine Programming

The article explains how using a state‑machine approach in embedded C programs can eliminate wasteful delay loops, ensure logical completeness, and produce clearer, more maintainable code by structuring work around events and states.

CPU efficiencyEmbedded Ccode maintainability
0 likes · 5 min read
Boost CPU Efficiency and Code Clarity with State‑Machine Programming
macrozheng
macrozheng
Feb 28, 2025 · Fundamentals

Mastering the State Pattern: Real‑World Java Examples and Best Practices

This article explains the State (State Machine) design pattern, its typical use cases, core roles, and practical Java implementations—including a login‑state example and a Spring StateMachine order workflow—while also comparing it with related patterns and outlining its advantages and drawbacks.

Software ArchitectureState Patternstate machine
0 likes · 16 min read
Mastering the State Pattern: Real‑World Java Examples and Best Practices
Zhuanzhuan Tech
Zhuanzhuan Tech
Dec 20, 2024 · Backend Development

State Machine Selection and Refactoring Strategies for Complex Business Scenarios

This article analyzes the problem of exploding state‑branch logic in merchant onboarding and exit flows, presents decoupling, design‑pattern, and state‑machine solutions, compares three Java state‑machine implementations (Zhuozhou, Cola, Spring Statemachine), and offers practical selection guidance for simple to highly complex B2B use cases.

Software Architecturerefactoringstate machine
0 likes · 21 min read
State Machine Selection and Refactoring Strategies for Complex Business Scenarios
Open Source Linux
Open Source Linux
Dec 5, 2024 · Fundamentals

Mastering TCP State Machine: From LISTEN to TIME_WAIT Explained

This article provides a comprehensive guide to TCP connection states, common Linux commands for monitoring them, detailed explanations of each state transition, three‑way handshake, four‑way termination, flag meanings, keep‑alive mechanisms, and practical sysctl tuning to troubleshoot network issues.

KeepaliveSocketTCP
0 likes · 29 min read
Mastering TCP State Machine: From LISTEN to TIME_WAIT Explained
G7 EasyFlow Tech Circle
G7 EasyFlow Tech Circle
Dec 3, 2024 · Backend Development

Inside the Unified Order Shipping Center: Scalable Logistics Architecture

This article examines the design and evolution of the Unified Order Shipping Center, detailing its model‑plus‑workflow architecture, core principles, metadata engine, state‑machine, API orchestration, microservice decomposition, and deployment strategy, and explains how it delivers scalable, flexible logistics capabilities across multiple business systems.

API orchestrationLogisticsmetadata engine
0 likes · 22 min read
Inside the Unified Order Shipping Center: Scalable Logistics Architecture
Java Architect Essentials
Java Architect Essentials
Sep 24, 2024 · Backend Development

Understanding the State Pattern and Implementing Order Workflow with Spring State Machine

This article explains the State design pattern, demonstrates its Java implementation with example code, introduces Spring State Machine concepts, and provides a complete step‑by‑step guide to building and testing an order status workflow using Spring State Machine, including configuration, listeners, services, and a controller.

JavaOrder Workflowdesign pattern
0 likes · 13 min read
Understanding the State Pattern and Implementing Order Workflow with Spring State Machine
Bilibili Tech
Bilibili Tech
Jul 16, 2024 · Backend Development

Design and Implementation of Bilibili OGV Content Production System

The article details Bilibili’s OGV content production system, explaining why the traditional UGC workflow is insufficient, describing a supply‑chain‑style work‑order architecture with demand, plan and task entities, flexible key‑value data storage, input validation, a state‑machine‑driven task lifecycle, phased rollout, automation, and future extensions.

Content ProductionOGVSystem Architecture
0 likes · 20 min read
Design and Implementation of Bilibili OGV Content Production System
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 28, 2024 · Fundamentals

Handcrafting a Minimal Kotlin Coroutine Implementation

This article analyzes the shortcomings of existing Kotlin coroutine tutorials and presents a step‑by‑step guide to building a lightweight coroutine framework from scratch, covering thread basics, CoroutineScope, launch, delay, resume, state‑machine logic, withContext, async, and Deferred with complete code examples.

CoroutinesCustom ImplementationKotlin
0 likes · 15 min read
Handcrafting a Minimal Kotlin Coroutine Implementation
Code Ape Tech Column
Code Ape Tech Column
Jun 25, 2024 · Backend Development

COLA Stateless State Machine: A Lightweight, Thread‑Safe Alternative to Spring StateMachine for Java Backend Order Processing

The article explains why Spring StateMachine is heavyweight and thread‑unsafe for high‑concurrency order management, introduces the open‑source COLA stateless state machine as a simpler, lock‑free solution, and provides detailed design principles, core concepts, and extensive Java code examples.

COLAJavaspring
0 likes · 13 min read
COLA Stateless State Machine: A Lightweight, Thread‑Safe Alternative to Spring StateMachine for Java Backend Order Processing
Open Source Linux
Open Source Linux
Jun 14, 2024 · Fundamentals

Mastering C State Machines: Switch‑Case, Table‑Driven, and Function‑Pointer Techniques

This article explains how to implement finite state machines in C using three approaches—switch‑case, table‑driven, and function‑pointer—detailing their structures, code examples, trade‑offs, and extensions such as compressed tables and hierarchical state machines for robust embedded systems.

CExtended State MachineFinite State Machine
0 likes · 17 min read
Mastering C State Machines: Switch‑Case, Table‑Driven, and Function‑Pointer Techniques
Architecture Digest
Architecture Digest
Jun 3, 2024 · Backend Development

Spring Statemachine for Order State Management with Persistence, Exception Handling, and AOP Logging

This article explains the fundamentals of finite state machines, introduces Spring Statemachine, demonstrates how to model order lifecycle states, configure persistence with memory and Redis, handle exceptions during state transitions, and use AOP to log transition results, providing complete Java code examples.

BackendJavaPersistence
0 likes · 23 min read
Spring Statemachine for Order State Management with Persistence, Exception Handling, and AOP Logging
DeWu Technology
DeWu Technology
Apr 24, 2024 · Backend Development

State Machine Integration for New Product Onboarding

The article details how Dewu’s new product onboarding workflow was refactored into a Spring StateMachine‑driven architecture that separates channel‑specific logic via a Strategy‑pattern operation layer, defines clear enum status domains, and uses guards, actions, and choice states to achieve maintainable, extensible, and idempotent state transitions.

Design Patternsproduct onboardingspring
0 likes · 20 min read
State Machine Integration for New Product Onboarding
Architect
Architect
Feb 15, 2024 · Backend Development

Mastering State Patterns with Spring State Machine: From Theory to Order Workflow

This article explains the classic State design pattern, demonstrates a traffic‑light example, compares Spring State Machine with COLA, and walks through building a complete order‑status workflow in Spring Boot using enums, configuration, listeners, services, and a test controller, while highlighting trade‑offs and alternatives.

BackendJavaOrder Workflow
0 likes · 14 min read
Mastering State Patterns with Spring State Machine: From Theory to Order Workflow
Architect
Architect
Feb 14, 2024 · Backend Development

Implementing Order Lifecycle Management with Spring Statemachine, Persistence, and AOP

This article explains the fundamentals of finite state machines, demonstrates how to model order states using Spring Statemachine, shows persistence options with in‑memory and Redis stores, and provides advanced techniques such as exception handling, extended state tracking, and AOP‑based result logging for reliable state transitions.

JavaOrder ManagementPersistence
0 likes · 23 min read
Implementing Order Lifecycle Management with Spring Statemachine, Persistence, and AOP
政采云技术
政采云技术
Jan 16, 2024 · Fundamentals

Understanding Finite State Machines: Definitions, Usage, Advantages, and Their Relation to Domain‑Driven Design

This article explains what a finite state machine (FSM) is, illustrates it with a car transmission example, outlines its components and diagramming, discusses its technical pros and cons, explores business benefits, and examines how state machines relate to domain‑driven design.

Domain-Driven DesignFinite State MachineSoftware Architecture
0 likes · 13 min read
Understanding Finite State Machines: Definitions, Usage, Advantages, and Their Relation to Domain‑Driven Design
Code Ape Tech Column
Code Ape Tech Column
Oct 9, 2023 · Backend Development

Understanding and Implementing State Machines with Spring Statemachine

This article explains the fundamentals of finite state machines, introduces the four core concepts, demonstrates how to model order state transitions, and provides a complete Spring Statemachine implementation with persistence, event handling, testing, and advanced AOP-based error tracking in Java.

Persistencestate machine
0 likes · 23 min read
Understanding and Implementing State Machines with Spring Statemachine
Java Architect Essentials
Java Architect Essentials
Oct 6, 2023 · Backend Development

Implementing Order Workflow with Spring Statemachine and Persistent State Storage

This article explains the fundamentals of finite‑state machines, introduces Spring Statemachine, demonstrates how to model an order lifecycle, configure persistence with in‑memory and Redis stores, and provides complete Java code for enums, configuration, services, controllers, listeners, testing, and exception‑handling improvements.

JavaPersistenceaop
0 likes · 26 min read
Implementing Order Workflow with Spring Statemachine and Persistent State Storage
Top Architect
Top Architect
Sep 27, 2023 · Backend Development

Understanding Finite State Machines and Implementing Spring Statemachine in Java

This article explains the fundamentals of finite state machines, illustrates their concepts and diagramming, and provides a comprehensive guide on using Spring Statemachine in Java—including schema design, configuration, event handling, persistence strategies, testing, and common pitfalls with solutions.

BackendJavaPersistence
0 likes · 28 min read
Understanding Finite State Machines and Implementing Spring Statemachine in Java
JD Cloud Developers
JD Cloud Developers
Aug 3, 2023 · Backend Development

Mastering State Machines: From Theory to Spring and COLA Implementations

This article introduces the fundamentals of state machines, explains the four core concepts, explores domain‑specific languages (DSL) and their classifications, and provides practical Java examples using Spring Statemachine and the COLA framework, ending with a comparison and adoption guidance.

BackendCOLADSL
0 likes · 18 min read
Mastering State Machines: From Theory to Spring and COLA Implementations
Liangxu Linux
Liangxu Linux
Jul 30, 2023 · Fundamentals

How Event‑Driven State Machines Power Embedded Systems: From ISR to Message Queues

This article explains the principles of event‑driven programming and state‑machine design for microcontrollers, compares them with interrupt handling, introduces a message‑based architecture with concrete data structures and APIs, and shows how to build a reusable framework that solves ordering and loss problems in embedded applications.

Event-drivenISRMicrocontroller
0 likes · 33 min read
How Event‑Driven State Machines Power Embedded Systems: From ISR to Message Queues
Zhuanzhuan Tech
Zhuanzhuan Tech
Jun 28, 2023 · Backend Development

Extracting Business System Knowledge through FSM‑X Visualization: A Practical Exploration

This article describes a practical approach to automatically extract and visualize business system knowledge from code by abstracting workflow control logic into a generalized design pattern using the FSM‑X state‑machine framework, discussing its background, methodology, implementation details, and current limitations.

BackendDomain-Driven Designknowledge extraction
0 likes · 10 min read
Extracting Business System Knowledge through FSM‑X Visualization: A Practical Exploration
21CTO
21CTO
Jun 20, 2023 · Backend Development

Mastering Spring State Machine: Build Robust Order Workflows with Persistence

This article introduces the fundamentals of finite state machines, explains their four core concepts, demonstrates how to model order workflows with state diagrams, and provides a comprehensive guide to implementing, configuring, persisting, and testing Spring Statemachine in a Java backend, including solutions for exception handling and AOP enhancements.

Persistenceaopspring
0 likes · 23 min read
Mastering Spring State Machine: Build Robust Order Workflows with Persistence
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
DeWu Technology
DeWu Technology
Jun 7, 2023 · Backend Development

Ensuring Data Consistency Across Microservices: Strategies and Design Principles

This article examines why data consistency between microservices is critical, defines key terminology, and presents two practical approaches—business‑side final consistency and platform‑side final consistency—detailing their core ideas, design principles, workflow diagrams, and real‑world implementation considerations such as idempotency, storage choices, latency tolerance, state‑machine design, concurrency control, and observability.

Data ConsistencyDistributed SystemsIdempotency
0 likes · 17 min read
Ensuring Data Consistency Across Microservices: Strategies and Design Principles
Architecture Digest
Architecture Digest
May 31, 2023 · Backend Development

Understanding State Machines and Implementing Spring Statemachine for Order Processing

This article explains the fundamentals of finite state machines, introduces the four core concepts of state, event, action, and transition, and provides a detailed guide on using Spring Statemachine with Java—including configuration, persistence, service and controller implementations, testing, and advanced troubleshooting techniques.

state machineworkflow
0 likes · 24 min read
Understanding State Machines and Implementing Spring Statemachine for Order Processing
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
Code Ape Tech Column
Code Ape Tech Column
May 23, 2023 · Backend Development

Message Notification Architecture and Design in Microservices

This article explains the principles, process management, sequence, and structural design of a message notification system within microservice architectures, highlighting production‑consumption patterns, task handling, state transitions, channel integration, and practical considerations for effective backend implementation.

Backend ArchitectureMessage Notificationmessage center
0 likes · 9 min read
Message Notification Architecture and Design in Microservices
Sohu Tech Products
Sohu Tech Products
Apr 26, 2023 · Fundamentals

Understanding JavaScript Generators: Basics, Syntax, and Advanced Usage

JavaScript Generators, introduced in ES6, allow functions to pause and resume execution, yielding multiple values; this article explains their syntax, basic usage, advanced features like yield* and data exchange, and demonstrates practical scenarios such as asynchronous flow control, memory-efficient data processing, and state machine implementation.

AsyncJavaScriptYield
0 likes · 11 min read
Understanding JavaScript Generators: Basics, Syntax, and Advanced Usage
Architecture Digest
Architecture Digest
Apr 25, 2023 · Backend Development

Design and Implementation of a Scalable Transaction Platform for Vivo Global Mall

This article details the design principles, architecture, multi‑tenant sharding strategy, state‑machine workflow, distributed transaction handling, and high‑availability measures of Vivo's transaction platform, illustrating how a micro‑service‑based e‑commerce system achieves low cost, extensibility, and robust performance.

e‑commercestate machinetransaction
0 likes · 12 min read
Design and Implementation of a Scalable Transaction Platform for Vivo Global Mall
Architecture Digest
Architecture Digest
Apr 14, 2023 · Backend Development

Design and Architecture of a Scalable Transaction Platform for Vivo Global Mall

This article presents the design philosophy, overall architecture, multi‑tenant sharding strategy, state‑machine workflow, distributed transaction handling, and high‑availability measures of Vivo’s global e‑commerce transaction platform, sharing practical challenges and solutions encountered during its development and ongoing evolution.

Distributed Transactionse‑commercestate machine
0 likes · 14 min read
Design and Architecture of a Scalable Transaction Platform for Vivo Global Mall
vivo Internet Technology
vivo Internet Technology
Apr 12, 2023 · Backend Development

vivo Transaction Platform: Architecture Design and Key Technical Solutions

The article details vivo’s transition from a monolithic mall to a micro‑service transaction platform, outlining a multi‑tenant architecture with ShardingSphere‑sharded MySQL, Snowflake IDs, Elasticsearch search, configurable state machines, generic delayed tasks, Seata and local‑message distributed transactions, plus high‑availability safeguards, emphasizing pragmatic solution selection.

Distributed TransactionsMulti-Tenant ArchitectureSeata
0 likes · 11 min read
vivo Transaction Platform: Architecture Design and Key Technical Solutions
HomeTech
HomeTech
Apr 11, 2023 · Backend Development

Applying Finite State Machines with Spring Statemachine and Squirrel-foundation in Java

This article explains the concept of finite state machines, outlines scenarios where they are beneficial, compares Spring Statemachine and Squirrel-foundation implementations, and provides detailed configuration, guard/action code, persistence, testing, and practical usage tips for managing complex business workflows in Java backend services.

springsquirrel-foundationstate machine
0 likes · 17 min read
Applying Finite State Machines with Spring Statemachine and Squirrel-foundation in Java
Thoughts on Knowledge and Action
Thoughts on Knowledge and Action
Mar 29, 2023 · Backend Development

Why Choose Workflow Engines Over State Machines for Complex Business Processes?

This article examines the challenges of virtual asset operations, compares workflow engines and finite state machines, outlines their core concepts, implementation methods, and open‑source options, and presents a practical internal‑DSL‑based solution for high‑performance, asynchronous backend processing.

DSLFinite State MachineJava
0 likes · 10 min read
Why Choose Workflow Engines Over State Machines for Complex Business Processes?
Baidu Geek Talk
Baidu Geek Talk
Mar 1, 2023 · Artificial Intelligence

How Baidu Built a Scalable AIGC Video Production Engine with State‑Machine Orchestration

This article details Baidu's end‑to‑end AIGC video production pipeline, explaining the business drivers, the challenges of automating script‑to‑video conversion, the service‑orchestration architecture based on state‑machine scheduling, module‑component decomposition, configuration files, and the practical workflow that now supports tens of thousands of videos per day.

AIGCMicroservicesService Orchestration
0 likes · 16 min read
How Baidu Built a Scalable AIGC Video Production Engine with State‑Machine Orchestration
Java Architect Essentials
Java Architect Essentials
Feb 9, 2023 · Backend Development

Design and Architecture of an E‑commerce Order System

This article explains the role of an order system in traditional e‑commerce, outlines its main functional modules, describes the end‑to‑end order flow—including creation, payment, production, confirmation and completion—covers inventory reduction strategies, order splitting, reverse processes, state‑machine design, and discusses future evolution toward a unified order center.

Backend Architecturee‑commerceinventory management
0 likes · 13 min read
Design and Architecture of an E‑commerce Order System
Xianyu Technology
Xianyu Technology
Jan 10, 2023 · Backend Development

Lightweight State Machine Framework for Order Fulfillment in Xianyu Industry Transactions

The Xianyu team introduced a lightweight, API‑driven state‑machine framework that replaces massive IF‑ELSE order‑fulfillment code with a three‑layer architecture—core topology, glue adapters, and business processors—enabling concise topology definitions, reusable validation/action logic, automatic logging, monitoring, and effortless extension across recycling, consignment, and inspection services.

Backend ArchitectureScalabilityorder fulfillment
0 likes · 10 min read
Lightweight State Machine Framework for Order Fulfillment in Xianyu Industry Transactions
Xianyu Technology
Xianyu Technology
Jan 3, 2023 · Frontend Development

Using XState for Collaborative Frontend Development and State Management

By adopting the XState state‑machine library, the team transformed a complex, interactive page’s development from costly component‑wise coordination into a collaborative workflow where a small core group maintains a visual state graph while UI developers work on lightweight components, improving performance and reducing render overhead.

CollaborationReactState Management
0 likes · 12 min read
Using XState for Collaborative Frontend Development and State Management
Java High-Performance Architecture
Java High-Performance Architecture
Nov 8, 2022 · Backend Development

Designing High‑Performance E‑Commerce Order Systems: Architecture & Core Functions

This article examines the role of order systems in traditional e‑commerce enterprises, outlines their essential functional modules and design principles, explores upstream and downstream relationships, details core processes such as order creation, payment, fulfillment, and returns, and discusses future architectural evolution.

Process Enginebackend designe‑commerce architecture
0 likes · 17 min read
Designing High‑Performance E‑Commerce Order Systems: Architecture & Core Functions
IT Architects Alliance
IT Architects Alliance
Nov 6, 2022 · Industry Insights

How Modern E‑Commerce Order Systems Are Designed and Evolve

This article examines the role of order systems in traditional e‑commerce enterprises, outlines their core functional modules, maps upstream and downstream relationships, details the end‑to‑end order lifecycle—including creation, payment, fulfillment, confirmation, completion and reverse processes—and discusses future architectural trends and challenges.

Process Flowbackend designe‑commerce architecture
0 likes · 14 min read
How Modern E‑Commerce Order Systems Are Designed and Evolve
Architect's Guide
Architect's Guide
Oct 28, 2022 · Backend Development

Design and Architecture of Enterprise E‑Commerce Order Systems

This article explains the role of an order system in traditional e‑commerce enterprises, outlines its main functional modules and design ideas, describes the forward and reverse order processes, state‑machine management, and discusses future architectural evolution and best‑practice considerations.

Backend ArchitectureOrder Workflowe‑commerce
0 likes · 13 min read
Design and Architecture of Enterprise E‑Commerce Order Systems
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Sep 8, 2022 · Mobile Development

RTC Framework Design for Cloud Music Apps: A Unified Real-Time Communication Architecture

The article describes NetEase Cloud Music’s unified real‑time communication framework, which consolidates disparate audio/video features into a single, container‑based architecture using a common IPlayer interface, dynamic method generation, switchable players, and state‑machine management to streamline development, ensure business isolation, and provide seamless, controllable RTC services across all apps.

Architecture PatternDecorator PatternKotlin
0 likes · 11 min read
RTC Framework Design for Cloud Music Apps: A Unified Real-Time Communication Architecture
vivo Internet Technology
vivo Internet Technology
Jul 13, 2022 · Backend Development

Workflow Engine Practice in Marketing Automation Platform

The article explains how marketing automation platforms adopt industrial‑grade workflow engines to streamline complex user‑journey processes, outlines sequential, state‑machine and rule‑driven engine types, describes a self‑developed engine’s core modules and service interfaces, and highlights performance, versioning, plugin and monitoring considerations.

Backend DevelopmentMarketing AutomationVivo
0 likes · 12 min read
Workflow Engine Practice in Marketing Automation Platform
Zhuanzhuan Tech
Zhuanzhuan Tech
Jul 13, 2022 · Fundamentals

Introduction to Finite State Machines and Their Application in Business Systems

This article introduces deterministic finite state machines, explains their core elements, discusses their advantages for code clarity and separation of concerns, and demonstrates a practical Java implementation for order processing in a commerce platform, including configuration, business logic, exception handling, and extensibility considerations.

Finite State Machinebusiness logicstate machine
0 likes · 12 min read
Introduction to Finite State Machines and Their Application in Business Systems
Zhuanzhuan Tech
Zhuanzhuan Tech
Jun 1, 2022 · Backend Development

Design and Implementation of a State Machine for E‑commerce After‑sale Services

This article explains how to design and implement a flexible, strategy‑pattern‑based state machine for e‑commerce after‑sale services, covering action abstraction, synchronous vs asynchronous execution, compensation via delayed MQ, and execution delay techniques to improve reliability and performance.

AsynchronousBackendCompensation
0 likes · 8 min read
Design and Implementation of a State Machine for E‑commerce After‑sale Services
Top Architect
Top Architect
May 9, 2022 · Backend Development

Design and Evolution of an E‑commerce Order System

This article examines the role of an order system in traditional e‑commerce enterprises, outlines its core functional modules, describes its upstream and downstream relationships, explains workflow and state‑machine design, and discusses future architectural evolution and best‑practice considerations.

Backend Architecturee‑commerceorder system
0 likes · 18 min read
Design and Evolution of an E‑commerce Order System
vivo Internet Technology
vivo Internet Technology
Apr 6, 2022 · Backend Development

State Machine Design and Implementation for Marketing Automation Activities

To orchestrate multi‑channel marketing activities, the article explains how a finite‑state machine models status flows, compares conditional, state‑pattern, and DSL implementations, evaluates Spring Statemachine, Squirrel, and Cola frameworks, and showcases Vivo’s high‑performance DSL‑based FSM as a practical solution.

BackendDSLFinite State Machine
0 likes · 18 min read
State Machine Design and Implementation for Marketing Automation Activities
Selected Java Interview Questions
Selected Java Interview Questions
Mar 24, 2022 · Backend Development

Design and Core Functions of an E‑commerce Order System

This article explains the roles, architecture, core modules, workflow engine, inventory management strategies, and state machine design of order systems in traditional e‑commerce enterprises, offering insights into their future development and integration with other business services.

Backend ArchitectureWorkflow Enginee‑commerce
0 likes · 13 min read
Design and Core Functions of an E‑commerce Order System
dbaplus Community
dbaplus Community
Mar 22, 2022 · Fundamentals

Master Raft in 10 Minutes: A Clear Guide to Consensus Algorithms

This article demystifies consensus algorithms by explaining the difference between consistency and consensus, introducing the replicated state machine concept, and providing a concise, step‑by‑step walkthrough of the Raft algorithm—including state simplification, leader election, log replication, and safety guarantees.

Consensus AlgorithmDistributed SystemsLog Replication
0 likes · 12 min read
Master Raft in 10 Minutes: A Clear Guide to Consensus Algorithms
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
NetEase LeiHuo Testing Center
NetEase LeiHuo Testing Center
Dec 31, 2021 · Game Development

Automated Test Case Script Writing and Framework Applications in Game Development

This article explains how to write automated test case scripts for game development, distinguishing good and bad test cases, detailing script language selection, state‑machine based Lua examples, timer usage, AI‑driven testing, performance and version checks, and best practices for maintainable, reliable automation.

AIAutomated TestingPerformance Testing
0 likes · 24 min read
Automated Test Case Script Writing and Framework Applications in Game Development
Kuaishou Tech
Kuaishou Tech
Dec 30, 2021 · Frontend Development

Micro‑Frontend Design and Loading Strategies: From Monolithic Workbench to Single‑spa

This article analyzes the challenges of monolithic admin workbenches, explains how micro‑frontend architecture—especially the single‑spa library—addresses routing, state‑machine coordination, resource loading, and lifecycle management, and compares practical loader implementations using Ajax and tag‑based approaches for production environments.

Frontend Architectureloader designmicro-frontend
0 likes · 17 min read
Micro‑Frontend Design and Loading Strategies: From Monolithic Workbench to Single‑spa
TAL Education Technology
TAL Education Technology
Nov 25, 2021 · Backend Development

Design and Implementation of a Code‑less Distributed Task Orchestration Platform for XES

This article presents a comprehensive design and implementation of a drag‑and‑drop, code‑less workflow orchestration system that abstracts business logic into DAG‑based state machines, detailing architecture, core data structures, Go code examples, and two practical use cases for arithmetic and data‑consumption scenarios.

BackendDistributedGolang
0 likes · 18 min read
Design and Implementation of a Code‑less Distributed Task Orchestration Platform for XES
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Nov 12, 2021 · Backend Development

Code-less Business Process Orchestration: Design, Implementation, and Application

This article presents a code-less business process orchestration framework that transforms static Go code into configurable drag‑and‑drop workflows, detailing the underlying concepts, architecture, core Go data structures, dynamic configuration, and practical deployment examples for distributed task scheduling and execution.

Cloud NativeDistributed SystemsGolang
0 likes · 18 min read
Code-less Business Process Orchestration: Design, Implementation, and Application
vivo Internet Technology
vivo Internet Technology
Oct 8, 2021 · Fundamentals

Applying Design Patterns to Improve Extensibility in Vivo Marketing Automation Engine

The Vivo Internet Server Team demonstrates how applying classic design patterns—factory, template method, strategy, and state—alongside finite‑state machines or workflow engines can dramatically improve the scalability, maintainability, and extensibility of a visual marketing automation engine for rapidly changing business scenarios.

Factory PatternMarketing AutomationStrategy Pattern
0 likes · 19 min read
Applying Design Patterns to Improve Extensibility in Vivo Marketing Automation Engine
Programmer DD
Programmer DD
Sep 10, 2021 · Backend Development

Designing Scalable E‑Commerce Order Systems: Architecture & Future Trends

This article examines the role of order systems in traditional e‑commerce enterprises, outlines their core functional modules and architectural design, explains upstream and downstream relationships, details key processes such as order creation, payment, fulfillment, and reverse flows, and discusses future development directions and best practices.

Process Enginee‑commerce architectureorder system
0 likes · 15 min read
Designing Scalable E‑Commerce Order Systems: Architecture & Future Trends
Top Architect
Top Architect
Jul 18, 2021 · Backend Development

Design and Architecture of Enterprise E‑Commerce Order Systems

This article explains the role of order systems in traditional e‑commerce enterprises, outlines their main functional modules and business architecture, describes forward and reverse order processes, inventory deduction strategies, state‑machine design, and discusses future development challenges and the need for a unified order center.

Order Managemente‑commerceinventory
0 likes · 13 min read
Design and Architecture of Enterprise E‑Commerce Order Systems
Java High-Performance Architecture
Java High-Performance Architecture
Jul 7, 2021 · Backend Development

Designing Scalable E‑Commerce Order Systems: Architecture, Modules, and Workflow

This article outlines the essential role of order systems in traditional e‑commerce enterprises, detailing their responsibilities, core functional modules, relationships with upstream and downstream services, workflow processes, state management, and future development considerations to guide robust system design.

backend designe‑commerce architectureorder system
0 likes · 16 min read
Designing Scalable E‑Commerce Order Systems: Architecture, Modules, and Workflow
IT Architects Alliance
IT Architects Alliance
Jul 5, 2021 · Backend Development

Design and Architecture of E-commerce Order Systems

This article provides a comprehensive overview of e‑commerce order system roles, core modules, workflow design, process engine, state machine, and future architectural evolution, offering practical guidance for building scalable and maintainable order management platforms.

BackendOrder ManagementSystem Architecture
0 likes · 13 min read
Design and Architecture of E-commerce Order Systems
Alibaba Cloud Developer
Alibaba Cloud Developer
Jun 1, 2021 · Fundamentals

Mastering Distributed Consensus: Inside Raft and the SOFAJRaft Library

This article explains the fundamentals of distributed consensus algorithms, compares Paxos, Zab, and Raft, dives deep into Raft's leader election, log replication, and commit mechanics, and showcases the Java‑based SOFAJRaft library with its architecture, linearizable read optimizations, and real‑world use cases.

Log ReplicationRaftSOFAJRaft
0 likes · 19 min read
Mastering Distributed Consensus: Inside Raft and the SOFAJRaft Library
Java High-Performance Architecture
Java High-Performance Architecture
May 30, 2021 · Backend Development

How to Design a Scalable E‑Commerce Order System: Roles, Architecture & Future Trends

This article explains the role of an order system in traditional e‑commerce enterprises, outlines its main functional modules and design thinking, describes its upstream and downstream relationships, details core features, process engine, state machine, and discusses future architectural evolution.

Process Enginebackend designe‑commerce architecture
0 likes · 15 min read
How to Design a Scalable E‑Commerce Order System: Roles, Architecture & Future Trends
Architecture Digest
Architecture Digest
May 20, 2021 · Backend Development

Design and Architecture of an E‑commerce Order System

This article explains the role of an order system in traditional e‑commerce enterprises, outlines its main functional modules, describes its upstream and downstream relationships, details core processes such as order creation, payment, fulfillment, and returns, and discusses future architectural evolution and state‑machine design.

Backend ArchitectureOrder ManagementProcess Engine
0 likes · 12 min read
Design and Architecture of an E‑commerce Order System
Liangxu Linux
Liangxu Linux
May 16, 2021 · Fundamentals

Mastering TCP: Handshakes, Teardowns, and State Machines Explained

This article provides a comprehensive guide to TCP’s core mechanisms, covering connection establishment via the three‑way handshake, graceful termination with the four‑step teardown, half‑open and half‑close scenarios, simultaneous open/close, initial sequence numbers, and detailed state‑transition diagrams, all illustrated with diagrams.

HandshakeNetworkingTCP
0 likes · 18 min read
Mastering TCP: Handshakes, Teardowns, and State Machines Explained
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
21CTO
21CTO
Apr 18, 2021 · Backend Development

Designing Scalable E‑Commerce Order Systems: Architecture, Modules & Future Trends

This article examines the role of order systems in traditional e‑commerce, outlines their core functional modules, explains their relationships with upstream and downstream services, and discusses design considerations, workflow engines, state machines, and future architectural evolution.

Backend ArchitectureOrder Managemente‑commerce
0 likes · 14 min read
Designing Scalable E‑Commerce Order Systems: Architecture, Modules & Future Trends
Architecture Digest
Architecture Digest
Mar 23, 2021 · Backend Development

Design and Implementation of a Data Consistency Engine for Advertising Billing Systems

This article outlines the background, design choices, and implementation details of a data‑consistency engine for an advertising billing platform, comparing TCC and saga‑style approaches, describing the state‑machine architecture, configuration, initialization, and asynchronous execution patterns.

BackendData ConsistencyDistributed Transactions
0 likes · 9 min read
Design and Implementation of a Data Consistency Engine for Advertising Billing Systems