摘要
为了在闭环全生命周期管理系统中提供高效的数据服务,解决众多异构系统信息交互和全生命周期内信息分享等方面的问题,建立了一种基于物联网协议MQTT和NIO框架Netty的中间件。首先,简要概述了闭环生命周期管理的内涵和系统架构;其次,在分析闭环生命周期管理系统中间件特点的基础上,设计了中间件的软件架构和处理过程;最后,设计了测试实验并进行了测试。测试结果表明,闭环全生命周期管理系统中间件能够快速有效地实现无效产品数据过滤,在大数据量和数据服务订阅者模式下,中间件的普通消息处理平均时间维持在8.56 s以内,系统平均吞吐率为2 162 packets/s,可以满足闭环全生命周期管理数据服务的应用需求。同时,该中间件也非常适合于拥有大量传感器节点的物联网环境,实现大数据量系统的数据采集和分发基础服务。
In order to provide a more efficient data service in closed-loop lifecycle management system and solve the problem of interacting and sharing lifecycle information in many heterogeneous systems, a middleware based on MQTT and NIO framework Netty is proposed. Firstly, the connotation and architecture of closed-loop lifecycle management system are summarized briefly. Then, the architecture and process of the middleware are designed based on the analysis of characteristics of middleware in closed-loop lifecycle management system. Finally, an experiment is designed. Experimental results show that the middleware can quickly and efficiently implement invalid product data filtering. In the mode with mass data and data service subscribers, the average processing time of normal message keeps less than 8.56 s, and the average system throughput is 2 162 packets per second, which both meet the requriements of closed-loop lifecycle management data service. Meanwhile, the middleware is also well suitable for Internet of things with a large number of sensor nodes, implementing basic data collection and distribution service.
出处
《计算机应用与软件》
2017年第4期16-21,共6页
Computer Applications and Software