• 查询稿件
  • 获取最新论文
  • 知晓行业信息

基于票务状态机的客票系统分布式事务管理关键技术研究

Key technologies of distributed transaction management for ticketing system based on ticket state machine

  • 摘要: 针对中国铁路客票发售与预定系统(简称:客票系统)在高并发场景下,海量分布式事务引发的异常事务处理效率低问题,提出了一种基于票务状态机的客票系统分布式事务管理架构,由票务状态机和分布式交易管理器构成。票务状态机为业务流程配置化管控与事务状态全链路可追溯提供数据支撑;分布式交易管理器依托异步调用、自动巡检及事务状态持久化机制,提升异常事务处理效率。文章进行了验证实验,实验结果表明,该框架对异常分布式事务处理效率优于原系统,且支持全链路事务状态的可追溯,证明了该框架在提升异常事务处理效率与保障数据一致性方面的有效性。

     

    Abstract: Aiming at the low processing efficiency of abnormal transactions caused by massive distributed transactions in high-concurrency scenarios of the Chinese Railway Ticketing and Reservation System (CRTRS), this paper proposed a distributed transaction management architecture based on a ticket state machine for CRTRS. The proposed architecture consists of a ticket state machine and a distributed transaction manager. The ticket state machine provides data support for the configurable management of business processes and full-link traceability of transaction states. Relying on asynchronous invocation, automatic inspection, and transaction state persistence mechanisms, the distributed transaction manager improves the processing efficiency of abnormal transactions. The paper conducted verification experiments to evaluate the performance of the proposed architecture. Experimental results show that the architecture achieves higher processing efficiency for abnormal distributed transactions than the original architecture and supports full-link traceability of transaction states. It demonstrates the effectiveness of the proposed architecture in improving abnormal transaction processing efficiency and ensuring data consistency.

     

/

返回文章
返回