| Today's world, middleware technology is playing a very important role. Middleware used in the current system, based on the publish / subscribe model for its excellent scalability features has been widespread concern. Therefore, based on the service reliability of the model becomes very necessary. Moreover, in wireless sensor networks in the study also rare.This article first publish/subscribe middleware system and its related agreements, the access is very in-depth study, and AMQP (Advanced Messaging Queuing Protocol), and MQTT-S (Message Queuing detection Transfer Protocol) architecture, the message interactively, message format etc. analysis and comparison. On this basis, the proposed article for publish / subscribe middleware, service reliability, security programs.Then,the program proposed in this paper is to build a complete distributed monitoring system, each node in it is detected as a check and object.In the specific implementation, it consists of three semi-independent subsystems, namely the reliability of detection system for the link, the server state assessment system and the global resource scheduling system. Link reliability test system to complete all the nodes on the network link monitoring, server status evaluation system for the system in the state of proxy testing, both systems have their respective monitoring results reported to the global resource scheduling system, which can use that to improve communication structure of the global optimization system. And in the global resource scheduling module system also uses punishment mechanism to ensure stability of the system.Finally, the system in a lab environment to conduct functional testing and performance testing, and test results are analyzed to verify the program presented in this paper the effectiveness and feasibility. |