CN117354199A - Message processing method, publishing terminal, subscribing terminal and computer readable storage medium - Google Patents

Message processing method, publishing terminal, subscribing terminal and computer readable storage medium Download PDF

Info

Publication number
CN117354199A
CN117354199A CN202210750160.2A CN202210750160A CN117354199A CN 117354199 A CN117354199 A CN 117354199A CN 202210750160 A CN202210750160 A CN 202210750160A CN 117354199 A CN117354199 A CN 117354199A
Authority
CN
China
Prior art keywords
message
sequence information
processing method
publishing
published
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
CN202210750160.2A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN202210750160.2A priority Critical patent/CN117354199A/en
Priority to PCT/CN2023/076291 priority patent/WO2024001213A1/en
Publication of CN117354199A publication Critical patent/CN117354199A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/234Monitoring or handling of messages for tracking messages

Abstract

The invention provides a message processing method, a publishing terminal, a subscribing terminal and a computer readable storage medium, wherein the message processing method comprises the steps of obtaining a message to be published, and obtaining first sequence information of a corresponding target channel according to the message to be published; packaging the message to be released and the first sequence information to obtain a released message; and sending the publishing message to the subscribing terminal corresponding to the target channel so that the subscribing terminal determines the continuity of the publishing message according to the first sequence information. The continuity of the message can be determined, thereby determining whether a message loss has occurred.

Description

Message processing method, publishing terminal, subscribing terminal and computer readable storage medium
Technical Field
The present invention relates to, but not limited to, the field of communications technologies, and in particular, to a message processing method, a publishing end, a subscribing end, and a computer readable storage medium.
Background
In the field of embedded device microservice management. The dependency of state change exists between services, and a plurality of services at different nodes need to pay attention to the state change of a certain service at the same time, so that a subscription publishing mechanism is needed to process service information, and when the service information is generated, a publisher publishes the service information, so that subscribers can receive the service information. However, in the related art processing method, a publisher publishes a message to a channel, and a subscriber subscribed to the channel can receive a corresponding message, in some cases, for example, the message is lost when the amount of the message in the channel exceeds a buffer, and the subscriber cannot determine the continuity of the received message, so that the subscriber cannot perceive whether the message loss occurs in the channel.
Disclosure of Invention
The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
The embodiment of the invention provides a message processing method which can determine the continuity of a message and further determine whether the message is lost or not.
In a first aspect, an embodiment of the present invention provides a message processing method, applied to a publishing end, where the method includes:
acquiring a message to be issued, and acquiring first sequence information of a corresponding target channel according to the message to be issued;
packaging the message to be published and the first sequence information to obtain a published message;
and sending the publishing message to a subscribing terminal corresponding to the target channel, so that the subscribing terminal determines the continuity of the publishing message according to the first sequence information.
In a second aspect, an embodiment of the present invention provides a message processing method, applied to a subscriber, where the method includes:
receiving a release message, wherein the release message is sent by a release end;
analyzing the release message to obtain first sequence information;
and determining the continuity of the release message according to the first sequence information and the locally stored second sequence information.
In a third aspect, an embodiment of the present invention provides a publishing end, including a memory and a processor, where the memory stores a computer program, and the processor implements the message processing method according to the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present invention provides a subscription end, including a memory and a processor, where the memory stores a computer program, and the processor implements the message processing method according to the second aspect when executing the computer program.
In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium storing a program that when executed by a processor implements the message processing method of the first aspect, or implements the message processing method of the second aspect.
The embodiment of the invention comprises the following steps: acquiring a message to be issued, and acquiring first sequence information of a corresponding target channel according to the message to be issued; packaging the message to be released and the first sequence information to obtain a released message; and sending the publishing message to the subscribing terminal corresponding to the target channel so that the subscribing terminal determines the continuity of the publishing message according to the first sequence information. The continuity of the message can be determined, thereby determining whether a message loss has occurred.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate and do not limit the invention.
FIG. 1 is a flow chart of a message processing method applied to a publishing end according to an embodiment of the present invention;
FIG. 2 is a flow chart of a message processing method provided by another embodiment of the present invention;
FIG. 3 is a flow chart of obtaining a message to be published provided by another embodiment of the invention;
FIG. 4 is a flow chart of a message processing method applied to a subscriber terminal according to an embodiment of the present invention;
FIG. 5 is a flow chart of a message processing method provided by another embodiment of the present invention;
FIG. 6 is a flow chart of a message processing method provided by another embodiment of the present invention;
FIG. 7 is a flow chart of a message processing method provided by another embodiment of the present invention;
FIG. 8 is a flow chart of a message processing method provided by another embodiment of the present invention;
FIG. 9 is a diagram of a system architecture for performing a message processing method according to another embodiment of the present invention;
FIG. 10 is a device diagram of a publishing end according to another embodiment of the present invention;
fig. 11 is a device diagram of a subscription terminal according to another embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
It should be noted that although functional block division is performed in a device diagram and a logic sequence is shown in a flowchart, in some cases, the steps shown or described may be performed in a different order than the block division in the device, or in the flowchart. The terms first, second and the like in the description and in the claims and in the above-described figures, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
It is understood that in the field of embedded device microservice management. The dependency of state change exists between services, and a plurality of services at different nodes need to pay attention to the state change of a certain service at the same time, so that a subscription publishing mechanism is needed to process service information, and when the service information is generated, a publisher publishes the service information, so that subscribers can receive the service information. In the processing method of the related art, generally, a publisher publishes a message to a channel, a subscriber subscribed to the channel can receive a corresponding message, in some cases, for example, the number of embedded devices is more, and the state is changed frequently, so that each embedded device generates more messages, the message amount in the corresponding channel is easy to exceed a buffer zone, and thus some messages are lost, and the subscriber cannot determine the continuity of the received message, so that the subscriber cannot sense whether the message is lost in the channel, and the embedded device cannot process the lost message, so that the reliability of the message transmission process cannot be ensured.
Based on the above, the invention provides a message processing method, a publishing end, a subscribing end and a computer readable storage medium, wherein the message processing method comprises the steps of obtaining a message to be published, and obtaining first sequence information of a corresponding target channel according to the message to be published; packaging the message to be released and the first sequence information to obtain a released message; and sending the publishing message to the subscribing terminal corresponding to the target channel so that the subscribing terminal determines the continuity of the publishing message according to the first sequence information. The continuity of the message can be determined, thereby determining whether a message loss has occurred.
Embodiments of the present invention will be further described below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a flowchart of a message processing method according to an embodiment of the present invention, where the message processing method is applied to a publishing end, and the message processing method may include, but is not limited to, step S110, step S120, and step S130.
Step S110, obtaining a message to be issued, and obtaining first sequence information of a corresponding target channel according to the message to be issued;
step S120, packaging the message to be released and the first sequence information to obtain a released message;
step S130, sending the publishing message to the subscribing terminal corresponding to the target channel, so that the subscribing terminal determines the continuity of the publishing message according to the first sequence information.
It should be noted that the first sequence information may include a name of a corresponding target channel and a sequence number for representing an order of the published message in the target channel, when the subscribing terminal receives the published message, the subscribing terminal may parse the published message to obtain the corresponding name of the target channel and the sequence number of the published message, so as to know the order of the published message in the target channel, so that the subscribing terminal may determine continuity of the published message according to the sequence number of the published message and a last sequence number stored by the subscribing terminal, and further may determine whether there is a message loss before the published message according to the continuity of the published message. It should be noted that, the specific content of the first sequence information is not limited in the present invention, and the first sequence information can represent a corresponding target channel and represent the sequence of the published message in the target channel, so that a person skilled in the art can configure the specific content of the first sequence information according to actual needs.
In an embodiment, the publishing end may be an embedded device, the corresponding subscribing end may be another embedded device, and a target channel is established between the publishing end and the subscribing end. When the business state of the embedded equipment serving as the publishing end changes, corresponding business information is generated, the business information is used as information to be published, the publishing end obtains first sequence information of a corresponding target channel according to the information to be published, the information to be published and the first sequence information are packaged to obtain the published information, and then the published information is sent to a subscribing end corresponding to the target channel through the target channel, so that the subscribing end determines the continuity of the published information according to the first sequence information.
It should be noted that when the publishing end and the subscribing end are both embedded devices, since the embedded devices have intense memory resources in general, the memory consumption of the components needs to be strictly controlled, the number of the subscribing end and the publishing end is numerous, and the subscribing end and the publishing end are distributed on host nodes on different nodes, and distributed high concurrency needs to be guaranteed, especially when a new node/service module is added, so that the general subscription publishing component cannot meet the requirements of the embedded devices. For example, the publishing end and the subscribing end establish a corresponding target channel through a redis server, store first sequence information through the redis, acquire the first sequence information of the corresponding target channel from the server when acquiring the message to be published, then the publishing end packages the message to be published and the first sequence information to obtain the published message, and then sends the published message to the subscribing end corresponding to the target channel, so that the subscribing end determines the continuity of the published message according to the first sequence information. It should be noted that each embedded device may be used as a publishing end or a subscribing end. In some embodiments, the system comprises a plurality of embedded devices and is provided with a subscription publishing device, wherein the subscription publishing device comprises a subscription component and a publishing component based on redis, and all the embedded devices are managed in a unified mode through the subscription publishing device.
It should be noted that, the subscription and publishing function using redis mentioned in the above embodiment builds a basic subscription and publishing model, and uses redis to store sequence information, but in actual use, subscription and publishing components with characteristics similar to redis are all available as basic components of a subscription end and a publishing end, and those skilled in the art can set the basic components of the subscription end and the publishing end according to actual needs.
It should be noted that the above-mentioned publishing end and subscribing end are merely examples and are not to be construed as limiting the present invention, for example, the publishing end may also be a publishing agent component in the embedded device, the subscribing end may be a subscribing agent component in the embedded device, or the publishing end may also be another device, and the subscribing end may also be another device, which is not limited by the present invention.
It can be understood that referring to fig. 2, fig. 2 is a flowchart of a message processing method according to another embodiment of the present invention, in step S110, after obtaining a message to be published, after obtaining first sequence information of a corresponding target channel according to the message to be published, step S140 may be further included, but is not limited to.
Step S140, updating the first sequence information and storing the updated first sequence information.
It should be noted that, the first sequence information is updated, for example, the sequence number in the first sequence information is self-increased, and the first sequence information after the self-increase of the sequence number is stored, where the updated first sequence information corresponds to the next message to be sent, so that each message to be sent can correspond to a unique sequence number, and the sequence numbers corresponding to the messages to be sent are self-increased in sequence, so that after the subscriber receives the sent message, the continuity of the message can be determined according to the first sequence information. It should be noted that the sequence number is set in order by adopting a continuous counting mode, and may be any mode capable of characterizing the sequence of the measurement message, which is not limited by the present invention.
In some embodiments, the publishing end is based on a publish-subscribe function of the redis and stores the first sequence information in the redis server, after receiving the message to be published, the publishing end acquires the corresponding first sequence information from the redis server and updates the first sequence information, and the updated first sequence information is stored in the redis server. The issuing side may store the first sequence information locally at the issuing side, which is not limited by the present invention.
It will be appreciated that, referring to fig. 3, fig. 3 is a flowchart of acquiring a message to be published according to another embodiment of the invention. The acquiring the message to be issued in step S110 may include, but is not limited to, step S111 and step S112.
Step S111, when a service message is received in a first preset period, the service message is used as a message to be issued;
step S112, when the service message is not received in the first preset period, a keep-alive message is generated and is used as a message to be issued.
It is noted that when the service state of the embedded device serving as the publishing end changes, a corresponding service message is generated, the service message is used as a message to be published, the publishing end acquires first sequence information of a corresponding target channel according to the message to be published, packages the message to be published and the first sequence information to obtain the published message, and then sends the published message to a subscribing end corresponding to the target channel through the target channel, so that the subscribing end determines the continuity of the published message according to the first sequence information, the embedded device serving as the subscribing end can obtain the service message, and the service state of the embedded device serving as the publishing end is known to change.
It should be noted that, when the service message is not received in the first preset period, the keep-alive message is generated and is used as the message to be issued, so that the issuing end can send the issued message to the corresponding subscribing end in each first preset period, so that the subscribing end can judge that the target channel between the issuing end is not disconnected. It should be noted that, the time of the first preset period is not limited in the present invention, and a person skilled in the art may set the specific time of the first period according to actual needs; the invention does not limit the specific content of the keep-alive message, and the specific content of the keep-alive message can be configured by a person skilled in the art according to actual needs.
It should be noted that, in an embodiment, the present invention uses atomic operations when performing the above-mentioned steps, so that the order may not be disturbed or cut to perform only a portion of the above-mentioned steps.
In one embodiment, the message to be published and the first sequence information are encapsulated in a type-length-value TLV format and encoded with a cyclic redundancy check (Cyclic Redundancy Check, CRC) to obtain the message to be published. For example, T is Tag, which may characterize the message to be published as a business message or as a keep-alive message; l is Length, and represents the data Length; v is Value, which can be used to characterize the first sequence information. CRC is a channel coding technique for generating short fixed bit check codes according to data such as network data packets or computer files, and is mainly used for detecting or checking possible errors after data transmission or storage, and a subscriber terminal can perform CRC check after receiving a release message to confirm the safety of the release message. It should be noted that, in this embodiment, the TLV format and the CRC are used for message encapsulation, which is only an example, and the present invention is not limited to this, and those skilled in the art may set the encapsulated format and the adopted encoding method according to actual needs.
In addition, referring to fig. 4, an embodiment of the present invention provides a message processing method, which is applied to a subscriber terminal, and the message processing method may include, but is not limited to, step S410, step S420, and step S430.
Step S410, receiving a release message, wherein the release message is sent by a release terminal;
step S420, analyzing the release message to obtain first sequence information;
step S430, determining the continuity of the release message according to the first sequence information and the locally stored second sequence information.
It is noted that the subscription end may be an embedded device, the corresponding publishing end may be another embedded device, and a target channel is established between the publishing end and the subscription end. The subscriber receives the release message sent by the release terminal, analyzes the release message to obtain first sequence information, and determines the continuity of the release message by the first sequence information and the second sequence information stored locally in advance. For example, in one embodiment, the second sequence information characterizes a sequence number of a last published message, e.g., a sequence number of 3, and when the sequence number in the first sequence information is 4, it indicates that the published message is consecutive to the last published message, so that it can be determined that no message loss has occurred. In another embodiment, the second sequence information is a sequence number after the sequence number of the last published message is self-increased, for example, the sequence number of the last published message is 3 and the sequence number of the last published message is self-increased is 4, then the sequence number represented by the second sequence information is 4, when the sequence number in the first sequence information is 4, the published message is indicated to be continuous with the last published message, so that no message loss can be determined, and when the sequence number in the first sequence information is 4, the published message is indicated to be discontinuous with the last published message, so that message loss can be determined to occur, and at the moment, the subscribing terminal generates alarm information to notify the embedded device that the message loss occurs.
It can be understood that referring to fig. 5, fig. 5 is a flowchart of a message processing method according to another embodiment of the present invention, in step S430, the continuity of the published message is determined according to the first sequence information and the locally stored second sequence information, and then, step S440 may be included but not limited thereto.
Step S440, updating the locally stored second sequence information to the first sequence information.
It should be noted that, the locally stored second sequence information is updated to the first sequence information, specifically, the sequence number in the second sequence information is updated to the sequence number of the first sequence information, so that when the subscriber terminal receives the next published message, the subscriber terminal can compare the updated second sequence information with the first sequence information in the next published message to determine the continuity of the next published message. In an embodiment, when the current sequence number of the first sequence information is 3 and the sequence number of the locally stored second sequence information is 2, updating the sequence number in the second sequence information to the sequence number of the first sequence information, so that the sequence number in the updated second sequence information is 3, and when the next release message is received, when the sequence number of the first sequence information in the next release message is 4, the release message is indicated to be continuous, thereby determining that no message loss occurs; when the sequence number of the first sequence information of the next published message is not 4, for example, is 5 or 6 or other values, the published message is indicated to be discontinuous, so that the message loss can be determined to occur, and at the moment, the subscribing terminal generates alarm information to inform the embedded device that the message loss occurs.
It will be appreciated that referring to fig. 6, fig. 6 is a flowchart of a message processing method according to another embodiment of the present invention, and before receiving the published message in step S410, step S610 may be included, but is not limited thereto.
In step S610, when the second sequence information of the target channel corresponding to the publishing end is detected to exist and the target channel does not exist locally, the second sequence information of the target channel is acquired and stored locally.
It is noted that, in some embodiments, the subscription end uses a subscription publishing function based on redis as a basic component, the subscription end establishes a corresponding target channel with the publishing end through the redis server, the second sequence information of the target channel is stored in the redis server, and under the condition that the second sequence information of the target channel corresponding to the publishing end exists and does not exist locally, the subscription end obtains the second sequence information of the target channel from the redis server and stores the second sequence information to the local. When the second sequence information of the target channel corresponding to the publishing end exists and the target channel exists locally, the subscribing end does not acquire the second sequence information of the target channel from the redis server any more, and updates the locally stored second sequence information into the first sequence information in the publishing message.
It will be appreciated that referring to fig. 7, fig. 7 is a flowchart of a message processing method according to another embodiment of the present invention, and step S410 may include, but is not limited to, step S710 before receiving the published message.
In step S710, when it is detected that the target channel corresponding to the publishing end does not exist, the second sequence information and the corresponding channel name are generated, and the target channel between the publishing end and the second sequence information and the channel name are established.
It is noted that, when the target channel corresponding to the publishing end is detected to be absent, the subscribing end needs to establish the target channel with the publishing end, generates the second sequence information and the corresponding channel name, and establishes the target channel with the publishing end according to the second sequence information and the channel name, so that the subscribing end can acquire the publishing message sent by the publishing end through the target channel. In some embodiments, the publishing end and the subscribing end are numerous, and the corresponding target channels are also numerous, so that the channel names are used for representing unique target channels, and the second sequence information of each target channel is not interfered with each other.
It will be appreciated that referring to fig. 8, fig. 8 is a flowchart of a message processing method according to another embodiment of the present invention, and the message processing method further includes step S810.
Step S810, when the release message is not received in the second preset period, the target channel between the release terminal and the release terminal is reestablished.
In some embodiments, the time of the second preset period is longer than the time of the first preset period, in the first preset period, if the publishing end does not receive the service message, a keep-alive message is generated, the keep-alive message is used as a message to be published, then the publishing message is generated and sent to the subscribing end, and when the subscribing end does not receive the publishing message in the second preset period, the fact that a target channel between the subscribing end and the publishing end is disconnected or a message loss occurs is indicated, so that the target channel between the subscribing end and the publishing end is reestablished, abnormal information is generated by the subscribing end, and the abnormal information is sent to the embedded device.
It is noted that the subscription end may be a subscription proxy component in the embedded device, after the subscription proxy component obtains the published message, performing CRC check on the published message, if the check is wrong, sending abnormal information to the embedded device, if the check is wrong, analyzing the published message, if the message in the published message is a service message, forwarding the service message to the embedded device, and if the message in the published message is a keep-alive message, not forwarding the service message to the embedded device.
It will be appreciated that with reference to fig. 9, fig. 9 is a schematic diagram of an example of the present invention. The architecture comprises a redis server, a subscription and release module and a plurality of service ends, wherein each service end is embedded equipment, the subscription and release module uniformly manages all the service ends, and the subscription and release module comprises a subscription agent component and a release agent component. The method comprises the steps that a target channel is established by a release proxy component and a subscription proxy component through a redis server, when one service end is subjected to state change, service information is generated, the service information is used as information to be released by the release proxy component, the target channel corresponding to the information to be released and first sequence information of the target channel are determined, wherein the first sequence information of the target channel is stored in the redis server, the information to be released and the first sequence information are packaged to obtain release information, the release information is sent to the subscription proxy through the redis server, after the release information is received by the subscription proxy, the release information is analyzed to obtain the first sequence information, and the continuity of the release information is determined according to the first sequence information and locally stored second sequence information. When the published messages are determined to be continuous and the messages in the published messages are service messages, the service messages are sent to the service end subscribed to the target channel, and when the messages in the published messages are keep-alive messages, the keep-alive messages are not forwarded to the service end. When the discontinuous release of the message is determined, the message loss is determined to occur, an abnormal message is generated, and the abnormal message is sent to the service end subscribed to the target channel.
In addition, referring to fig. 10, an embodiment of the present invention provides a publishing terminal 300, which includes a memory 310 and a processor 320, where the memory 310 stores a computer program, and the processor 320 implements a message processing method applied to the publishing terminal 300 when executing the computer program.
The processor 320 and the memory 310 may be connected by a bus or other means.
Memory 310 acts as a non-transitory computer readable storage medium that may be used to store non-transitory software programs as well as non-transitory computer executable programs. In addition, the memory 310 may include high-speed random access memory 310, and may also include non-transitory memory 310, such as at least one disk memory 310 piece, flash memory device, or other non-transitory solid state memory 310 piece. In some implementations, the memory 310 may optionally include memory 310 located remotely from the processor 320, the remote memory 310 being connectable to the processor 320 through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
It should be noted that the non-transitory software program and instructions required to implement the message processing method of the above embodiment are stored in the memory 310, and when executed by the processor 320, the message processing method of the above embodiment is executed, for example, the method steps S110 to S130 in fig. 1, the method step S40 in fig. 2, and the method steps S111 to S112 in fig. 3 described above are executed.
In addition, referring to fig. 11, an embodiment of the present invention provides a subscriber 400, which includes a memory 420 and a processor 410, where the memory 420 stores a computer program, and the processor 410 implements a message processing method applied to the subscriber 400 when executing the computer program.
The processor 410 and the memory 420 may be connected by a bus or other means.
Memory 420 acts as a non-transitory computer readable storage medium that may be used to store non-transitory software programs as well as non-transitory computer executable programs. In addition, the memory 420 may include high-speed random access memory 420, and may also include non-transitory memory 420, such as at least one disk memory 420 piece, flash memory device, or other non-transitory solid state memory 420 piece. In some implementations, the memory 420 may optionally include memory 420 located remotely from the processor 410, the remote memory 420 being connectable to the processor 410 through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
It should be noted that the non-transitory software program and instructions required to implement the message processing method of the above embodiment are stored in the memory 420, and when executed by the processor 410, the message processing method of the above embodiment is executed, for example, the method steps S410 to S430 in fig. 4, the method step S440 in fig. 5, the method step S610 in fig. 6, the method step S710 in fig. 7, and the method step S810 in fig. 8 described above are executed.
The above described embodiments of the apparatus are only illustrative, wherein the units described as separate components may or may not be physically separate, i.e. may be located in one place, or may be distributed over a plurality of network elements. 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, the embodiment of the invention provides a computer readable storage medium, wherein the storage medium stores a program, and the program realizes a message processing method applied to a publishing end or a message processing method applied to a subscribing end when being executed by a processor.
The program of the present invention is executed by a processor or controller, for example, by a processor in the above-described device embodiment, and may cause the above-described processor to execute the message processing method in the above-described embodiment, for example, execute the method steps S110 to S130 in fig. 1, the method step S40 in fig. 2, the method steps S111 to S112 in fig. 3, the method steps S410 to S430 in fig. 4, the method step S440 in fig. 5, the method step S610 in fig. 6, the method step S710 in fig. 7, and the method step S810 in fig. 8 described above.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
While the preferred embodiment of the present invention has been described in detail, the present invention is not limited to the above embodiment, and various equivalent modifications and substitutions can be made by those skilled in the art without departing from the spirit of the present invention, and these equivalent modifications and substitutions are intended to be included in the scope of the present invention as defined in the appended claims.

Claims (11)

1. A message processing method applied to a publishing end, the method comprising:
acquiring a message to be issued, and acquiring first sequence information of a corresponding target channel according to the message to be issued;
packaging the message to be published and the first sequence information to obtain a published message;
and sending the publishing message to a subscribing terminal corresponding to the target channel, so that the subscribing terminal determines the continuity of the publishing message according to the first sequence information.
2. The message processing method according to claim 1, wherein after the obtaining the message to be published, obtaining the first sequence information of the corresponding target channel according to the message to be published, further includes:
updating the first sequence information and storing the updated first sequence information.
3. The message processing method according to claim 1 or 2, wherein the obtaining the message to be issued includes:
when a service message is received in a first preset period, the service message is used as the message to be distributed;
and when the service message is not received in the first preset period, generating a keep-alive message and taking the keep-alive message as the message to be distributed.
4. A message processing method applied to a subscriber, the method comprising:
receiving a release message, wherein the release message is sent by a release end;
analyzing the release message to obtain first sequence information;
and determining the continuity of the release message according to the first sequence information and the locally stored second sequence information.
5. The message processing method according to claim 4, further comprising, after said determining the continuity of the published message based on the first sequence information and the locally stored second sequence information:
and updating the second sequence information stored locally into the first sequence information.
6. The message processing method according to claim 4 or 5, characterized by further comprising, before said receiving the posted message:
and under the condition that the second sequence information of the target channel exists and does not exist locally, the second sequence information of the target channel is acquired and stored locally.
7. The message processing method according to claim 4 or 5, characterized by further comprising, before said receiving the posted message:
and under the condition that the absence of the target channel corresponding to the issuing end is detected, generating the second sequence information and a corresponding channel name, and establishing the target channel between the issuing end and the second sequence information and the corresponding channel name.
8. The message processing method of claim 7, further comprising:
and when the release message is not received in a second preset period, reestablishing a target channel between the release terminal and the release terminal.
9. A distribution terminal comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the message processing method of any of claims 1 to 3 when executing the computer program.
10. A subscriber terminal comprising a memory and a processor, said memory storing a computer program, characterized in that the processor implements the message processing method of any of claims 4 to 8 when executing said computer program.
11. A computer-readable storage medium storing a program, characterized in that the program, when executed by a processor, implements the message processing method of any one of claims 1 to 8.
CN202210750160.2A 2022-06-29 2022-06-29 Message processing method, publishing terminal, subscribing terminal and computer readable storage medium Pending CN117354199A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210750160.2A CN117354199A (en) 2022-06-29 2022-06-29 Message processing method, publishing terminal, subscribing terminal and computer readable storage medium
PCT/CN2023/076291 WO2024001213A1 (en) 2022-06-29 2023-02-15 Information processing method, publisher, subscriber, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210750160.2A CN117354199A (en) 2022-06-29 2022-06-29 Message processing method, publishing terminal, subscribing terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN117354199A true CN117354199A (en) 2024-01-05

Family

ID=89367807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210750160.2A Pending CN117354199A (en) 2022-06-29 2022-06-29 Message processing method, publishing terminal, subscribing terminal and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN117354199A (en)
WO (1) WO2024001213A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100049693A1 (en) * 2008-08-25 2010-02-25 Alcatel-Lucent System and method of cache based xml publish/subscribe
WO2011131262A1 (en) * 2010-04-19 2011-10-27 International Business Machines Corporation Controlling message delivery in publish/subscribe messaging
FR3011414A1 (en) * 2013-10-01 2015-04-03 Orange METHOD OF SUBSCRIBING TO FLOWS FROM MULTICAST CLIENTS
US9608928B1 (en) * 2016-07-06 2017-03-28 Machine Zone, Inc. Multiple-speed message channel of messaging system
CN108881395B (en) * 2018-05-23 2021-11-23 北京五八信息技术有限公司 Message pushing method, device, message manager and computer readable storage medium

Also Published As

Publication number Publication date
WO2024001213A1 (en) 2024-01-04

Similar Documents

Publication Publication Date Title
US20210036907A1 (en) Methods and apparatuses for pushing a message
CN111083161A (en) Data transmission processing method and device and Internet of things equipment
CN110109766B (en) Data interaction method and device based on cross-department and cross-platform data sharing exchange
CN103514173A (en) Data processing method and node equipment
KR101809365B1 (en) Message Fragmentation Method using a MQTT Protocol in M2M/IoT Platforms
CN112422684B (en) Target message processing method and device, storage medium and electronic device
CN108696831B (en) Short message sending method and device
CN106899605B (en) Communication method and device based on STOMP protocol
CN109194521B (en) Flow forwarding method and equipment
CN105281940B (en) Method, equipment and system for HELLO message interaction based on NETCONF protocol
US20140068048A1 (en) Managing remote devices
CN117354199A (en) Message processing method, publishing terminal, subscribing terminal and computer readable storage medium
CN112437146B (en) Equipment state synchronization method, device and system
CN112087475A (en) Message pushing method and device for cloud platform component application and message server
Phung et al. Enhancing rest http with random linear network coding in dynamic edge computing environments
CN105592143B (en) A kind of file loading method and device
KR20210011243A (en) Method and apparatus for monitoring HTTP/2 header compressed packet
CN114070801A (en) Message processing method, message transmission method, device and electronic equipment
CN108880994B (en) Method and device for retransmitting mails
KR102171306B1 (en) Network apparatus and management method for context based on report
CN113194498A (en) Communication detection method and device
CN112911630A (en) Session processing method, device, system, terminal and readable storage medium
CN114385372A (en) Message processing method, device and storage medium
CN112825501A (en) Signal degradation processing method, device and system
US20140181291A1 (en) Cross-network listening agent for network entity monitoring

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication