摘 要:本文分析了ActiveMQ 数据传输的底层原理,以解决数据突发洪峰时期的队列数据积压问题。利用增加并发消费者、调整消息预取值、批量消息确认等参数,实现了传输性能的多倍提升。最后还根据业务运行出现过的问题,优化了服务端的配置,加强了薄弱环节的监控,提升了系统的稳定性。
关键词:ActiveMQ;民航数据传输;数据传输框架
中图分类号:TP368.5 文献标识码:A 文章编号:2096-4706(2019)16-0128-04
Performance Optimization of Data Transmission Framework Based on ActiveMQ
CHEN Yao,LI Yanglei
(Middle South Regional Air Traffic Management Bureau of Civil Aviation of China,Guangzhou 510080,China)
Abstract:This paper has analyzed the underlying principle of ActiveMQ data transmission,to solve the data backlog problem during the peak period of data. By adding concurrent consumers,adjusting message prefetch values and batch message validation parameters,the transmission performance is improved many times. Finally,according to the problems in the operation of the business,the configuration of the server is optimized,the monitoring of weak links is strengthened,and the stability of the system is improved.
Keywords:ActiveMQ;civil aviation data transfer;data transfer framework
参考文献:
[1] APACHE software foundation. ActiveMQ [EB/OL].http://activemq.apache.org/index.html,2018-09-10.
[2] 王鹏,从波,李国杰,等. 基于ActiveMQ消息总线的性能测试方法 [J]. 测试技术学报,2019,33(2):147-152.
[3] 周聪. 基于改进的Active MQ 的通信模型的设计和实现 [D]. 长春:吉林大学,2017.
[4] Spring AMQP. Spring [EB/OL].https://docs.spring.io/s p r i n g - a m q p / a p i / o rg / s p r i n g f r a m e w o r k / a m q p / r a b b i t / l i s t e n e r /SimpleMessageListenerContainer.html,2019-01-01.
[5] Bruce Snyder,Dejan Bosanac,Rob Davies. Introduction to Apache ActiveMQ Green Paper from Active MQ in action [M].London:Manning,2017:20-23.
[6] Bruce Snyder,Dejan Bosanac,Rob Davies. Active MQ inaction [M].London:Manning,2005:4-5.
[7] 庞佳丽. 分布式系统中基于中间件的异步通信可靠性研究 [D]. 杭州:浙江工业大学,2017.
作者简介:
陈瑶(1987.04-),女,汉族,湖南湘潭人,工程师,硕士,研究方向:数据传输框架;
李洋磊(1983.01-),男,汉族,河南洛阳人,工程师,硕士,研究方向:民航气象信息系统设备维护。