Platform cascading method and system based on Rabbit MQ and Socket.io

A platform and cascading technology, applied in the field of distributed services, can solve the problems of network failure platform failure, complex implementation methods of heterogeneous platforms, and high coupling degree

CN106445705AActive Publication Date: 2017-02-22武汉众智数字技术有限公司
4 Cites 15 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2017-02-22

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention relates to a platform cascading method and system based on Rabbit MQ and Socket.io. The method includes the following steps that S1, administrative region division codes and platform codes are used as queue names and routing keys, and when task assistance or feedback assistance information is sent, messages are sent to designated queues through the designated routing keys; when all levels of platforms read the task assistance / feedback messages, the messages are read from the corresponding queues through the designated routing keys; S2, a socket.io message real-time push background service is set up based on the Node.js environment, other server applications or clients submit the messages needing to be pushed to the socket.io background service in the JSON format, and the messages are pushed or broadcast to the clients through the socket.io background service. Task cooperation, information feedback and part business data exchange functions can be achieved among multiple stages of transregional and heterogeneous platforms, and the seamless data demand of police in the synthetic combat process is met.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present invention relates to the technical field of distributed services, and more specifically, relates to a platform cascading method and system based on RabbitMQ and Socket.io. Background technique

[0002] In the deployment process of large-scale information systems in the public security industry, distributed deployment of multi-level platforms (national, provincial, municipal, district and county levels) is often required, and these platforms are often heterogeneous or provided by different vendors, so , it is particularly important to establish a data exchange function between these cross-regional, heterogeneous multi-level platforms. In the traditional platform data exchange methods in the past, data exchange is often carried out through database synchronization, ftp, WebService and other technologies, which are relatively deficient in data security, data confidentiality, system performance, system integration and concurrency, etc., especia...

Examples

Embodiment Construction

[0028] A method and system for cascading RabbitMQ and Socket.io platforms according to the present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0029] The following is a best example of a RabbitMQ and Socket.io platform cascading method and system described in the present invention, which does not limit the protection scope of the present invention.

[0030] figure 1 It shows a platform cascading method based on RabbitMQ and Socket.io, such as figure 2 As shown, platform 1 server and platform 2 server implement application-to-application communication through RabbitMQ, implement cross-platform real-time message push through Socket.io based on Node.js environment, and implement event-based communication through Express based on Node.js environment The web container that drives the non-blocking I / O model implements lightweight data exchange through JSON, including the following steps:

[0031] S1. Use the administr...