CN117424908A - Message transmission method and device and electronic equipment - Google Patents

Message transmission method and device and electronic equipment Download PDF

Info

Publication number
CN117424908A
CN117424908A CN202311360826.4A CN202311360826A CN117424908A CN 117424908 A CN117424908 A CN 117424908A CN 202311360826 A CN202311360826 A CN 202311360826A CN 117424908 A CN117424908 A CN 117424908A
Authority
CN
China
Prior art keywords
message
target
transmitted
result
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311360826.4A
Other languages
Chinese (zh)
Inventor
马昭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianyi Electronic Commerce Co Ltd
Original Assignee
Tianyi Electronic Commerce Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianyi Electronic Commerce Co Ltd filed Critical Tianyi Electronic Commerce Co Ltd
Priority to CN202311360826.4A priority Critical patent/CN117424908A/en
Publication of CN117424908A publication Critical patent/CN117424908A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1087Peer-to-peer [P2P] networks using cross-functional networking aspects
    • H04L67/1091Interfacing with client-server systems or between P2P systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • H04L67/108Resource delivery mechanisms characterised by resources being split in blocks or fragments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a message transmission method, a message transmission device and electronic equipment. Wherein the method comprises the following steps: acquiring a message to be transmitted and a plurality of receiving ends; the method comprises the steps of obtaining a forwarding interface corresponding to a message to be transmitted and an interface label of the forwarding interface, wherein the forwarding interface is used for forwarding the message, and the interface label is used for indicating the obtaining mode of a target fragmentation result corresponding to the message to be transmitted; determining a target fragmentation result based on the interface tag, wherein the target fragmentation result is used for indicating a result of logically dividing the message to be transmitted; determining a target receiving end from a plurality of receiving ends based on the target slicing result; and sending the message to be transmitted to the target receiving end. The invention solves the technical problem of low accuracy of the transmission result obtained by the message transmission method in the related technology.

Description

Message transmission method and device and electronic equipment
Technical Field
The present invention relates to the field of message transmission, and in particular, to a message transmission method, a device and an electronic device.
Background
The core of the unitized architecture aims at dividing the message into a plurality of fragments, the data of each fragment is processed by an independent unit, the units in the unitized architecture can complete the closed loop of the whole request link, so that the parallel computing and the remote multi-activity capability of multiple machines are improved, however, the message transmission method in the related art can erroneously transmit the message to be transmitted to the receiving end in the unit which does not correspond to the fragmentation result of the message, and the problem of low accuracy exists.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a message transmission method, a message transmission device and electronic equipment, which at least solve the technical problem that the accuracy of a transmission result obtained by a message transmission method in the related art is low.
According to an aspect of an embodiment of the present invention, there is provided a message transmission method including: acquiring a message to be transmitted and a plurality of receiving ends; acquiring a forwarding interface corresponding to the message to be transmitted and an interface label of the forwarding interface, wherein the forwarding interface is used for forwarding the message, and the interface label is used for indicating an acquisition mode of a target fragmentation result corresponding to the message to be transmitted; determining the target fragmentation result based on the interface tag, wherein the target fragmentation result is used for indicating a result of logically dividing the message to be transmitted; determining a target receiving end from the plurality of receiving ends based on the target slicing result; and sending the message to be transmitted to the target receiving end.
Optionally, the acquiring the message to be transmitted includes: determining a server and a preset component included in the server, wherein the preset component is used for acquiring a message from a specified position in the server; and acquiring the message to be transmitted from the server based on the preset component, wherein the message to be transmitted is sent to the server in advance by a sending end.
Optionally, the sending the message to be transmitted to the target receiving end includes: determining transmission parameters based on the message to be transmitted; and sending the transmission parameters to the target receiving end according to the forwarding interface.
Optionally, the determining, based on the interface tag, the target fragmentation result includes: analyzing the interface label based on a pre-constructed target router to obtain an analysis result, wherein the analysis result is used for indicating the byte position of the target fragmentation result in the message to be transmitted; and determining the target slicing result based on the analysis result.
Optionally, the determining, based on the target slicing result, a target receiving end from the plurality of receiving ends includes: obtaining a plurality of slicing results; determining a plurality of units included in a unitized framework, wherein the plurality of units correspond to different data processing functions; determining a first mapping relation between a plurality of slicing results and the plurality of units, wherein the first mapping relation is used for indicating the units to which the plurality of slicing results belong respectively; determining a second mapping relation between the plurality of receiving ends and the plurality of units, wherein the second mapping relation is used for indicating the units to which the plurality of receiving ends belong respectively; and determining the target receiving end from the plurality of receiving ends based on the target slicing result, the first mapping relation and the second mapping relation.
Optionally, the determining, based on the target slicing result, the first mapping relationship, and the second mapping relationship, the target receiving end from the multiple receiving ends includes: determining a target unit from the plurality of units based on the target slicing result and the first mapping relation, wherein the target unit is determined to be used for indicating a unit to which the target slicing result belongs; and determining the target receiving end from the plurality of receiving ends based on the target unit and the second mapping relation, wherein the target receiving end belongs to the target unit.
According to another aspect of the embodiment of the present invention, there is provided another message transmission method, including: the method comprises the steps that a first sending end sends a message to be transmitted to a server, wherein the first sending end is any one of a plurality of sending ends; the first transmission end acquires the message to be transmitted from the server; the first transmission end acquires a forwarding interface corresponding to the message to be transmitted and an interface label of the forwarding interface, wherein the forwarding interface is used for forwarding the message, the interface label is used for indicating an acquisition mode of a target fragmentation result corresponding to the message to be transmitted, and the first transmission end is any one of a plurality of transmission ends; the first transmission end determines the target slicing result based on the interface tag, wherein the target slicing result is used for indicating a result of logically dividing the message to be transmitted; the first transmission end determines a target receiving end from a plurality of receiving ends based on the target slicing result; the first transmitting end sends the message to be transmitted to the target receiving end.
According to another aspect of the embodiment of the present invention, there is also provided a message transmission apparatus, including: the first acquisition module is used for acquiring the message to be transmitted and a plurality of receiving ends; the second acquisition module is used for acquiring a forwarding interface corresponding to the message to be transmitted and an interface label of the forwarding interface, wherein the forwarding interface is used for forwarding the message, and the interface label is used for indicating an acquisition mode of a target fragmentation result corresponding to the message to be transmitted; the first determining module is used for determining the target slicing result based on the interface tag, wherein the target slicing result is used for indicating a result of logically dividing the message to be transmitted; the second determining module is used for determining a target receiving end from the plurality of receiving ends based on the target slicing result; and the first sending module is used for sending the message to be transmitted to the target receiving end.
According to another aspect of the embodiment of the present invention, there is also provided another message transmission apparatus, including: the second sending module is used for sending the message to be transmitted to the server by the first sending end, wherein the first sending end is any one sending end of the plurality of sending ends; the third acquisition module is used for acquiring the message to be transmitted from the server by the first transmission end; a fourth obtaining module, configured to obtain, by using the first transmission end, a forwarding interface corresponding to the message to be transmitted, and an interface tag of the forwarding interface, where the forwarding interface is used to forward the message, and the interface tag is used to indicate an obtaining manner of a target fragmentation result corresponding to the message to be transmitted, and the first transmission end is any one of multiple transmission ends; a third determining module, configured to determine, by the first transmitting end, the target fragmentation result based on the interface tag, where the target fragmentation result is used to indicate a result of logically dividing the message to be transmitted; a fourth determining module, configured to determine, by the first transmitting end, a target receiving end from a plurality of receiving ends based on the target fragmentation result; and the second sending module is used for sending the message to be transmitted to the target receiving end by the first transmitting end.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device including one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement any one of the message transmission methods.
In the embodiment of the invention, the message to be transmitted and a plurality of receiving ends are acquired; acquiring a forwarding interface corresponding to the message to be transmitted and an interface label of the forwarding interface, wherein the forwarding interface is used for forwarding the message, and the interface label is used for indicating an acquisition mode of a target fragmentation result corresponding to the message to be transmitted; determining the target fragmentation result based on the interface tag, wherein the target fragmentation result is used for indicating a result of logically dividing the message to be transmitted; determining a target receiving end from the plurality of receiving ends based on the target slicing result; the message to be transmitted is sent to the target receiving end, so that the aim of accurately transmitting the message to be transmitted to the target receiving end based on the slicing result is fulfilled, the technical effect of improving the accuracy of the message transmission result is achieved, and the technical problem of low accuracy of the transmission result obtained by the message transmission method in the related art is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
fig. 1 is a flow chart of a message transmission method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another message transmission method according to an embodiment of the invention;
FIG. 3 is a schematic diagram of an alternative message transmission method according to an embodiment of the invention;
fig. 4 is a schematic diagram of a message transmission apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram of another message transmission apparatus according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an electronic device provided according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, in order to facilitate understanding of the embodiments of the present invention, some terms or nouns referred to in the present invention will be explained below:
RocketMQ: is a high-performance message middleware with an independent server and a receiving end SDK for sending and consuming messages.
Unit (Zone): the deployment unit of the unitized application service product layer refers to a self-contained set capable of completing all business operations, and all services required by all businesses and data distributed to the unit are contained in the set.
Unitized architecture: a unitized architecture is a software architecture model that aims to break down a complex application into multiple independent modules or units. Each unit has its own functions and responsibilities and can be developed, tested, and deployed independently. The unitized architecture is to use units as basic units for deployment, deploy a plurality of units in all machine rooms of a total station, wherein the number of units in each machine room is not fixed, any unit deploys all applications required by the system, and the data is a part of the total data after being divided according to a certain dimension.
Dubbo: the remote service invocation framework is a high-performance remote service invocation framework, is used as a remote procedure invocation (Remote Procedure Call, RPC) framework in the field of micro-service architecture, provides rich expansibility, and can enable a developer to customize which service provider node to invoke.
In accordance with an embodiment of the present invention, there is provided a method embodiment of message transmission, it being noted that the steps shown in the flowchart of the figures may be performed in a computer system, such as a set of computer executable instructions, and, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order other than that shown or described herein.
Fig. 1 is a flowchart of a message transmission method according to an embodiment of the present invention, as shown in fig. 1, the method including the steps of:
step S101, obtaining a message to be transmitted, and a plurality of receiving ends.
Alternatively, the message to be transmitted refers to a data packet for communication between applications, and the message to be transmitted may include any type of information, such as a command, an event, or data. The multiple receiving ends refer to application programs or services for receiving and processing the messages, and can also be called as message consumption ends, and the message consumption ends can subscribe to specific message topics or queues according to requirements and process the messages when the messages arrive; specific business logic may be performed such as updating data, triggering other operations, or sending new messages, etc. The main purpose of the message consumer is to perform the corresponding processing based on the received message.
In an alternative embodiment, acquiring the message to be transmitted includes: determining a server and a preset component included in the server, wherein the preset component is used for acquiring a message from a designated position in the server; and acquiring a message to be transmitted from the server based on a preset component, wherein the message to be transmitted is sent to the server in advance by a sending end.
Alternatively, the message sender is a separate component or service responsible for sending messages to the message queue or message middleware for consumption by other components or services. The Message to be transmitted is sent to a Message Queue (MQ) server in advance by a Message sending end, wherein the MQ server refers to a Message middleware server of the RocketMQ and is responsible for receiving, storing and forwarding the Message so as to ensure reliable transmission and processing of the Message. After the message to be transmitted is sent to the MQ server, the message transmitting end can pull the message to be transmitted into a local process by utilizing a consumer object component provided by the MQ server, wherein the message transmitting end is used for acquiring the message to be transmitted and forwarding the message to be transmitted to the target receiving end, and after the transmitting end acquires the message to be transmitted, the target receiving end can be determined and the message to be transmitted can be forwarded to the target receiving end.
Step S102, a forwarding interface corresponding to the message to be transmitted and an interface label of the forwarding interface are obtained, wherein the forwarding interface is used for forwarding the message, and the interface label is used for indicating the obtaining mode of the target fragmentation result corresponding to the message to be transmitted.
Optionally, the forwarding interface corresponding to the message to be transmitted is a Dubbo interface, where the Dubbo interface refers to a service interface defined by a Dubbo framework and is used for receiving the forwarded message. When receiving different message types, the message transmitting end needs to expose different Dubbo interfaces, for example, if the received message to be transmitted is a transaction message (tradeMessage), the Dubbo interfaces to be exposed are:
com. The message transmitting end needs to establish a mapping configuration of a unitized route forwarding interface, and marks the mapping configuration on a forwarding interface method signature in an annotation mode, namely an interface label of the forwarding interface, so that a proper receiving end can be selected to initiate message calling, for example, the interface label can be:
@Zone(value=“user.userId”,start=6,end=8)
onPay(TradeMessage tradeMessage)
the method is that 6-8 bits are intercepted from userId attribute of the user attribute obtained from the tradeMessage of the message to be transmitted as a unitized route slicing result, a plurality of interfaces are provided with a plurality of configurations, and 6 and 8 are the starting subscript and the ending subscript when the character string is intercepted. Based on the interface label, the target slicing result corresponding to the message to be transmitted can be accurately determined, so that the target receiving end can be determined by using the target slicing result.
Step S103, determining a target slicing result based on the interface label, wherein the target slicing result is used for indicating a result of logically dividing the message to be transmitted.
Optionally, in the unitized architecture system, the message is logically divided by the fragmentation finger, and the content included in the message must contain fragmentation result information, for example, if the message contains the user address Id, then a certain 2 bits in the user Id can be used as the unitized fragmentation result. If the machine room 1 comprises a unit 1 and a unit 2, dividing the last 2 bit Id according to the user Id into 100 fragments, dividing fragments 00-49 into the unit 1, dividing fragments 50-99 into the unit 2, and if the target fragment result corresponding to the message to be transmitted is 20, the message to be transmitted is processed by the unit 1, and the message to be transmitted needs to be sent to a receiving end included in the unit 1. By dividing the message into a plurality of fragments under a unitized architecture, each fragment message is processed by a separate unit, the maintainability, scalability, system performance and testability of the system can be improved. Because the interface tag contains the acquisition mode of the target slicing result corresponding to the message to be transmitted, the target slicing result can be accurately determined based on the interface tag, so that the target receiving end in the unit corresponding to the target slicing result can be accurately determined based on the target slicing result.
In an alternative embodiment, determining the target shard result based on the interface tag includes: based on a pre-constructed target router, analyzing the interface label to obtain an analysis result, wherein the analysis result is used for indicating the byte position of the target fragmentation result in the message to be transmitted; and determining a target fragmentation result based on the analysis result.
Optionally, since the message transmitting end first initiates the RPC request by using the message as a parameter of the remote procedure (Remote Procedure Call, RPC) call, in the process of initiating the request, a specific receiving end is required to be finally selected to initiate the network call through the Dubbo routing chain. Therefore, a receiver needs to be dynamically selected to initiate network call by utilizing the custom routing function provided by Dubbo, and therefore, a target Router needs to be pre-constructed, namely, a Dubbo custom Router is created, the target Router is utilized to analyze the @ Zone interface label on the forwarding interface, and an analysis result can be obtained through analysis, for example, the analysis result can be: the slicing result is located at bits 6-8 in the userId attribute of the user attribute, and if bits 6-8 in the userId attribute are 20, based on the parsing result, it can be determined that the target slicing result is 20. Through the interface tag, the receiving end in which unit the message to be transmitted should be transmitted can be accurately determined, so that the accuracy of message transmission can be improved.
Step S104, determining a target receiving end from a plurality of receiving ends based on the target slicing result.
Optionally, based on the target slicing result, a target receiving end corresponding to the unit where the target slicing result is located may be determined from multiple receiving ends. By determining the receiving end corresponding to the unit where the slicing result is located, the consistency and accuracy of data can be ensured, the speed and efficiency of data processing are accelerated, and the fault tolerance and expandability of the system are improved, so that a more reliable and efficient basis is provided for data analysis and processing.
In an alternative embodiment, determining a target receiver from a plurality of receivers based on the target fragmentation result includes: obtaining a plurality of slicing results; determining a plurality of units included in the unitized framework, wherein the plurality of units correspond to different data processing functions; determining a first mapping relation between the plurality of slicing results and the plurality of units, wherein the first mapping relation is used for indicating the units to which the plurality of slicing results belong respectively; determining a second mapping relation between the plurality of receiving ends and the plurality of units, wherein the second mapping relation is used for indicating the units to which the plurality of receiving ends belong respectively; and determining the target receiving end from the plurality of receiving ends based on the target slicing result, the first mapping relation and the second mapping relation.
Alternatively, in the unitized architecture, a unit refers to a self-contained set that can perform all business operations, where all services required by all businesses are contained in the set, and data is allocated to the unit, where different units correspond to different data processing functions. The configuration center can establish a first mapping relation between a plurality of slicing results and a plurality of units, so that the global configuration can be read after all applications are started, and the configuration form can be as follows:
zone1# 00-49 indicates that 00-49 fragment results are assigned to element 1
50-99 Zone2# indicates that 50-99 fragmentation results are assigned to unit 2
Since the Dubbo framework allows the developer to carry the custom field on the registered uniform resource locator (Uniform Resource Locator, URL) when the Dubbo service is registered, the plurality of receiving ends can set the unit information that the receiving ends currently belong to into the URL parameter to register together with the URL parameter to the registry, so that the second mapping relationship between the plurality of receiving ends and the plurality of units can be determined from the registry, for example, the receiving end 1 belongs to the unit 1, and the receiving end 2 belongs to the unit 2. Based on the target slicing result, the first mapping relation and the second mapping relation, the target receiving end corresponding to the unit to which the slicing result belongs can be accurately determined from the plurality of receiving ends.
In an alternative embodiment, determining the target receiving end from the plurality of receiving ends based on the target fragmentation result, the first mapping relation and the second mapping relation includes: determining a target unit from a plurality of units based on the target slicing result, wherein the target unit is determined to be used for indicating the unit to which the target slicing result belongs; and determining a target receiving end from the plurality of receiving ends based on the target unit and the second mapping relation, wherein the target receiving end belongs to the target unit.
Optionally, based on the target slicing result, a first mapping relationship determines a target unit from the multiple units, for example, if the target slicing result is 20, the first mapping relationship is that the slicing result is 00-49 and belongs to unit 1, and the slicing result is 50-99 and belongs to unit 2, the target unit may be determined to be unit 1 from the 2 units; based on the target unit and the second mapping relation, the target receiving end is determined from the multiple receiving ends, for example, based on the target unit 1, the second mapping relation is that the receiving end 1 belongs to the unit 1, and the receiving end 2 belongs to the unit 2, so that the target receiving end can be determined to be the receiving end 1 from the receiving end 1 and the receiving end 2.
Step S105, the message to be transmitted is sent to the target receiving end.
Optionally, the message to be transmitted is sent to the target receiving end, so as to realize the transmission and processing of the message. After the target receiving end receives the message to be transmitted, corresponding processing can be performed according to the received message, such as analyzing the message content, executing specific business logic and the like; the received message may be stored in a database or other persistent store for subsequent querying and use; specific business processes or tasks can be triggered according to the message content, such as starting timing tasks, calling other services and the like; real-time monitoring and alarming can also be performed according to the message content, such as monitoring system performance, abnormal conditions and the like.
In an alternative embodiment, sending the message to be transmitted to the target receiving end includes: determining transmission parameters based on the message to be transmitted; and sending the transmission parameters to the target receiving end according to the forwarding interface.
Optionally, the message to be transmitted is used as a transmission parameter, the transmission parameter is sent to a target receiving end by using the Dubbo interface, if the fragmentation result of the message to be transmitted is 00-49 and belongs to the unit 1, the message is forwarded to the receiving end 1 corresponding to the unit 1 by using the Dubbo interface route, and if the fragmentation result is 50-99 and belongs to the unit 2, the message is forwarded to the receiving end 2 corresponding to the unit 2 by using the Dubbo interface cross-unit route. By transmitting the message to be transmitted to the Dubbo interface as a parameter, the message can be forwarded by route or transmitted to a target receiving end by cross route, so that the message transmission and communication among different nodes are realized, and the concurrency processing capability and expandability of the system are improved.
Through the steps S101 to S105, the purpose of determining the target fragmentation result corresponding to the message to be transmitted based on the interface label of the forwarding interface corresponding to the message to be transmitted is achieved, so that the message to be transmitted is accurately transmitted to the target receiving end based on the fragmentation result, the technical effect of improving the accuracy of the message transmission result is achieved, and the technical problem that the accuracy of the transmission result obtained by the message transmission method in the related art is low is solved.
According to an embodiment of the present invention, there is further provided another method embodiment of message transmission, and fig. 2 is a flowchart of another method for message transmission according to an embodiment of the present invention, as shown in fig. 2, and the method includes the following steps:
in step S201, the first sending end sends the message to be transmitted to the server, where the first sending end is any sending end of the plurality of sending ends.
Step S202, a first transmission end acquires a message to be transmitted from a server;
step S203, a first transmission end acquires a forwarding interface corresponding to a message to be transmitted and an interface label of the forwarding interface, wherein the forwarding interface is used for forwarding the message, the interface label is used for indicating an acquisition mode of a target fragmentation result corresponding to the message to be transmitted, and the first transmission end is any one of a plurality of transmission ends;
Step S204, a first transmitting terminal determines a target slicing result based on the interface label, wherein the target slicing result is used for indicating the result of logically dividing the message to be transmitted;
step S205, a first transmitting end determines a target receiving end from a plurality of receiving ends based on a target slicing result;
in step S206, the first transmitting end sends the message to be transmitted to the target receiving end.
Through the steps S201 to S206, the message to be transmitted is sent to the server by using the first sending terminal; the transmission end acquires a message to be transmitted from the server by utilizing a preset component provided by the server, and acquires a forwarding interface corresponding to the message to be transmitted and an interface label of the forwarding interface; the first transmission end analyzes the interface label by using a target router and determines a target fragmentation result corresponding to the message to be transmitted; the first transmission end determines a target receiving end corresponding to a unit corresponding to the target slicing result from a plurality of receiving ends based on the target slicing result; the first transmitting end sends the message to be transmitted to the target receiving end. The method achieves the aim of accurately transmitting the message to be transmitted to the target receiving end based on the target slicing result corresponding to the message to be transmitted, thereby achieving the technical effect of improving the accuracy of the message transmission result and further solving the technical problem of low accuracy of the transmission result obtained by the message transmission method in the related technology.
Based on the foregoing embodiment and the optional embodiment, the present invention proposes an optional implementation, and fig. 3 is a schematic diagram of an optional message transmission method according to an embodiment of the present invention, as shown in fig. 3, where the method includes:
step S1, determining a server, namely an MQ server, and a preset component included in the server, wherein the preset component is used for acquiring a message from a specified position in the server.
Step S2, based on a preset component, the transmission end pulls a message to be transmitted from the server, wherein the message to be transmitted is sent to the server in advance by the sending end according to a unit where the transmission end is located, and the message corresponds to a slicing result.
Step S3, a plurality of receiving ends are obtained.
And S4, acquiring a forwarding interface corresponding to the message to be transmitted and an interface label of the forwarding interface, wherein the forwarding interface is used for forwarding the message, and the interface label is used for indicating the acquisition mode of the target fragmentation result.
And S5, analyzing the interface label based on a pre-constructed target router to obtain an analysis result, wherein the analysis result is used for indicating the byte position of the target fragmentation result in the message to be transmitted.
And S6, determining a target slicing result based on the analysis result.
And S7, obtaining a plurality of slicing results.
In step S8, a plurality of units included in the unitized frame are determined, wherein the plurality of units correspond to different data processing functions.
Step S9, determining a first mapping relationship between the plurality of slicing results and the plurality of units, where the first mapping relationship is used to indicate units to which the plurality of slicing results respectively belong, for example, a machine room 1 includes a unit 1 and a unit 2, and the slicing results are 00-49 and belong to the unit 1 and 50-99 and belong to the unit 2.
Step S10, determining a second mapping relationship between the plurality of receiving ends and the plurality of units, wherein the second mapping relationship is used for indicating the units to which the plurality of receiving ends respectively belong.
Step S11, determining a target unit from a plurality of units based on the target slicing result and the first mapping relation, wherein the target unit is determined to be used for indicating the unit to which the target slicing result belongs.
And step S12, determining a target receiving end from a plurality of receiving ends based on the target unit and the second mapping relation, wherein the target receiving end belongs to the target unit.
Step S13, the message to be transmitted is sent to a target receiving end, if the slicing result is 00-49, the route is forwarded to the receiving end corresponding to the unit 1, and if the slicing result is 50-99, the cross-unit route is forwarded to the receiving end corresponding to the unit 2.
In this embodiment, a message transmission device is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and will not be described in detail. As used below, the terms "module," "apparatus" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
According to an embodiment of the present invention, there is further provided an embodiment of an apparatus for implementing the above-mentioned message transmission method, and fig. 4 is a schematic structural diagram of a message transmission apparatus according to an embodiment of the present invention, as shown in fig. 4, where the above-mentioned message transmission apparatus includes: a first acquisition module 401, a second acquisition module 402, a first determination module 403, a second determination module 404, and a first transmission module 405, wherein:
a first obtaining module 401, configured to obtain a message to be transmitted, and a plurality of receiving ends;
the second obtaining module 402 is connected to the first obtaining module 401, and is configured to obtain a forwarding interface corresponding to the message to be transmitted, and an interface tag of the forwarding interface, where the forwarding interface is configured to forward the message, and the interface tag is configured to indicate an obtaining manner of a target fragmentation result corresponding to the message to be transmitted;
A first determining module 403, coupled to the second obtaining module 402, configured to determine a target fragmentation result based on the interface tag, where the target fragmentation result is used to indicate a result of logically dividing the message to be transmitted;
a second determining module 404, coupled to the first determining module 403, configured to determine a target receiving end from the plurality of receiving ends based on the target fragmentation result;
the first sending module 405 is connected to the second determining module 404, and is configured to send the message to be transmitted to the target receiving end.
By setting the first obtaining module 401, the method is used for obtaining a message to be transmitted and a plurality of receiving ends; a second obtaining module 402, configured to obtain a forwarding interface corresponding to the message to be transmitted, and an interface tag of the forwarding interface, where the forwarding interface is configured to forward the message, and the interface tag is configured to indicate an obtaining manner of a target fragmentation result corresponding to the message to be transmitted; a first determining module 403, configured to determine a target fragmentation result based on the interface tag, where the target fragmentation result is used to indicate a result of logically dividing a message to be transmitted; a second determining module 404, configured to determine a target receiving end from the multiple receiving ends based on the target fragmentation result; the first sending module 405 is configured to send a message to be transmitted to a target receiving end, so as to determine a target fragmentation result corresponding to the message to be transmitted based on an interface tag of a forwarding interface corresponding to the message to be transmitted, thereby accurately transmitting the message to be transmitted to the target receiving end based on the fragmentation result, thereby achieving the technical effect of improving the accuracy of the message transmission result, and further solving the technical problem of low accuracy of the transmission result obtained by the message transmission method in the related art.
In an alternative embodiment, the first obtaining module includes: the server comprises a first determining submodule, a second determining submodule and a preset component, wherein the first determining submodule is used for determining the server and the preset component is included in the server, and the preset component is used for acquiring a message from a designated position in the server; the first acquisition sub-module is used for acquiring a message to be transmitted from the server based on a preset component, wherein the message to be transmitted is sent to the server in advance by a sending end.
In an alternative embodiment, the first sending module includes: the second determining submodule is used for determining transmission parameters based on the message to be transmitted; and the first sending submodule is used for sending the transmission parameters to the target receiving end according to the forwarding interface.
In an alternative embodiment, the first determining module includes: the first analysis submodule is used for carrying out analysis processing on the interface label based on a pre-constructed target router to obtain an analysis result, wherein the analysis result is used for indicating the byte position of the target fragmentation result in the message to be transmitted; and the third determination submodule is used for determining a target slicing result based on the analysis result.
In an alternative embodiment, the second determining module includes: the second acquisition submodule is used for acquiring a plurality of slicing results; a fourth determination submodule for determining a plurality of units included in the unitized framework, wherein the plurality of units correspond to different data processing functions; a fifth determining submodule, configured to determine a first mapping relationship between the plurality of slicing results and the plurality of units, where the first mapping relationship is used to indicate units to which the plurality of slicing results respectively belong; a sixth determining submodule, configured to determine a second mapping relationship between the multiple receiving ends and multiple units, where the second mapping relationship is used to indicate units to which the multiple receiving ends respectively belong; and a seventh determining submodule, configured to determine a target receiving end from the plurality of receiving ends based on the target fragmentation result, the first mapping relation, and the second mapping relation.
In an alternative embodiment, the seventh determining submodule includes: an eighth determining submodule, configured to determine a target unit from a plurality of units based on the target slicing result and the first mapping relationship, where the determining target unit is configured to indicate a unit to which the target slicing result belongs; and a ninth determining submodule, configured to determine a target receiving end from the plurality of receiving ends based on the target unit and the second mapping relationship, where the target receiving end belongs to the target unit.
According to an embodiment of the present invention, there is further provided an embodiment of an apparatus for implementing the above-mentioned message transmission method, and fig. 5 is a schematic structural diagram of another message transmission apparatus according to an embodiment of the present invention, as shown in fig. 5, where the above-mentioned message transmission apparatus includes: a second sending module 501, a third obtaining module 502, a fourth obtaining module 503, a third determining module 504, a fourth determining module 505, and a second sending module 506, where:
a second sending module 501, configured to send a message to be transmitted to a server by using a first sending end, where the first sending end is any sending end of a plurality of sending ends;
the third obtaining module 502 is connected to the second sending module 501, and is configured to obtain, by the first transmitting end, a message to be transmitted from the server;
A fourth obtaining module 503, connected to the third obtaining module 502, configured to obtain a forwarding interface corresponding to the message to be transmitted and an interface tag of the forwarding interface, where the forwarding interface is used to forward the message, and the interface tag is used to indicate an obtaining manner of a target fragmentation result corresponding to the message to be transmitted, and the first transmitting end is any one of multiple transmitting ends;
a third determining module 504, connected to the fourth obtaining module 503, configured to determine a target slicing result based on the interface tag by the first transmitting end, where the target slicing result is used to indicate a result of logically dividing the message to be transmitted;
a fourth determining module 505, coupled to the third determining module 504, configured to determine a target receiving end from the plurality of receiving ends based on the target fragmentation result by the first transmitting end;
the second sending module 506 is connected to the fourth determining module 505, and is configured to send the message to be transmitted to the target receiving end by the first transmitting end.
It should be noted that each of the above modules may be implemented by software or hardware, for example, in the latter case, it may be implemented by: the above modules may be located in the same processor; alternatively, the various modules described above may be located in different processors in any combination.
Here, the first acquiring module 401, the second acquiring module 402, the first determining module 403, the second determining module 404, and the first transmitting module 405 correspond to steps S101 to S105 in the embodiment, and the second transmitting module 501, the third acquiring module 502, the fourth acquiring module 503, the third determining module 504, the fourth determining module 505, and the second transmitting module 506 correspond to steps S201 to S206 in the embodiment, and the modules are the same as the examples and the application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the embodiment. It should be noted that the above modules may be run in a computer terminal as part of the apparatus.
It should be noted that, the optional or preferred implementation manner of this embodiment may be referred to the related description in the embodiment, and will not be repeated herein.
The message transmission apparatus may further include a processor and a memory, where the first acquiring module 401, the second acquiring module 402, the first determining module 403, the second determining module 404, the first transmitting module 405, the second transmitting module 501, the third acquiring module 502, the fourth acquiring module 503, the third determining module 504, the fourth determining module 505, the second transmitting module 506, and the like are stored as program modules, and the processor executes the program modules stored in the memory to implement corresponding functions.
The processor comprises a kernel, the kernel accesses the memory to call the corresponding program module, and the kernel can be provided with one or more than one. The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
According to an embodiment of the present application, there is also provided an embodiment of a nonvolatile storage medium. Optionally, in this embodiment, the nonvolatile storage medium includes a stored program, where the device where the nonvolatile storage medium is located is controlled to execute any one of the message transmission methods when the program runs.
Alternatively, in this embodiment, the above-mentioned nonvolatile storage medium may be located in any one of the computer terminals in the computer terminal group in the computer network or in any one of the mobile terminals in the mobile terminal group, and the above-mentioned nonvolatile storage medium includes a stored program.
Optionally, the program controls the device in which the nonvolatile storage medium is located to perform the following functions when running: acquiring a message to be transmitted and a plurality of receiving ends; the method comprises the steps of obtaining a forwarding interface corresponding to a message to be transmitted and an interface label of the forwarding interface, wherein the forwarding interface is used for forwarding the message, and the interface label is used for indicating the obtaining mode of a target fragmentation result corresponding to the message to be transmitted; determining a target fragmentation result based on the interface tag, wherein the target fragmentation result is used for indicating a result of logically dividing the message to be transmitted; determining a target receiving end from a plurality of receiving ends based on the target slicing result; and sending the message to be transmitted to the target receiving end.
Optionally, the program controls the device in which the nonvolatile storage medium is located to perform the following functions when running: the method comprises the steps that a first sending end sends a message to be transmitted to a server, wherein the first sending end is any one of a plurality of sending ends; the first transmission end acquires a message to be transmitted from a server; the method comprises the steps that a first transmission end obtains a forwarding interface corresponding to a message to be transmitted and an interface label of the forwarding interface, wherein the forwarding interface is used for forwarding the message, the interface label is used for indicating an obtaining mode of a target fragmentation result corresponding to the message to be transmitted, and the first transmission end is any one of a plurality of transmission ends; the first transmission end determines a target slicing result based on the interface label, wherein the target slicing result is used for indicating a result of logically dividing a message to be transmitted; the first transmitting end determines a target receiving end from a plurality of receiving ends based on the target slicing result; the first transmitting end sends the message to be transmitted to the target receiving end.
According to an embodiment of the present application, there is also provided an embodiment of a processor. Optionally, in this embodiment, the processor is configured to run a program, where any one of the message transmission methods is executed when the program runs.
According to an embodiment of the present application, there is also provided an embodiment of a computer program product adapted to perform a program initialized with the steps of the message transmission method of any one of the above, when executed on a data processing device.
Optionally, the computer program product mentioned above, when executed on a data processing device, is adapted to perform a program initialized with the method steps of: acquiring a message to be transmitted and a plurality of receiving ends; the method comprises the steps of obtaining a forwarding interface corresponding to a message to be transmitted and an interface label of the forwarding interface, wherein the forwarding interface is used for forwarding the message, and the interface label is used for indicating the obtaining mode of a target fragmentation result corresponding to the message to be transmitted; determining a target fragmentation result based on the interface tag, wherein the target fragmentation result is used for indicating a result of logically dividing the message to be transmitted; determining a target receiving end from a plurality of receiving ends based on the target slicing result; and sending the message to be transmitted to the target receiving end.
Optionally, the above computer program product is further adapted to execute a program initialized with the method steps of: determining a server and a preset component included in the server, wherein the preset component is used for acquiring a message from a designated position in the server; and acquiring a message to be transmitted from the server based on a preset component, wherein the message to be transmitted is sent to the server in advance by a sending end.
Optionally, the above computer program product is further adapted to execute a program initialized with the method steps of: determining transmission parameters based on the message to be transmitted; and sending the transmission parameters to the target receiving end according to the forwarding interface.
Optionally, the above computer program product is further adapted to execute a program initialized with the method steps of: based on a pre-constructed target router, analyzing the interface label to obtain an analysis result, wherein the analysis result is used for indicating the byte position of the target fragmentation result in the message to be transmitted; and determining a target fragmentation result based on the analysis result.
Optionally, the above computer program product is further adapted to execute a program initialized with the method steps of: obtaining a plurality of slicing results; determining a plurality of units included in the unitized framework, wherein the plurality of units correspond to different data processing functions; determining a first mapping relation between the plurality of slicing results and the plurality of units, wherein the first mapping relation is used for indicating the units to which the plurality of slicing results belong respectively; determining a second mapping relation between the plurality of receiving ends and the plurality of units, wherein the second mapping relation is used for indicating the units to which the plurality of receiving ends belong respectively; and determining the target receiving end from the plurality of receiving ends based on the target slicing result, the first mapping relation and the second mapping relation.
Optionally, the above computer program product is further adapted to execute a program initialized with the method steps of: determining a target unit from a plurality of units based on the target slicing result, wherein the target unit is determined to be used for indicating the unit to which the target slicing result belongs; and determining a target receiving end from the plurality of receiving ends based on the target unit and the second mapping relation, wherein the target receiving end belongs to the target unit.
Optionally, the computer program product mentioned above, when executed on a data processing device, is adapted to perform a program initialized with the method steps of: the method comprises the steps that a first sending end sends a message to be transmitted to a server, wherein the first sending end is any one of a plurality of sending ends; the first transmission end acquires a message to be transmitted from a server; the method comprises the steps that a first transmission end obtains a forwarding interface corresponding to a message to be transmitted and an interface label of the forwarding interface, wherein the forwarding interface is used for forwarding the message, the interface label is used for indicating an obtaining mode of a target fragmentation result corresponding to the message to be transmitted, and the first transmission end is any one of a plurality of transmission ends; the first transmission end determines a target slicing result based on the interface label, wherein the target slicing result is used for indicating a result of logically dividing a message to be transmitted; the first transmitting end determines a target receiving end from a plurality of receiving ends based on the target slicing result; the first transmitting end sends the message to be transmitted to the target receiving end.
An embodiment of the present invention provides an electronic device, as shown in fig. 6, where the electronic device 10 includes a processor, a memory, and a program stored on the memory and executable on the processor, and the processor implements the following steps when executing the program: acquiring a message to be transmitted and a plurality of receiving ends; the method comprises the steps of obtaining a forwarding interface corresponding to a message to be transmitted and an interface label of the forwarding interface, wherein the forwarding interface is used for forwarding the message, and the interface label is used for indicating the obtaining mode of a target fragmentation result corresponding to the message to be transmitted; determining a target fragmentation result based on the interface tag, wherein the target fragmentation result is used for indicating a result of logically dividing the message to be transmitted; determining a target receiving end from a plurality of receiving ends based on the target slicing result; and sending the message to be transmitted to the target receiving end.
An embodiment of the present invention provides an electronic device, as shown in fig. 6, where the electronic device 10 includes a processor, a memory, and a program stored on the memory and executable on the processor, and the processor implements the following steps when executing the program: the method comprises the steps that a first sending end sends a message to be transmitted to a server, wherein the first sending end is any one of a plurality of sending ends; the first transmission end acquires a message to be transmitted from a server; the method comprises the steps that a first transmission end obtains a forwarding interface corresponding to a message to be transmitted and an interface label of the forwarding interface, wherein the forwarding interface is used for forwarding the message, the interface label is used for indicating an obtaining mode of a target fragmentation result corresponding to the message to be transmitted, and the first transmission end is any one of a plurality of transmission ends; the first transmission end determines a target slicing result based on the interface label, wherein the target slicing result is used for indicating a result of logically dividing a message to be transmitted; the first transmitting end determines a target receiving end from a plurality of receiving ends based on the target slicing result; the first transmitting end sends the message to be transmitted to the target receiving end.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the modules may be a logic function division, and there may be another division manner when actually implemented, for example, a plurality of modules or components may be combined or may be integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with respect to each other may be through some interface, module or indirect coupling or communication connection of modules, electrical or otherwise.
The modules described above as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
The integrated modules described above, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable non-volatile storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a non-volatile storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present invention. And the aforementioned nonvolatile storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (10)

1. A method of message transmission, comprising:
acquiring a message to be transmitted and a plurality of receiving ends;
acquiring a forwarding interface corresponding to the message to be transmitted and an interface label of the forwarding interface, wherein the forwarding interface is used for forwarding the message, and the interface label is used for indicating an acquisition mode of a target fragmentation result corresponding to the message to be transmitted;
determining the target fragmentation result based on the interface tag, wherein the target fragmentation result is used for indicating a result of logically dividing the message to be transmitted;
determining a target receiving end from the plurality of receiving ends based on the target slicing result;
and sending the message to be transmitted to the target receiving end.
2. The method of claim 1, wherein the obtaining the message to be transmitted comprises:
determining a server and a preset component included in the server, wherein the preset component is used for acquiring a message from a specified position in the server;
And acquiring the message to be transmitted from the server based on the preset component, wherein the message to be transmitted is sent to the server in advance by a sending end.
3. The method of claim 1, wherein the sending the message to be transmitted to the target receiving end comprises:
determining transmission parameters based on the message to be transmitted;
and sending the transmission parameters to the target receiving end according to the forwarding interface.
4. The method of claim 1, wherein the determining the target shard result based on the interface tag comprises:
analyzing the interface label based on a pre-constructed target router to obtain an analysis result, wherein the analysis result is used for indicating the byte position of the target fragmentation result in the message to be transmitted;
and determining the target slicing result based on the analysis result.
5. The method of claim 1, wherein the determining a target receiving end from the plurality of receiving ends based on the target fragmentation result comprises:
obtaining a plurality of slicing results;
determining a plurality of units included in a unitized framework, wherein the plurality of units correspond to different data processing functions;
Determining a first mapping relation between a plurality of slicing results and the plurality of units, wherein the first mapping relation is used for indicating the units to which the plurality of slicing results belong respectively;
determining a second mapping relation between the plurality of receiving ends and the plurality of units, wherein the second mapping relation is used for indicating the units to which the plurality of receiving ends belong respectively;
and determining the target receiving end from the plurality of receiving ends based on the target slicing result, the first mapping relation and the second mapping relation.
6. The method of claim 5, wherein the determining the target receiving end from the plurality of receiving ends based on the target fragmentation result, the first mapping relationship, and the second mapping relationship comprises:
determining a target unit from the plurality of units based on the target slicing result and the first mapping relation, wherein the target unit is determined to be used for indicating a unit to which the target slicing result belongs;
and determining the target receiving end from the plurality of receiving ends based on the target unit and the second mapping relation, wherein the target receiving end belongs to the target unit.
7. A method of message transmission, comprising:
the method comprises the steps that a first sending end sends a message to be transmitted to a server, wherein the first sending end is any one of a plurality of sending ends;
the first transmission end acquires the message to be transmitted from the server;
the first transmission end acquires a forwarding interface corresponding to the message to be transmitted and an interface label of the forwarding interface, wherein the forwarding interface is used for forwarding the message, the interface label is used for indicating an acquisition mode of a target fragmentation result corresponding to the message to be transmitted, and the first transmission end is any one of a plurality of transmission ends;
the first transmission end determines the target slicing result based on the interface tag, wherein the target slicing result is used for indicating a result of logically dividing the message to be transmitted;
the first transmission end determines a target receiving end from a plurality of receiving ends based on the target slicing result;
the first transmitting end sends the message to be transmitted to the target receiving end.
8. A message transmission apparatus, comprising:
the first acquisition module is used for acquiring the message to be transmitted and a plurality of receiving ends;
The second acquisition module is used for acquiring a forwarding interface corresponding to the message to be transmitted and an interface label of the forwarding interface, wherein the forwarding interface is used for forwarding the message, and the interface label is used for indicating an acquisition mode of a target fragmentation result corresponding to the message to be transmitted;
the first determining module is used for determining the target slicing result based on the interface tag, wherein the target slicing result is used for indicating a result of logically dividing the message to be transmitted;
the second determining module is used for determining a target receiving end from the plurality of receiving ends based on the target slicing result;
and the first sending module is used for sending the message to be transmitted to the target receiving end.
9. A message transmission apparatus, comprising:
the second sending module is used for sending the message to be transmitted to the server by the first sending end, wherein the first sending end is any one sending end of the plurality of sending ends;
the third acquisition module is used for acquiring the message to be transmitted from the server by the first transmission end;
a fourth obtaining module, configured to obtain, by using the first transmission end, a forwarding interface corresponding to the message to be transmitted, and an interface tag of the forwarding interface, where the forwarding interface is used to forward the message, and the interface tag is used to indicate an obtaining manner of a target fragmentation result corresponding to the message to be transmitted, and the first transmission end is any one of multiple transmission ends;
A third determining module, configured to determine, by the first transmitting end, the target fragmentation result based on the interface tag, where the target fragmentation result is used to indicate a result of logically dividing the message to be transmitted;
a fourth determining module, configured to determine, by the first transmitting end, a target receiving end from a plurality of receiving ends based on the target fragmentation result;
and the second sending module is used for sending the message to be transmitted to the target receiving end by the first transmitting end.
10. An electronic device comprising one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the message transmission method of any of claims 1-7.
CN202311360826.4A 2023-10-19 2023-10-19 Message transmission method and device and electronic equipment Pending CN117424908A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311360826.4A CN117424908A (en) 2023-10-19 2023-10-19 Message transmission method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311360826.4A CN117424908A (en) 2023-10-19 2023-10-19 Message transmission method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN117424908A true CN117424908A (en) 2024-01-19

Family

ID=89529545

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311360826.4A Pending CN117424908A (en) 2023-10-19 2023-10-19 Message transmission method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN117424908A (en)

Similar Documents

Publication Publication Date Title
CN108111523B (en) Data transmission method and device
CN107590072B (en) Application development and test method and device
CN107222324B (en) Service configuration method and device of network service
AU2017226398B2 (en) Service implementation method, apparatus and system based on fix protocol
WO2019029320A1 (en) Configuration management method, apparatus and device
WO2021243666A1 (en) Information processing method and system, and device, medium, chip and program
WO2023030417A1 (en) Packet processing method and device, storage medium, and computer program product
CN111858083A (en) Remote service calling method and device, electronic equipment and storage medium
CN114401319B (en) Request processing method, device, server and storage medium
US11768759B2 (en) Method and system for automated testing of web service APIs
US8200749B2 (en) Data processing method for generating service interface descriptions
CN117424908A (en) Message transmission method and device and electronic equipment
CN114979286B (en) Access control method, device, equipment and computer storage medium for container service
CN114584629B (en) Transaction message processing method and device
US20190318036A1 (en) Topic Based Publish and Parametric Subscribe Pattern
CN114201314B (en) Contract-based routing method for realizing service dependency discovery and service access
US11388210B1 (en) Streaming analytics using a serverless compute system
CN111756836B (en) Information sending method and device based on event management model
CN114710560A (en) Data processing method and system, proxy equipment and terminal equipment
CN109818882B (en) Method and device for executing QoS strategy
CN115328693A (en) Method, device, equipment and storage medium for recovering service in service process
CN114095458B (en) Data processing method and device
CN111475272A (en) Method and device for controlling Java Web application timing task and task scheduling platform
CN113489848B (en) Terminal equipment testing method and device, electronic equipment and storage medium
CN111107536B (en) User plane function forwarding method, device, system and storage medium

Legal Events

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