Tagged articles

state machine

145 articles · Page 2 of 2
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 AlgorithmLeader ElectionLog 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.

AIPerformance Testingautomated 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.

OrchestrationWorkflowbackend
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 NativeOrchestrationWorkflow
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.

e-commerce architectureorder-systemprocess engine
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.

Inventorye-commerceorder management
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.

Workflowbackend designe-commerce architecture
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.

backende-commerceorder management
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.

Leader ElectionLog ReplicationRaft
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.

backend designe-commerce architectureorder-system
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 Architecturee-commerceorder management
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 ArchitectureWorkflowe-commerce
0 likes · 14 min read
Designing Scalable E‑Commerce Order Systems: Architecture, Modules & Future Trends
IT Architects Alliance
IT Architects Alliance
Mar 20, 2021 · Industry Insights

How Modern E‑Commerce Order Systems Are Structured and Evolve

This article analyzes the role, core modules, upstream/downstream relationships, business architecture, process engine, state machine, and future development trends of order systems in traditional e‑commerce enterprises, offering a comprehensive guide for designing scalable and maintainable order platforms.

backend designe-commerce architectureorder-system
0 likes · 15 min read
How Modern E‑Commerce Order Systems Are Structured and Evolve
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Mar 17, 2021 · Backend Development

How to Design Scalable Order Systems for Traditional E‑Commerce

This article examines the role of order systems in traditional e‑commerce, outlines their core modules and architecture, explains upstream/downstream relationships, details workflow and state‑machine design, and discusses future development directions for building robust, maintainable order platforms.

Workflowbackend designe-commerce architecture
0 likes · 14 min read
How to Design Scalable Order Systems for Traditional E‑Commerce
Java Captain
Java Captain
Mar 13, 2021 · Backend Development

Designing a Flexible Workflow Engine: From Simple Chains to Complex Nested Nodes

The article chronicles the step‑by‑step evolution of a custom workflow engine, detailing how sequential approvals, countersign, parallel, conditional, delegation, timeout, rejection, nesting, and scripting features were incrementally added to support increasingly complex business processes.

Workflowapprovaldesign
0 likes · 9 min read
Designing a Flexible Workflow Engine: From Simple Chains to Complex Nested Nodes
Laravel Tech Community
Laravel Tech Community
Dec 11, 2020 · Backend Development

Design and Core Functions 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 and architectural design, and discusses future development directions, covering system relationships, core processes, inventory and payment strategies, state‑machine management, and scalability considerations.

Workflowe-commerceinventory management
0 likes · 14 min read
Design and Core Functions of an E‑commerce Order System
Programmer DD
Programmer DD
Oct 29, 2020 · Backend Development

Designing Scalable E‑Commerce Order Systems: Architecture, Core Functions, and Future Trends

This article examines the role of order systems in traditional e‑commerce enterprises, outlines their main functional modules and architectural design, explains forward and reverse order flows, discusses inventory deduction strategies and state‑machine management, and explores future development directions for unified order platforms.

e-commerceorder-systemprocess engine
0 likes · 14 min read
Designing Scalable E‑Commerce Order Systems: Architecture, Core Functions, and Future Trends
Architecture Digest
Architecture Digest
Oct 2, 2020 · Backend Development

Design and Core Functions of an E‑commerce Order System

This article explains the role, architecture, key modules, workflow, state machine, and future evolution of an order system in traditional e‑commerce enterprises, providing a comprehensive guide for designing and improving order management solutions.

Workflowe-commerceinventory management
0 likes · 14 min read
Design and Core Functions of an E‑commerce Order System
Xiaokun's Architecture Exploration Notes
Xiaokun's Architecture Exploration Notes
Jul 15, 2020 · Fundamentals

Mastering Paxos: A Step‑by‑Step Guide to Distributed Consensus

This article provides a comprehensive, step‑by‑step explanation of the Paxos consensus algorithm—including its basic principles, roles, prepare and accept phases, Multi‑Paxos extensions, leader election, and state‑machine integration—while offering practical insights for building reliable distributed systems.

Leader ElectionMulti-PaxosPaxos
0 likes · 23 min read
Mastering Paxos: A Step‑by‑Step Guide to Distributed Consensus
58 Tech
58 Tech
Feb 14, 2020 · Backend Development

Finite State Machine Based Advertisement Status Management in the LEGO Advertising Platform

This article systematically introduces a finite state machine (FSM) based solution for managing advertisement status in the LEGO advertising platform, detailing the background challenges, problem review, two design alternatives (strategy‑factory pattern and configuration‑driven approach), their advantages, disadvantages, and a final recommendation.

AdvertisementFSMStrategy Pattern
0 likes · 11 min read
Finite State Machine Based Advertisement Status Management in the LEGO Advertising Platform
Alibaba Cloud Developer
Alibaba Cloud Developer
Nov 6, 2019 · Backend Development

Why Your Java Service Breaks When Scaling and How to Fix It

This article examines five common Java backend pitfalls that startups face—single‑machine locking, improper multithreading, poorly defined workflows, unsafe system interactions, and non‑paginated queries—explains why they cause failures in distributed environments, and provides practical solutions such as distributed locks, message queues, state‑machine redesign, RPC interfaces, and pagination techniques.

Message Queuejavamultithreading
0 likes · 22 min read
Why Your Java Service Breaks When Scaling and How to Fix It
Programmer DD
Programmer DD
Sep 3, 2019 · Backend Development

Mastering Java State Machines with Enums: A Practical Guide

This article explains how Java developers can replace cumbersome if‑else status handling with a finite state machine implemented via enums, illustrating concepts, design patterns, and a complete example of an order‑delivery workflow, complete with diagrams and sample code.

Design PatternEnumbackend development
0 likes · 6 min read
Mastering Java State Machines with Enums: A Practical Guide
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.

Transaction Managementasynchronous messagingorder processing
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 TasksModular Architecturebackend design
0 likes · 12 min read
Evolution of ZhaiZhai Transaction System: From Monolithic Design to FSM‑Based Modular Architecture
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Jul 27, 2018 · Databases

Designing Optimal Order Status Fields: Best Practices for Database Schemas

This article analyzes common disagreements in designing an order status field for e‑commerce systems, explores business state modeling, evaluates dictionary representations, recommends using varchar2 with a separate dictionary table, and provides a comprehensive set of status values and their handling guidelines.

Database Designbackend developmente-commerce
0 likes · 19 min read
Designing Optimal Order Status Fields: Best Practices for Database Schemas
360 Tech Engineering
360 Tech Engineering
Jul 4, 2018 · Backend Development

Understanding and Avoiding Common Concurrency Bugs in Java

This article introduces the four major categories of multithreaded bugs—data races, atomicity failures, ordering failures, and deadlocks—explains their causes with Java examples, and provides practical techniques such as using state machines, volatile variables, consistent lock ordering, and proper exception handling to prevent them.

Data RaceDeadlockjava
0 likes · 7 min read
Understanding and Avoiding Common Concurrency Bugs in Java
21CTO
21CTO
Jul 12, 2017 · Fundamentals

Why Logs Are the Hidden Backbone of Distributed Systems and Real‑Time Data

This note distills Jay Kreps' extensive blog on logs, explaining their core role in distributed databases, real‑time data pipelines, replication, and state‑machine consistency, and showing how logs unify concepts from version control to streaming architectures.

Data ReplicationReal‑time Datalogs
0 likes · 12 min read
Why Logs Are the Hidden Backbone of Distributed Systems and Real‑Time Data
Qunar Tech Salon
Qunar Tech Salon
Sep 21, 2016 · Fundamentals

Understanding the TCP State Machine: Handshake, Four‑Way Termination, and Practical Experiments

This article explains the TCP three‑way handshake, four‑way termination, and related state transitions, illustrates uncommon scenarios such as simultaneous open and close, discusses half‑open connections, fd‑leak effects, and presents Linux‑based experiments with client.go and server.go code samples.

Connection terminationHandshakeLinux
0 likes · 15 min read
Understanding the TCP State Machine: Handshake, Four‑Way Termination, and Practical Experiments
Meituan Technology Team
Meituan Technology Team
Aug 5, 2016 · Backend Development

Optimizing Distributed Queue Programming: Producer, Consumer & Middleware Tips

This article examines practical optimization techniques for distributed queue systems, covering producer throughput and persistence improvements, cache and batch‑write strategies, middleware selection criteria, consumer ordering and serialization challenges, singleton service trade‑offs, leader‑election designs, and deduplication state‑machine implementations.

Leader ElectionMiddleware Selectiondistributed queues
0 likes · 30 min read
Optimizing Distributed Queue Programming: Producer, Consumer & Middleware Tips
WeChat Client Technology Team
WeChat Client Technology Team
Jun 22, 2016 · Fundamentals

Understanding Production‑Grade Paxos: How PhxPaxos Works and Its Engineering Secrets

This article explains the core principles and engineering details of the production‑grade Paxos library PhxPaxos, covering consistency concepts, the roles of proposer, acceptor and learner, instance management, state‑machine integration, performance optimizations, checkpointing, and correctness verification in distributed asynchronous environments.

ConsensusPaxosPhxPaxos
0 likes · 29 min read
Understanding Production‑Grade Paxos: How PhxPaxos Works and Its Engineering Secrets
WeChat Backend Team
WeChat Backend Team
Jun 22, 2016 · Fundamentals

How PhxPaxos Turns Paxos Theory into a Production‑Grade Consensus Library

This article provides a beginner-friendly, engineering-focused overview of the production‑grade Paxos library PhxPaxos, explaining the consensus protocol, its roles, instance management, state‑machine integration, performance optimizations, multi‑group deployment, and practical considerations such as disk durability, leader election, and log checkpointing.

Fault TolerancePaxosdistributed consensus
0 likes · 30 min read
How PhxPaxos Turns Paxos Theory into a Production‑Grade Consensus Library