Distributed message forwarding method

A message forwarding and distributed technology, applied in the field of data interaction services, can solve the problems of message sequence and priority without a better solution, so as to avoid continuous growth of occupation and ensure stable operation

Active Publication Date: 2016-02-17
INSPUR SOFTWARE CO LTD
View PDF4 Cites 39 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

MetaQ uses the Java language to redevelop on the basis of Kafka, and expands transaction support, message asynchronous s

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Distributed message forwarding method
  • Distributed message forwarding method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0034] The implementation of the distributed message forwarding method of the present invention includes: distributed message queue service and distributed message service interface.

[0035] (1) Distributed message queue service

[0036] (1) Distributed framework

[0037] as attached figure 1 As shown, the distributed message queue uses the distributed management tool Zookeeper to realize configuration synchronization and state management among forwarding servers. Each forwarding server is a node (called znodeServer) in the Zookeeper cluster. The state of the forwarding server is monitored. When the state of other forwarding server nodes changes (new forwarding nodes or existing forwarding nodes crash), the load balancing algorithm is triggered to redistribute the changed forwarding server tasks.

[0038] The Zookeeper cluster manages and publishes the information of each forwarding server in a unified manner. Subscriber and publisher nodes can obtain address information an...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a distributed message forwarding method, and belongs to the field of data interaction service. The method realizes configuration synchronization and state management between forwarding servers through a distributed management tool Zookeeper, each forwarding server is taken as a node of a Zookeeper cluster, each forwarding server node monitors states of other forwarding servers, and when the states of other forwarding server nodes are changed, tasks are redistributed to the changed forwarding servers through a load balancing algorithm. Compared to the prior art, the method provided by the invention provides a subscription/publishing function and realizes need-based customization of messages; the forwarding servers are main/standby servers relative to each other so that it is ensured that normal operation of service is not affected when any one forwarding server breaks down; forwarding failure messages are stored persistently so that data security is guaranteed; and conditional serialization caching is performed on high-coherence batch data so that service operation stability is guaranteed.

Description

technical field [0001] The invention relates to the field of data interaction services, in particular to a distributed message forwarding method. Background technique [0002] Message queuing is a system-to-system communication method. Systems communicate by writing and retrieving queued data (messages) without the need for dedicated connections linking them. With message queues, systems can execute independently -- they don't need to know where each other is, or wait for the receiving program to receive the message before continuing execution. [0003] Message queues provide a loosely coupled approach to constructing distributed applications that can be implemented synchronously or asynchronously. Interface calls to message queues are embedded in new or existing applications to provide information exchange by sending messages to or reading from memory or disk-based queues. Message queues can be used in applications to perform functions such as requesting services, exchan...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L29/08H04L12/865H04L47/6275
CPCH04L47/6215H04L67/1034H04L67/60
Inventor 马骏邵兵乔富龙郭炜
Owner INSPUR SOFTWARE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products