Message management method and device, computer device and computer readable storage medium

CN116962501BActive Publication Date: 2026-10-27TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210385677.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-13
Publication Date
2026-10-27
Estimated Expiration
2042-04-13

AI Technical Summary

Technical Problem

[0003]但是,当发送到配置平台的公众号数据到达一定数量级后,会造成数据的延迟发布,降低消息推送的效率;并且用户终端无法对已经缓存的公众号数据进行修改或删除操作

Benefits of technology

[0028]本申请实施例,首先配置服务器获取目标对象的消息的操作指令,这里的操作指令包括操作类型以及目标对象的消息的更新数据;然后根据计算单元队列中每个计算单元的状态信息,从计算单元队列中确定目标计算单元;再利用目标计算单元对该更新数据进行处理,得到目标数据;最后将该目标数据对应的协议数据发送至客户端。相应地,客户端接收配置服务器发送的目标数据对应的协议数据;然后调用数据处理方法中的数据读取方法读取存储的目标对象的消息;再调用数据处理方法中的数据更新方法,利用该协议数据对目标对象的消息进行更新处理,得到目标对象的消息列表;最后显示目标对象的消息列表。针对目标对象的消息的更新数据,根据每个计算单元的状态信息,利用计算单元队列中的目标计算单元对该更新数据进行异步处理,能够提高消息推送的性能和效率,并且客户端能够对已缓存的目标对象的消息进行有效更新,提高消息推送的容错性和扩展性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116962501B_ABST
    Figure CN116962501B_ABST
Patent Text Reader

Abstract

The application discloses a message management method and device, computer equipment and a computer readable storage medium, which can be applied to various scenes such as cloud technology, artificial intelligence, intelligent transportation and auxiliary driving. The method comprises the following steps: obtaining an operation instruction of a message of a target object, wherein the operation instruction comprises an operation type and update data of the message of the target object; determining a target computing unit from a computing unit queue according to state information of each computing unit in the computing unit queue; processing the update data by using the target computing unit to obtain target data; and sending protocol data corresponding to the target data to a client, so that the client updates and processes the stored message of the target object based on the protocol data, wherein the protocol data is generated based on the operation type and the target data. Through the application, the efficiency of message pushing can be improved, the update processing of the client on the message pushing can be effectively realized, and the fault tolerance and expansibility of the message pushing can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to message management methods, message management devices, computer equipment, and computer-readable storage media. Background Technology

[0002] A WeChat Official Account is an application account applied for by the publisher on the WeChat Official Accounts Platform. This account enables comprehensive communication and interaction with a specific group through text, images, voice, and video. Typically, the publisher transmits the Official Account data to the configuration platform, which then sends the data to the server. The server performs CRUD operations on the database based on the fields in the Official Account data at specific times, and simultaneously pushes the data to the user's terminal. After receiving the data, the user's terminal displays it in the message list.

[0003] However, when the amount of data sent to the configuration platform from official accounts reaches a certain level, it causes delays in data release, reducing the efficiency of message push; furthermore, user terminals cannot modify or delete cached official account data. Therefore, improving the efficiency, fault tolerance, and scalability of message push is an urgent problem to be solved. Summary of the Invention

[0004] This application provides a message management method, apparatus, computer device, and computer-readable storage medium, which can improve the efficiency of message push, effectively realize the client's update processing of message push, and thus improve the fault tolerance and scalability of message push.

[0005] On the one hand, embodiments of this application provide a message management method, the method comprising:

[0006] The operation instructions for obtaining messages from the target object include the operation type and the update data of the target object's messages;

[0007] Based on the status information of each computing unit in the computing unit queue, the target computing unit is determined from the computing unit queue;

[0008] The updated data is processed using the target computing unit to obtain the target data;

[0009] The protocol data corresponding to the target data is sent to the client so that the client can update the message of the stored target object based on the protocol data. The protocol data is generated based on the operation type and the target data.

[0010] On the one hand, embodiments of this application provide a message management method, the method comprising:

[0011] The protocol data corresponding to the target data sent by the configuration server is generated based on the operation type and target data included in the operation instructions. The target data is obtained by the configuration server using the target computing unit in the computing unit queue to process the update data of the target object's message.

[0012] Call the data reading method in the data processing method to read the message of the stored target object;

[0013] The data update method in this data processing method is called to update the messages of the target object using protocol data, thereby obtaining the message list of the target object;

[0014] Displays the message list for the target object.

[0015] On one hand, embodiments of this application provide a message management device, the device comprising:

[0016] The acquisition unit is used to acquire the operation instructions of the target object's message, which include the operation type and the update data of the target object's message;

[0017] The processing unit is used to determine the target computing unit from the computing unit queue based on the status information of each computing unit in the computing unit queue.

[0018] The processing unit is also used to process the updated data using the target computing unit to obtain the target data;

[0019] The processing unit is also used to send the protocol data corresponding to the target data to the client, so that the client can update the message of the stored target object based on the protocol data. The protocol data is generated based on the operation type and the target data.

[0020] On one hand, embodiments of this application provide a message management device, the device comprising:

[0021] The receiving unit is used to receive the protocol data corresponding to the target data sent by the configuration server. The protocol data is generated based on the operation type included in the operation instruction and the target data. The target data is obtained by the configuration server using the target computing unit in the computing unit queue to process the update data of the target object's message.

[0022] The processing unit is used to call the data reading method in the data processing method to read the message of the stored target object;

[0023] This processing unit is also used to call the data update method in the data processing method, and use the protocol data to update the message of the target object to obtain the message list of the target object;

[0024] The display unit is used to display the message list of the target object.

[0025] On one hand, embodiments of this application provide a computer device, which includes a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor performs the message management method described above.

[0026] On one hand, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when read and executed by a processor of a computer device, causes the computer device to perform the aforementioned message management method.

[0027] On one hand, embodiments of this application provide a computer program product, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the aforementioned message management method.

[0028] In this embodiment, the configuration server first obtains operation instructions for acquiring messages of a target object. These instructions include the operation type and the update data of the target object's messages. Then, based on the status information of each computing unit in the computing unit queue, the target computing unit is determined from the queue. The target computing unit then processes the update data to obtain the target data. Finally, the protocol data corresponding to the target data is sent to the client. Correspondingly, the client receives the protocol data corresponding to the target data sent by the configuration server. Then, it calls the data reading method in the data processing method to read the stored messages of the target object. Next, it calls the data update method in the data processing method to update the messages of the target object using the protocol data, obtaining a message list for the target object. Finally, the message list of the target object is displayed. By asynchronously processing the update data of the target object's messages using the target computing unit in the computing unit queue based on the status information of each computing unit, the performance and efficiency of message push can be improved. Furthermore, the client can effectively update the cached messages of the target object, improving the fault tolerance and scalability of message push. Attached Figure Description

[0029] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0030] Figure 1This is a schematic diagram of a message push method provided in an embodiment of this application;

[0031] Figure 2 This is a schematic diagram of the structure of a message management system provided in an embodiment of this application;

[0032] Figure 3 This is a schematic diagram of another message management system provided in an embodiment of this application;

[0033] Figure 4 This is a flowchart illustrating a message management method provided in an embodiment of this application;

[0034] Figure 5a This is a schematic diagram of a message list interface for a target object provided in an embodiment of this application;

[0035] Figure 5b This is a schematic diagram of another message list interface of a target object provided in an embodiment of this application;

[0036] Figure 6 This is a flowchart illustrating another message management method provided in an embodiment of this application;

[0037] Figure 7 This is a schematic diagram of a computational unit tree structure provided in an embodiment of this application;

[0038] Figure 8 This is a schematic diagram of a custom field in an scalable communication and representation protocol provided in an embodiment of this application;

[0039] Figure 9 This is a flowchart illustrating another message management method provided in an embodiment of this application;

[0040] Figure 10 This is a schematic diagram of a client message management structure provided in an embodiment of this application;

[0041] Figure 11 This is a schematic diagram of the structure of a message management device provided in an embodiment of this application;

[0042] Figure 12 This is a schematic diagram of another message management device provided in an embodiment of this application;

[0043] Figure 13 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0044] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.

[0045] It should be noted that the terms "first," "second," etc., used in the embodiments of this application are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a technical feature specified with "first" or "second" may explicitly or implicitly include at least one of those features.

[0046] This application involves cloud technology, which refers to a hosting technology that unifies hardware, software, and network resources within a wide area network (WAN) or local area network (LAN) to achieve data computation, storage, processing, and sharing. Cloud technology is a general term encompassing network technology, information technology, integration technology, management platform technology, and application technology based on the cloud computing business model. It can form resource pools, providing flexible and convenient on-demand access. Cloud computing technology will become a crucial support. Backend services of technical network systems require substantial computing and storage resources, such as video websites, image websites, and many portal websites. With the rapid development and application of the internet industry, every item may have its own identification mark in the future, requiring transmission to a backend system for logical processing. Data at different levels will be processed separately, and various industry data will require robust system support, which can only be achieved through cloud computing.

[0047] Cloud computing refers to the delivery and usage model of Internet technology (IT) infrastructure, meaning obtaining necessary resources through a network in an on-demand and easily scalable manner. In a broader sense, cloud computing also refers to the delivery and usage model of services, meaning obtaining necessary services through a network in an on-demand and easily scalable manner. These services can be IT and software, Internet-related, or other services. Cloud computing is a product of the convergence and development of traditional computer and network technologies such as grid computing, distributed computing, parallel computing, utility computing, network storage technologies, virtualization, and load balancing. Driven by the development of the Internet, real-time data streams, the diversification of connected devices, and the demands of search services, social networks, mobile commerce, and open collaboration, cloud computing has developed rapidly. Unlike previous parallel and distributed computing, the emergence of cloud computing will fundamentally revolutionize the entire Internet model and enterprise management model.

[0048] Cloud storage is a new concept that extends and develops from cloud computing. A distributed cloud storage system (hereinafter referred to as a storage system) refers to a storage system that uses cluster applications, grid technology, and distributed storage file systems to aggregate a large number of various types of storage devices (also called storage nodes) in a network through application software or application interfaces to work together and provide data storage and business access functions. Currently, the storage method of a storage system is as follows: Logical volumes are created. When creating a logical volume, physical storage space is allocated to each logical volume. This physical storage space may consist of the disks of one or several storage devices. Clients store data on a logical volume, which means storing the data on the file system. The file system divides the data into many parts, each part being an object. Each object contains not only data but also additional information such as a data identifier (ID entity). The file system writes each object to the physical storage space of the logical volume and records the storage location information of each object. Therefore, when a client requests access to data, the file system can allow the client to access the data based on the storage location information of each object. The process by which a storage system allocates physical storage space to a logical volume is as follows: the physical storage space is pre-divided into strips according to the capacity estimate of the objects stored in the logical volume (this estimate often has a large margin relative to the actual capacity of the objects to be stored) and the grouping of Redundant Array of Independent Disks (RAID). A logical volume can be understood as a strip, thus allocating physical storage space to the logical volume.

[0049] A database, simply put, can be viewed as an electronic filing cabinet—a place to store electronic files, where users can perform operations such as adding, querying, updating, and deleting data. A "database" is a collection of data stored together in a certain way, shared by multiple users, with minimal redundancy, and independent of application programs. A Database Management System (DBMS) is a computer software system designed to manage databases, generally possessing basic functions such as storage, retrieval, security, and backup. DBMSs can be classified according to the database model they support, such as relational or Extensible Markup Language (XML); or according to the type of computer they support, such as server clusters or mobile phones; or according to the query language used, such as Structured Query Language (SQL); or according to performance priorities, such as maximum scale or maximum operating speed; or other classification methods. Regardless of the classification method used, some DBMSs can cross categories, for example, simultaneously supporting multiple query languages.

[0050] Big data refers to data sets that cannot be captured, managed, and processed within a certain timeframe using conventional software tools. It represents massive, rapidly growing, and diverse information assets that require new processing models to achieve stronger decision-making, insightful discovery, and process optimization capabilities. With the advent of the cloud era, big data has attracted increasing attention. Big data requires specialized technologies to effectively process large amounts of data within a tolerable timeframe. Technologies suitable for big data include massively parallel processing databases, data mining, distributed file systems, distributed databases, cloud computing platforms, the internet, and scalable storage systems.

[0051] A WeChat Official Account is an application account applied for by the publisher on the WeChat Official Accounts Platform. This account enables comprehensive communication and interaction with a specific group of people through text, images, voice, and video. For example... Figure 1As shown, currently, after the publishing end performs operations on the public account data (such as editing, modifying, or deleting public account articles), it usually transmits the public account data to the configuration platform, which then sends the public account data to the server. The server performs CRUD operations on the database at a specific time based on the fields in the public account data, and simultaneously pushes the public account data to the client. After receiving the public account data, the client displays it in the message list. When displaying the list on the client, there are generally two processing schemes: (1) When the client receives the message from the public account, it downloads the article content to the local machine. After the local download is complete, the article poster is displayed on the list page. At this time, if the poster is clicked in an offline environment, the article content can be displayed normally. (2) After receiving the message, the client does not download the article content, but only obtains the poster image and title and displays them in the article list. When the user clicks the poster, the article download operation is performed. However, the above method will cause two problems: First, after the data is transmitted to the configuration platform and reaches a certain scale, it may cause a delay in data release, requiring developers to manually maintain a thread pool or message queue to manage the official account data; Second, when the data arrives at the client, the official account data will be cached locally, and it will be impossible to modify, delete or perform other operations on the cached official account data.

[0052] Based on the above description, this application proposes a message management method to improve the efficiency, fault tolerance, and scalability of message push. Specifically, the general principle of this message management method is as follows: First, obtain the operation instructions for the target object's message, including the operation type and the update data of the target object's message; then, determine the target computing unit from the computing unit queue based on the status information of each computing unit in the computing unit queue; next, process the update data using the target computing unit to obtain the target data; finally, send the protocol data corresponding to the target data to the client. Correspondingly, receive the protocol data corresponding to the target data sent by the configuration server; then, call the data reading method in the data processing method to read the stored target object's message; then, call the data update method in the data processing method to update the target object's message using the protocol data to obtain the target object's message list; finally, display the target object's message list.

[0053] In specific implementations, the message management method mentioned above can be executed by a computer device, which can be a configuration server or a client. The client can refer to a terminal device, such as a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, vehicle terminal, or aircraft, but is not limited to these. The configuration server can be, for example, a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. The embodiments of this application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, and assisted driving.

[0054] In practice, the message management methods mentioned above can be executed jointly by the configuration server and the client. For example, see... Figure 2 As shown: First, the configuration server 201 obtains the operation instructions for the target object's message; based on the status information of each computing unit in the computing unit queue, it determines the target computing unit from the computing unit queue; the target computing unit processes the updated data to obtain the target data; the protocol data corresponding to the target data is sent to the client 202, and so on. Correspondingly, the client 202 receives the protocol data corresponding to the target data sent by the configuration server 201; it calls the data reading method in the data processing method to read the stored target object's message; it calls the data update method in the data processing method to update the target object's message using the protocol data to obtain the target object's message list; it displays the target object's message list, and so on.

[0055] Please see Figure 3 , Figure 3 This is a schematic diagram of a message management system provided in an embodiment of this application. Figure 3 As shown, the publishing end sends the operation instructions for the target object's message to the configuration server. The configuration server can be viewed as a system composed of a resource server and a configuration platform. The resource server provides relevant API interfaces to the configuration platform to maintain the computation unit queue in the configuration platform; the configuration platform can also access the resource server. The configuration server uses the target computation units in the computation unit queue to process the update data of the target object's message to obtain the target data; then, it can send this target data to the client, enabling the client to update the stored target object's message.

[0056] In this embodiment of the application, for the update data of the message of the target object, the target computing unit in the computing unit queue is used to asynchronously process the update data according to the status information of each computing unit. This can improve the performance and efficiency of message push, and the client can effectively update the cached message of the target object, thereby improving the fault tolerance and scalability of message push.

[0057] It is understood that the system architecture diagrams described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, with the evolution of system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.

[0058] Based on the above explanation, the following will be combined with Figure 4 The flowchart shown further illustrates the message management method proposed in this application's embodiments. In this application's embodiments, the method is primarily illustrated using the example of a configuration server and client jointly executing the message management method, as mentioned above. Please refer to... Figure 4 The message management method may specifically include steps S401 to S407:

[0059] S401, Configure the server to obtain messages from the target object.

[0060] In this embodiment, the operation instruction includes the operation type and the update data of the target object's message. The operation type can be modification, addition, deletion, etc., and is not limited here. The target object can refer to a public account, specifically an application account applied for by the publishing end on the public platform. The target object's message can refer to articles, images, etc., and is not limited here. After the publishing end updates the target object's message (e.g., modifies the target object's message, deletes the target object's message, adds content to the target object's message, etc.), it sends the operation instruction for the target object's message to the configuration server, which can then obtain the operation instruction for the target object's message.

[0061] It should be noted that when the target object involves a user, all data related to the target object and its messages in this application embodiment are obtained with the user's authorization. Furthermore, when this application embodiment is applied to a specific product or technology, the data used requires user permission or consent, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions.

[0062] S402. The configuration server determines the target computing unit from the computing unit queue based on the status information of each computing unit in the computing unit queue.

[0063] In this embodiment, the actor queue features asynchronous processing and high concurrency, enabling data sharing and message passing. The actor queue contains multiple actors, each comprising multiple sub-actuators. Each actor processes a message for a target object, and each actor is associated with status information displaying its current state. This status information may include reused, ready, cached, and running states. The configuration server needs to determine the target actor from the actor queue based on the status information of each actor. For example, the configuration server can identify a cached actor in the actor queue as the target actor.

[0064] It's important to note that the foundation of actors is message passing. An actor can be considered a basic unit of computation, capable of receiving messages and performing operations based on them; it can also send messages to other actors. Actors are isolated from each other and do not share memory.

[0065] S403. The configuration server uses the target computing unit to process the updated data to obtain the target data.

[0066] In this embodiment, after the configuration server determines the target computing unit, it uses the target computing unit to process the updated data of the target object's messages, such as assembling or splicing the updated data, to obtain the target data. For example, if the configuration server obtains two pieces of updated data for the target object's messages, corresponding to two separate messages of the target object, the target computing unit can be used to assemble these two pieces of updated data to obtain the target data. As another example, if the configuration server obtains two pieces of updated data for the target object's messages, corresponding to two parts of the same message of the target object, the target computing unit can be used to splice these two pieces of updated data to obtain the target data.

[0067] S404. Configure the server to send the protocol data corresponding to the target data to the client.

[0068] In this embodiment, the protocol data is generated based on the operation type and target data. The protocol can be the Extensible Messaging and Presence Protocol (XMPP) or other instant messaging protocols; no limitation is made here. XMPP is a protocol based on Extensible Markup Language (XML), a subset of Standard Generalized Markup Language, which inherits the flexibility of XML. The configuration server can include the operation type and target data in the protocol to obtain the corresponding protocol data. It then establishes a connection with the client through this protocol and sends the corresponding protocol data to the client. Correspondingly, the client can receive the protocol data corresponding to the target data sent by the configuration server and update the stored target object's messages based on this protocol data.

[0069] It's worth noting that the configuration server can associate target data with a reference attribute of the object itself, allowing the identification of the corresponding target data. Furthermore, calling the configuration server's preset interface can retrieve data information sent to the client, including device type, user information, device operating system, and region. This ensures that different types of clients or clients in different regions receive different push notifications, enhancing the personalization of push notifications.

[0070] S405. The client calls the data reading method in the data processing method to read the message of the stored target object.

[0071] In this embodiment, the client stores the target object's message locally and possesses a data reading method (i.e., reading logic) capable of reading the message. The client can adjust the implementation (IMP) of the data reading method according to the operation type to obtain a data update method, and generate a data processing method based on the data reading and update methods. This data processing method can perform not only reading operations but also operations corresponding to the operation type. Specifically, adjusting the implementation of the data reading method can involve exchanging the IMP of the data reading method with the modified IMP of the exchange data reading method, or other methods, which are not limited here. Therefore, after receiving the protocol data corresponding to the target data sent by the configuration server, the client can call the data reading method in the data processing method to read the target object's message stored locally.

[0072] S406. The client calls the data update method in the data processing method to update the messages of the target object using the protocol data, and obtains the message list of the target object.

[0073] In this embodiment, since the data processing method can be generated based on the data reading method and the data updating method, it can perform not only reading operations but also operations corresponding to that operation type. Therefore, it can be understood that the data processing method includes both a data reading method and a data updating method. When the client calls the data updating method within the data processing method, it can use the protocol data to update the messages of the target object, obtaining the message list of the target object.

[0074] For example, the operation type is add. The data read method in this data processing method can perform a read operation on the target object's message, and the data update method in this data processing method can perform an add operation on the target object's message. The client can first use the data read method in this data processing method to read the target object's message, and then use the data update method in this data processing method to add the target data contained in the protocol data to the target object's message, thereby updating the target object's message. Then, the rendering function is called to render the updated target object's message to the message list, thus obtaining the target object's message list.

[0075] S407. The client displays the message list for the target object.

[0076] In this embodiment, after the client obtains the message list of the target object, it can display the message list of the target object on the display screen. Specifically, it can call the rendering function to render the updated messages of the target object into the message list, thereby redrawing the message list of the target object. That is, after reassigning the data source of the list view (tableview), the reload function is called to refresh the message list and display it, and the displayed messages are arranged in chronological order.

[0077] Please see Figure 5a , Figure 5a This is a schematic diagram of a message list interface for a target object provided in an embodiment of this application. For example... Figure 5a As shown, the message list interface of the target object includes three messages and their corresponding cover images. These messages are arranged in chronological order, and users can view the specific content of a message by clicking on it. Suppose that the second message does not meet the requirements, and the target object's operations personnel need to delete it. Then, using the message management method proposed in this solution, the client can effectively delete the second message. Figure 5b As shown, Figure 5bThe message list interface only displays two messages; the second message has been deleted.

[0078] In summary, in this embodiment, firstly, the configuration server obtains the operation instructions for the target object's message, including the operation type and the updated data of the target object's message; then, based on the status information of each computing unit in the computing unit queue, the target computing unit is determined from the computing unit queue; the updated data is then processed by the target computing unit to obtain the target data; finally, the protocol data corresponding to the target data is sent to the client. Correspondingly, the client receives the protocol data corresponding to the target data sent by the configuration server; then, it calls the data reading method in the data processing method to read the stored target object's message; then, it calls the data update method in the data processing method to update the target object's message using the protocol data to obtain the target object's message list; finally, it displays the target object's message list. By asynchronously processing the updated data of the target object's message using the target computing unit in the computing unit queue based on the status information of each computing unit, the performance and efficiency of message push can be improved. Furthermore, the client can effectively update the cached target object's message, improving the fault tolerance and scalability of message push.

[0079] Based on the above explanation, the following will be combined with Figure 6 The flowchart shown further illustrates the data processing method proposed in this application's embodiments. In this application's embodiments, the method is primarily illustrated using the example of a configuration server and client jointly executing the data processing method, as mentioned above. Please refer to... Figure 6 The data processing method may specifically include steps S601 to S611. Among them, steps S602 to S605 are implementations of step S402, and steps S608 to S610 are implementations of step S406.

[0080] S601, Configure the server to obtain messages from the target object.

[0081] The specific implementation of step S601 can be referred to the specific implementation of step S401 above, and will not be repeated here.

[0082] S602. Configure the server to obtain the computing unit tree corresponding to the computing unit queue.

[0083] In this embodiment, each computing unit in the computing unit queue serves as a node in a computing unit tree. The computing unit queue can employ a tree-like data structure, with each computing unit acting as a node in the computing unit tree. For example,... Figure 7As shown, the computational unit ActorSystem can be regarded as the root node of the computational unit tree, and other computational units can be regarded as child nodes or leaf nodes of the computational unit tree, named ActorModel.

[0084] S603. Configure the server to traverse the computing unit tree starting from the root node and determine whether the status information of the computing unit corresponding to each node is in cached state.

[0085] In this embodiment, each computing unit is associated with a state information, which may include a cached state and a running state. When the state information of a computing unit is cached, the configuration server can use the computing unit in the cached state to process the update data of the target object's message. Therefore, the configuration server needs to traverse from the root node of the computing unit tree to find the computing unit whose state information is cached.

[0086] S604. The configuration server identifies the cached computing unit as the target computing unit and adjusts the status information of the target computing unit to the running state.

[0087] In this embodiment, during the traversal of the computation unit tree, if the state information of a computation unit is in a cached state, the configuration server determines the cached computation unit as the target computation unit. Since the state information of a computation unit needs to be adjusted to a running state before data processing can be implemented, the configuration server also needs to adjust the state information of the target computation unit to a running state to facilitate subsequent processing of the updated message data of the target object using that target computation unit.

[0088] S605. The configuration server uses the target computing unit to process the updated data to obtain the target data.

[0089] In this embodiment of the application, the configuration server determines the target computing unit. At this time, the status information of the target computing unit is also adjusted to the running state, so that the updated data can be processed by the target computing unit to obtain the target data.

[0090] In one possible implementation, the state information also includes a reuse state. Each computing unit includes a scheduling unit and a storage unit. The configuration server uses the target computing unit to process the updated data to obtain the target data. Specifically, the implementation can be as follows: the updated data is received using the storage unit of the target computing unit; in the thread pool corresponding to the scheduling unit of the target computing unit, the updated data in the storage unit of the target computing unit is assembled or spliced ​​to obtain the target data; the updated data in the storage unit of the target computing unit is cleared, and the state information of the target computing unit is adjusted to the reuse state.

[0091] It should be noted that this state information can include cached state, running state, and reused state. Each computing unit includes a scheduling unit and a storage unit, namely, Dispatcher and Mailbox. The storage unit is used to receive and store data; the scheduling unit is used to schedule the thread pool to execute tasks. Therefore, the configuration server can use the storage unit of the target computing unit to receive updated data, and then assemble or concatenate the updated data in the thread pool corresponding to the scheduling unit of the target computing unit to obtain the target data. Specifically, assembling updated data means combining multiple data items belonging to different messages of the target object; concatenating updated data means removing overlapping parts and concatenating multiple data items belonging to the same message of the target object. Furthermore, after the target computing unit completes processing the updated data, the updated data in the target computing unit's storage unit needs to be cleared and the unit adjusted to a reused state to facilitate subsequent reuse of the target data unit and improve message push performance.

[0092] For example, the update data of the target object's message includes A and B, which are two messages of the target object. The configuration server combines A and B together in the thread pool corresponding to the scheduling unit of the target computing unit to obtain the target data A+B.

[0093] For another example, the update data of the target object's message includes a~d and c~e, where a~d and c~e belong to the same message M of the target object. The configuration server removes the overlapping part c~d in c~e with a~d in the thread pool corresponding to the scheduling unit of the target computing unit, and then concatenates all the data together to obtain the target data a~e.

[0094] In one possible implementation, the state information also includes a ready state. The method further includes: if there is no cached computing unit, then traverse from the root node of the computing unit tree to determine whether the state information of the computing unit corresponding to each node is a reused state; if there is a reused computing unit, then after a preset first duration, adjust the state information of the reused computing unit to a cached state.

[0095] It should be noted that this status information includes cached state, running state, reused state, and ready state. The switching order of each state in the status information can be ready state - cached state - running state - reused state, and then the reused state can switch back to the ready state. If the configuration server cannot find a cached computing unit in the computing unit tree, it will traverse from the root node of the computing unit tree to search for a reused computing unit. If a reused computing unit is found, its status information can be adjusted to cached state after a preset first duration, and then the computing unit can be used to process updated data. In this way, high reuse of computing units in the computing unit queue can be achieved, improving the performance and efficiency of message push.

[0096] In one possible implementation, the method further includes: if no reusable computing unit exists, creating a new computing unit and adding the new computing unit as a node to the computing unit tree; setting the state information of the new computing unit to the ready state, and after a preset second duration, adjusting the state information of the new computing unit to the cached state.

[0097] It's important to note that if there are no reused computation units, it indicates that the number of computation units has reached the preset value, causing delays in updating data. Therefore, the configuration server needs to consider expanding the computation unit tree, i.e., adding new data units, to improve the performance and efficiency of message push. After creating a new computation unit, the configuration server adds it as a node to the computation unit tree and sets its configuration information to the ready state. After a preset second duration, the new computation unit's status will change from ready to cached, allowing it to be used to process updated data.

[0098] S606. Configure the server to send the protocol data corresponding to the target data to the client.

[0099] In one possible implementation, the method further includes: determining a target field from multiple custom fields included in the protocol header of the extensible communication and representation protocol based on the operation type, where each custom field corresponds to an operation type; and storing the target data in the target field to generate protocol data. It should be noted that the protocol header of the extensible communication and representation protocol includes multiple custom fields, each corresponding to an operation type. For example, a custom field could be (delete), (update), or (add). Based on the operation type, the target field can be determined from among the multiple custom fields, and the target data is stored in the xmlns attribute of the target field, thereby generating the protocol data corresponding to the target data. By employing the extensible communication and representation protocol and custom fields, the timeliness of message push is improved.

[0100] Please see Figure 8 , Figure 8 This is a schematic diagram of a custom field in an scalable communication and representation protocol provided in an embodiment of this application. For example... Figure 8 As shown, the extensible communication and representation protocol includes a custom area and an occupied area. The protocol header includes three custom fields: the first field corresponds to the operation type of delete, the second to modification, and the third to add. Suppose a client needs to add a message to a stored target object. The configuration server can save the target data in the xmlns attribute of the third custom field to obtain the corresponding protocol data. Subsequently, when the client receives the protocol data corresponding to the target data, it can determine the operation type based on the third custom field and retrieve the target data from it.

[0101] In one possible implementation, the method further includes: performing digital logic operations on the target data based on a preset calculation strategy to obtain a transmission time; and when the transmission time arrives, executing the step of sending the protocol data corresponding to the target data to the client. It should be noted that the preset calculation strategy can be fixed or dynamically adjusted, and is not limited here. By performing digital logic operations on the target data using the preset calculation strategy, the transmission time of the protocol data corresponding to the target data can be determined. Specifically, a duration can be obtained, a timer can be started, and when the transmission time arrives, the protocol data corresponding to the target data is sent to the client.

[0102] S607. The client calls the data reading method in the data processing method to read the message of the stored target object.

[0103] The specific implementation of step S607 can be referred to the specific implementation of step S405 above, and will not be repeated here.

[0104] S608. The client obtains the target data from the target field in the protocol data and determines the operation type corresponding to the target field.

[0105] S609. The client calls the data update method in the data processing method to update the message of the target object using the target data and the operation type, and obtains the updated message of the target object.

[0106] In this embodiment, based on the above description, the target field in the protocol data stores target data. The client can determine the operation type based on the target field and retrieve the target data from it. Then, it calls the data update method in the data processing method to update the target data according to the indicated operation type. In this way, the client can update messages for the target object, improving the fault tolerance and scalability of message push.

[0107] In one possible implementation, the method further includes: obtaining a data reading method; adjusting the implementation of the data reading method based on the operation type to obtain a data update method; and generating a data processing method based on the data reading method and the data update method. It should be noted that the data processing method here can perform not only reading operations but also operations corresponding to the operation type. Specifically, adjusting the implementation of the data reading method can be done by exchanging the IMP of the data reading method with the modified IMP of the data reading method, or other methods can be used, which are not limited here.

[0108] For example, during the reading process, the client can use the Method swizzling method to hook the data reading method `read` and create a data processing method `_read`. Specifically, the `class_replaceMethod` function can be called to retain the original data reading method, modify the data reading method according to the operation type in the received protocol data, and then the `method_exchangeImplement` function can be called to exchange the IMPs in the data reading method and the modified exchange data reading method to generate the data processing method `_read`.

[0109] It's important to note that method swizzling is used to change the implementation of an existing selector. At runtime, the method invocation can be altered by changing the mapping of the method list of the selector's class. Essentially, it swaps the implementations of two methods.

[0110] S610: The client uses the updated messages of the target object to generate a message list for the target object.

[0111] In this embodiment, the client can call the rendering function to render the updated message of the target object into the message list, thereby redrawing the message list of the target object, that is, reassigning the data source of the list view (tableview) to generate the message list of the target object.

[0112] S611, The client displays the message list for the target object.

[0113] The specific implementation of step S611 can be referred to the specific implementation of step S407, and will not be repeated here.

[0114] In summary, the execution flow of the message management method proposed in this application can be summarized as follows: Figure 9 As shown, assuming the target object is a public account, the public account operator first performs operations on the public account message (901), such as modification, addition, deletion, etc., and then sends it to the configuration server (902). Accordingly, the configuration server obtains the operation instructions for the target object's message, which include the operation type and the updated data of the target object's message. Further, the configuration server determines the target computing unit from the computing unit queue based on the status information of each computing unit in the computing unit queue. Specifically, it traverses the computing unit tree corresponding to the computing unit queue, determines whether the status information of the computing unit corresponding to each node is in a cached state (903), determines the cached computing unit as the target computing unit, retrieves it from the cache (904), and uses the target computing unit to process the updated data to obtain the target data. If there is no cached computing unit, it determines whether there is a reused computing unit (905). If there is a reused computing unit, it adjusts the status information of the computing unit to the ready state (906), so that it can be retrieved from the cache and the target data can be processed. If there is no reused computing unit, a new computing unit is created (907). The status information of the new computing unit is set to the ready state, and after a preset second duration, the status information of the new computing unit is adjusted to the cached state. Then, the updated data is processed using the new cached computing unit to obtain the target data. Further, the configuration server's interface is called to obtain the client's data information (908). Then, according to the operation type, the target data is stored in the target field of the XMPP protocol header (909) to obtain the protocol data corresponding to the target data, and the protocol data is sent to the client (910). Correspondingly, after receiving the protocol data from the configuration server, the client reads and updates the message of the target object stored locally through the hook module (911), and then redraws the message list page (912). Specifically, such as Figure 10 As shown, Figure 10The server-side message channel 1001 in the configuration is the server, and the public account program 1002 in the client application includes a hook module 1003 and a list display module 1007. The client, through the hook module in the application, calls the data storage interface 1004 to read the target data from the target field in the protocol data; then it calls the data concatenation interface 1005 to update the target object's message using the target data; finally, the list display module 1007 calls the rendering function 1006 to render the updated target object's message to the message list, thus redrawing the target object's message list, i.e., reassigning the data source of the list view (tableview), generating the target object's message list, and displaying the target object's message list.

[0115] In summary, in this embodiment, firstly, the configuration server obtains the operation instructions for the target object's message, including the operation type and the update data of the target object's message; then, it obtains the computing unit tree corresponding to the computing unit queue, traverses it starting from the root node, determines whether the state information of the computing unit corresponding to each node is in a cached state, identifies the cached computing unit as the target computing unit, and adjusts the state information of the target computing unit to the running state; then, it uses the target computing unit to process the update data to obtain the target data; finally, it sends the protocol data corresponding to the target data to the client. Correspondingly, the client receives the protocol data corresponding to the target data sent by the configuration server; then, it calls the data reading method in the data processing method to read the stored target object's message; then, it obtains the target data from the target field in the protocol data and determines the operation type corresponding to the target field; it calls the data update method in the data processing method to update the target object's message using the target data and the operation type, obtaining the updated target object's message, and uses the updated target object's message to generate a message list for the target object; finally, it displays the message list of the target object. For message updates targeting the target object, the update data is processed asynchronously by the target computing unit in the computing unit queue based on the status information of each computing unit. At the same time, the computing units in the computing unit queue are highly reused, which can improve the performance and efficiency of message push. Furthermore, the client can effectively update the cached messages of the target object, improving the fault tolerance and scalability of message push.

[0116] Based on the message management method described above, this application provides a message management device. Please refer to... Figure 11 This is a schematic diagram of a message management device provided in an embodiment of this application. The message management device 1100 can operate the following units:

[0117] The acquisition unit 1101 is used to acquire the operation instructions of the target object's message, which include the operation type and the update data of the target object's message;

[0118] The processing unit 1102 is used to determine the target computing unit from the computing unit queue based on the status information of each computing unit in the computing unit queue;

[0119] The processing unit 1102 is also used to process the updated data using the target computing unit to obtain target data;

[0120] The processing unit 1102 is also used to send the protocol data corresponding to the target data to the client, so that the client can update the message of the stored target object based on the protocol data. The protocol data is generated based on the operation type and the target data.

[0121] In one embodiment, the state information includes a cached state and a running state. When the processing unit 1102 determines the target computing unit from the computing unit queue based on the state information of each computing unit in the computing unit queue, it can specifically be used to: obtain the computing unit tree corresponding to the computing unit queue, where each computing unit included in the computing unit queue is a node of the computing unit tree; traverse from the root node of the computing unit tree to determine whether the state information of the computing unit corresponding to each node is in the cached state; determine the computing unit in the cached state as the target computing unit, and adjust the state information of the target computing unit to the running state.

[0122] In another embodiment, the state information also includes a reuse state. Each computing unit includes a scheduling unit and a storage unit. The processing unit 1102, when processing the updated data using the target computing unit to obtain target data, can specifically be used to: receive the updated data using the storage unit of the target computing unit; assemble or splice the updated data in the storage unit of the target computing unit in the thread pool corresponding to the scheduling unit of the target computing unit to obtain the target data; clear the updated data in the storage unit of the target computing unit and adjust the state information of the target computing unit to a reuse state.

[0123] In another embodiment, the state information also includes a ready state. The processing unit 1102 is further configured to: if there is no cached computing unit, traverse from the root node of the computing unit tree to determine whether the state information of the computing unit corresponding to each node is a reused state; if there is a reused computing unit, adjust the state information of the reused computing unit to a cached state after a preset first time period.

[0124] In another embodiment, the processing unit 1102 is further configured to: if there is no computing unit in the reuse state, create a new computing unit and add the new computing unit as a node to the computing unit tree; set the status information of the new computing unit to the ready state, and after a preset second time period, adjust the status information of the new computing unit to the cached state.

[0125] In another embodiment, the processing unit 1102 is further configured to: determine a target field from a plurality of custom fields included in the protocol header of the extensible communication and representation protocol according to the operation type, wherein each custom field corresponds to an operation type; and store the target data in the target field to generate protocol data.

[0126] In another embodiment, the processing unit 1102 is further configured to: perform digital logic operations on the target data based on a preset calculation strategy to obtain the transmission time; and when the transmission time arrives, execute the step of sending the protocol data corresponding to the target data to the client.

[0127] Based on the message management method described above, this application provides a message management device. Please refer to... Figure 12 This is a schematic diagram of a message management device provided in an embodiment of this application. The message management device 1200 can operate the following units:

[0128] The receiving unit 1201 is used to receive protocol data corresponding to the target data sent by the configuration server. The protocol data is generated based on the operation type included in the operation instruction and the target data. The target data is obtained by the configuration server using the target computing unit in the computing unit queue to process the update data of the target object's message.

[0129] Processing unit 1202 is used to call the data reading method in the data processing method to read the message of the stored target object;

[0130] The processing unit 1202 is also used to call the data update method in the data processing method, and use the protocol data to update the message of the target object to obtain the message list of the target object;

[0131] Display unit 1203 is used to display the message list of the target object.

[0132] In one embodiment, the processing unit 1202 is further configured to: acquire a data reading method; adjust the implementation of the data reading method based on the operation type to obtain a data update method; and generate a data processing method based on the data reading method and the data update method.

[0133] In another embodiment, when the processing unit 1202 calls the data update method in the data processing method to update the message of the target object using the protocol data to obtain the message list of the target object, it can specifically be used to: obtain target data from the target field in the protocol data and determine the operation type corresponding to the target field; call the data update method in the data processing method to update the message of the target object using the target data and the operation type to obtain the updated message of the target object; and generate the message list of the target object using the updated message of the target object.

[0134] According to another embodiment of this application, Figure 11 and Figure 12 The various units in the message management device shown can be individually or entirely merged into one or more other units, or some of the units can be further divided into multiple functionally smaller units. This achieves the same operation without affecting the technical effects of the embodiments of this application. The above units are based on logical function division. In practical applications, the function of one unit can also be implemented by multiple units, or the function of multiple units can be implemented by one unit. In other embodiments of this application, the message management device may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented collaboratively by multiple units.

[0135] According to another embodiment of this application, the following can be achieved by running on a general-purpose computing device, such as a computer, which includes processing elements and storage elements such as a central processing unit (CPU), random access memory (RAM), and read-only memory (ROM), a device capable of performing operations such as... Figure 4 or Figure 6 The computer program (including program code) for each step involved in the corresponding method shown, to construct such... Figure 11 and Figure 12 The message management apparatus shown herein, and the message management method for implementing embodiments of this application, are described. The computer program may be recorded on, for example, a computer-readable recording medium, loaded onto the aforementioned computing device via the computer-readable recording medium, and run therein.

[0136] In this embodiment, firstly, the configuration server obtains the operation instructions for the target object's message. These instructions include the operation type and the updated message data of the target object. Then, based on the status information of each computing unit in the computing unit queue, the target computing unit is determined from the queue. The updated data is then processed by the target computing unit to obtain the target data. Finally, the protocol data corresponding to the target data is sent to the client. Correspondingly, the client receives the protocol data corresponding to the target data sent by the configuration server. Then, the client calls the data reading method in the data processing method to read the stored target object's message. Next, the client calls the data update method in the data processing method to update the target object's message using the protocol data, obtaining the target object's message list. Finally, the target object's message list is displayed. By asynchronously processing the updated message data of the target object using the target computing unit in the computing unit queue based on the status information of each computing unit, the performance and efficiency of message push can be improved. Furthermore, the client can effectively update the cached target object's message, improving the fault tolerance and scalability of message push.

[0137] Based on the description of the above method and apparatus embodiments, this application also provides a computer device. Please refer to... Figure 13 The computer device 1300 includes at least a processor 1301, a communication interface 1302, and a computer storage medium 1303. The processor 1301, communication interface 1302, and computer storage medium 1303 can be connected via a bus or other means. The computer storage medium 1303 can be stored in the memory 1304 of the computer device 1300. The computer storage medium 1303 is used to store computer programs, which include program instructions. The processor 1301 is used to execute the program instructions stored in the computer storage medium 1303. The processor 1301 (or CPU (Central Processing Unit)) is the computing and control core of the computer device, suitable for implementing one or more instructions, specifically suitable for loading and executing one or more instructions to achieve corresponding method flows or corresponding functions.

[0138] In one embodiment, the processor 1301 described in this application can be used to perform a series of message management tasks, specifically including: obtaining operation instructions for messages of a target object, the operation instructions including operation type and update data of the message of the target object; determining a target computing unit from the computing unit queue based on the status information of each computing unit in the computing unit queue; processing the update data using the target computing unit to obtain target data; sending the protocol data corresponding to the target data to the client, so that the client can update the stored message of the target object based on the protocol data, the protocol data being generated based on the operation type and the target data, etc.

[0139] Specifically, this may include: receiving protocol data corresponding to the target data sent by the configuration server. This protocol data is generated based on the operation type included in the operation instructions and the target data. The target data is obtained by the configuration server using the target computing unit in the computing unit queue to process the update data of the target object's messages; calling the data reading method in the data processing method to read the stored target object's messages; calling the data update method in the data processing method to update the target object's messages using the protocol data to obtain the target object's message list; displaying the target object's message list, etc.

[0140] This application embodiment also provides a computer storage medium (memory), which is a memory device in a computer device used to store programs and data. It is understood that the computer storage medium here can include both the built-in storage medium in the computer device and extended storage media supported by the computer device. The computer storage medium provides storage space that stores the operating system of the computer device. Furthermore, the storage space also stores one or more instructions suitable for loading and execution by the processor 1301. These instructions can be one or more computer programs (including program code). It should be noted that the computer storage medium here can be high-speed RAM or non-volatile memory, such as at least one disk storage device; optionally, it can also be at least one computer storage medium located remotely from the aforementioned processor.

[0141] In one embodiment, a processor may load and execute one or more instructions stored in a computer storage medium to achieve the aforementioned... Figure 4 or Figure 6 The corresponding steps of the method in the illustrated message management method embodiment; in specific implementation, one or more instructions in the computer storage medium are loaded by the processor 1301 and executed as follows:

[0142] The operation instructions for obtaining messages from the target object include the operation type and the update data of the target object's messages;

[0143] Based on the status information of each computing unit in the computing unit queue, the target computing unit is determined from the computing unit queue;

[0144] The updated data is processed using the target computing unit to obtain the target data;

[0145] The protocol data corresponding to the target data is sent to the client so that the client can update the message of the stored target object based on the protocol data. The protocol data is generated based on the operation type and the target data.

[0146] In one implementation, the state information includes a cached state and a running state. When determining the target computing unit from the computing unit queue based on the state information of each computing unit in the computing unit queue, one or more instructions can be loaded and executed by the processor: obtaining the computing unit tree corresponding to the computing unit queue, where each computing unit in the computing unit queue is a node of the computing unit tree; traversing from the root node of the computing unit tree to determine whether the state information of the computing unit corresponding to each node is in a cached state; determining the computing unit in the cached state as the target computing unit, and adjusting the state information of the target computing unit to the running state.

[0147] In another implementation, the state information also includes a reuse state. Each computing unit includes a scheduling unit and a storage unit. When the updated data is processed by the target computing unit to obtain target data, one or more instructions can be loaded and executed by the processor: receiving the updated data using the storage unit of the target computing unit; assembling or splicing the updated data in the storage unit of the target computing unit in the thread pool corresponding to the scheduling unit of the target computing unit to obtain the target data; clearing the updated data in the storage unit of the target computing unit and adjusting the state information of the target computing unit to a reuse state.

[0148] In another implementation, the status information also includes a ready state, where one or more instructions can be loaded and executed by the processor: if there is no cached computing unit, the processor traverses from the root node of the computing unit tree to determine whether the status information of the computing unit corresponding to each node is in a reused state; if there is a reused computing unit, the processor adjusts the status information of the reused computing unit to a cached state after a preset first duration.

[0149] In another implementation, the one or more instructions may be loaded and specifically executed by the processor: if there is no reused computing unit, a new computing unit is created and added as a node to the computing unit tree; the status information of the new computing unit is set to the ready state, and after a preset second duration, the status information of the new computing unit is adjusted to the cached state.

[0150] In another implementation, the one or more instructions may be loaded by the processor and specifically executed as follows: determining a target field from multiple custom fields included in the protocol header of the extensible communication and representation protocol according to the operation type, each custom field corresponding to an operation type; and storing the target data in the target field to generate protocol data.

[0151] In another implementation, the one or more instructions can be loaded by the processor and specifically executed as follows: performing digital logic operations on the target data based on a preset calculation strategy to obtain the transmission time; when the transmission time arrives, executing the step of sending the protocol data corresponding to the target data to the client.

[0152] In one embodiment, a processor may load and execute one or more instructions stored in a computer storage medium to achieve the aforementioned... Figure 4 or Figure 6 The corresponding steps of the method in the illustrated message management method embodiment; in specific implementation, one or more instructions in the computer storage medium are loaded by the processor 1301 and executed as follows:

[0153] The protocol data corresponding to the target data sent by the configuration server is generated based on the operation type and target data included in the operation instructions. The target data is obtained by the configuration server using the target computing unit in the computing unit queue to process the update data of the target object's message.

[0154] Call the data reading method in the data processing method to read the message of the stored target object;

[0155] The data update method in this data processing method is called to update the messages of the target object using protocol data, thereby obtaining the message list of the target object;

[0156] Displays the message list for the target object.

[0157] In one implementation, the one or more instructions may be loaded by the processor and specifically executed as follows: obtaining a data reading method; adjusting the implementation of the data reading method based on the operation type to obtain a data update method; and generating a data processing method based on the data reading method and the data update method.

[0158] In another implementation, when the data update method in the data processing method is called to update the message of the target object using the protocol data to obtain the message list of the target object, one or more instructions can be loaded and executed by the processor: obtain target data from the target field in the protocol data and determine the operation type corresponding to the target field; call the data update method in the data processing method to update the message of the target object using the target data and the operation type to obtain the updated message of the target object; and generate the message list of the target object using the updated message of the target object.

[0159] In this embodiment, firstly, the configuration server obtains the operation instructions for the target object's message. These instructions include the operation type and the updated message data of the target object. Then, based on the status information of each computing unit in the computing unit queue, the target computing unit is determined from the queue. The updated data is then processed by the target computing unit to obtain the target data. Finally, the protocol data corresponding to the target data is sent to the client. Correspondingly, the client receives the protocol data corresponding to the target data sent by the configuration server. Then, the client calls the data reading method in the data processing method to read the stored target object's message. Next, the client calls the data update method in the data processing method to update the target object's message using the protocol data, obtaining the target object's message list. Finally, the target object's message list is displayed. By asynchronously processing the updated message data of the target object using the target computing unit in the computing unit queue based on the status information of each computing unit, the performance and efficiency of message push can be improved. Furthermore, the client can effectively update the cached target object's message, improving the fault tolerance and scalability of message push.

[0160] It should be noted that, according to one aspect of this application, a computer program product or computer program is also provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, causing the computer device to perform the aforementioned... Figure 4 or Figure 6 The data processing method embodiments shown are provided in various optional ways. Furthermore, it should be understood that the above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, equivalent variations made in accordance with the claims of this application are still within the scope of this application.

Claims

1. A message management method, characterized in that, include: After the publishing end updates the message of the target object, it sends the operation instruction of the message of the target object. The operation instruction includes the operation type and the update data of the message of the target object. The target object includes a public account. The public account refers to the application account applied for by the publishing end on the public platform. Based on the status information of each computing unit in the computing unit queue, a target computing unit is determined from the computing unit queue, wherein the status information of the target computing unit is in a cached state; The updated data is processed using the target computing unit to obtain the target data; The protocol data corresponding to the target data is sent to the client, so that the client updates the stored messages of the target object based on the protocol data. The protocol data is generated based on the operation type and the target data. The state information further includes a reuse state, each computing unit includes a scheduling unit and a storage unit, and the process of using the target computing unit to process the updated data to obtain target data includes: The updated data is received using the storage unit of the target computing unit; In the thread pool corresponding to the scheduling unit of the target computing unit, the updated data in the storage unit of the target computing unit is assembled or spliced ​​to obtain the target data; Clear the updated data in the storage unit of the target computing unit and adjust the state information of the target computing unit to the reuse state.

2. The method according to claim 1, characterized in that, The state information includes cached state and running state. The step of determining the target computing unit from the computing unit queue based on the state information of each computing unit in the computing unit queue includes: Obtain the computing unit tree corresponding to the computing unit queue, where each computing unit included in the computing unit queue is a node of the computing unit tree; Starting from the root node of the computing unit tree, traverse the tree and determine whether the state information of the computing unit corresponding to each node is in the cached state; The cached computing unit is identified as the target computing unit, and the state information of the target computing unit is adjusted to the running state.

3. The method according to claim 1 or 2, characterized in that, The state information also includes a ready state, and the method further includes: If there is no cached computing unit, then traverse from the root node of the computing unit tree and determine whether the state information of the computing unit corresponding to each node is in the reuse state. Each computing unit included in the computing unit queue is a node of the computing unit tree. If a reused computing unit exists, then after a preset first duration, the state information of the reused computing unit is adjusted to the cached state.

4. The method according to claim 3, characterized in that, The method further includes: If no reusable computing unit exists, a new computing unit is created and added as a node to the computing unit tree. The state information of the new computing unit is set to the ready state, and after a preset second time period, the state information of the new computing unit is adjusted to the cached state.

5. The method according to claim 1 or 2, characterized in that, The method further includes: Based on the operation type, the target field is determined from multiple custom fields included in the protocol header of the extensible communication and representation protocol, where each custom field corresponds to an operation type; The target data is stored in the target field to generate protocol data.

6. The method according to claim 1, characterized in that, The method further includes: The target data is subjected to digital logic operations based on a preset calculation strategy to obtain the transmission time. When the sending time arrives, the step of sending the protocol data corresponding to the target data to the client is executed.

7. A message management method, characterized in that, include: The system receives protocol data corresponding to target data sent by the configuration server. This protocol data is generated based on the operation type included in the operation instructions and the target data. The target data is obtained by the configuration server receiving the updated message data of the target object from the storage unit of the target computing unit in the computing unit queue when it receives the operation instructions for the target object message sent by the publishing end. The updated data in the storage unit of the target computing unit is then assembled or spliced ​​in the thread pool corresponding to the scheduling unit of the target computing unit. The state information of the target computing unit is in a cached state. The configuration server clears the updated data in the storage unit of the target computing unit and adjusts the state information of the target computing unit to a reused state. The target object includes a public account, which refers to the application account applied for by the publishing end on the public platform. The data reading method in the data processing method is invoked to read the stored messages of the target object; The data update method in the data processing method is called to update the messages of the target object using the protocol data, thereby obtaining the message list of the target object; Display the message list of the target object.

8. The method according to claim 7, characterized in that, The method further includes: Get data reading methods; Based on the operation type, the implementation of the data reading method is adjusted to obtain the data update method; The data processing method is generated based on the data reading method and the data updating method.

9. The method according to claim 7 or 8, characterized in that, The step of invoking the data update method in the data processing method to update the messages of the target object using the protocol data, thereby obtaining a message list of the target object, includes: Obtain the target data from the target field in the protocol data, and determine the operation type corresponding to the target field; The data update method in the data processing method is invoked to update the message of the target object using the target data and the operation type, thereby obtaining the updated message of the target object; Generate a message list for the target object using the updated messages of the target object.

10. A message management device, characterized in that, The device includes: The acquisition unit is used to acquire the operation instructions of the target object's message sent by the publishing end after updating the target object's message. The operation instructions include the operation type and the update data of the target object's message. The target object includes a public account, which refers to the application account applied for by the publishing end on the public platform. The processing unit is used to determine the target computing unit from the computing unit queue based on the status information of each computing unit in the computing unit queue, wherein the status information of the target computing unit is in a cached state; The processing unit is further configured to process the updated data using the target computing unit to obtain target data; The processing unit is further configured to send the protocol data corresponding to the target data to the client, so that the client updates the stored messages of the target object based on the protocol data, wherein the protocol data is generated based on the operation type and the target data; The state information further includes a reuse state. Each computing unit includes a scheduling unit and a storage unit. The processing unit is specifically used for: receiving the updated data using the storage unit of the target computing unit; assembling or splicing the updated data in the storage unit of the target computing unit in the thread pool corresponding to the scheduling unit of the target computing unit to obtain target data; clearing the updated data in the storage unit of the target computing unit and adjusting the state information of the target computing unit to the reuse state.

11. A message management device, characterized in that, The device includes: The receiving unit is used to receive protocol data corresponding to target data sent by the configuration server. The protocol data is generated based on the operation type included in the operation instruction and the target data. The target data is obtained by the configuration server when it receives the operation instruction of the target object message sent by the publishing end, using the storage unit of the target computing unit in the computing unit queue to receive the updated data of the target object message, and assembling or splicing the updated data in the storage unit of the target computing unit in the thread pool corresponding to the scheduling unit of the target computing unit. The state information of the target computing unit is in a cached state. The configuration server clears the updated data in the storage unit of the target computing unit and adjusts the state information of the target computing unit to a reused state. The target object includes a public account, which refers to the application account applied for by the publishing end on the public platform. The processing unit is used to call the data reading method in the data processing method to read the stored message of the target object; The processing unit is further configured to call the data update method in the data processing method, and use the protocol data to update the messages of the target object to obtain the message list of the target object; The display unit is used to display the message list of the target object.

12. A computer device, characterized in that, The computer device includes a memory and a processor. The memory stores a computer program, which, when executed by the processor, causes the processor to perform the message management method as described in any one of claims 1 to 6, or causes the processor to perform the message management method as described in any one of claims 7 to 9.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more computer programs, which are adapted to be loaded by a processor and executed by the message management method as described in any one of claims 1 to 6, or the one or more computer programs are adapted to be loaded by a processor and executed by the message management method as described in any one of claims 7 to 9.

14. A computer program product, characterized in that, The computer program product includes a computer program that is adapted to be loaded by a processor and executed by the message management method as described in any one of claims 1 to 6, or the computer program that is adapted to be loaded by a processor and executed by the message management method as described in any one of claims 7 to 9.

Citation Information

Patent Citations

  • Method for synchronizing information among clients, clients and server

    CN103491055A

  • Inspection alarm method and device, readable storage medium and terminal equipment

    CN112017323A