###
计算机系统应用英文版:2019,28(9):185-189
本文二维码信息
码上扫一扫!
采用消息队列实现数据一致性方法
(1.海军航空大学 航空基础学院, 烟台 264001;2.烟台市公安局, 烟台 264001)
Data Consistency Method Based on Message Queuing
(1.School of Aeronautical Basis, Naval Aeronautical University, Yantai 264001, China;2.Yantai Municipal Public Security Bureau, Yantai 264001, China)
摘要
图/表
参考文献
相似文献
本文已被:浏览 1134次   下载 1904
Received:March 04, 2019    Revised:March 29, 2019
中文摘要: 针对构建分布式微服务中数据一致性问题,本文总结了在处理分布式计算中数据一致性问题遵循原则,分析实现微服务的幂等性设计重要性,提出了一种采用事务型消息队列解决分布式微服务典型应用场景中数据一致性问题的方法,并给出RocketMQ实现方式及原理,实验表明事务型消息可以较好解决分布式数据一致性问题,最后分析了上述方法的优缺点,本文提出的在分布式微服务构建中数据一致性处理方法应用中具有一定的借鉴作用.
Abstract:For the problem of data consistency in the construction of distributed micro-services, this paper summarizes the principles of data consistency in the process of distributed computing, analyzes the importance of idempotent design for realizing micro-services, and proposes a method of using transactional message queue to solve the problem of data consistency in typical application scenarios of distributed micro-services, and gives RocketMQ implementation method and principle. Experiments show that transactional messages can better solve the problem of distributed data consistency. Finally, the advantages and disadvantages of the above methods are analyzed. The data consistency processing method proposed in this study can be used for reference in the construction of distributed micro-services.
文章编号:     中图分类号:    文献标志码:
基金项目:国家自然科学基金(61790550,61790554)
引用文本:
张杰,满曙光,刘凯,周立军.采用消息队列实现数据一致性方法.计算机系统应用,2019,28(9):185-189
ZHANG Jie,MAN Shu-Guang,LIU Kai,ZHOU Li-Jun.Data Consistency Method Based on Message Queuing.COMPUTER SYSTEMS APPLICATIONS,2019,28(9):185-189