Welcome to Scholar Publishing Group

Machine Learning Theory and Practice, 2026, 6(1); doi: 10.38007/ML.2026.060111.

Research on Fault Tolerant Mechanism of Payment Order State Machine Based on Raft Consensus Algorithm

Author(s)

Jiayue Hu

Corresponding Author:
Jiayue Hu
Affiliation(s)

Electrical and Computer Engineering, New York University, Brooklyn, NY, 11201, USA

Abstract

To address the uncertainty and delayed event interference caused by master node failures when the state application is completed but the response has not yet returned in the Raft payment order service, this paper proposes a bounded consistent replay mechanism, Raft-BRR. This mechanism, based on order-level request identity, introduces external event version context, dual representation of historical results and current state, version fencing, and a two-level result lifecycle to maintain request semantics under limited storage conditions. Experiments were conducted on a three-node prototype, including post-application response loss, cross-master node retries, old version events, and window sensitivity. Results show that Raft-BRR achieves a median TRSR of 96.4% and 93.8% in F1 and F2 scenarios, respectively, a dual-state response integrity rate of 95.7%, and zero old version event error acceptances. Compared to a strong idempotent caching baseline, its throughput decreases by 8.2%, and P95 latency increases by 19.5%. These results demonstrate that Raft-BRR can improve the interpretability and version security of the payment order state machine layer at a controllable resource cost.

Keywords

Raft consensus algorithm; payment order; state machine replication; bounded replay; version fence; idempotency

Cite This Paper

Jiayue Hu. Research on Fault Tolerant Mechanism of Payment Order State Machine Based on Raft Consensus Algorithm. Machine Learning Theory and Practice (2026), Vol. 6, Issue 1: 94-106. https://doi.org/10.38007/ML.2026.060111.

References

[1] Fragkoulis M, Carbone P, Kalavri V, Katsifodimos A. A survey on the evolution of stream processing systems[J]. The VLDB Journal, 2024, 33(2): 507-541. DOI: 10.1007/s00778-023-00819-8

[2] Freitas T, Soares J, Correia M E, et al. Deterministic or probabilistic? A survey on Byzantine fault tolerant state machine replication[J]. Computers & Security, 2023, 129: 103200. DOI: 10.1016/j.cose.2023.103200.

[3] Bravo M, Chockler G, Gotsman A. Liveness and latency of Byzantine state-machine replication[J]. Distributed Computing, 2024, 37(2): 177-205. DOI: 10.1007/s00446-024-00466-4.

[4] Alves C M, De Souza M A, Idalino T B, et al. Composing state machine replication[J]. Journal of Internet Services and Applications, 2025, 16(1): 629-644. DOI: 10.5753/jisa.2025.5914.

[5] LU S F, ZHANG X Y, ZHAO R K, et al. P-Raft: An efficient and robust consensus mechanism for consortium blockchains[J]. Electronics, 2023, 12(10): 2271. DOI: 10.3390/electronics12102271.

[6] Wang, B. (2025). Methods of Load Optimization for Computer Systems Based on Physical Principles.

[7] Guo, X. (2025, March). Research on Blockchain-Based Financial AI Algorithm Integration Methods and Systems. In 2025 IEEE International Conference on Electronics, Energy Systems and Power Engineering (EESPE) pp.816-821. IEEE.

[8] Guo, X. (2025, April). Research on Financial Trading Algorithms Based on Deep Reinforcement Learning. In 2025 IEEE 3rd International Conference on Control, Electronics and Computer Technology (ICCECT) pp.1711-1715. IEEE.

[9] Yu, X. (2026). Exploration of Multi-Channel Conversion Path Optimization Methods Based on A/B Testing.

[10] Jing, X. (2025, November). In-Depth Analysis of the Optimization Decision Model of Financial Investment Portfolio Based on Machine Learning Algorithms in Python Scikit-Learn Library. In International Conference on Computational Technologies for Research in Data Analytics pp.130-140. Cham: Springer Nature Switzerland.

[11] Liu, X. (2026). Research on the Application of Artificial Intelligence in Consumer Privacy Data Protection. Procedia Computer Science, 279, 956-965.

[12] Liu, X. (2026). Construction of Consumer Data Privacy Protection System Based On Blockchain Technology. Procedia Computer Science, 282, 2082-2091.

[13] Huijie Pan. Discussion on Low-Latency Computing Strategies in Real-Time Hardware Generation. International Journal of Neural Network (2025), Vol. 4, Issue 1: 57-64.

[14] Yang, Y. (2026). Causal Inference-based Identification of Incremental Effects in Digital Advertising and Optimization Pathways for Resource Allocation. Advances in Computer and Communication, 7(2).

[15] Yuan, Y. (2026). Research on Memory Management and Dynamic Reasoning Methods for Intelligent Agents Based on Large Language Models.

[16] Han, W. (2025, November). An Empirical Study on Building a High-precision Forecasting System for Financial Market Trends Based on the PyTorch Deep Learning Framework. In International Conference on Computational Technologies for Research in Data Analytics (pp. 518-528). Cham: Springer Nature Switzerland.

[17] Sun, L. (2026). Consistency Optimization Strategies for Distributed Advertising Systems Under Cross-regional Deployment. Advances in Computer and Communication, 7(2).