CN110401592A - The method and apparatus of stream compression in a kind of message channel - Google Patents

The method and apparatus of stream compression in a kind of message channel Download PDF

Info

Publication number
CN110401592A
CN110401592A CN201910694949.9A CN201910694949A CN110401592A CN 110401592 A CN110401592 A CN 110401592A CN 201910694949 A CN201910694949 A CN 201910694949A CN 110401592 A CN110401592 A CN 110401592A
Authority
CN
China
Prior art keywords
message
module
connection
terminal
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910694949.9A
Other languages
Chinese (zh)
Other versions
CN110401592B (en
Inventor
王浩
曹剑
孙强
邢晓訸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Three-Body Cloud Intelligent Technology Co Ltd
Original Assignee
Three-Body Cloud Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Three-Body Cloud Intelligent Technology Co Ltd filed Critical Three-Body Cloud Intelligent Technology Co Ltd
Priority to CN201910694949.9A priority Critical patent/CN110401592B/en
Publication of CN110401592A publication Critical patent/CN110401592A/en
Application granted granted Critical
Publication of CN110401592B publication Critical patent/CN110401592B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/214Monitoring or handling of messages using selective forwarding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Abstract

The purpose of the application is to provide a kind of method and apparatus of stream compression in message channel, passes through the identification information that the connection is generated according to the connection notice between the terminal and server-side received;According to the identification information of the connection by message dilivery into corresponding message queue theme;The message in the message queue theme is subscribed to according to the type of message, the message is handled, wherein the type of the message includes upstream message and downstream message;It will treated that message routes to disparate modules in message channel according to the corresponding routing mode of the type of message consumes.To accurate issuing message, the relationship of connection and terminal and connection between positioning terminal and server, while reducing data transmission pressure and each module in message channel is sufficiently decoupled.

Description

The method and apparatus of stream compression in a kind of message channel
Technical field
This application involves a kind of method and apparatus of stream compression in internet of things field more particularly to message channel.
Background technique
With constantly universal and the nationwide fitness programs epoch the rise of Internet of Things, when exercise industry also enters intelligence Generation.Traditional management style cannot effectively monitor the Intelligent hardware state of access in real time, long-range control Intelligent hardware makes difference Change processing;Each equipment room can not carry out information sharing simultaneously.It can be solved at present by constructing the message channel of Intelligent hardware Problem is stated, in message channel, stream compression mode affects the performance of message channel system, and some stream compression sides at present The module that connecting between formula positioning terminal and server is not accurate enough, data transmission pressure is big, stream compression is related to cannot fill Decompose coupling.
Summary of the invention
The purpose of the application is to provide a kind of method and apparatus of stream compression in message channel, solves the prior art The module that connecting between middle positioning terminal and server is not accurate enough, data transmission pressure is big, stream compression is related to cannot fill The problem of decomposing coupling.
According to the one aspect of the application, a kind of method of stream compression in message channel is provided, this method comprises:
The identification information of the connection is generated according to the connection notice between the terminal and server-side received;
According to the identification information of the connection by message dilivery into corresponding message queue theme;
The message in the message queue theme is subscribed to according to the type of message, the message is handled, wherein institute The type for stating message includes upstream message and downstream message;
Treated message according to the corresponding routing mode of the type of message is routed into disparate modules in message channel It is consumed.
Further, the identification information of the connection is generated according to the connection notice between the terminal and server-side received Later, comprising:
The first tuple relationship is generated according to the identification information of the connection and the identification information of the terminal, when receiving end After holding successful connection notice, the first tuple relationship is stored in application memory, and second yuan is stored in cache database Group relationship, wherein the second tuple relationship includes the identification information of the terminal with connection relationship and the address letter of server-side Breath.
Further, which comprises
The terminal and TCP gateway are attached by the link block in the message channel;
The message received by the TCP gateway is subjected to sequence by the message packet handing module in the message channel Columnization or antitone sequence, and carry out encryption and decryption processing;
By the data collection module in the message channel collect the heartbeat packet of the terminal, message sink number and into Row traffic statistics and asynchronous batch insertion process is carried out to the message that receives by the TCP gateway;
All third parties, which are docked, by the business polymerization module in the message channel carries out route distribution data.
Further, the message in the message queue theme is subscribed to according to the type of message, at the message Reason, comprising:
When the type of the message is upstream message, the message packet handing module subscribes to all modules in message channel All message subjects of production take out message from all message subjects and carry out unserializing, dismantling packet and decryption processing;
By the type of the message be downstream message when, the message packet handing module subscribes to the message packet handing module Exclusive message queue theme takes out message from the exclusive message queue theme and is encrypted, organizes packet and serializing processing.
Further, by treated, message routes in message channel according to the corresponding routing mode of the type of message Disparate modules are consumed, comprising:
When the type of the message is upstream message, by the message after carrying out unserializing, disassembling packet and decryption processing It is delivered in the data collection module and the message subject of business polymerization module consumption.
Further, by treated, message routes in message channel according to the corresponding routing mode of the type of message Disparate modules are consumed, comprising:
When the type of the message is downstream message, the message packet handing module is postponed according to the identification information of terminal The address information of corresponding server-side is found in deposit data library, and will be encrypted according to the address information of the server-side, Group packet and serializing treated message dilivery are into the link block;
The link block searches the identification information of corresponding connection according to the connection tuple relationship;
The message is pushed into the terminal according to the identification information of the corresponding connection found.
Further, the message in the message queue theme is subscribed to according to the type of message, at the message Reason, comprising:
The data collection module subscribes to the exclusive message subject of the data collection module, from the exclusive message subject It consumes message and processing business logic is carried out according to the coding line of the message.
Further, the message in the message queue theme is subscribed to according to the type of message, at the message Reason, comprising:
The business polymerization module subscribes to the exclusive message queue theme of the business polymerization module, from the exclusive message team Message is taken out in column theme to be handled;
Wherein, will treated message routed to according to the corresponding routing mode of the type of message it is different in message channel Module is consumed, comprising:
Corresponding routing iinformation is determined according to the identification information field of the application program of treated message;
According to the routing iinformation, treated that message routes to different third parties by described, so that the third party will It is described that treated that message pushes to the terminal;
The business polymerization module will receive described in treated be delivered to after message assembles by preset format it is described In message packet handing module, is consumed by the message packet handing module and be distributed in the data collection module.
On the other hand according to the application, a kind of computer-readable medium is additionally provided, is stored thereon with computer-readable Instruction, the computer-readable instruction can be executed by processor to realize the aforementioned method.
According to the application another aspect, a kind of equipment of stream compression in message channel is additionally provided, which includes:
One or more processors;And
It is stored with the memory of computer-readable instruction, the computer-readable instruction makes the processor when executed Execute the operation of aforementioned the method.
Compared with prior art, the application, which passes through, generates institute according to the connection notice between the terminal and server-side received State the identification information of connection;According to the identification information of the connection by message dilivery into corresponding message queue theme;According to The type of message subscribes to the message in the message queue theme, and the message is handled, wherein the type of the message Including upstream message and downstream message;Treated message according to the corresponding routing mode of the type of message is routed into message Disparate modules are consumed in channel.To accurate issuing message, connection and terminal between positioning terminal and server with The relationship of connection, while reducing data transmission pressure and each module in message channel is sufficiently decoupled.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 shows the method flow signal of stream compression in a kind of message channel provided according to the one aspect of the application Figure;
Fig. 2 shows the schematic diagrames of message channel stream compression mode in one embodiment of the application.
The same or similar appended drawing reference represents the same or similar component in attached drawing.
Specific embodiment
The application is described in further detail with reference to the accompanying drawing.
In a typical configuration of this application, terminal, the equipment of service network and trusted party include one or more Processor (CPU), input/output interface, network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or Any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, computer Readable medium does not include non-temporary computer readable media (transitory media), such as the data-signal and SLB carrier wave of modulation.
Fig. 1 shows the method flow signal of stream compression in a kind of message channel provided according to the one aspect of the application Figure, this method comprises: step S11~step S14,
In step s 11, the mark of the connection is generated according to the connection notice between the terminal and server-side received Information;Here, the connection that terminal is established first reaches general TCP gateway, TCP net when establishing connection between terminal and server-side Close according to receive connection notice generate the connection identification information (Client ID), thus subsequent message it is accurate under Hair is all located by connecting by Client ID.
In step s 12, according to the identification information of the connection by message dilivery into corresponding message queue theme;In This, the identification information of different connections corresponds to different message subjects (Topic), by different instances according to the mark of corresponding connection Information delivery is known into oneself corresponding message queue Topic.
In one embodiment of the application, after step s 11, according to the identification information of the connection and the mark of the terminal Know information and generate the first tuple relationship, after receiving terminal successful connection notice, described first yuan is stored in application memory Group relationship, and the second tuple relationship is stored in cache database, wherein the second tuple relationship includes having connection relationship Terminal identification information and server-side address information.Here, the first tuple relationship is by the connection that generates when terminal connects Globally unique identifier's information of identification information and terminal composition, the second tuple relationship is by having the server-side of connection relationship with terminal Address information and terminal identification information composition, after terminal connection is upper, link block stores first yuan in application memory Group relationship, while the second tuple relationship is stored in cache database.
In one embodiment of the application, after various terminals or server are loaded by load balancing (SLB), with message channel General TCP gateway establish TCP connection carry out data interaction communication.Message channel is responsible for the connection of maintenance management equipment and docking Equipment management, service management, message transmission are controlled uniformly by each operation system, form internal communication closed loop.Message channel Including link block, message packet handing module, data collection module and business polymerization module, lead to when the connection that equipment is established reaches The identification information (Client ID) of the connection is generated when with the link block of TCP gateway, subsequent precisely issue passes through Client ID is located by connecting, while each terminal device has a globally unique equipment identification information (Device ID);In terminal connection Afterwards, link block stores [Device ID, Client ID] tuple relationship in application memory, while in cache database (Redis) [Device ID, IP] tuple relationship for storing device end ID and server ip, according to [Device ID, Client ID] tuple relationship navigates to the relationship of terminal device and connection, according to [Device ID, IP] tuple relationship positioning terminal equipment With the relationship of server.Meanwhile Topic, different link blocks are established with the server ip of bearer connection module in message queue By message dilivery into oneself corresponding message queue Topic, the corresponding Topic of link block is ordered example with the IP of server Name, such as [Topic:Connect:IP].
In step s 13, the message in the message queue theme is subscribed to according to the type of message, the message is carried out Processing, wherein the type of the message includes upstream message and downstream message;Here, uplink information is that terminal is sent to server-side Message, downstream message is that server-side is sent to the message of terminal device.The type of different message takes from message queue theme The mode of outbound message is different, can subscribe to message queue theme according to the type for the message that disparate modules in message channel receive In message, and then message is handled, to facilitate in step S14, will treated message according to the type of message Corresponding routing mode routes to disparate modules in message channel and is consumed.According to the different corresponding routing sides of type of message Formula forwards the message to each module in message channel and is consumed, for example, in message packet handing module it is true according to the type of message Determine that routing mode routes to data collection module and business polymerization module is consumed.
In one embodiment of the application, which comprises by the link block in the message channel by the end End is attached with TCP gateway;It will be received by the TCP gateway by the message packet handing module in the message channel Message carry out serializing or antitone sequence, and carry out encryption and decryption processing;Pass through the data collection module in the message channel It collects heartbeat packet, message sink number and the progress traffic statistics of the terminal and disappears to what is received by the TCP gateway Breath carries out asynchronous batch insertion process;All third parties are docked by the business polymerization module in the message channel to route Distribute data.Here, message channel is split as four modules: link block (Connect), message packet handing module (Logic), data collection module (Collector) and business polymerization module (Broker).Connect module is responsible and terminal TCP connection, Logic module is responsible for serializing or unserializing and data encrypting and deciphering, Collector module are responsible for the collecting device heart The functions such as report is wrapped in jump, message sink number reports, traffic statistics and the insertion of asynchronous batch, Broker module are responsible for docking all the Tripartite carries out route distribution data.Each functions of modules decoupling in message channel, improves the message of message channel after fractionation module Processing capacity, while each module uniformly monitors distributed system (such as Etcd) and obtains configuration update in real time.
In one embodiment of the application, each module data flowing mode in message channel is as shown in Fig. 2, at message package It manages in module (Logic), when the type of the message is upstream message, the message packet handing module is subscribed in message channel All message subjects of all module productions take out message from all message subjects and carry out unserializing, dismantling packet and decryption Processing;By the type of the message be downstream message when, the message packet handing module subscribes to the special of the message packet handing module Belong to message queue theme, message is taken out from the exclusive message queue theme and encrypted, organize packet and serializing processing.In This, when for upstream message, Logic module subscribes to the message subject (Topic) of all link block productions, takes from Topic Outbound message carries out unserializing, dismantling packet, decryption oprerations;When for downstream message, Logic module subscribes to the exclusive message of the module Queue Topic is named as [Topic:Logic], and business polymerization module and data collection module may be to the exclusive message teams Message is delivered in column Topic.
Continue to connect above-described embodiment, when the type of the message be upstream message when, will carry out unserializing, dismantling packet and In the message subject that message dilivery after decryption processing is consumed to the data collection module and the business polymerization module.Work as institute When the type for stating message is downstream message, the message packet handing module is looked into from cache database according to the identification information of terminal The address information of corresponding server-side is found, and will be encrypted according to the address information of the server-side, organize packet and serializing Treated message dilivery is into the link block;The link block searches corresponding company according to the connection tuple relationship The identification information connect;The message is pushed into the terminal according to the identification information of the corresponding connection found.Here, working as When for upstream message, the message dilivery after carrying out unserializing, dismantling packet, decryption oprerations enters for data collection module and business In the message subject of aggregation module consumption (Topic), it is named as [Topic:Collector] and [Topic:Broker].When When for downstream message, each message summarizes the identification information (Device ID) that can have terminal, message packet handing module from It is corresponding that its is found from cache database (Redis) according to the identification information of terminal when consumption message in [Topic:Logic] Server ip, which is encrypted, organize packet, serializing the way of escape by be delivered to link block it is corresponding [Topic: Connect:IP] in, link block then finds corresponding connection Client ID according to [Device ID, Client ID] and will Message pushes to terminal device.The cryptographic checks algorithm such as SHA1 Hash, AES can be used in above-mentioned decryption oprerations and cryptographic operation, So that it is guaranteed that safety of the message in transmission process.Simultaneously to message carry out serializing processing can compressed data as far as possible it is big It is small, to save bandwidth.Message packet handing module routes to uplink and downlink message in different Topic to disappear for corresponding consumer Take, to allow each module sufficiently to decouple, does not interfere with each other.
With continued reference to Fig. 2, the data collection module subscribes to the exclusive message subject of the data collection module, from it is described specially Belong to and consumes message in message subject and processing business logic is carried out according to the coding line of the message.Here, data collection module Its exclusive Topic is subscribed to, naming method is [Topic:Collector], and data collection module therefrom consumes message and basis The coding line of message handles different business logic.Wherein, coding line is such as the Scmd in context data communication interaction agreement, When Scmd is heartbeat coding line, then the last time for updating the corresponding terminal device of the message sends heart time;Message for another example A message copy, data collection module root are delivered while packet handing module messaging in [Topic:Collector] Its size is calculated according to message copy, the sum and uninterrupted for sending message can be counted.
With reference to Fig. 2, the business polymerization module subscribes to the exclusive message queue theme of the business polymerization module, from it is described specially Belong to taking-up message in message queue theme to be handled;Wherein, in step S14, according to the application program of treated message Identification information field determine corresponding routing iinformation;According to the routing iinformation, treated that message routes to difference by described Third party so that treated that message pushes to the terminal by described by the third party;The business polymerization module will connect Receive it is described treated is delivered in the message packet handing module after message assembles by preset format, by the message package Processing module is consumed and is distributed in the data collection module.Here, business polymerization module subscribes to its exclusive message team It arranges Topic [Topic:Broker], business polymerization module is according to identification information (APP ID) field of the application program in message It determines its corresponding recipient, and forwards the message to different third parties according to corresponding recipient, wherein third party exists Corresponding APP ID can be generated when access, and corresponding loopback address, consumption quota are set according to calling interface (Open API) Deng.When third party actively passes through Open API to terminal PUSH message, business polymerization module receive after by preset format group It is directly delivered to after installing in [Topic:Logic], is consumed by message packet handing module and is distributed to data collection module.It needs Illustrate, the third party to be accessed platform after the approval, whether business can be needed to adjust back by Open API registration And corresponding business loopback address, business polymerization module are routed when consuming uplink traffic messages according to the APP ID in message The business loopback address set to access side carries out further business for third party and judges.
In addition, it is stored thereon with computer-readable instruction the embodiment of the present application also provides a kind of computer-readable medium, The computer-readable instruction can be executed by processor to realize the aforementioned method.
In one embodiment of the application, according to the application another aspect, data flow in a kind of message channel is additionally provided The equipment turned, the equipment include:
One or more processors;And
It is stored with the memory of computer-readable instruction, the computer-readable instruction makes the processor when executed Execute the operation of aforementioned the method.
For example, computer-readable instruction makes one or more of processors when executed:
The identification information of the connection is generated according to the connection notice between the terminal and server-side received;
According to the identification information of the connection by message dilivery into corresponding message queue theme;
The message in the message queue theme is subscribed to according to the type of message, the message is handled, wherein institute The type for stating message includes upstream message and downstream message;
Treated message according to the corresponding routing mode of the type of message is routed into disparate modules in message channel It is consumed.
Obviously, those skilled in the art can carry out various modification and variations without departing from the essence of the application to the application Mind and range.In this way, if these modifications and variations of the application belong to the range of the claim of this application and its equivalent technologies Within, then the application is also intended to include these modifications and variations.
It should be noted that the application can be carried out in the assembly of software and/or software and hardware, for example, can adopt With specific integrated circuit (ASIC), general purpose computer or any other realized similar to hardware device.In one embodiment In, the software program of the application can be executed to implement the above steps or functions by processor.Similarly, the application Software program (including relevant data structure) can be stored in computer readable recording medium, for example, RAM memory, Magnetic or optical driver or floppy disc and similar devices.In addition, hardware can be used to realize in some steps or function of the application, example Such as, as the circuit cooperated with processor thereby executing each step or function.
In addition, a part of the application can be applied to computer program product, such as computer program instructions, when its quilt When computer executes, by the operation of the computer, it can call or provide according to the present processes and/or technical solution. And the program instruction of the present processes is called, it is possibly stored in fixed or moveable recording medium, and/or pass through Broadcast or the data flow in other signal-bearing mediums and transmitted, and/or be stored according to described program instruction operation In the working storage of computer equipment.Here, including a device according to one embodiment of the application, which includes using Memory in storage computer program instructions and processor for executing program instructions, wherein when the computer program refers to When enabling by processor execution, method and/or skill of the device operation based on aforementioned multiple embodiments according to the application are triggered Art scheme.
It is obvious to a person skilled in the art that the application is not limited to the details of above-mentioned exemplary embodiment, Er Qie In the case where without departing substantially from spirit herein or essential characteristic, the application can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and scope of the present application is by appended power Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims Variation is included in the application.Any reference signs in the claims should not be construed as limiting the involved claims.This Outside, it is clear that one word of " comprising " does not exclude other units or steps, and odd number is not excluded for plural number.The first, the second equal words are used to indicate Title, and do not indicate any particular order.

Claims (10)

1. a kind of method of stream compression in message channel, wherein the described method includes:
The identification information of the connection is generated according to the connection notice between the terminal and server-side received;
According to the identification information of the connection by message dilivery into corresponding message queue theme;
The message in the message queue theme is subscribed to according to the type of message, the message is handled, wherein described to disappear The type of breath includes upstream message and downstream message;
Treated message is routed to disparate modules in message channel according to the corresponding routing mode of the type of message to carry out Consumption.
2. according to the method described in claim 1, wherein, notifying to generate according to the connection between the terminal and server-side received After the identification information of the connection, comprising:
The first tuple relationship is generated according to the identification information of the connection and the identification information of the terminal, is connected when receiving terminal After connecing success notification, the first tuple relationship is stored in application memory, and the second tuple pass is stored in cache database System, wherein the second tuple relationship includes the identification information of the terminal with connection relationship and the address information of server-side.
3. according to the method described in claim 1, wherein, which comprises
The terminal and TCP gateway are attached by the link block in the message channel;
The message received by the TCP gateway is serialized by the message packet handing module in the message channel Or antitone sequence, and carry out encryption and decryption processing;
The heartbeat packet of the terminal, message sink number are collected by the data collection module in the message channel and are flowed Amount counts and carries out asynchronous batch insertion process to the message received by the TCP gateway;
All third parties, which are docked, by the business polymerization module in the message channel carries out route distribution data.
4. according to the method in claim 2 or 3, wherein subscribed in the message queue theme according to the type of message Message handles the message, comprising:
When the type of the message is upstream message, the message packet handing module subscribes to all module productions in message channel All message subjects, from all message subjects take out message carry out unserializing, dismantling packet and decryption processing;
By the type of the message be downstream message when, the message packet handing module subscribes to the exclusive of the message packet handing module Message queue theme takes out message from the exclusive message queue theme and is encrypted, organizes packet and serializing processing.
5. according to the method described in claim 4, wherein, will treated message according to the corresponding routing side of the type of message Formula routes to disparate modules in message channel and is consumed, comprising:
When the type of the message is upstream message, by the message dilivery after carrying out unserializing, disassembling packet and decryption processing In the message subject consumed to the data collection module and the business polymerization module.
6. according to the method described in claim 4, wherein, will treated message according to the corresponding routing side of the type of message Formula routes to disparate modules in message channel and is consumed, comprising:
When the type of the message is downstream message, the message packet handing module is according to the identification information of terminal from caching number According to the address information for finding corresponding server-side in library, and it will be encrypted according to the address information of the server-side, organize packet And serializing treated message dilivery is into the link block;
The link block searches the identification information of corresponding connection according to the connection tuple relationship;
The message is pushed into the terminal according to the identification information of the corresponding connection found.
7. according to the method in claim 2 or 3, wherein subscribed in the message queue theme according to the type of message Message handles the message, comprising:
The data collection module subscribes to the exclusive message subject of the data collection module, consumes from the exclusive message subject Message simultaneously carries out processing business logic according to the coding line of the message.
8. according to the method in claim 2 or 3, wherein subscribed in the message queue theme according to the type of message Message handles the message, comprising:
The business polymerization module subscribes to the exclusive message queue theme of the business polymerization module, from the exclusive message queue master Message is taken out in topic to be handled;
Wherein, treated message according to the corresponding routing mode of the type of message is routed into disparate modules in message channel It is consumed, comprising:
Corresponding routing iinformation is determined according to the identification information field of the application program of treated message;
According to the routing iinformation, treated that message routes to different third parties by described, so that the third party will be described Message that treated pushes to the terminal;
The business polymerization module will receive described in treated is delivered to the message after message assembles by preset format In packet handing module, is consumed by the message packet handing module and be distributed in the data collection module.
9. a kind of computer-readable medium, is stored thereon with computer-readable instruction, the computer-readable instruction can be processed Device is executed to realize such as method described in any item of the claim 1 to 8.
10. the equipment of stream compression in a kind of message channel, wherein the equipment includes:
One or more processors;And
It is stored with the memory of computer-readable instruction, the computer-readable instruction when executed executes the processor Such as the operation of any one of claims 1 to 8 the method.
CN201910694949.9A 2019-07-30 2019-07-30 Method and equipment for data transfer in message channel Active CN110401592B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910694949.9A CN110401592B (en) 2019-07-30 2019-07-30 Method and equipment for data transfer in message channel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910694949.9A CN110401592B (en) 2019-07-30 2019-07-30 Method and equipment for data transfer in message channel

Publications (2)

Publication Number Publication Date
CN110401592A true CN110401592A (en) 2019-11-01
CN110401592B CN110401592B (en) 2022-03-04

Family

ID=68326557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910694949.9A Active CN110401592B (en) 2019-07-30 2019-07-30 Method and equipment for data transfer in message channel

Country Status (1)

Country Link
CN (1) CN110401592B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111209071A (en) * 2020-01-06 2020-05-29 广州虎牙科技有限公司 Information configuration method, device, server and storage medium
CN111901437A (en) * 2020-08-04 2020-11-06 北京一起教育信息咨询有限责任公司 Message transmission method, device and system
CN111970195A (en) * 2020-08-13 2020-11-20 上海哔哩哔哩科技有限公司 Data transmission method and streaming data transmission system
CN112039896A (en) * 2020-08-29 2020-12-04 中国平安财产保险股份有限公司 Data processing method, equipment, server and storage medium
CN112070645A (en) * 2020-07-28 2020-12-11 智维云图(上海)智能科技有限公司 Method and system for deploying fire-fighting project through modular assembly
CN113127232A (en) * 2021-04-19 2021-07-16 北京京东振世信息技术有限公司 Message processing method, device, equipment and storage medium
CN114051055A (en) * 2022-01-12 2022-02-15 江苏银承网络科技股份有限公司 Data transmission method and device in different systems
CN114938388A (en) * 2022-07-22 2022-08-23 浙江中控技术股份有限公司 Distributed data transmission method, device, system and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090100289A1 (en) * 2007-10-15 2009-04-16 Benson Kwuan-Yi Chen Method and System for Handling Failover in a Distributed Environment that Uses Session Affinity
CN104092767A (en) * 2014-07-21 2014-10-08 北京邮电大学 Posting/subscribing system for adding message queue models and working method thereof
CN105577736A (en) * 2014-11-07 2016-05-11 华为技术有限公司 Power line carrier communication terminal control device, system and method
CN108494815A (en) * 2018-02-06 2018-09-04 北京极智感科技有限公司 A kind of method and system of transmission message
CN108965355A (en) * 2017-05-18 2018-12-07 北京京东尚科信息技术有限公司 Method, apparatus and computer readable storage medium for data transmission
CN109040326A (en) * 2018-11-02 2018-12-18 北京京东金融科技控股有限公司 The method and apparatus of PUSH message
US20190014188A1 (en) * 2017-07-07 2019-01-10 Sap Se Key-value based message oriented middleware
CN109391500A (en) * 2017-08-11 2019-02-26 华为技术有限公司 A kind of configuring management method, device and equipment
CN109614245A (en) * 2018-10-11 2019-04-12 阿里巴巴集团控股有限公司 Message delivery method, device, electronic equipment and the storage medium of message-oriented middleware
CN109995873A (en) * 2019-04-10 2019-07-09 阿里巴巴集团控股有限公司 A kind of management client, equipment monitoring system and method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090100289A1 (en) * 2007-10-15 2009-04-16 Benson Kwuan-Yi Chen Method and System for Handling Failover in a Distributed Environment that Uses Session Affinity
CN104092767A (en) * 2014-07-21 2014-10-08 北京邮电大学 Posting/subscribing system for adding message queue models and working method thereof
CN105577736A (en) * 2014-11-07 2016-05-11 华为技术有限公司 Power line carrier communication terminal control device, system and method
CN108965355A (en) * 2017-05-18 2018-12-07 北京京东尚科信息技术有限公司 Method, apparatus and computer readable storage medium for data transmission
US20190014188A1 (en) * 2017-07-07 2019-01-10 Sap Se Key-value based message oriented middleware
CN109391500A (en) * 2017-08-11 2019-02-26 华为技术有限公司 A kind of configuring management method, device and equipment
CN108494815A (en) * 2018-02-06 2018-09-04 北京极智感科技有限公司 A kind of method and system of transmission message
CN109614245A (en) * 2018-10-11 2019-04-12 阿里巴巴集团控股有限公司 Message delivery method, device, electronic equipment and the storage medium of message-oriented middleware
CN109040326A (en) * 2018-11-02 2018-12-18 北京京东金融科技控股有限公司 The method and apparatus of PUSH message
CN109995873A (en) * 2019-04-10 2019-07-09 阿里巴巴集团控股有限公司 A kind of management client, equipment monitoring system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
YANINA PROTSKAYA等: ""Broker Bridging Mechanism for Providing Anonymity in MQTT"", 《IEEE》 *
何双元: ""高并发下消息队列模型的研究与应用"", 《万方数据库》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111209071A (en) * 2020-01-06 2020-05-29 广州虎牙科技有限公司 Information configuration method, device, server and storage medium
CN112070645A (en) * 2020-07-28 2020-12-11 智维云图(上海)智能科技有限公司 Method and system for deploying fire-fighting project through modular assembly
CN111901437A (en) * 2020-08-04 2020-11-06 北京一起教育信息咨询有限责任公司 Message transmission method, device and system
CN111901437B (en) * 2020-08-04 2022-12-20 北京一起教育信息咨询有限责任公司 Message transmission method, device and system
CN111970195A (en) * 2020-08-13 2020-11-20 上海哔哩哔哩科技有限公司 Data transmission method and streaming data transmission system
CN111970195B (en) * 2020-08-13 2022-04-19 上海哔哩哔哩科技有限公司 Data transmission method and streaming data transmission system
CN112039896A (en) * 2020-08-29 2020-12-04 中国平安财产保险股份有限公司 Data processing method, equipment, server and storage medium
CN113127232A (en) * 2021-04-19 2021-07-16 北京京东振世信息技术有限公司 Message processing method, device, equipment and storage medium
CN114051055A (en) * 2022-01-12 2022-02-15 江苏银承网络科技股份有限公司 Data transmission method and device in different systems
CN114938388A (en) * 2022-07-22 2022-08-23 浙江中控技术股份有限公司 Distributed data transmission method, device, system and storage medium
CN114938388B (en) * 2022-07-22 2022-11-11 浙江中控技术股份有限公司 Distributed data transmission method, device, system and storage medium

Also Published As

Publication number Publication date
CN110401592B (en) 2022-03-04

Similar Documents

Publication Publication Date Title
CN110401592A (en) The method and apparatus of stream compression in a kind of message channel
JP5898980B2 (en) Method, system, and storage medium for managing multiple queues of non-persistent messages in a network environment
US8738700B2 (en) Method and system for providing network services
Tran et al. Eqs: An elastic and scalable message queue for the cloud
US20110246658A1 (en) Data exchange optimization in a peer-to-peer network
RU2608469C2 (en) Method and apparatus for high performance low latency real time notification delivery
EP3510728A1 (en) System and method for programmable native analytics in 5g mobile networks
US11271802B2 (en) Systems and methods for real-time processing and transmitting of high-priority notifications
CN107846365A (en) A kind of load balancing based on SDN realizes system and method
JP2014531072A (en) Distributing events to many devices
CN114185582A (en) Automobile software online upgrading system and method based on QUIC protocol
Lam et al. A web service framework supporting multimedia streaming
CN111679922A (en) Event-driven message publishing method, device and system
WO2013189421A2 (en) Distributed call ticket statistical method, device and system
US11706290B2 (en) Direct server reply for infrastructure services
CN112073536B (en) Method for realizing safe data transmission and processing between networks incapable of direct inter-access
EP2099168B1 (en) System, method and computer program product for bulk event transfer
CN113810397A (en) Protocol data processing method and device
Zhai et al. An improved DDS publish/subscribe automatic discovery algorithm
CN110855764A (en) Network traffic scheduling method and device and electronic equipment
Hundeboll et al. Peer-assisted content distribution with random linear network coding
CN112994894B (en) Gateway-based single-thread request processing method and information verification AGENT
JP5035286B2 (en) Bus-type message exchange system, bus-type message exchange method and program
Ananthakrishnan et al. Group based Publisher-Subscriber Communication Primitives for ndnSIM
Robles et al. Design of a performance measurements platform in lightweight M2M for Internet of Things

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant