A message sending system, method and message processing method

By directly generating and sending the serialized complete message body in the message sending system, deserialization processing is avoided and batch sending tasks are processed in parallel, which solves the problem of long serialization and deserialization time in the existing technology and improves the efficiency of message sending. efficiency and system stability.

CN116016662BActive Publication Date: 2024-09-17RAJAX NETWORK &TECHNOLOGY (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211674268.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-26
Publication Date
2024-09-17
Estimated Expiration
2042-12-26

AI Technical Summary

Technical Problem

The existing message sending system frequently performs serialization and deserialization during the asynchronous communication process, which results in high system resource usage and long processing time, affecting the efficiency and stability of message sending.

Method used

In the message sending system, after the message production node serializes the original message body, it directly obtains the serialized supplementary data from the message supplement node, generates and sends the complete message body, avoids deserialization processing, and parallelizes it through the available senders. Process batch sending tasks and reduce dependence on message middleware.

Benefits of technology

It reduces system resource usage and network time consumption, improves the processing performance and stability of the message sending system, and improves message transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116016662B
    Figure CN116016662B
Patent Text Reader

Abstract

The present application discloses a message sending system, method and message processing method, wherein the message sending system comprises: a message production node, which is used to produce an original message body, serialize the original message body to obtain a serialized original message body, send a message body supplementary data acquisition request to a message supplement node, receive the serialized message body supplementary data sent by the message supplement node, generate a serialized complete message body according to the serialized original message body and the serialized message body supplementary data, and send the serialized complete message body to a message receiving system; a message supplement node, which is used to receive a message body supplementary data acquisition request sent by the message production node, and send the serialized message body supplementary data to the message production node according to the message body supplementary data acquisition request. Using this system to send messages can reduce internal processing time and network time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and more particularly to a message sending system. The present application also relates to a message sending method, device, electronic device, computer readable storage medium, and a message processing method. Background Art

[0002] In the prior art, an online-to-offline service platform generally includes multiple internal systems, such as a product system, a shopping cart system, an ordering system, a payment system, an order system, a return system, a logistics system, etc. There are two main communication methods between these internal systems: one is point-to-point communication through RPC (Remote Procedure Call), and the other is asynchronous communication through messages.

[0003] Asynchronous communication is a common communication method, which is generally provided by message middleware. Message middleware is a hardware or software infrastructure that completes the reception and transmission of messages in a distributed system, and can provide message delivery services for message producers and message consumers. When message delivery is performed through message middleware, the message producer needs to serialize the message, that is, convert the message into a binary data stream for transmission. After receiving the serialized message, the message consumer needs to deserialize the serialized message and restore the binary data stream to the form of a message.

[0004] When asynchronous communication is performed through messages, the internal processing process of the message sending system is as follows: the message production node serializes the original message body produced to obtain the serialized original message body, and then sends the serialized original message body to the message supplement node through the message middleware. The message supplement node first deserializes the serialized original message body to obtain the original message body, and then supplements the original message body to obtain the complete message body. Finally, the complete message body is serialized to obtain the serialized complete message body, and is sent to the message receiving system through the message middleware.

[0005] When a message supplement node includes multiple message supplement sub-nodes, the multiple message supplement sub-nodes communicate serially with each other, that is, the first message supplement sub-node receives the serialized original message body, and deserializes it to obtain the original message body, then supplements the original message body to obtain the first message body, and finally serializes the first message body to obtain a serialized first message body, and sends it to the second message supplement sub-node through the message middleware. Similarly, the second message supplement sub-node deserializes, supplements, and serializes the serialized first message body, and then sends it to the next message supplement sub-node until a complete serialized message body is obtained, which is finally sent to the message receiving system through the message middleware.

[0006] It can be seen that the above process needs to be serialized and deserialized multiple times. In particular, when there are multiple message supplement subnodes, each message supplement subnode needs to be deserialized, supplemented, and serialized. Frequent serialization and deserialization processes will occupy too many system resources, increase the internal processing time of the message sending system, and multiple calls to the message middleware will also increase the network time. For the same message to be sent in batches, the message can only be sent serially one by one through the above process to complete the message batch sending task. This may cause message transmission delays, greatly affecting the processing performance and stability of the message sending system. Summary of the invention

[0007] The present application provides a message sending system to solve the problems of high internal processing time and network time consumption and low message sending efficiency in existing message sending systems. The present application also provides a message sending method, device, electronic device and computer readable storage medium and a message processing method.

[0008] The present application provides a message sending system, which is special in that it includes:

[0009] A message production node is used to produce an original message body, serialize the original message body to obtain a serialized original message body, send a message body supplement data acquisition request to a message supplement node, receive the serialized message body supplement data sent by the message supplement node, generate a serialized complete message body according to the serialized original message body and the serialized message body supplement data, and send the serialized complete message body to a message receiving system;

[0010] The message supplement node is used to receive a message body supplement data acquisition request sent by the message production node, and send serialized message body supplement data to the message production node according to the message body supplement data acquisition request.

[0011] Optionally, the message sending system further includes: message middleware;

[0012] The sending the serialized complete message body to the message receiving system includes: sending the serialized complete message body to the message receiving system through the message middleware.

[0013] Optionally, the message production node includes a transmitter group, and the transmitter group includes a plurality of transmitters;

[0014] The sending of the serialized complete message body to the message receiving system through the message middleware includes: sending the serialized complete message body to the message middleware through an available sender in the sender group; and sending the serialized complete message body to the message receiving system through the message middleware.

[0015] Optionally, the message production node further includes a message producer;

[0016] The producing the original message body and serializing the original message body to obtain the serialized original message body comprises: producing the original message body by the message producer, serializing the original message body to obtain the serialized original message body, and sending the serialized original message body to the available sender;

[0017] The sending of a message body supplementary data acquisition request to a message supplementary node and receiving the serialized message body supplementary data sent by the message supplementary node comprises: sending a message body supplementary data acquisition request to the message supplementary node through the available sender and receiving the serialized message body supplementary data sent by the message supplementary node;

[0018] The generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data comprises: generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data through the available sender.

[0019] Optionally, sending the serialized original message body to the available senders includes: determining, according to the number of message batch sending tasks, available senders corresponding to the number of message batch sending tasks from the sender group; and sending the serialized original message body to each of the available senders through the message producer;

[0020] The sending of a message body supplementary data acquisition request to a message supplementary node through the available sender, and receiving the serialized message body supplementary data sent by the message supplementary node, comprises: sending a message body supplementary data acquisition request to a message supplementary node through each of the available senders, and receiving the serialized message body supplementary data sent by the message supplementary node respectively;

[0021] The generating of a serialized complete message body according to the serialized original message body and the serialized message body supplementary data by the available senders includes: generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data respectively received by each of the available senders.

[0022] Optionally, the message production node further includes a message producer;

[0023] The producing the original message body and serializing the original message body to obtain the serialized original message body comprises: producing the original message body by the message producer, sending the original message body to the available sender, and serializing the original message body by the available sender to obtain the serialized original message body;

[0024] The sending of a message body supplementary data acquisition request to a message supplementary node and receiving the serialized message body supplementary data sent by the message supplementary node comprises: sending a message body supplementary data acquisition request to the message supplementary node through the available sender and receiving the serialized message body supplementary data sent by the message supplementary node;

[0025] The generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data comprises: generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data through the available sender.

[0026] Optionally, sending the original message body to the available senders includes: determining, according to the number of message batch sending tasks, available senders corresponding to the number of message batch sending tasks from the sender group; and sending the original message body to each of the available senders through the message producer;

[0027] The serializing the original message body by the available transmitter to obtain the serialized original message body comprises: serializing the original message body received by each of the available transmitters to obtain the serialized original message bodies respectively;

[0028] The sending of a message body supplementary data acquisition request to a message supplementary node through the available sender, and receiving the serialized message body supplementary data sent by the message supplementary node, comprises: sending a message body supplementary data acquisition request to a message supplementary node through each of the available senders, and receiving the serialized message body supplementary data sent by the message supplementary node respectively;

[0029] The generating of a serialized complete message body according to the serialized original message body and the serialized message body supplementary data by the available senders includes: generating a serialized complete message body according to the serialized original message body obtained by respective processing and the serialized message body supplementary data received by each of the available senders.

[0030] Optionally, sending the serialized complete message body to the message middleware through the available senders in the sender group includes: sending the serialized complete message body generated by each of the available senders to the message middleware respectively;

[0031] The sending of the serialized complete message body to the message receiving system through the message middleware includes: sending the serialized complete message body sent by each available sender to the message receiving system corresponding to the message batch sending task through the message middleware.

[0032] Optionally, the message supplement node includes a plurality of message supplement sub-nodes;

[0033] The method of sending a message body supplement data acquisition request to a message supplement node and receiving serialized message body supplement data sent by the message supplement node includes: sending a message body supplement data acquisition request to each message supplement sub-node and receiving serialized message body supplement data composed of serialized message body supplement sub-data sent by each of the message supplement sub-nodes.

[0034] Optionally, the message production node and the message supplement node perform data transmission via remote procedure call.

[0035] The present application also provides a message sending method, which is special in that it is applied to a message production node, including:

[0036] Generating an original message body, and performing serialization processing on the original message body to obtain a serialized original message body;

[0037] Sending a message body supplementary data acquisition request to a message supplementary node, and receiving serialized message body supplementary data sent by the message supplementary node;

[0038] A serialized complete message body is generated according to the serialized original message body and the serialized message body supplementary data, and the serialized complete message body is sent to a message receiving system.

[0039] Optionally, sending the serialized complete message body to a message receiving system includes: sending the serialized complete message body to the message receiving system through a message middleware.

[0040] Optionally, the message production node includes a transmitter group, and the transmitter group includes a plurality of transmitters;

[0041] The sending of the serialized complete message body to the message receiving system through the message middleware includes: sending the serialized complete message body to the message middleware through the available senders in the sender group; and sending the serialized complete message body to the message receiving system through the message middleware.

[0042] Optionally, the message production node further includes a message producer;

[0043] The producing the original message body and serializing the original message body to obtain the serialized original message body comprises: producing the original message body by the message producer, serializing the original message body to obtain the serialized original message body, and sending the serialized original message body to the available sender;

[0044] The sending of a message body supplementary data acquisition request to a message supplementary node and receiving the serialized message body supplementary data sent by the message supplementary node comprises: sending a message body supplementary data acquisition request to the message supplementary node through the available sender and receiving the serialized message body supplementary data sent by the message supplementary node;

[0045] The generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data comprises: generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data through the available sender.

[0046] Optionally, sending the serialized original message body to the available senders includes: determining, according to the number of message batch sending tasks, available senders corresponding to the number of message batch sending tasks from the sender group; and sending the serialized original message body to each of the available senders through the message producer;

[0047] The sending of a message body supplementary data acquisition request to a message supplementary node through the available sender, and receiving the serialized message body supplementary data sent by the message supplementary node, comprises: sending a message body supplementary data acquisition request to a message supplementary node through each of the available senders, and receiving the serialized message body supplementary data sent by the message supplementary node respectively;

[0048] The generating of a serialized complete message body according to the serialized original message body and the serialized message body supplementary data by the available senders includes: generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data respectively received by each of the available senders.

[0049] Optionally, the message production node further includes a message producer;

[0050] The producing the original message body and serializing the original message body to obtain the serialized original message body comprises: producing the original message body by the message producer, sending the original message body to the available sender, and serializing the original message body by the available sender to obtain the serialized original message body;

[0051] The sending of a message body supplementary data acquisition request to a message supplementary node and receiving the serialized message body supplementary data sent by the message supplementary node comprises: sending a message body supplementary data acquisition request to the message supplementary node through the available sender and receiving the serialized message body supplementary data sent by the message supplementary node;

[0052] The generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data comprises: generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data through the available sender.

[0053] Optionally, sending the original message body to the available senders includes: determining, according to the number of message batch sending tasks, available senders corresponding to the number of message batch sending tasks from the sender group; and sending the original message body to each of the available senders through the message producer;

[0054] The serializing the original message body by the available transmitter to obtain the serialized original message body comprises: serializing the original message body received by each of the available transmitters to obtain the serialized original message bodies respectively;

[0055] The sending of a message body supplementary data acquisition request to a message supplementary node through the available sender, and receiving the serialized message body supplementary data sent by the message supplementary node, comprises: sending a message body supplementary data acquisition request to a message supplementary node through each of the available senders, and receiving the serialized message body supplementary data sent by the message supplementary node respectively;

[0056] The generating of a serialized complete message body according to the serialized original message body and the serialized message body supplementary data by the available senders includes: generating a serialized complete message body according to the serialized original message body obtained by respective processing and the serialized message body supplementary data received by each of the available senders.

[0057] Optionally, sending the serialized complete message body to the message middleware through the available senders in the sender group includes: sending the serialized complete message body generated by each of the available senders to the message middleware respectively;

[0058] The sending of the serialized complete message body to the message receiving system through the message middleware includes: sending the serialized complete message body sent by each available sender to the message receiving system corresponding to the message batch sending task through the message middleware.

[0059] Optionally, the message supplement node includes a plurality of message supplement sub-nodes;

[0060] The method of sending a message body supplement data acquisition request to a message supplement node and receiving serialized message body supplement data sent by the message supplement node includes: sending a message body supplement data acquisition request to each message supplement sub-node and receiving serialized message body supplement data composed of serialized message body supplement sub-data sent by each of the message supplement sub-nodes.

[0061] Optionally, the message production node and the message supplement node perform data transmission via remote procedure call.

[0062] The present application also provides a message processing method, which is special in that it is applied to a message supplement node, including:

[0063] Receive a request for obtaining supplementary data of a message body sent by a message production node;

[0064] According to the message body supplementary data acquisition request, the serialized message body supplementary data is sent to the message production node, and the serialized message body supplementary data is used to form a serialized complete message body with the serialized original message body.

[0065] Optionally, the message supplement node includes a plurality of message supplement sub-nodes;

[0066] The sending of serialized message body supplementary data to the message production node according to the message body supplementary data acquisition request includes: each of the message supplementary sub-nodes sends serialized message body supplementary sub-data to the message production node according to the message body supplementary data acquisition request to form serialized message body supplementary data.

[0067] The present application also provides a message sending device, which is special in that it is applied to a message production node, including:

[0068] An original message body production unit, used to produce an original message body, and serialize the original message body to obtain a serialized original message body;

[0069] A message body supplementary data acquisition unit, used to send a message body supplementary data acquisition request to a message supplementary node, and receive serialized message body supplementary data sent by the message supplementary node;

[0070] A complete message body sending unit is used to generate a serialized complete message body according to the serialized original message body and the serialized message body supplementary data, and send the serialized complete message body to a message receiving system.

[0071] The present application also provides an electronic device, which is special in that it includes: a processor and a memory;

[0072] The memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the above-mentioned message sending method.

[0073] The present application also provides a computer-readable storage medium on which one or more computer instructions are stored, and the special feature of the storage medium is that the one or more computer instructions are executed by a processor to implement the above-mentioned message sending method.

[0074] Compared with the prior art, this application has the following advantages:

[0075] The message sending system provided by the present application serializes the original message body produced by the message production node to obtain the serialized original message body, and directly obtains the serialized message body supplementary data from the message supplement node, generates a serialized complete message body according to the serialized original message body and the serialized message body supplementary data, and sends the serialized complete message body to the message receiving system. When sending a message through the message sending system, there is no need to deserialize the serialized original message body and then serialize the complete message body after the supplementary processing, thereby avoiding frequent serialization and deserialization processes, and there is no need to pass messages between the message production node and the message supplement node through the message middleware, thus saving system resources, reducing the internal processing time and network time of the message sending system, and improving the processing performance and stability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] Figure 1 It is the first signaling flow chart of the message sending process of the existing message sending system.

[0077] Figure 2 It is a schematic diagram of the transmission relationship between the message production node and the message supplement node in the existing message sending system.

[0078] Figure 3 It is the second signaling flow chart of the message sending process of the existing message sending system.

[0079] Figure 4 It is a structural diagram of the message sending system provided in the first embodiment of the present application.

[0080] Figure 5 This is the first signaling flow chart of the message sending process of the message sending system provided in the first embodiment of the present application.

[0081] Figure 6 This is the second signaling flow chart of the message sending process of the message sending system provided in the first embodiment of the present application.

[0082] Figure 7 It is a schematic diagram of the first transmission relationship between a message production node, a message supplement node and a message receiving system in a message sending system provided in the first embodiment of the present application.

[0083] Figure 8 It is a schematic diagram of the second transmission relationship between the message production node, the message supplement node and the message receiving system in the message sending system provided in the first embodiment of the present application.

[0084] Fig. 9 This is a flowchart of the message sending method provided in the second embodiment of the present application.

[0085] Fig.10 This is a flowchart of the message processing method provided in the third embodiment of the present application.

[0086] Fig.11 It is a structural diagram of the message sending device provided in the fourth embodiment of the present application.

[0087] Fig.12 It is a schematic diagram of the structure of an electronic device provided in the fifth embodiment of the present application. DETAILED DESCRIPTION

[0088] In order to make the purpose, advantages and features of the present application clearer, the following is a further detailed description of a message sending system, method, device, electronic device and computer-readable storage medium and message processing method proposed in the present application in combination with the accompanying drawings and specific embodiments. In the following description, many specific details are set forth to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific embodiments disclosed below.

[0089] It should be noted that, in the description of the present application, the terms "first", "second", etc. are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance, and a specific order or sequence. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood in specific circumstances. In addition, in the description of the present application, unless otherwise specified, the term "multiple" refers to two or more. The term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can be represented: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are an "or" relationship. The terms "include" and "have" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0090] In the prior art, an online-to-offline service platform generally includes multiple internal systems, such as a product system, a shopping cart system, an ordering system, a payment system, an order system, a return system, a logistics system, etc. There are two main communication methods between these internal systems: one is point-to-point communication through RPC (Remote Procedure Call), and the other is asynchronous communication through messages.

[0091] Asynchronous communication is a common communication method, and the asynchronous transmission mechanism is generally provided by message middleware. Message middleware is the hardware or software infrastructure that completes the reception and transmission of messages in a distributed system, and can provide message delivery services for message producers and message consumers. When delivering messages through message middleware, the message producer needs to serialize the message. Serialization is the process of converting the state information of an object into a form that can be stored or transmitted. Here, the message is converted into a binary data stream for transmission. After receiving the serialized message, the message consumer needs to deserialize the serialized message. Deserialization is the process of extracting data from the serialized representation and directly setting the object state. Here, the binary data stream is restored to the form of a message.

[0092] For the application scenario of the online-to-offline service platform, when the two internal systems communicate with each other, the internal system that completes the production, supplementation and sending of messages is hereinafter referred to as the message sending system, and the internal system that completes the reception and consumption of messages is hereinafter referred to as the message receiving system. In the message sending system, the server or server cluster used to produce the original message body is hereinafter referred to as the message production node, and the server or server cluster used to provide message body supplementary data to supplement the original message body is hereinafter referred to as the message supplement node. The message supplement node may include multiple message supplement sub-nodes, and the message supplement sub-node is a server or server cluster used to provide message body supplementary sub-data, and the message body supplementary sub-data provided by the multiple message supplement sub-nodes respectively constitute the message body supplementary data. For example, the original message body produced by the message production node includes transaction and payment information, and the message body supplementary data provided by the message supplement node includes product information. The complete message body composed of the original message body and the message body supplementary data includes the complete order information composed of transaction and payment information and product information. The message supplement node may include a first message supplement subnode and a second message supplement subnode. The first message body supplement subdata provided by the first message supplement subnode includes seat information. The second message body supplement subdata provided by the second message supplement subnode includes dish information. The seat information and dish information together constitute the commodity information. The message body mentioned here is a part of the message, that is, the specific content that needs to be transmitted by the message. In order to reflect the processing process of the actual transmission content of the message, this application only uses the message body as the processing object of production, supplementation, sending, serialization and deserialization. Those skilled in the art should be able to understand the corresponding processing process of the message containing the message body.

[0093] When asynchronous communication is performed through messages, the internal processing of the message sending system is as follows Figure 1 As shown:

[0094] S101, the message production node produces an original message body;

[0095] S102, the message production node serializes the original message body to obtain a serialized original message body;

[0096] S103, the message production node sends the serialized original message body to the message supplement node through the message middleware;

[0097] S104, the message supplement node deserializes the serialized original message body to obtain the original message body;

[0098] S105, the message supplement node performs supplementary processing on the original message body to obtain a complete message body;

[0099] S106, the message supplement node performs serialization processing on the complete message body to obtain a serialized complete message body;

[0100] S107, the message supplement node sends the serialized complete message body to the message receiving system through the message middleware.

[0101] Specifically, the message production node may include a message producer and a sender. Then the transmission relationship between the message production node and the message supplement node is as follows: Figure 2 As shown, the message producer produces the original message body and sends the original message body to the sender. The sender serializes the original message body to obtain the serialized original message body, and sends the serialized original message body to the message supplement node through the message middleware. The message producer here can be a set of program codes for realizing the message body production function, and the sender can be a set of program codes for realizing the message body serialization and sending functions. Generally, the sender can be constructed and generated according to the message sending task, and destroyed according to the completion of the message sending task. That is to say, when sending messages serially, a sender needs to be constructed for each message body sent, and the sender is destroyed after the message body is sent to the message receiving system.

[0102] When a message supplement node includes multiple message supplement sub-nodes, multiple message supplement sub-nodes communicate serially with each other, and the internal processing process of the message sending system is as follows: Figure 3 As shown in the figure, there are three message supplement sub-nodes, namely the first message supplement sub-node, the second message supplement sub-node, and the third message supplement sub-node:

[0103] S301, the message production node produces an original message body;

[0104] S302, the message production node serializes the original message body to obtain a serialized original message body;

[0105] S303, the message production node sends the serialized original message body to the first message supplement sub-node through the message middleware;

[0106] S304, the first message supplementing sub-node receives the serialized original message body, and deserializes the serialized original message body to obtain the original message body;

[0107] S305, the first message supplementing sub-node performs supplementary processing on the original message body to obtain a first message body;

[0108] S306, the first message supplementing sub-node performs serialization processing on the first message body to obtain a serialized first message body;

[0109] S307, the first message supplementing sub-node sends the serialized first message body to the second message supplementing sub-node through the message middleware;

[0110] Similarly, as shown in S308-S311, the second message supplement sub-node deserializes, supplements, and serializes the serialized first message body to obtain a serialized second message body, and sends it to the third message supplement sub-node through the message middleware;

[0111] Similarly, as shown in S312-S315, the third message supplement sub-node deserializes, supplements, and serializes the serialized second message body to obtain a serialized complete message body, and sends it to the message receiving system through the message middleware.

[0112] It can be seen that the above process requires multiple serialization and deserialization processes, especially when there are multiple message supplement sub-nodes. Each message supplement sub-node must be deserialized, supplemented, and serialized. Frequent serialization and deserialization processes will occupy too many system resources, increase the internal processing time of the message sending system, and multiple calls to the message middleware will also increase network time. For the case of batch sending of the same message, the message can only be sent one by one serially through the above process to complete the message batch sending task, which may cause message transmission delays and greatly affect the processing performance and stability of the message sending system. In addition, for each message sending task, a sender needs to be constructed, which will also increase the burden on the message sending system.

[0113] In response to the above problems, the present application provides a message sending system, method, device, electronic device and computer-readable storage medium and message processing method. The internal processing process of the message sending system is as follows: the message production node produces the original message body, and serializes the original message body to obtain the serialized original message body, and then directly obtains the serialized message body supplementary data from the message supplement node, generates a serialized complete message body according to the serialized original message body and the serialized message body supplementary data, and sends the serialized complete message body to the message receiving system. When sending a message through the message sending system, there is no need to deserialize the serialized original message body, and then serialize the complete message body after the supplementary processing, thereby avoiding frequent serialization and deserialization processing processes, and there is no need for message transmission between the message production node and the message supplement node through the message middleware, which saves system resources, reduces the internal processing time and network time of the message sending system, and improves the processing performance and stability of the system. When the message supplement node includes multiple message supplement sub-nodes, the serialized message body supplement sub-data provided by the multiple message supplement sub-nodes constitute serialized message body supplement data, which are concurrently transmitted to the message production node. Compared with the prior art method in which multiple message supplement sub-nodes serially supplement data and call the message middleware multiple times, the internal processing time and network time of the message sending system are greatly reduced. In addition, by constructing a transmitter group including multiple transmitters in the message production node, for the case of batch sending of the same message, it is only necessary to determine the corresponding number of available transmitters from the transmitter group according to the number of message batch sending tasks, and the message batch sending tasks can be completed in parallel, thereby improving the message sending efficiency and reducing the situation of message accumulation. After the sending task is completed, there is no need to destroy the transmitter, saving system resources.

[0114] First embodiment

[0115] This embodiment provides a message sending system, such as Figure 4 As shown, the message sending system 400 includes a message production node 401 and a message supplement node 402 .

[0116] In the application scenario of the online-to-offline service platform, when the two internal systems communicate with each other, the internal system that completes the production, supplementation and sending of messages is the message sending system, and the internal system that completes the reception and consumption of messages is the message receiving system. In the message sending system, the server or server cluster used to produce the original message body is the message production node, and the server or server cluster used to provide message body supplementary data to supplement the original message body is the message supplement node. The message supplement node may include multiple message supplement sub-nodes, and the message supplement sub-node is a server or server cluster used to provide message body supplementary sub-data. The message body supplementary sub-data provided by multiple message supplementary sub-nodes together constitute the message body supplementary data.

[0117] In this embodiment, the message production node 401 is specifically used to produce an original message body, serialize the original message body to obtain a serialized original message body, send a message body supplement data acquisition request to the message supplement node 402, receive the serialized message body supplement data sent by the message supplement node 402, generate a serialized complete message body according to the serialized original message body and the serialized message body supplement data, and send the serialized complete message body to the message receiving system;

[0118] The message supplement node 402 is specifically used to receive a message body supplement data acquisition request sent by the message production node 401, and send serialized message body supplement data to the message production node 401 according to the message body supplement data acquisition request.

[0119] The message sending system and the message receiving system can communicate point-to-point through RPC (Remote Procedure Call) or asynchronously through messages. When asynchronous communication is adopted, the asynchronous transmission mechanism is generally provided by the message middleware. The message middleware is the hardware or software infrastructure that completes the reception and transmission of messages in the distributed system, and can provide message delivery services for message producers and message consumers. It has a series of functions such as low coupling, reliable delivery, broadcasting, flow control, and eventual consistency, and has become one of the main means of asynchronous communication. Therefore, the message sending system may also include a message middleware, and the message production node may send the serialized complete message body to the message receiving system through the message middleware. The message production node and the message supplement node may transmit data through the remote procedure call, without calling the message middleware. When the message is delivered through the message middleware, the message sending system needs to serialize the complete message body, that is, convert the complete message body into the form of a binary data stream for transmission. After the message receiving system receives the serialized complete message body, it needs to deserialize the serialized complete message body, that is, restore the binary data stream to the form of the complete message body.

[0120] The internal processing of the above message sending system is as follows Figure 5 As shown:

[0121] S501, the message production node produces an original message body;

[0122] S502, the message production node serializes the original message body to obtain a serialized original message body;

[0123] S503, the message production node sends a message body supplement data acquisition request to the message supplement node;

[0124] S504, the message supplement node sends the serialized message body supplement data to the message production node according to the message body supplement data acquisition request;

[0125] S505, the message production node generates a serialized complete message body according to the serialized original message body and the serialized message body supplementary data;

[0126] S506: The message production node sends the serialized complete message body to the message receiving system through the message middleware.

[0127] When a message supplement node includes multiple message supplement sub-nodes, the internal processing process of the message sending system is as follows: Figure 6 As shown in the figure, there are three message supplement sub-nodes, namely the first message supplement sub-node, the second message supplement sub-node, and the third message supplement sub-node:

[0128] S601, the message production node produces an original message body;

[0129] S602, the message production node serializes the original message body to obtain a serialized original message body;

[0130] S603, the message production node sends a message body supplementary data acquisition request to the three message supplementary sub-nodes respectively;

[0131] S604, the serialized message body supplementary sub-data respectively provided by the three message supplementary sub-nodes are sent to the message production node to form the serialized message body supplementary data;

[0132] S605, the message production node generates a serialized complete message body according to the serialized original message body and the serialized message body supplementary data;

[0133] S606: The message production node sends the serialized complete message body to the message receiving system through the message middleware.

[0134] In order to correspond to the process in the prior art where a complete serialized message body is sent to a message receiving system through a message middleware, and to highlight the improvement of the working mechanism of the message production node and the message supplement node themselves in the present application, the following only describes in detail the message sending system including a message production node, a message supplement node and a message middleware.

[0135] The message production node may also include a message producer, which may be a set of program codes for implementing message body production and message body serialization functions. The message production node may include a transmitter group, which includes multiple transmitters. The transmitter may be a set of program codes for implementing message body serialization, supplementary data acquisition, message assembly and sending functions. By constructing multiple transmitters in advance to form a transmitter group, when sending messages in batches, multiple idle and available transmitters can be directly called from the transmitter group to perform batch sending tasks, thereby improving message sending efficiency. After the message sending task is completed, the transmitter that executes the sending task does not need to be destroyed for next use, which can effectively save system resources.

[0136] Since both the message producer and the sender can serialize the message body, the workflow of the message sending system can be specifically divided into the following two types according to the different subjects that serialize the original message body.

[0137] The first one is Figure 7As shown, the message producer produces an original message body, and serializes the original message body to obtain a serialized original message body; the message producer sends the serialized original message body to an available sender in a sender group; the available sender sends a message body supplementary data acquisition request to a message supplement node; the message supplement node sends serialized message body supplementary data to the available sender according to the message body supplementary data acquisition request; the available sender generates a serialized complete message body according to the received serialized original message body and the serialized message body supplementary data; the available sender sends the serialized complete message body to the message middleware; the message middleware sends the serialized complete message body to the message receiving system.

[0138] The generating of the serialized complete message body according to the serialized original message body and the serialized message body supplementary data is to supplement the serialized message body supplementary data to the serialized original message body to form the serialized complete message body.

[0139] In the case of sending the same message in batches, the message producer produces an original message body and serializes the original message body to obtain a serialized original message body; according to the number of message batch sending tasks, the available senders corresponding to the number of message batch sending tasks are determined from the sender group; the message producer sends the serialized original message body to each of the available senders; each of the available senders sends a message body supplementary data acquisition request to the message supplement node; the message supplement node sends serialized message body supplementary data to each of the available senders according to the message body supplementary data acquisition request; each of the available senders generates a serialized complete message body according to the serialized original message body and the serialized message body supplementary data received by each of them; each of the available senders sends the serialized complete message body generated by each of them to the message middleware; the message middleware sends the serialized complete message body sent by each of the available senders to the message receiving system corresponding to the message batch sending task.

[0140] In the above workflow, the main body that serializes the original message body is the message producer, that is, the message producer only serializes the original message body it produces once, and then sends the serialized original message body to multiple available senders respectively, thus forming multiple serialized original message bodies as a whole. Multiple available senders are directly selected and determined according to the number of message batch sending tasks without temporary construction. Multiple available senders can execute message batch sending tasks in parallel without waiting for one message sending task to be completed before proceeding to the next message sending task. Multiple available senders send their generated serialized complete message bodies to the message middleware respectively, and use the routing capability of the message middleware itself to batch forward the same serialized complete message body to multiple message receiving systems at the same time, thereby improving the message sending efficiency.

[0141] When the message supplement node includes multiple message supplement sub-nodes, the sender sends a message body supplement data acquisition request to each message supplement sub-node, and each message supplement sub-node sends serialized message body supplement sub-data to the sender according to the received message body supplement data acquisition request to form serialized message body supplement data. Specifically, the serialized message body supplement sub-data provided by each message supplement sub-node is encapsulated into the request input parameter to the sender at one time to form the serialized message body supplement data. In this way, it is avoided that when multiple message supplement sub-nodes communicate serially, frequent serialization, deserialization processing and repeated calls to the message middleware occupy too many system resources, thereby reducing internal processing time and network time. For the situation where the same message is sent in batches and multiple message supplement sub-nodes supplement data are simultaneously sent, the processing performance improvement of the system will be more obvious.

[0142] The second type Figure 8 As shown, a message producer produces an original message body, and sends the original message body to an available sender in a sender group; the available sender serializes the original message body to obtain a serialized original message body; the available sender sends a message body supplementary data acquisition request to a message supplement node; the message supplement node sends serialized message body supplementary data to the available sender according to the message body supplementary data acquisition request; the available sender generates a serialized complete message body according to the processed serialized original message body and the received serialized message body supplementary data; the available sender sends the serialized complete message body to the message middleware; the message middleware sends the serialized complete message body to the message receiving system.

[0143] The generating of the serialized complete message body according to the serialized original message body and the serialized message body supplementary data is to supplement the serialized message body supplementary data to the serialized original message body to form the serialized complete message body.

[0144] In the case of sending the same message in batches, the message producer produces an original message body; according to the number of message batch sending tasks, the available senders corresponding to the number of message batch sending tasks are determined from the sender group; the message producer sends the original message body to each of the available senders; each of the available senders serializes the original message body received by each of them to obtain serialized original message bodies; each of the available senders sends a message body supplementary data acquisition request to the message supplement node; the message supplement node sends serialized message body supplementary data to each of the available senders according to the message body supplementary data acquisition request; each of the available senders generates a serialized complete message body according to the serialized original message body obtained by each of them and the serialized message body supplementary data received; each of the available senders sends the serialized complete message body generated by each of them to the message middleware; the message middleware sends the serialized complete message body sent by each of the available senders to the message receiving system corresponding to the message batch sending task.

[0145] In the above workflow, the subject that serializes the original message body is the sender, that is, the message producer sends the produced original message body to multiple available senders respectively, and the multiple available senders serialize the original message bodies they receive respectively, and obtain serialized original message bodies respectively, thus forming multiple serialized original message bodies as a whole. Compared with the first workflow, each available sender here needs to serialize the original message body, but the subsequent process of each available sender obtaining supplementary data, assembling data, and sending messages is the same as the first workflow. Compared with the prior art, it still saves a certain amount of system resources and improves the efficiency of message sending.

[0146] Similarly, when a message supplement node includes multiple message supplement sub-nodes, the transmitter sends a message body supplement data acquisition request to each message supplement sub-node, and each message supplement sub-node sends serialized message body supplement sub-data to the transmitter based on the received message body supplement data acquisition request to form serialized message body supplement data, thereby avoiding frequent serialization, deserialization processing and repeated calls to the message middleware during serial communication between multiple message supplement sub-nodes, which occupy too many system resources.

[0147] Second embodiment

[0148] This embodiment provides a message sending method, which is applied to a message production node, such as Fig. 9 As shown, the method comprises the following steps:

[0149] S901, generating an original message body, and serializing the original message body to obtain a serialized original message body;

[0150] S902, sending a message body supplementary data acquisition request to a message supplementary node, and receiving serialized message body supplementary data sent by the message supplementary node;

[0151] S903, generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data, and sending the serialized complete message body to a message receiving system.

[0152] Optionally, sending the serialized complete message body to a message receiving system includes: sending the serialized complete message body to the message receiving system through a message middleware.

[0153] Optionally, the message production node includes a transmitter group, and the transmitter group includes a plurality of transmitters;

[0154] The sending of the serialized complete message body to the message receiving system through the message middleware includes: sending the serialized complete message body to the message middleware through the available senders in the sender group; and sending the serialized complete message body to the message receiving system through the message middleware.

[0155] Optionally, the message production node further includes a message producer;

[0156] The producing the original message body and serializing the original message body to obtain the serialized original message body comprises: producing the original message body by the message producer, serializing the original message body to obtain the serialized original message body, and sending the serialized original message body to the available sender;

[0157] The sending of a message body supplementary data acquisition request to a message supplementary node and receiving the serialized message body supplementary data sent by the message supplementary node comprises: sending a message body supplementary data acquisition request to the message supplementary node through the available sender and receiving the serialized message body supplementary data sent by the message supplementary node;

[0158] The generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data comprises: generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data through the available sender.

[0159] Optionally, sending the serialized original message body to the available senders includes: determining, according to the number of message batch sending tasks, available senders corresponding to the number of message batch sending tasks from the sender group; and sending the serialized original message body to each of the available senders through the message producer;

[0160] The sending of a message body supplementary data acquisition request to a message supplementary node through the available sender, and receiving the serialized message body supplementary data sent by the message supplementary node, comprises: sending a message body supplementary data acquisition request to a message supplementary node through each of the available senders, and receiving the serialized message body supplementary data sent by the message supplementary node respectively;

[0161] The generating of a serialized complete message body according to the serialized original message body and the serialized message body supplementary data by the available senders includes: generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data respectively received by each of the available senders.

[0162] Optionally, the message production node further includes a message producer;

[0163] The producing the original message body and serializing the original message body to obtain the serialized original message body comprises: producing the original message body by the message producer, sending the original message body to the available sender, and serializing the original message body by the available sender to obtain the serialized original message body;

[0164] The sending of a message body supplementary data acquisition request to a message supplementary node and receiving the serialized message body supplementary data sent by the message supplementary node comprises: sending a message body supplementary data acquisition request to the message supplementary node through the available sender and receiving the serialized message body supplementary data sent by the message supplementary node;

[0165] The generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data comprises: generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data through the available sender.

[0166] Optionally, sending the original message body to the available senders includes: determining, according to the number of message batch sending tasks, available senders corresponding to the number of message batch sending tasks from the sender group; and sending the original message body to each of the available senders through the message producer;

[0167] The serializing the original message body by the available transmitter to obtain the serialized original message body comprises: serializing the original message body received by each of the available transmitters to obtain the serialized original message bodies respectively;

[0168] The sending of a message body supplementary data acquisition request to a message supplementary node through the available sender, and receiving the serialized message body supplementary data sent by the message supplementary node, comprises: sending a message body supplementary data acquisition request to a message supplementary node through each of the available senders, and receiving the serialized message body supplementary data sent by the message supplementary node respectively;

[0169] The generating of a serialized complete message body according to the serialized original message body and the serialized message body supplementary data by the available senders includes: generating a serialized complete message body according to the serialized original message body obtained by respective processing and the serialized message body supplementary data received by each of the available senders.

[0170] Optionally, sending the serialized complete message body to the message middleware through the available senders in the sender group includes: sending the serialized complete message body generated by each of the available senders to the message middleware respectively;

[0171] The sending of the serialized complete message body to the message receiving system through the message middleware includes: sending the serialized complete message body sent by each available sender to the message receiving system corresponding to the message batch sending task through the message middleware.

[0172] Optionally, the message supplement node includes a plurality of message supplement sub-nodes;

[0173] The method of sending a message body supplement data acquisition request to a message supplement node and receiving serialized message body supplement data sent by the message supplement node includes: sending a message body supplement data acquisition request to each message supplement sub-node and receiving serialized message body supplement data composed of serialized message body supplement sub-data sent by each of the message supplement sub-nodes.

[0174] Optionally, the message production node and the message supplement node perform data transmission via remote procedure call.

[0175] The message sending method provided in this embodiment corresponds to the workflow of the message production node in the message sending system provided in the first embodiment. For specific details, please refer to the first embodiment.

[0176] Third embodiment

[0177] This embodiment provides a message processing method, which is applied to a message supplement node, such as Fig.10 As shown, the method comprises the following steps:

[0178] S1001, receiving a request for obtaining message body supplementary data sent by a message production node;

[0179] S1002: Send serialized message body supplementary data to the message production node according to the message body supplementary data acquisition request, wherein the serialized message body supplementary data is used to form a serialized complete message body with the serialized original message body.

[0180] Optionally, the message supplement node includes a plurality of message supplement sub-nodes;

[0181] The sending of serialized message body supplementary data to the message production node according to the message body supplementary data acquisition request includes: each of the message supplementary sub-nodes sends serialized message body supplementary sub-data to the message production node according to the message body supplementary data acquisition request to form serialized message body supplementary data.

[0182] The message processing method provided in this embodiment corresponds to the workflow of the message supplement node in the message sending system provided in the first embodiment. For specific details, reference may be made to the first embodiment.

[0183] Fourth embodiment

[0184] This embodiment provides a message sending device, which is applied to a message production node, such as Fig.11 As shown, the message sending device 1100 includes:

[0185] The original message body production unit 1101 is used to produce an original message body, and serialize the original message body to obtain a serialized original message body;

[0186] The message body supplementary data acquisition unit 1102 is used to send a message body supplementary data acquisition request to the message supplementary node, and receive the serialized message body supplementary data sent by the message supplementary node;

[0187] The complete message body sending unit 1103 is used to generate a serialized complete message body according to the serialized original message body and the serialized message body supplementary data, and send the serialized complete message body to the message receiving system.

[0188] Optionally, sending the serialized complete message body to a message receiving system includes: sending the serialized complete message body to the message receiving system through a message middleware.

[0189] Optionally, the message production node includes a transmitter group, and the transmitter group includes a plurality of transmitters;

[0190] The sending of the serialized complete message body to the message receiving system through the message middleware includes: sending the serialized complete message body to the message middleware through the available senders in the sender group; and sending the serialized complete message body to the message receiving system through the message middleware.

[0191] Optionally, the message production node further includes a message producer;

[0192] The producing the original message body and serializing the original message body to obtain the serialized original message body comprises: producing the original message body by the message producer, serializing the original message body to obtain the serialized original message body, and sending the serialized original message body to the available sender;

[0193] The sending of a message body supplementary data acquisition request to a message supplementary node and receiving the serialized message body supplementary data sent by the message supplementary node comprises: sending a message body supplementary data acquisition request to the message supplementary node through the available sender and receiving the serialized message body supplementary data sent by the message supplementary node;

[0194] The generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data comprises: generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data through the available sender.

[0195] Optionally, sending the serialized original message body to the available senders includes: determining, according to the number of message batch sending tasks, available senders corresponding to the number of message batch sending tasks from the sender group; and sending the serialized original message body to each of the available senders through the message producer;

[0196] The sending of a message body supplementary data acquisition request to a message supplementary node through the available sender, and receiving the serialized message body supplementary data sent by the message supplementary node, comprises: sending a message body supplementary data acquisition request to a message supplementary node through each of the available senders, and receiving the serialized message body supplementary data sent by the message supplementary node respectively;

[0197] The generating of a serialized complete message body according to the serialized original message body and the serialized message body supplementary data by the available senders includes: generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data respectively received by each of the available senders.

[0198] Optionally, the message production node further includes a message producer;

[0199] The producing the original message body and serializing the original message body to obtain the serialized original message body comprises: producing the original message body by the message producer, sending the original message body to the available sender, and serializing the original message body by the available sender to obtain the serialized original message body;

[0200] The sending of a message body supplementary data acquisition request to a message supplementary node and receiving the serialized message body supplementary data sent by the message supplementary node comprises: sending a message body supplementary data acquisition request to the message supplementary node through the available sender and receiving the serialized message body supplementary data sent by the message supplementary node;

[0201] The generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data comprises: generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data through the available sender.

[0202] Optionally, sending the original message body to the available senders includes: determining, according to the number of message batch sending tasks, available senders corresponding to the number of message batch sending tasks from the sender group; and sending the original message body to each of the available senders through the message producer;

[0203] The serializing the original message body by the available transmitter to obtain the serialized original message body comprises: serializing the original message body received by each of the available transmitters to obtain the serialized original message bodies respectively;

[0204] The sending of a message body supplementary data acquisition request to a message supplementary node through the available sender, and receiving the serialized message body supplementary data sent by the message supplementary node, comprises: sending a message body supplementary data acquisition request to a message supplementary node through each of the available senders, and receiving the serialized message body supplementary data sent by the message supplementary node respectively;

[0205] The generating of a serialized complete message body according to the serialized original message body and the serialized message body supplementary data by the available senders includes: generating a serialized complete message body according to the serialized original message body obtained by respective processing and the serialized message body supplementary data received by each of the available senders.

[0206] Optionally, sending the serialized complete message body to the message middleware through the available senders in the sender group includes: sending the serialized complete message body generated by each of the available senders to the message middleware respectively;

[0207] The sending of the serialized complete message body to the message receiving system through the message middleware includes: sending the serialized complete message body sent by each available sender to the message receiving system corresponding to the message batch sending task through the message middleware.

[0208] Optionally, the message supplement node includes a plurality of message supplement sub-nodes;

[0209] The method of sending a message body supplement data acquisition request to a message supplement node and receiving serialized message body supplement data sent by the message supplement node includes: sending a message body supplement data acquisition request to each message supplement sub-node and receiving serialized message body supplement data composed of serialized message body supplement sub-data sent by each of the message supplement sub-nodes.

[0210] Optionally, the message production node and the message supplement node perform data transmission via remote procedure call.

[0211] The message sending device provided in this embodiment corresponds to the message sending method provided in the second embodiment. For specific details, please refer to the second embodiment.

[0212] Fifth embodiment

[0213] This embodiment provides an electronic device, such as Fig.12As shown. The electronic device includes: at least one processor 1201, at least one memory 1202, at least one communication interface 1203 and at least one communication bus 1204. Optionally, the processor 1201 may be a processor CPU, or an application specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application. The memory 1202 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication interface 1203 can be an interface of a communication module, such as an interface of a GSM module. Among them, the memory 1202 stores programs and data, and the processor 1201 calls the program stored in the memory 1202 to implement the above-mentioned message sending method.

[0214] Sixth embodiment

[0215] This embodiment provides a computer-readable storage medium on which one or more computer instructions are stored. The one or more computer instructions are executed by a processor to implement the above-mentioned message sending method.

[0216] It should be noted that, although several modules or units for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the specific implementation of the present application, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be concretized.

[0217] In addition, although the steps of the method in the present application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0218] It should be noted that the embodiments of the present application can be implemented by hardware, software, or a combination of software and hardware. The hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated design hardware. A person of ordinary skill in the art will appreciate that the above-mentioned devices and methods can be implemented using computer executable instructions and / or control codes contained in a processor, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such codes are provided on the carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. The device and its modules of the present application can be implemented by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., can also be implemented by software executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software, such as firmware.

[0219] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any modification, equivalent substitution and improvement made by any technician familiar with the technical field within the technical scope disclosed in the present application and within the spirit and principle of the present application shall be covered by the protection scope of the present application.

Claims

1. A message sending system, characterized in that: include: A message production node is used to produce an original message body, serialize the original message body to obtain a serialized original message body, send a message body supplement data acquisition request to a message supplement node, receive the serialized message body supplement data sent by the message supplement node, generate a serialized complete message body according to the serialized original message body and the serialized message body supplement data, and send the serialized complete message body to a message receiving system; The message supplement node is used to receive a message body supplement data acquisition request sent by the message production node, and send serialized message body supplement data to the message production node according to the message body supplement data acquisition request.

2. The message sending system according to claim 1, characterized in that: Also includes: Message middleware; The sending the serialized complete message body to the message receiving system includes: sending the serialized complete message body to the message receiving system through the message middleware.

3. The message sending system according to claim 2, characterized in that: The message production node includes a transmitter group, and the transmitter group includes a plurality of transmitters; The sending of the serialized complete message body to the message receiving system through the message middleware includes: sending the serialized complete message body to the message middleware through an available sender in the sender group; and sending the serialized complete message body to the message receiving system through the message middleware.

4. The message sending system according to claim 3, characterized in that: The message production node also includes a message producer; The producing the original message body and serializing the original message body to obtain the serialized original message body comprises: producing the original message body by the message producer, serializing the original message body to obtain the serialized original message body, and sending the serialized original message body to the available sender; The sending of a message body supplementary data acquisition request to a message supplementary node and receiving the serialized message body supplementary data sent by the message supplementary node comprises: sending a message body supplementary data acquisition request to the message supplementary node through the available sender and receiving the serialized message body supplementary data sent by the message supplementary node; The generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data comprises: generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data through the available sender.

5. The message sending system according to claim 4, characterized in that: The sending of the serialized original message body to the available senders includes: determining, according to the number of message batch sending tasks, available senders corresponding to the number of message batch sending tasks from the sender group; and sending the serialized original message body to each of the available senders through the message producer; The sending of a message body supplementary data acquisition request to a message supplementary node through the available sender, and receiving the serialized message body supplementary data sent by the message supplementary node, comprises: sending a message body supplementary data acquisition request to a message supplementary node through each of the available senders, and receiving the serialized message body supplementary data sent by the message supplementary node respectively; The generating of a serialized complete message body according to the serialized original message body and the serialized message body supplementary data by the available senders includes: generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data respectively received by each of the available senders.

6. The message sending system according to claim 3, characterized in that: The message production node also includes a message producer; The producing the original message body and serializing the original message body to obtain the serialized original message body comprises: producing the original message body by the message producer, sending the original message body to the available sender, and serializing the original message body by the available sender to obtain the serialized original message body; The sending of a message body supplementary data acquisition request to a message supplementary node and receiving the serialized message body supplementary data sent by the message supplementary node comprises: sending a message body supplementary data acquisition request to the message supplementary node through the available sender and receiving the serialized message body supplementary data sent by the message supplementary node; The generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data comprises: generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data through the available sender.

7. The message sending system according to claim 6, characterized in that: The sending of the original message body to the available senders includes: determining, according to the number of message batch sending tasks, available senders corresponding to the number of message batch sending tasks from the sender group; and sending the original message body to each of the available senders through the message producer; The serializing the original message body by the available transmitter to obtain the serialized original message body comprises: serializing the original message body received by each of the available transmitters to obtain the serialized original message bodies respectively; The sending of a message body supplementary data acquisition request to a message supplementary node through the available sender, and receiving the serialized message body supplementary data sent by the message supplementary node, comprises: sending a message body supplementary data acquisition request to a message supplementary node through each of the available senders, and receiving the serialized message body supplementary data sent by the message supplementary node respectively; The generating of a serialized complete message body according to the serialized original message body and the serialized message body supplementary data by the available senders includes: generating a serialized complete message body according to the serialized original message body obtained by respective processing and the serialized message body supplementary data received by each of the available senders.

8. The message sending system according to claim 5 or 7, characterized in that: The sending of the serialized complete message body to the message middleware through the available senders in the sender group includes: sending the serialized complete message body generated by each of the available senders to the message middleware respectively; The sending of the serialized complete message body to the message receiving system through the message middleware includes: sending the serialized complete message body sent by each available sender to the message receiving system corresponding to the message batch sending task through the message middleware.

9. The message sending system according to claim 1, characterized in that: The message supplement node includes a plurality of message supplement sub-nodes; The method of sending a message body supplement data acquisition request to a message supplement node and receiving serialized message body supplement data sent by the message supplement node includes: sending a message body supplement data acquisition request to each message supplement sub-node and receiving serialized message body supplement data composed of serialized message body supplement sub-data sent by each of the message supplement sub-nodes.

10. The message sending system according to claim 1, characterized in that: The message production node and the message supplement node perform data transmission via remote procedure call.

11. A message sending method, characterized in that: Applied to a message production node, the method comprises: Generating an original message body, and performing serialization processing on the original message body to obtain a serialized original message body; Sending a message body supplementary data acquisition request to a message supplementary node, and receiving serialized message body supplementary data sent by the message supplementary node; A serialized complete message body is generated according to the serialized original message body and the serialized message body supplementary data, and the serialized complete message body is sent to a message receiving system.

12. The message sending method according to claim 11, characterized in that: The sending the serialized complete message body to the message receiving system includes: sending the serialized complete message body to the message receiving system through message middleware.

13. The message sending method according to claim 12, characterized in that: The message production node includes a transmitter group, and the transmitter group includes a plurality of transmitters; The sending of the serialized complete message body to the message receiving system through the message middleware includes: sending the serialized complete message body to the message middleware through the available senders in the sender group; and sending the serialized complete message body to the message receiving system through the message middleware.

14. The message sending method according to claim 13, characterized in that: The message production node also includes a message producer; The producing the original message body and serializing the original message body to obtain the serialized original message body comprises: producing the original message body by the message producer, serializing the original message body to obtain the serialized original message body, and sending the serialized original message body to the available sender; The sending of a message body supplementary data acquisition request to a message supplementary node and receiving the serialized message body supplementary data sent by the message supplementary node comprises: sending a message body supplementary data acquisition request to the message supplementary node through the available sender and receiving the serialized message body supplementary data sent by the message supplementary node; The generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data comprises: generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data through the available sender.

15. The message sending method according to claim 14, characterized in that: The sending of the serialized original message body to the available senders includes: determining, according to the number of message batch sending tasks, available senders corresponding to the number of message batch sending tasks from the sender group; and sending the serialized original message body to each of the available senders through the message producer; The sending of a message body supplementary data acquisition request to a message supplementary node through the available sender, and receiving the serialized message body supplementary data sent by the message supplementary node, comprises: sending a message body supplementary data acquisition request to a message supplementary node through each of the available senders, and receiving the serialized message body supplementary data sent by the message supplementary node respectively; The generating of a serialized complete message body according to the serialized original message body and the serialized message body supplementary data by the available senders includes: generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data respectively received by each of the available senders.

16. The message sending method according to claim 13, characterized in that: The message production node also includes a message producer; The producing the original message body and serializing the original message body to obtain the serialized original message body comprises: producing the original message body by the message producer, sending the original message body to the available sender, and serializing the original message body by the available sender to obtain the serialized original message body; The sending of a message body supplementary data acquisition request to a message supplementary node and receiving the serialized message body supplementary data sent by the message supplementary node comprises: sending a message body supplementary data acquisition request to the message supplementary node through the available sender and receiving the serialized message body supplementary data sent by the message supplementary node; The generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data comprises: generating a serialized complete message body according to the serialized original message body and the serialized message body supplementary data through the available sender.

17. The message sending method according to claim 16, characterized in that: The sending of the original message body to the available senders includes: determining, according to the number of message batch sending tasks, available senders corresponding to the number of message batch sending tasks from the sender group; and sending the original message body to each of the available senders through the message producer; The serializing the original message body by the available transmitter to obtain the serialized original message body comprises: serializing the original message body received by each of the available transmitters to obtain the serialized original message bodies respectively; The sending of a message body supplementary data acquisition request to a message supplementary node through the available sender, and receiving the serialized message body supplementary data sent by the message supplementary node, comprises: sending a message body supplementary data acquisition request to a message supplementary node through each of the available senders, and receiving the serialized message body supplementary data sent by the message supplementary node respectively; The generating of a serialized complete message body according to the serialized original message body and the serialized message body supplementary data by the available senders includes: generating a serialized complete message body according to the serialized original message body obtained by respective processing and the serialized message body supplementary data received by each of the available senders.

18. The message sending method according to claim 15 or 17, characterized in that: The sending of the serialized complete message body to the message middleware through the available senders in the sender group includes: sending the serialized complete message body generated by each of the available senders to the message middleware respectively; The sending of the serialized complete message body to the message receiving system through the message middleware includes: sending the serialized complete message body sent by each available sender to the message receiving system corresponding to the message batch sending task through the message middleware.

19. The message sending method according to claim 11, characterized in that: The message supplement node includes a plurality of message supplement sub-nodes; The method of sending a message body supplement data acquisition request to a message supplement node and receiving serialized message body supplement data sent by the message supplement node includes: sending a message body supplement data acquisition request to each message supplement sub-node and receiving serialized message body supplement data composed of serialized message body supplement sub-data sent by each of the message supplement sub-nodes.

20. The message sending method according to claim 11, characterized in that: The message production node and the message supplement node perform data transmission via remote procedure call.

21. A message processing method, characterized in that: Applied to a message supplement node, the method comprises: Receive a request for obtaining supplementary data of a message body sent by a message production node; According to the message body supplementary data acquisition request, the serialized message body supplementary data is sent to the message production node, and the serialized message body supplementary data is used to form a serialized complete message body with the serialized original message body.

22. The message processing method according to claim 21, characterized in that: The message supplement node includes a plurality of message supplement sub-nodes; The sending of serialized message body supplementary data to the message production node according to the message body supplementary data acquisition request includes: each of the message supplementary sub-nodes sends serialized message body supplementary sub-data to the message production node according to the message body supplementary data acquisition request to form serialized message body supplementary data.

23. A message sending device, characterized in that: Applicable to message production nodes, including: An original message body production unit, used to produce an original message body, and serialize the original message body to obtain a serialized original message body; A message body supplementary data acquisition unit, used to send a message body supplementary data acquisition request to a message supplementary node, and receive serialized message body supplementary data sent by the message supplementary node; A complete message body sending unit is used to generate a serialized complete message body according to the serialized original message body and the serialized message body supplementary data, and send the serialized complete message body to a message receiving system.

24. An electronic device, characterized in that: include: Processor and memory; The memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the message sending method described in any one of claims 11 to 20.

25. A computer-readable storage medium having one or more computer instructions stored thereon, characterized in that: The one or more computer instructions are executed by the processor to implement the message sending method described in any one of claims 11 to 20.