WO2023088225A1 - Procédé et appareil de traitement de message, et dispositif, support de stockage informatique et programme - Google Patents
Procédé et appareil de traitement de message, et dispositif, support de stockage informatique et programme Download PDFInfo
- Publication number
- WO2023088225A1 WO2023088225A1 PCT/CN2022/131857 CN2022131857W WO2023088225A1 WO 2023088225 A1 WO2023088225 A1 WO 2023088225A1 CN 2022131857 W CN2022131857 W CN 2022131857W WO 2023088225 A1 WO2023088225 A1 WO 2023088225A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- message
- target
- topic
- client
- index
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/13—File access structures, e.g. distributed indices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/13—File access structures, e.g. distributed indices
- G06F16/134—Distributed indices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
- H04L51/043—Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Definitions
- Embodiments of the present disclosure relate to the technical field of computer data processing, and in particular, to a message processing method, device, equipment, computer storage medium, and program.
- the MQTT (Message Queuing Telemetry Transport) protocol is a "lightweight" communication protocol based on the publish/subscribe model. It is characterized in that it can provide real-time and reliable message services for connected remote devices with less code and limited bandwidth. As a low-overhead, low-bandwidth instant messaging protocol, it has a wide range of applications in the Internet of Things, small devices, and mobile applications.
- embodiments of the present disclosure provide a message processing method, device, device, computer storage medium, and program to solve the problem of low message processing efficiency in the prior art.
- An embodiment of the present disclosure provides a message processing method, the method including:
- the target client is a client subscribing to the target topic
- the message index file includes a plurality of message positions corresponding to the target topic and a plurality of index positions Correspondence between;
- the message storage file includes a plurality of message locations corresponding to a plurality of topics; wherein, one of the message locations stores one of the topic information A corresponding message; the target topic is one of the multiple topics;
- An embodiment of the present disclosure provides a message processing device, including:
- the obtaining part is configured to obtain the target index position corresponding to the target client under the target topic;
- the target client is a client subscribing to the target topic;
- the first query part is configured to perform a query in the message index file corresponding to the target topic according to the target index position to obtain the target message position;
- the message index file includes a plurality of messages corresponding to the target topic Correspondence between message positions and multiple index positions;
- the second query part is configured to query the message storage file according to the target message location to obtain the target message;
- the message storage file includes multiple message locations corresponding to multiple topics; wherein, one of the message locations A message corresponding to one of the topics is stored on the computer;
- the target topic is one of the plurality of topics;
- the sending part is configured to send the target message to the target client.
- An embodiment of the present disclosure provides a message processing device, including a processor, a memory, a communication interface, and a communication bus, and the processor, the memory, and the communication interface complete mutual communication through the communication bus;
- the memory is used to store at least one executable instruction, and the executable instruction causes the processor to execute the operations of the message processing method described above.
- An embodiment of the present disclosure provides a computer-readable storage medium, where at least one executable instruction is stored in the storage medium, and the executable instruction causes a message processing device to perform operations of the message processing method.
- An embodiment of the present disclosure provides a computer program, the computer program includes computer readable codes, and when the computer readable codes run in an electronic device, the processor of the electronic device executes to realize the described The operation of the message processing method.
- the target client first obtain the target index position corresponding to the target client under the target topic; wherein, the target client is a client subscribing to the target topic; then, according to the target index position in the message index file corresponding to the target topic Query to obtain the target message location; the message index file includes the corresponding relationship between multiple message locations corresponding to the target topic and multiple index locations; then query in the message storage file according to the target message location to obtain the target message;
- the message storage file includes multiple message locations corresponding to multiple topics; among them, a message corresponding to a topic is stored in a message location; the target topic is one of the multiple topics; finally, the target message is sent to the target client .
- the embodiment of the present disclosure stores all the messages in a unified manner through the message storage file, and then creates a message index file for the storage locations of the messages under each topic in the message storage file, so as to quickly query according to the target index position in the message index file
- the message stored in the corresponding target message location can improve the efficiency of message processing.
- FIG. 1 shows a schematic flowchart of a message processing method provided by an embodiment of the present disclosure
- Fig. 2 shows a schematic flowchart of a message processing method provided by another embodiment of the present disclosure
- Fig. 3 shows a schematic flowchart of a message processing method provided by another embodiment of the present disclosure
- FIG. 4 shows a schematic structural diagram of a message processing device provided by an embodiment of the present disclosure
- Fig. 5 shows a schematic structural diagram of a message processing device provided by an embodiment of the present disclosure.
- MQTT is a "lightweight" communication protocol based on the publish/subscribe (publish/subscribe) model, which is built on TCP/IP (Transmission Control Protocol/Internet Protocol, Transmission Control Protocol/Internet Protocol), developed by IBM Released in 1999.
- TCP/IP Transmission Control Protocol/Internet Protocol
- IBM Released IBM Released in 1999.
- the advantage of MQTT is that it can provide real-time and reliable message services for connected remote devices with very little code and limited bandwidth.
- the realization of the MQTT protocol requires the completion of communication between the client and the server.
- Publisher, Broker, and Subscriber there are three identities in the MQTT protocol: Publisher, Broker, and Subscriber.
- the publisher and subscriber of the message are clients
- the message agent is the server
- the publisher of the message can be the subscriber at the same time.
- the message transmitted by MQTT is divided into two parts: topic (Topic) and load (payload).
- topic can be understood as the type of message.
- Subscribe After the subscriber subscribes (Subscribe), it will receive the message content (payload) of the topic.
- payload which can be understood as the content of the message, refers to the specific content that the subscriber wants to use.
- QoS Quality Of Service, message service quality
- It can be one of 0 (At Most Once, at most once), 1 (At Least Once, at least once) and 2 (Exactly Once, only once).
- “at most one time” message release completely depends on the underlying TCP/IP network.
- Message loss or duplication can occur. “at least once”, ensures that the message arrives, but message duplication may occur. “only once”, ensures that the message arrives once.
- Persistent connection After the client connects to the MQTT Broker, its connection information and subscribed topics are stored in the corresponding session (Session) on the Broker side, and continue to exist after the client goes offline. When the same client reconnects, the previous Session can continue to take effect.
- Session session
- Offline message The period from the persistent connection drop to the successful reconnection is called the persistent connection offline period. Assuming that the persistent connection maintains the connection during the offline period, the QoS>0 messages that can be received are called offline messages.
- Flight window Inflight Window, which is used to save the unconfirmed Qos>0 message that is currently being sent.
- Fig. 1 shows a flowchart of a message processing method provided by an embodiment of the present disclosure, and the method is executed by a computer processing device.
- Computer processing devices may include cell phones, laptops, and the like. As shown in Figure 1, the method includes the following steps:
- Step 10 Obtain the target index position corresponding to the target client under the target topic; the target client is a client subscribing to the target topic.
- message processing can be performed based on an MQTT proxy server.
- the target client is one of multiple offline or online clients that establish a connection with the MQTT proxy server.
- the target topic is the topic of the MQTT message received by the MQTT broker server.
- the target index position is used to indicate the consumption progress of the target client for the messages under the target topic it subscribes to.
- the messages under the target topic are respectively stored in at least one message queue, and the target client can consume the consumption in at least one message queue at the same time. Consumption means that the target client receives the messages under the target topic.
- the consumption queue includes A plurality of positions, each position corresponds to an index of a message, in one embodiment of the present disclosure, the target index position can be determined according to the position of the target client in the message queue for the earliest unreceived message in each message consumption queue .
- the message service quality of the message satisfies a preset quality condition.
- the preset quality condition is that the number of message delivery is one or more times, such as QoS>0 of the message in the MQTT protocol.
- step 10 before step 10, it also includes:
- Step 101 Determine the message reception status of the at least one client for each of the messages under the target topic.
- the message receiving status may be determined according to the feedback information of the client for the message, wherein the feedback information may be an ACK confirmation message sent by the client to the MQTT broker.
- the feedback information may be an ACK confirmation message sent by the client to the MQTT broker.
- Step 102 Determine the target index positions of each client under the target topic according to the message receiving status.
- the position of a message in the message index file whose message reception status is not received and adjacent to the message whose message reception status is received is determined as the target index position.
- Step 20 Search the message index file corresponding to the target subject according to the target index position to obtain the target message position.
- the message index file includes correspondences between multiple message positions corresponding to the target topic and multiple index positions.
- a message index file can be regarded as a message consumption queue as mentioned above.
- step 20 before step 20, it also includes:
- Step 201 Determine the subject corresponding to each of the messages respectively.
- each message is received by the MQTT proxy server, and the subject of each message is determined, wherein the subject is used to classify the message, so as to forward various messages to the corresponding client subscribed to the subject superior.
- a message may correspond to multiple subtopics at different levels. For example, if the topic is topic a/b/c, it includes the first level topic a, the second level level topic b and third level topic c. If the message is divided according to each sub-topic, there will be too many topics, and a topic corresponds to at least one message storage file, so the number of message storage files will increase accordingly, which will affect the efficiency of message processing. Therefore, in this In a disclosed embodiment, step 201 also includes:
- Step 2011 Determine subject information of each message.
- the topic information may include at least one subtopic corresponding to each message and the level information of each subtopic, for example, the subtopics are a, b, and c, and the level information of a, b, and c are respectively the first Layer 1, Layer 2, and Layer 3, that is, the topic of the message is "topic/a/b/c".
- Step 2012 Determine the root topic of each message according to the topic information.
- the subtopic with the highest level is determined as the root topic of the message.
- Step 2013 Determine the root topic as the topic.
- the root topic is set as a topic, thereby reducing the number of message index files and avoiding excessive Multiple message index files to improve the efficiency of message processing.
- Step 202 Store the storage location information of each of the messages under each of the topics in the message storage file into each of the index locations, and obtain the message index files corresponding to each of the topics.
- the storage location information includes the message location where the message is stored in the message storage file.
- the message storage file includes a plurality of message positions, and each message position stores a message.
- the size of the storage location information may be fixed, such as 8 bytes.
- a schematic structural diagram of a message index file may be shown in Table 1.
- the message index file includes multiple index positions, and one index position includes the storage location information and storage length of a message, wherein the storage length refers to the message length of the message and the information length of the message location information of and.
- message A1 is a message with a length of N1 bytes
- the length of the storage location information corresponding to message A1 in the message storage file is N2 bytes
- the storage length of message A1 in the message index file is N1+ N2 bytes
- A indicates the topic of the message
- n is the nth message received by the MQTT agent under the topic.
- each of the topics corresponds to at least one client; each of the topics corresponds to at least one of the message index files; each of the clients simultaneously receives at least one of the message index files corresponding to The message stored in the message location of .
- a message index file can be regarded as a consumption queue described in step 10. The message queue under each topic is divided into multiple sub-queues, and the consumption progress of the queue is recorded for each sub-queue, that is, the target index corresponding to the queue location, so that a client can consume multiple queues at the same time, and can obtain messages in a multi-threaded manner, thereby improving the efficiency of message processing.
- the progress of messages in each consumption queue corresponding to the target topic may be recorded.
- the number of clients it can be stipulated that a message index file can only be consumed by one client at the same time, so that only one client needs to record the consumption progress of each consumption queue under the target topic, thereby further improving the efficiency of message processing .
- Step 30 Search the message storage file according to the location of the target message to obtain the target message.
- the message storage file includes multiple message locations corresponding to multiple topics. Wherein, one message corresponding to one topic is stored in one message location; the target topic is one of the multiple topics.
- the message storage file includes n message locations, wherein message A1 is stored in message location 1, and message B1 is stored in message location 2. Among them, the subject of message A1 is A, the subject of message B1 is B, and the storage of other message locations can be deduced by analogy, which will not be described here.
- step 30 also includes:
- Step 301 Receive the multiple messages.
- a message sent by an MQTT producer client is received.
- Step 302 Store the multiple messages in sequence in each of the message locations according to the order in which the messages are received, to obtain the message storage file.
- Table 2 for a schematic structural diagram of a message storage file.
- the message length information of a message and the message related information of the message are stored on each message position in the message storage file, wherein, the message length information is the total length of the message, the size of the message length information Can be fixed, such as 4 bytes.
- the message-related information may include the specific subject information of the message, the message body, and the service quality information of the message, etc., and the occupied bytes of the message-related information may not be fixed.
- Step 40 Send the target message to the target client.
- message confirmation information returned by the target client may be further received, and the target index positions under each topic may be updated according to the message confirmation information.
- the message confirmation information may be an ACK confirmation message, which is used to indicate that the target client confirms receipt of the message sent by the MQTT agent.
- the update method of the target index position may be an incremental update, that is, the target index position is updated to the next index position adjacent to the current index position in the message index file.
- the message processing process in this scenario includes at least step 501 to step 509 .
- Step 502 the MQTT broker stores the received message into a message storage file.
- Step 503 After the message is successfully stored, a unique target index position under the topic is returned.
- Step 504 The MQTT broker sends an ACK confirmation message to the producer client, indicating that the message has been successfully taken over by the MQTT broker.
- Step 505 After step 503, the MQTT broker searches for a subscribing client matching the message topic. Put the message into the Inflight Window (that is, the flight window, which can be implemented with a queue or a hash table) of the respective Sessions of the subscribing clients.
- the Inflight Window that is, the flight window, which can be implemented with a queue or a hash table
- Step 506 The Session (session) corresponding to each online subscribing client is responsible for pushing the message to the client (by sending a PUBLISH message), and the status of the message is currently being sent.
- Step 507 For each message in step 506, the subscribing client returns an ACK message after successful reception.
- Step 508 After receiving the ACK message, the MQTT agent removes the message from the aforementioned Inflight Window, and at the same time updates the target index position of the corresponding subscribing client under the target topic according to the index position corresponding to the message.
- the MQTT agent searches for subscribers that match the subject of the message, and eventually filters out offline clients, and only executes the subsequent push logic for online subscribing clients.
- Step 601 Client02, which has subscribed to a topic, reconnects to the MQTT broker after being disconnected.
- Step 602 The MQTT agent responds to the CONACK message, confirms that the connection is established, and restores the Session (including connection information and subscription information) to the memory for it.
- Step 603 Obtain the target index position of the topic subscribed by Client02 from the target index position record file.
- Step 604 Obtain the target message position from the message index file according to the current target index position.
- Step 605 Search the message storage file according to the location of the target message to obtain the target information.
- Step 606 Load the obtained message into the Inflight Window, so as to push the message in steps 607, 608 and 609. Then continue to pull messages and execute push logic at the target index position pulled last time, and loop until no new messages can be pulled.
- Step 607 The Session (session) in the MQTT agent is responsible for pushing each message to the client (sending a PUBLISH message), and the status of the message is currently being sent.
- Step 608 For each message (PUBLISH message) in step 607, the subscribing client returns an ACK message after successful reception.
- Step 609 After receiving the ACK message, the MQTT proxy removes the message from the local cache, and at the same time updates the consumption progress of the corresponding subscribing client.
- the message processing method stores all the messages in a unified manner through the message storage file, and then establishes a message index file for the storage locations of the messages under each topic in the message storage file, so that the target index in the message index file can be The location can quickly query the message stored in the corresponding target message location, which can improve the efficiency of message processing.
- Fig. 4 shows a schematic structural diagram of a message processing device provided by an embodiment of the present disclosure.
- the device 700 includes: an acquisition part 701 , a first query part 702 , a second query part 703 and a sending part 704 .
- the obtaining part 701 is configured to obtain the target index position corresponding to the target client under the target topic; the target client is a client subscribing to the target topic;
- the first query part 702 is configured to perform a query in the message index file corresponding to the target topic according to the target index position to obtain the target message position;
- the message index file includes multiple information corresponding to the target topic The correspondence between a message position and multiple index positions;
- the second query part 703 is configured to query in the message storage file according to the target message location to obtain the target message;
- the message storage file includes multiple message locations corresponding to multiple topics; wherein one of the message A message corresponding to one of the topics is stored in the location; the target topic is one of the multiple topics;
- the sending part 704 is configured to send the target message to the target client.
- the second query part 703 is further configured to receive the plurality of messages; store the plurality of messages in each of the message positions sequentially according to the order in which the messages are received, and obtain the The above message storage file.
- the first query part 702 is further configured to respectively determine the topic corresponding to each of the messages; store each of the messages under each of the topics in the message storage file
- the storage location information is respectively stored in each of the index locations to obtain the message index files corresponding to each of the topics; wherein, the storage location information includes the message location where the message is stored.
- the first query part 702 is further configured to respectively determine the subject information of each of the messages; determine the root subject of each of the messages according to the subject information; determine the root subject as the topic.
- the obtaining part 701 is further configured to determine the message reception status of the at least one client for each of the messages under the target topic; respectively determine each of the messages according to the message reception status The target index position of the client under the target topic.
- each of the topics corresponds to at least one client; each of the topics corresponds to at least one of the message index files; each of the clients simultaneously receives at least one of the message index files corresponding to The message stored in the message location.
- the message service quality of the message satisfies a preset quality condition;
- the target client includes an offline MQTT client whose session clear status is not clear.
- the message processing device stores all the messages in a unified way through the message storage file, and then establishes a message index file for the storage locations of the messages under each topic in the message storage file, so that it can be based on the information in the message index file
- the target index position can quickly query the messages stored in the corresponding target message position, which can improve the efficiency of message processing.
- FIG. 5 shows a schematic structural diagram of a message processing device provided by an embodiment of the present disclosure, and specific embodiments of the present disclosure do not limit the specific implementation of the message processing device.
- the message processing device may include: a processor (processor) 802, a communication interface (Communications Interface) 804, a memory (memory) 806, and a communication bus 808.
- processor processor
- Communication interface Communication Interface
- memory memory
- the processor 802 , the communication interface 804 , and the memory 806 communicate with each other through the communication bus 808 .
- the communication interface 804 is used to communicate with network elements of other devices such as clients or other servers.
- the processor 802 is configured to execute the program 810, specifically, may execute the above-mentioned relevant steps in the embodiment of the message processing method.
- the program 810 may include program code, and the program code includes computer-executable instructions.
- the processor 802 may be a central processing unit CPU, or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present disclosure.
- the one or more processors included in the message processing device may be of the same type, such as one or more CPUs, or may be different types of processors, such as one or more CPUs and one or more ASICs.
- the memory 806 is used to store the program 810 .
- the memory 806 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
- the program 810 can be called by the processor 802 to make the message processing device perform the following operations:
- the target client is a client subscribing to the target topic
- the message index file includes a plurality of message positions corresponding to the target topic and a plurality of index positions Correspondence between;
- the message storage file includes a plurality of message locations corresponding to a plurality of topics; wherein, one of the message locations stores one of the topic information A corresponding message; the target topic is one of the multiple topics;
- the program 810 is invoked by the processor 802 to cause the message processing device to perform the following operations: receive the multiple messages; store the multiple messages into each In the message location, the message storage file is obtained.
- the program 810 is invoked by the processor 802 to cause the message processing device to perform the following operations: separately determine the topics corresponding to each of the messages; The storage location information in the message storage file is respectively stored in each of the index locations, and the message index files corresponding to each of the topics are obtained; wherein, the storage location information includes the information stored in the message The message location entered.
- the program 810 is invoked by the processor 802 to cause the message processing device to perform the following operations: respectively determine the topic information of each of the messages; determine the root topic of each of the messages according to the topic information; The root topic is identified as the topic.
- the program 810 is invoked by the processor 802 to cause the message processing device to perform the following operations: determine the message reception status of the at least one client for each of the messages under the target topic; The message receiving status respectively determines the target index position of each client under the target topic.
- each of the topics corresponds to at least one client; each of the topics corresponds to at least one of the message index files; each of the clients simultaneously receives at least one of the message index files corresponding to The message stored in the message location.
- the message service quality of the message satisfies a preset quality condition;
- the target client includes an offline MQTT client whose session clear status is not clear.
- the message processing device stores all the messages uniformly through the message storage file, and then establishes a message index file for the storage locations of the messages under each topic in the message storage file, so that according to the information in the message index file The target index position can quickly query the messages stored in the corresponding target message position, which can improve the efficiency of message processing.
- An embodiment of the present disclosure provides a computer-readable storage medium, the storage medium stores at least one executable instruction, and when the executable instruction is run on a message processing device, the message processing device executes any of the above method embodiments The message processing method in .
- the executable instruction can be specifically used to make the message processing device perform the following operations:
- the target client is a client subscribing to the target topic
- the message index file includes a plurality of message positions corresponding to the target topic and a plurality of index positions Correspondence between;
- the message storage file includes a plurality of message locations corresponding to a plurality of topics; wherein, one of the message locations stores one of the topic information A corresponding message; the target topic is one of the multiple topics;
- the executable instructions cause the message processing device to perform the following operations: receive the multiple messages; store the multiple messages into each of the In the message location, the message storage file is obtained.
- the executable instructions cause the message processing device to perform the following operations: separately determine the topics corresponding to each of the messages; put each of the messages under each of the topics in the The storage location information in the message storage file is respectively stored in each of the index locations to obtain the message index files corresponding to each of the topics; wherein, the storage location information includes the information stored in the message The message location.
- the executable instructions cause the message processing device to perform the following operations: respectively determine the topic information of each of the messages; determine the root topic of each of the messages according to the topic information; The root topic identified as the topic.
- the executable instructions cause the message processing device to perform the following operations: determine the message reception status of the at least one client for each of the messages under the target topic; according to the The message receiving status respectively determines the target index position of each client under the target topic.
- the executable instructions cause the message processing device to perform the following operations: each of the topics corresponds to at least one client; each of the topics corresponds to at least one of the message index files; The client simultaneously receives at least one message stored in a message location corresponding to the message index file.
- the executable instructions cause the message processing device to perform the following operations: the message service quality of the message meets a preset quality condition; Offline MQTT client.
- the computer storage medium stores all the messages in a unified way through the message storage file, and then establishes a message index file for the storage locations of the messages under each topic in the message storage file, so that the information in the message index file can be
- the target index position can quickly query the messages stored in the corresponding target message position, which can improve the efficiency of message processing.
- An embodiment of the present disclosure provides a message processing device, configured to execute the above message processing method.
- An embodiment of the present disclosure provides a computer program, and the computer program can be invoked by a processor to cause a message processing device to execute the message processing method in any of the foregoing method embodiments.
- An embodiment of the present disclosure provides a computer program product.
- the computer program product includes a computer program stored on a computer-readable storage medium.
- the computer program includes program instructions.
- modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment.
- the modules or units or components in the embodiments can be combined into one module or unit or component, and they can be divided into a plurality of sub-modules or sub-units or sub-components. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined.
- Each feature disclosed in this specification may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
- the present disclosure discloses a message processing method, device, device, medium and program.
- the method includes: obtaining the target index position corresponding to the target client under the target topic; the target client is a client subscribing to the target topic; The index position is queried in the message index file corresponding to the target topic to obtain the target message position; the message index file includes the correspondence between multiple message positions corresponding to the target topic and multiple index positions; according to the target message position in Query in the message storage file to obtain the target message; the message storage file includes multiple message locations corresponding to multiple topics; wherein, a message location stores a message corresponding to a topic; the target topic is a message in multiple topics One; send the target message to the target client.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Theoretical Computer Science (AREA)
- Signal Processing (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Health & Medical Sciences (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Selon des modes de réalisation, la présente divulgation se rapporte au domaine technique du traitement informatique de données. Un procédé et un appareil de traitement de message, ainsi qu'un dispositif, un support et un programme sont divulgués. Le procédé consiste : à acquérir un emplacement d'indice cible correspondant à un client cible sous un thème cible, le client cible étant un client s'abonnant au thème cible ; à interroger, en fonction de la position d'indice cible, un fichier d'indice de message correspondant au thème cible, de manière à obtenir un emplacement de message cible, le fichier d'indice de message comprenant la correspondance entre une pluralité d'emplacements de message correspondant au thème cible et une pluralité d'emplacements d'indice ; à interroger un fichier de stockage de message en fonction de l'emplacement de message cible, de manière à obtenir un message cible, le fichier de stockage de message comprenant une pluralité d'emplacements de message correspondant à une pluralité de thèmes, un message correspondant à un thème étant stocké à un emplacement de message, et le thème cible étant un thème de la pluralité de thèmes ; et à envoyer le message cible au client cible. Selon les modes de réalisation de la présente divulgation, au moyen du procédé ci-dessus, l'efficacité de traitement de message peut être améliorée.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111361833.7A CN116137616A (zh) | 2021-11-17 | 2021-11-17 | 消息处理方法、装置、设备以及计算机存储介质 |
CN202111361833.7 | 2021-11-17 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023088225A1 true WO2023088225A1 (fr) | 2023-05-25 |
Family
ID=86332632
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/131857 WO2023088225A1 (fr) | 2021-11-17 | 2022-11-15 | Procédé et appareil de traitement de message, et dispositif, support de stockage informatique et programme |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN116137616A (fr) |
WO (1) | WO2023088225A1 (fr) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170126603A1 (en) * | 2015-10-28 | 2017-05-04 | International Business Machines Corporation | Distributing retained messages information in a clustered publish/subscribe system |
CN108132845A (zh) * | 2016-12-01 | 2018-06-08 | 阿里巴巴集团控股有限公司 | 消息存储、投递方法和装置以及电子设备 |
CN113254233A (zh) * | 2021-06-07 | 2021-08-13 | 腾讯科技(深圳)有限公司 | 一种数据传输方法、装置、设备及可读存储介质 |
-
2021
- 2021-11-17 CN CN202111361833.7A patent/CN116137616A/zh active Pending
-
2022
- 2022-11-15 WO PCT/CN2022/131857 patent/WO2023088225A1/fr unknown
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170126603A1 (en) * | 2015-10-28 | 2017-05-04 | International Business Machines Corporation | Distributing retained messages information in a clustered publish/subscribe system |
CN108132845A (zh) * | 2016-12-01 | 2018-06-08 | 阿里巴巴集团控股有限公司 | 消息存储、投递方法和装置以及电子设备 |
CN113254233A (zh) * | 2021-06-07 | 2021-08-13 | 腾讯科技(深圳)有限公司 | 一种数据传输方法、装置、设备及可读存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN116137616A (zh) | 2023-05-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1784735B1 (fr) | Appareil et procede permettant de prendre en charge la gestion de memoire dans le dechargement de traitement de protocole de reseau | |
CN110297801B (zh) | 基于容错fpga的事务系统的正好一次事务语义的系统和方法 | |
EP1782602B1 (fr) | Appareil et procede de support de mise en place de connexion dans un dechargement de traitement de protocole de reseau | |
TWI332150B (en) | Processing data for a tcp connection using an offload unit | |
JP3762846B2 (ja) | サーバのグループに関する作業負荷管理を行うデータ処理装置および方法 | |
CN109274730B (zh) | 物联网系统、mqtt消息传输的优化方法及装置 | |
US8954504B2 (en) | Managing a message subscription in a publish/subscribe messaging system | |
US20060072563A1 (en) | Packet processing | |
US6934768B1 (en) | Dynamic modification of fragmentation size cluster communication parameter in clustered computer system | |
US20100268757A1 (en) | Pseudo Pipelining of Client Requests | |
US20050097569A1 (en) | Event notification in a clustered computing environments | |
WO2021057500A1 (fr) | Procédé et dispositif de gestion d'envois de messages | |
CN110708175B (zh) | 分布式网络中消息同步的方法 | |
US20140222900A1 (en) | Method and system for processing resource requests | |
WO2020171989A1 (fr) | Transport rdma avec intégration matérielle et placement dans le désordre | |
EP2641366B1 (fr) | Procédé souple de transmission du plus petit groupe de nouveaux messages à une antémémoire de conversation créée sur un dispositif mobile de client de messagerie électronique connecté par intermittence | |
EP3928213A1 (fr) | Transport rdma avec intégration matérielle | |
CN113079113B (zh) | 数据传输装置和数据传输系统 | |
EP1570369A2 (fr) | Dispositif et procede destines a recevoir des terminaisons de protocoles de transport | |
US20170048304A1 (en) | Pre-boot file transfer system | |
US20060004933A1 (en) | Network interface controller signaling of connection event | |
CN114979022A (zh) | 远程直接数据存取的实现方法、装置、适配器和存储介质 | |
US9137331B2 (en) | Adaptive replication | |
WO2023088225A1 (fr) | Procédé et appareil de traitement de message, et dispositif, support de stockage informatique et programme | |
TW200939047A (en) | Processor-server hybrid system for processing data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22894759 Country of ref document: EP Kind code of ref document: A1 |