RabbitMQ消息队列技术在农业气象测报业务系统中的应用
Application of RabbitMQ Message Queue Technology in Agrometeorological Observation and Reporting System
-
摘要: 针对气象信息化标准体系建设的需求,取缔长期以来农业气象人工观测资料新长Z文件的FTP传输方式,改用消息传输。采用C/S架构技术开发,面向对象思维与模块化技术,利用两层架构设计,研发Java消息服务传输技术在AgMODOS中的开发应用,包括基于AMQP协议的RabbitMQ消息中间件技术,通过消息过滤与封装、数据缓存、数据补传,实现农业气象观测标准数据XML文件的传输。系统已于2020年9月在全国农业气象观测站业务试运行,2020年12月1日进行农业气象人工观测数据传输业务切换。业务运行结果表明,消息传输稳定、无丢失,99%的数据从台站到国家局在1s内完成传输,大幅提升了农业气象观测数据的传输时效性和服务能力。Abstract: According to requirements of construction of meteorological information standard system,the FTP transmission mode of new long Z files of agricultural meteorological manual observation data for a long time is banned and message transmission is used instead.Development and application of Java message service transmission technology in AgMODOS was developed by using C/S architecture technology,object-oriented thinking and modular technology,and two-tier architecture design.It included RabbitMQ message middleware technology based on AMQP protocol,which realized transmission of agrometeorological observation Standard Data XML file through message filtering and encapsulation,data caching and data supplementary transmission. The system has been put into trial operation in National Agricultural Meteorological Observation Station in September 2020,and switched to manual agricultural meteorological observation data transmission service on December 1,2020. Results of operation showed that message transmission was stable without loss,99% of the data was transmitted within 1s from the station to national bureau,which greatly improved transmission timeliness and service capacity of agricultural meteorological observation data.