Communication information processing method and device, storage medium and electronic equipment

By introducing the index layer and information storage cluster into the game application, the problem of limited information carrier capacity is solved, complete acquisition and efficient storage of communication information are achieved, and the capacity and performance of the information carrier are improved.

CN118733641APending Publication Date: 2024-10-01TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310375122.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-29
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The information carrier capacity in game applications is limited, resulting in poor integrity of communication information acquisition. Subsequent information cannot be received or early received information is deleted, resulting in the inability to completely obtain all communication information.

Method used

The index layer is introduced to combine with the storage instances in the information storage cluster. The received communication information is stored in the information storage cluster, and the information index is written in the index data of the target object to pull the corresponding communication information and perform information processing through the index information. Index to achieve parallel expansion of information carrier capacity.

Benefits of technology

It improves the integrity of communication information acquisition, avoids information loss and acquisition failure due to insufficient information carrier capacity, and enhances the amount of information carried by the information carrier.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733641A_ABST
    Figure CN118733641A_ABST
Patent Text Reader

Abstract

The invention discloses a communication information processing method and device, a storage medium and electronic device.The method comprises the steps that first communication information corresponding to a target object in a game application is received, and the first communication information is communication information borne by a preset information carrier in the game application; in response to the received first communication information, the first communication information is stored in a storage instance in an information storage cluster, and the information storage cluster is used for storing communication information carried by a preset information carrier; the first information index is written into index data corresponding to the target object, and the first information index is used for indicating a storage instance storing the first communication information so as to pull the first communication information. Through application of the method and the device, the problem of poor integrity of communication information acquisition caused by limited capacity of an information carrier in a communication information processing mode in related technologies can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular to a method and device for processing communication information, a storage medium, and an electronic device. Background Art

[0002] At present, in game applications, different types of communication information can be carried through information carriers such as mailboxes and message boards. However, the capacity of these information carriers is usually small, and the communication information that can be carried is usually small. If the amount of information carried is large, it may be impossible to receive subsequent communication information, or the communication information received earlier may be deleted, resulting in the inability to fully obtain all the communication information.

[0003] It can be seen that the communication information processing method in the related art has the problem of poor integrity of communication information acquisition due to the limited capacity of the information carrier. Summary of the invention

[0004] Embodiments of the present invention provide a method and device for processing communication information, a storage medium, and an electronic device, so as to at least solve the problem of poor integrity of communication information acquisition due to the limited capacity of the information carrier in the communication information processing method in the related art.

[0005] According to one aspect of an embodiment of the present application, a method for processing communication information is provided, including: receiving first communication information corresponding to a target object in a game application, wherein the first communication information is communication information carried by a preset information carrier in the game application; in response to the received first communication information, storing the first communication information in a storage instance in an information storage cluster, wherein the information storage cluster is used to store the communication information carried by the preset information carrier; writing a first information index into index data corresponding to the target object, wherein the first information index is used to indicate the storage instance storing the first communication information, so as to pull the first communication information.

[0006] According to another aspect of an embodiment of the present application, a communication information processing device is also provided, including: a first receiving unit, used to receive first communication information corresponding to a target object in a game application, wherein the first communication information is communication information carried by a preset information carrier in the game application; a storage unit, used to store the first communication information in a storage instance in an information storage cluster in response to the received first communication information, wherein the information storage cluster is used to store the communication information carried by the preset information carrier; a writing unit, used to write a first information index into index data corresponding to the target object, wherein the first information index is used to indicate a storage instance storing the first communication information so as to pull the first communication information.

[0007] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned method for processing communication information when running.

[0008] According to another aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above communication information processing method.

[0009] According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the communication information processing method through the computer program.

[0010] In an embodiment of the present application, an index layer is introduced in combination with a storage instance in an information storage cluster to store communication information carried by a preset information carrier in a game application. After receiving the communication information corresponding to a certain object, the received communication information can be stored in a storage instance in the information storage cluster, and based on the storage instance where the communication information is stored, the corresponding information index is written in the index data corresponding to the object, so that the corresponding communication information can be found according to the written information index. The capacity of the information carrier is expanded in parallel by indexing the information with the index information and storing the corresponding communication information in the storage instance, which can increase the amount of communication information allowed to be carried by the information carrier, avoid the situation where all communication information cannot be fully obtained due to the excessive communication information that cannot be received, and achieve the technical effect of improving the integrity of the communication information acquisition, thereby solving the problem of poor integrity of the communication information acquisition due to the limited capacity of the information carrier in the communication information processing method in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0012] Figure 1 is a schematic diagram of an application environment of an optional communication information processing method according to an embodiment of the present application;

[0013] Figure 2 is a flowchart of an optional method for processing communication information according to an embodiment of the present application;

[0014] Figure 3 is a schematic diagram of an optional method for processing communication information according to an embodiment of the present application;

[0015] Figure 4 is a schematic diagram of another optional method for processing communication information according to an embodiment of the present application;

[0016] Figure 5 is a schematic diagram of an optional mail storage layer according to an embodiment of the present application;

[0017] Figure 6 is a schematic diagram of an optional game application interface according to an embodiment of the present application;

[0018] Figure 7 is a schematic diagram of an optional mailbox interface according to an embodiment of the present application;

[0019] Figure 8 This is a schematic diagram of an optional process of pulling a mailing list according to an embodiment of the present application;

[0020] Fig. 9 is a schematic diagram of another optional mailbox interface according to an embodiment of the present application;

[0021] Fig.10 This is a schematic diagram of an optional process of deleting emails according to an embodiment of the present application;

[0022] Fig.11 is a schematic diagram of another optional mailbox interface according to an embodiment of the present application;

[0023] Fig.12 is a schematic diagram of another optional mail storage layer according to an embodiment of the present application;

[0024] Fig.13 is a flowchart of another optional method for processing communication information according to an embodiment of the present application;

[0025] Fig.14 is a structural block diagram of an optional communication information processing device according to an embodiment of the present application;

[0026] Fig.15 is a schematic structural diagram of an optional electronic device according to an embodiment of the present application;

[0027] Fig.16 It is a structural block diagram of a computer system of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] According to one aspect of an embodiment of the present application, a method for processing communication information is provided. Optionally, as an optional implementation, the method for processing communication information can be but is not limited to being applied to: Figure 1 In the environment shown, it may include, but is not limited to, a terminal device 102, a network 110 and a server 112, wherein the terminal device 102 may include, but is not limited to, a display 108, a processor 106 and a memory 104.

[0031] The specific process can be as follows:

[0032] Step S102: The terminal device 102 sends an information pull request to the server 112 to request to pull the communication information displayed in the information carrier of the game application running therein.

[0033] The terminal device 102 may run a client of a game application, and the player may click on an icon of the information carrier to trigger the entry into the display interface of the information carrier. In response to the detected click operation, the terminal device 102 may send an information pull request to the server 112 via the network 110 .

[0034] Step S104, after receiving the information pull request, the server 112 pulls the index data, parses the information index therein, and uses the parsed information index to pull the corresponding communication information list.

[0035] The processing engine 116 of the server 112 may first pull index data corresponding to the object identifier from the database 114 according to the object identifier, parse out the information index therein, and pull out the corresponding communication information from the database 114 according to the parsed information index to obtain a communication information list to be displayed.

[0036] Step S106 , the server 112 sends the pulled communication information list to the terminal device 102 via the network 110 .

[0037] Step S108: The terminal device 102 displays the received communication information list in the information carrier in the game application.

[0038] Optionally, the terminal device 102 includes but is not limited to at least one of the following: mobile phones (such as Android phones, iOS phones, etc.), laptops, tablet computers, PDAs, MIDs (Mobile Internet Devices), PADs, desktop computers, smart home appliances, vehicle-mounted devices, AR (Augmented Reality), VR (Virtual Reality) and other virtual reality devices, etc. The above-mentioned network 110 may include but is not limited to: wired networks, wireless networks, wherein the wired network includes: local area networks, metropolitan area networks and wide area networks, and the wireless network includes: Bluetooth, Wireless Fidelity (Wireless Fidelity, referred to as WIFI) and other networks that realize wireless communication. The above-mentioned server 112 may be a single server, or a server cluster consisting of multiple servers, or a cloud server. The above is only an example, and no limitation is made to this in this embodiment.

[0039] Optionally, the above-mentioned communication information processing method can be executed by the server 112 alone, or can be executed by the server 112 and the terminal device 102 together, or can be executed by other processing devices other than the terminal device 102 and the server 112, as long as the processed object data can be applied to the terminal device 102 and the server 112.

[0040] As an optional implementation, taking the method for processing communication information in this embodiment executed by the server 112 as an example, Figure 2 is a flow chart of an optional method for processing communication information according to an embodiment of the present application, such as Figure 2 As shown, the process of the communication information processing method may include the following steps:

[0041] Step S202: receiving first communication information corresponding to a target object in a game application, wherein the first communication information is communication information carried by a preset information carrier in the game application.

[0042] The method for processing communication information in this embodiment can be applied to the scenario of processing communication information displayed in an information carrier in a game application. The information carrier can be an information carrying function that provides specific communication information in the game application, that is, carrying communication information sent to different virtual objects in the game application. Here, the information carrier can belong to a communication system that provides a communication information transmission function in the game application. The two communicating parties can be different virtual objects in the game application, or they can be a virtual object in the game application and a background server of the game application.

[0043] The above-mentioned game application may be a multiplayer online tactical competitive game (Multiplayer Online Battle Arena, referred to as MOBA) or a single-player game (Single-Player Game, referred to as SPG), which may be a terminal game, that is, a game on a PC (Personal Computer), or a mobile game (i.e., a mobile phone game). The above-mentioned game application may include but is not limited to at least one of the following: two-dimensional (Two Dimension, referred to as 2D) game application, three-dimensional (Three Dimension, referred to as 3D) game application, virtual reality (Virtual Reality, referred to as VR) game application, augmented reality (Augmented Reality, referred to as AR) game application, mixed reality (Mixed Reality, referred to as MR) game application. The above is only an example, and this embodiment does not impose any limitation on this.

[0044] Exemplarily, the above-mentioned game application can be a shooting game (Shooting Game, referred to as STG), such as a first-person shooting game (First-person shooting game, referred to as FPS) or a third-person shooting game (Third-Personal Shooting, referred to as TPS), etc., which can be a real-time multiplayer online shooting game or a single-player shooting game.

[0045] The above-mentioned information carrier can be a one-way information carrier, for example, an information carrier that can only receive communication information, or a two-way information carrier, that is, an information carrier that can both receive communication information and send communication information. Different communication information may have different corresponding information carriers. For example, if the communication information is an email, the corresponding information carrier is a mailbox; if the communication information is a message, the corresponding information carrier is a message board; if the communication information is the object dynamics of a virtual object, the corresponding information carrier is a dynamic display board. It can also be other types of communication information and its corresponding information carrier. In this embodiment, the type of communication information and its corresponding information carrier are not limited. In some examples of this embodiment, the communication information is an email and the corresponding information carrier is a mailbox, but it should not limit the type of communication information and its corresponding information carrier.

[0046] In the related art, the capacity of the information carrier in the game application is usually small. If the player cannot clean up the received communication information in time, the subsequent communication information cannot be delivered, resulting in the failure of obtaining the communication information. Here, there may be one or more ways to clean up the received communication information, which may include but is not limited to at least one of the following: by reading and automatically deleting the communication information carried by the preset information carrier, manually selecting and deleting the communication information carried by the preset information carrier. For example, by reading the mail in the automatically deleted mailbox, by reading and collecting the reward props carried by the mail in the mailbox to automatically delete the mail in the mailbox, or manually deleting the mail in the mailbox, for example, by viewing the messages on the automatically deleted message board or manually deleting the messages on the message board, for example, by viewing the dynamics on the automatically deleted dynamic display board or manually deleting the dynamics on the dynamic display board.

[0047] Take the mailbox in a mobile game as an example. The mailbox in a mobile game usually has a small content and is generally used to issue rewards to players, system notifications, etc. However, the mailbox capacity is usually small. If the player cannot read the emails in the mailbox in time, the subsequent emails will not arrive. If the reward email is issued, it is a loss for the player, affecting the player's experience.

[0048] Here, due to the limitation of storage mechanism, all communication information of the same player needs to be stored on the same host (i.e., a single machine), so the storage performance of communication information is limited by the performance of a single machine. For example, mailboxes in mobile games usually use Redis (Remote Dictionary Server, an open source, in-memory data structure storage system that can be used as a database, cache, and message middleware) list data structure storage, requiring that all emails of the same player must be stored on the same host. In this way, the storage performance of emails is limited by the performance of a single machine, making the capacity of mailboxes in mobile games usually fixed (for example, the maximum number of emails is fixed, the maximum storage space occupied by all emails is fixed, etc.).

[0049] In order to at least partially solve the above technical problems, in this embodiment, a data sharding technology is adopted to expand the capacity of the information carrier (for example, the mailbox capacity) in parallel to increase the capacity of the information carrier, and by introducing an index layer to distribute the data layer to each machine, data sharding can be possible: by indexing information through index information and combining it with the storage instance to store the corresponding communication information, the capacity of the information carrier is expanded in parallel, which can increase the amount of communication information allowed to be carried by the information carrier, avoid the situation where all communication information cannot be fully obtained due to excessive communication information that cannot be received, thereby improving the integrity of communication information acquisition.

[0050] It should be noted that the communication information of the same player in the game application (communication information of the same type, that is, communication information carried by the same information carrier) is often stored on a single machine, and the storage capacity is limited. Sharding technology can greatly increase the number of communication information that can be accommodated, and support the communication information of the same player to be dispersed to various storage instances within the cluster, thereby realizing a communication information system with ultra-large capacity and extremely high performance (for example, a mail system). If there is no index layer, all the communication information of the player (for example, mail data) can only fall on a single machine, and after the introduction of the index layer, all the communication information of the player can be stored on multiple machines (for example, the mail data is sharded), and because there is index data, the data on multiple machines can be aggregated again to piece together the complete data.

[0051] In this embodiment, for the target object, the target server can receive the first communication information corresponding to the target object in the game application. The target object here can be used to represent a player of the game application, a game account of a player (the same player can use different accounts) or a virtual object of a player in a game server (the same player can use one account to create corresponding virtual objects, i.e., virtual characters, under different game servers). The first communication information can be communication information carried by a preset information carrier in the game application, for example, an email carried by a mailbox in the game application, a message carried by a message board in the game application, and dynamic information carried by a dynamic display board (an information carrier for displaying object dynamics). Among them, the email can be a reward email in the game application, a system notification, or an email sent by other objects in the game application, the message can be a system message or a message sent by other objects in the game application, and the dynamic information can be the dynamic information of the target object or the dynamic information of other objects in the game application. The number of first communication information can be one or more, and the logic of storing and other processing each first communication information is similar. In this embodiment, one first communication information is used as an example for explanation.

[0052] The target server may be the first communication information received from other servers or terminal devices, and it may be a server for processing services related to the communication information carried by a preset communication carrier, for example, a mail server for receiving and controlling mail storage, a message management server for sending, receiving and controlling message storage, or a dynamic management server for receiving and controlling dynamic information storage.

[0053] Taking the first communication information as an email and the target server as an email server as an example, a player can invite other players to fight together in the game lobby to trigger the completion of a certain activity, or can trigger the completion of another activity by completing a single battle on the battle server; and the completion of an activity generally gives players a certain reward, which often appears in the form of sending a reward email to the player. The reward carried in the reward email may include but is not limited to at least one of the following: virtual props (for example, props that change properties), virtual equipment, virtual gold coins, experience points, name change cards, etc. When the player opens the mailbox interface, he can see the new email just received.

[0054] For example, in combination Figure 3, players initiate and complete a battle associated with an activity task on the battle server through the game client running on their terminal devices. When the battle ends, the battle server notifies the activity server, and the player actively or passively returns to the game lobby. Here, the activity server and the battle server are independent of each other, and only the settlement information of the battle is notified to the activity server after the battle ends. The activity server determines whether the activity task is completed. If completed, it sends a reward email to the mail server.

[0055] Here, the communication protocol used for communication between the game client and the mail server may be the Transmission Control Protocol (TCP), which is a connection-oriented, reliable, byte stream-based transport layer communication protocol; the communication protocol used for communication between the game client and the mail server may be the User Datagram Protocol (UDP), which is a connectionless transport layer protocol in the Open System Interconnection (OSI) reference model, providing a simple, unreliable transaction-oriented information transmission service.

[0056] Step S204: in response to the received first communication information, the first communication information is stored in a storage instance in the information storage cluster, wherein the information storage cluster is used to store the communication information carried by the preset information carrier.

[0057] In this embodiment, the communication information carried by the preset information carrier can be stored in a target database, where the target database can correspond to a distributed storage system, which can include multiple storage instances, and the information stored in the distributed storage system is stored in each storage instance. The above-mentioned target database can be an information storage cluster for storing the communication information carried by the preset information carrier, and the information storage cluster can also store the communication information carried by other information carriers or other information.

[0058] For example, Figure 4 As shown, the management layer of the distributed storage system may include an access layer and a storage layer, wherein the storage layer may include multiple nodes, and each node may be a storage instance.

[0059] In response to the received first communication information, the target server may store the first communication information in a storage instance in the information storage cluster. The stored storage instance may be any storage instance in the information storage cluster. The communication information corresponding to the target object may be stored in multiple storage instances in the information storage cluster. Here, the information storage cluster may be a non-relational database, such as Memcache (a distributed high-speed cache system), Redis, etc., or other self-constructible distributed systems.

[0060] Step S206: write the first information index into the index data corresponding to the target object, wherein the first information index is used to indicate a storage instance storing the first communication information, so as to pull the first communication information.

[0061] After storing the first communication information in a storage instance, the target server may determine the first information index corresponding to the first communication information, and write the first information index to the index data corresponding to the target object. The first information index may be used to store the storage instance of the first communication information, which may save the correspondence between the object identifier of the target object and the storage instance storing the first communication information in the form of a key-value, or save the correspondence between the object identifier of the target object and the storage location of the first communication information in the corresponding storage instance, so that the first communication information may be pulled from the storage instance storing the first communication information based on the first information index.

[0062] Here, the storage layer of communication information (for example, email storage layer) can be divided into two parts: one is the index layer, which only records the information index of the communication information, and the other is the data layer, which records the specific content of the communication information corresponding to the information index. The information identifier (Identifier, ID) of the communication information can be recorded in the information index of a communication information. The information identifier can be the storage path of the communication information, so that only the storage path of the communication information needs to be stored in the index layer, which improves the utilization rate of storage resources. It should be noted that the index layer and the data layer are only logical divisions (that is, logically divided into two parts, the index and the content), and the information index and the communication information may be stored in the same storage instance.

[0063] Taking email as an example, the index layer only records the player's email ID (which can be the storage path of the corresponding email content). The meaning of the index layer refers to: the location where the email content corresponding to a certain email (ID) exists, and the data layer records the specific content of the email corresponding to the email ID. Here, in the index layer, it can store index information in a key-value manner, where the key is the object ID (playerID), and the value can be multiple email IDs. Multiple email IDs can be a structure, for example, a protobuf message (containing N IDs), which is then serialized into a string, and the value saves this string. As for the data layer, it can save the correspondence between the email ID (key) and the email content (value) in the form of key-value.

[0064] See also Figure 5 When you need to find all the email contents of a player, you can first route to the machine where the index layer is located (which can be a storage instance) based on the player ID (for example, the key is player_1001) to obtain the index data; after obtaining the index data, parse the index data, and the parsed content is multiple email IDs; according to the email ID (for example, the key is mail_1), you can route to the final landing machine of the email content to obtain the email content. Through the above email content acquisition method, you can eventually get all the email content.

[0065] Here, by separating the email ID from the email content, the email storage layer is logically divided into the index layer and the data layer, which can greatly expand the number of stored emails without much change in performance. When searching the index layer and the data layer, there is a routing layer in the middle, which can be a configured routing relationship (can be manually configured), for example, the address mapping relationship between the key and the host, or the machine address can be directly calculated through a certain algorithm. For example, if the key is 1001, the target machine address can be obtained through a consistent hashing algorithm (with all machines as nodes).

[0066] It should be noted that due to the limitation of the key and value of the storage database, in the generic table, the length of a single key field is 1024B, and the size of a single record is limited to 1MB; and an email ID occupies about 8Byte, so a record can accommodate about 130,000 email IDs. The index layer and data layer here are only logical layers, and are actually still stored in a certain record of the database (which can be a distributed database). Different records can be distributedly stored, that is, they can be on the same host or different hosts. If the storage performance is limited, they can be evenly dispersed to each host, thereby improving the service performance of the entire service.

[0067] Through the embodiments provided in the present application, first communication information corresponding to a target object in a game application is received, wherein the first communication information is communication information carried by a preset information carrier in the game application; in response to the received first communication information, the first communication information is stored in a storage instance in an information storage cluster, wherein the information storage cluster is used to store communication information carried by the preset information carrier; the first information index is written into index data corresponding to the target object, wherein the first information index is used to indicate the storage instance storing the first communication information, so as to pull the first communication information, thereby solving the problem of poor integrity of communication information acquisition due to limited capacity of the information carrier in the communication information processing method in the related art, and improving the integrity of communication information acquisition.

[0068] As an optional solution, after writing the first information index into the index data corresponding to the target object, the method further includes:

[0069] S11, receiving a first information pull request sent by a client of a target object, wherein the first information pull request is used to request to pull communication information to be displayed in a target information carrier, and the target information carrier is a preset information carrier in the client of the target object;

[0070] S12, in response to the received first information pull request, pull the index data corresponding to the target object to obtain a set of second information indexes, wherein the set of second information indexes has a one-to-one correspondence with the communication information to be displayed in the target information carrier of the client of the target object;

[0071] S13, according to each second information index in a group of second information indexes, pull the second communication information corresponding to each second information index from the storage instance indicated by each second information index to obtain a group of second communication information to be displayed;

[0072] S14, sending a set of second communication information to the client of the target object, so that the set of second communication information is displayed in the target information carrier.

[0073] In this embodiment, the target object can send an information pull request to the target server through a game client (i.e., target client) running on its terminal device (i.e., target terminal device) to request to pull the communication information corresponding to the target object. The pulled information may be all the communication information corresponding to the target object, or part of the communication information corresponding to the target object. The target client may display a game interface of a game application, and a carrier icon of a target information carrier may be displayed in the game interface. The target information carrier is a preset information carrier in the target client. In response to a selection operation performed on the carrier icon of the target information carrier, or a display page switching operation performed on the target information carrier, a first information pull request may be generated. The first information pull request may be used to request to pull the communication information to be displayed in the target information carrier. The first information pull request may carry the object identifier of the target object, and may also carry other information, for example, indication information for indicating the range of the communication information to be displayed.

[0074] Here, the communication information can be displayed on the target information carrier through a display page (i.e., a communication information page), and each display page allows a maximum of a specified number of communication information (e.g., 10 emails) to be displayed, and the switching of the display page can be triggered by a click operation, a slide operation, or other operations. Each switching of the display page can trigger a request to send an information pull request to the target server to request to pull the communication information displayed in the switched display page, or all the communication information can be pulled at once and stored locally in the target terminal device, and each time the display page needs to be switched, the communication information to be displayed is directly selected from the locally stored communication information.

[0075] The target client can send the generated first information pull request to the target server. In response to receiving the first information pull request, the target server can pull the index data corresponding to the target object to obtain a set of second information indexes. The method of pulling the index data corresponding to the target object can be: according to the object identifier of the target object, determine the index storage host that stores the index data corresponding to the target object, and obtain the index data corresponding to the target object from the index storage host. Determining the index storage host according to the object identifier of the target object can be performed based on the routing relationship configured above, or according to the consistent hashing algorithm, or by other methods. A set of second information indexes corresponds one-to-one to the communication information to be displayed in the target information carrier of the client of the target object. A set of second information indexes can be information indexes of all the communication information of the target object, or information indexes of part of the communication information of the target object.

[0076] According to each second information index in a group of second information indexes, the target server can pull the second communication information corresponding to each second information index from the storage instance indicated by each second information index to obtain a group of second communication information to be displayed. The method of pulling the second communication information corresponding to each second information index can be: according to each second information index (which can be the storage path of the corresponding communication information), determine the information storage host storing the second communication information corresponding to each second information index, and obtain the corresponding second communication information from the determined information storage host. Determining the information storage host storing the corresponding second communication information according to the second information index can be performed based on the routing relationship configured above, or according to the consistent hashing algorithm, or it can be performed in other ways.

[0077] Considering that some second information indexes may not pull the corresponding second communication information, the number of second communication information included in a set of second communication information is less than or equal to the number of second information indexes included in a set of second information indexes. After pulling a set of second communication information, the target server can send a set of second communication information to the client of the target object (i.e., the target client). The target client can receive a set of second communication information returned by the target service and display a set of second communication information in the target information carrier.

[0078] For example, Figure 6 As shown, after logging into the game lobby, players can click the mailbox icon to enter the following Figure 7 The mailbox interface shown. Players can click on a certain email to read the email content. If the email has an attachment (usually a reward item), the player can collect the attachment by clicking or other operations. The collected attachment can be distributed to the player's warehouse or backpack, etc. In addition, by swiping up and down, players can flip through the previous page of emails, the next page of emails, etc. Here, when displaying emails on the mailbox interface, you can see the maximum number of emails, but it is not the actual mailbox capacity.

[0079] Through the embodiments provided in the present application, in response to a received information pull request, by first pulling index data and then reading corresponding communication information using the pulled information index, the accuracy of obtaining communication information can be improved.

[0080] As an optional solution, in response to the received first information pull request, index data corresponding to the target object is pulled to obtain a set of second information indexes, including:

[0081] S21, in response to the received first information pull request, pull the index data corresponding to the target object according to the object identifier of the target object, and parse a set of candidate information indexes from the index data corresponding to the target object;

[0082] S22, according to the maximum number of communication information allowed to be displayed in a communication information page in the target information carrier, filter out a group of second information indexes from a group of candidate information indexes, wherein a group of second information indexes are information indexes corresponding to the communication information to be displayed in the Nth communication information page of the target information carrier, N is a positive integer greater than or equal to 1, and the number of communication information pages allowed to be displayed in the target information carrier is positively correlated with the number of information indexes contained in the index data corresponding to the target object.

[0083] In this embodiment, in response to the received first information pull request, according to the object identifier of the target object, the target server may pull the index data corresponding to the target object in a manner similar to that in the aforementioned embodiment, and the index data corresponding to the target object may be a string containing one or more information indexes, for example, a string containing multiple email IDs. By parsing the index data corresponding to the target object, a set of candidate information indexes may be obtained, and the set of candidate information indexes may be information indexes corresponding to all communication information corresponding to the target object.

[0084] The number of communication information pages allowed to be displayed in the target information carrier is positively correlated with the number of information indexes contained in the index data corresponding to the target object, rather than being limited to the specified maximum number of communication information. For example, a maximum of 100 emails are allowed to be displayed in the mailbox. The communication information corresponding to the target object can be displayed in the form of a communication information page in the target information carrier, and the maximum number of communication information allowed to be displayed in a communication information page can be a fixed value Q, for example, 10, 15 or other values. The first information pull request can be used to request to pull the communication information to be displayed in the Nth communication information page, where N is a positive integer greater than or equal to 1, which can be the page number of the communication information page.

[0085] After obtaining a group of candidate information indexes, a group of second information indexes can be filtered out from the group of candidate information indexes according to the maximum number M of communication information allowed to be displayed in a communication information page, that is, the information index corresponding to the communication information to be displayed in the Nth communication information page of the target information carrier. The method of filtering a group of second information indexes can be: from a group of candidate information indexes, the candidate information indexes from the first candidate information index to the second candidate information index are filtered out to obtain a group of second information indexes, wherein the first candidate information index is the (M*N-M+1)th candidate information index, and the second candidate information index is the M*Nth candidate information index.

[0086] For example, Figure 8As shown, when the player clicks on the mailbox icon, a pull request for pulling the email list is initiated. In response to the received pull request, the mail system (mail server) first pulls the index layer data (i.e., index data) from the distributed database to obtain a list of all email IDs; then filters out the email IDs on page N (for example, 10 messages per page, page 2 pulls the email IDs located at positions 11 to 20), and then pulls the specific content through the email ID and returns it to the client.

[0087] In the related art, when pulling emails displayed in an email page, all email contents are pulled at once. If the package is too large, serious lag will occur when the network quality is poor. However, all email IDs are pulled first, and then the email IDs corresponding to the emails displayed in the email page are filtered out, so that only the required email contents need to be pulled from the database, thereby reducing the amount of data required to be transmitted and improving the efficiency of data transmission.

[0088] Here, since the generation of email IDs is self-incrementing, the email IDs are naturally in order from small to large, but the pulling position (that is, which part of the email IDs is currently pulled) is calculated by traversing from the first email ID, so it has nothing to do with the email ID itself.

[0089] Through the embodiments provided in the present application, the index data is first pulled and the information index of all communication information is parsed, and then the required communication information is filtered out from all communication information based on the communication information page to be displayed, which can improve the efficiency of information acquisition and the response speed of the pull request.

[0090] As an optional solution, after writing the first information index into the index data corresponding to the target object, the method further includes:

[0091] S31, receiving a first information deletion request sent by a client of a target object, wherein the first information deletion request is used to request deletion of a group of third communication information displayed in a target information carrier, the first information deletion request carries a third information index corresponding to each third communication information in the group of third communication information, and the target information carrier is a preset information carrier in the client of the target object;

[0092] S32: In response to the received first information deletion request, delete each third communication information from a storage instance storing each third communication information according to a third information index corresponding to each third communication information.

[0093] In this embodiment, the target object may send an information deletion request to the target server through the target client to request the deletion of the communication information corresponding to the target object, and the information index of the deleted communication information may be carried in the information deletion request. The target client may display a game interface of a game application, and the game interface may display all or part of the communication information carried by the target information carrier. In response to a selection operation performed on a group of third communication information displayed in the target information carrier, the target terminal may generate a first information deletion request, which may be used to request the deletion of the above-mentioned group of third communication information, and the first information deletion request may carry a third information index corresponding to each third communication information.

[0094] Here, communication information can be displayed on the target information carrier through a display page (i.e., a communication information page), each display page allows a maximum of a specified number of communication information to be displayed, and a group of communication information to be deleted can be selected by selecting one operation action or a combination of multiple operation actions. The group of communication information to be deleted can be located in the same display page or in multiple display pages.

[0095] The target client may send the generated first information deletion request to the target server. In response to receiving the first information deletion request, the target server may first extract the third information index corresponding to each third communication information to be deleted from the first information deletion request, and then delete each third communication information from the storage instance storing each third communication information according to the third information index corresponding to each third communication information. The method of deleting each third communication information from the storage instance storing each third communication information may be: determining the information storage host of each third communication information according to the third information index corresponding to each third communication information (which may be the storage path of the corresponding communication information), and deleting each third communication information from the determined information storage host. Determining the information storage host of each third communication information according to the third information index corresponding to each third communication information may be performed based on the routing relationship configured above, or may be performed according to a consistent hashing algorithm, or may be performed in other ways.

[0096] Considering that the third communication information corresponding to some third information indexes may not be deleted successfully, after deleting each third communication information from the storage instance storing each third communication information, the deletion result of each third communication information can be verified according to the third information index corresponding to each third communication information, and for the verified undeleted third communication information, that is, the undeleted communication information, the undeleted communication information can be deleted from the storage instance of the undeleted communication information according to the third information index corresponding to the undeleted communication information. Optionally, the target server can send an information update message to the target client to update the communication information displayed in the target information carrier, that is, remove the deleted communication information displayed in the target communication carrier.

[0097] For example, when a player selects an email in the email list to delete, the target client can send an email deletion request to the email system, and the email deletion request carries the email ID of the email to be deleted. The email system can delete the email content of the email in the storage instance corresponding to the distributed database according to the email ID carried in the email deletion request.

[0098] Through the embodiments provided in the present application, by carrying the information index (information identifier) ​​corresponding to the communication information to be deleted in the information deletion request and directly deleting the corresponding communication information according to the carried information index, the convenience and efficiency of deleting the communication information can be improved.

[0099] As an optional solution, after deleting each third communication information from the storage instance storing each third communication information, the method further includes:

[0100] S41, when there is fourth communication information that fails to be deleted in a group of third communication information, controlling the fourth communication information to be displayed in the target information carrier;

[0101] S42, receiving a second information deletion request sent by a client of the target object, wherein the second information deletion request is used to request deletion of fourth communication information, and the second information deletion request carries a fourth information index corresponding to the fourth communication information;

[0102] S43: In response to the received second information deletion request, delete the fourth communication information from the storage instance storing the fourth communication information according to the fourth information index.

[0103] Due to abnormal information deletion or other reasons, some third communication information in a group of third communication information may fail to be deleted. In order to ensure the accuracy of information display and avoid the impact of repeated deletion of the same communication message on the response speed of information deletion request, if there is fourth communication information that fails to be deleted in a group of third communication information, the target server can control the display of the fourth communication information in the target information carrier.

[0104] The target object may select the fourth communication information displayed in the target information carrier, and then try to delete the fourth communication information. The target client may send a second information deletion request carrying a fourth information index corresponding to the fourth communication information to the target server to request to delete the fourth communication information. After receiving the second information deletion request, the target server may delete the fourth communication information from the storage instance storing the fourth communication information in a manner similar to that in the aforementioned embodiment, which has been explained and will not be repeated here.

[0105] For example, due to network failure or other reasons, the email content is not cleaned up, that is, the deletion of the email content with a certain email ID as the key fails. At this time, the player can still see the email in the email list, such as Fig. 9 As shown, the player selects mails 1 to 5 to delete, and all mails except mail 4 have been deleted, but mail 4 is still displayed in the mail list. At this time, the player can try to delete mail 4 again.

[0106] Through the embodiments provided in the present application, by continuing to display the communication information that fails to be deleted in the information carrier, the accuracy of information display can be guaranteed and the response speed of the information deletion request can be improved.

[0107] As an optional solution, after receiving the first information deletion request sent by the client of the target object, the method further includes:

[0108] S51, in response to the received first information deletion request, deleting the third information index corresponding to each third communication information from the index data corresponding to the target object.

[0109] In response to the received first information deletion request, the target server can only control the deletion of each third communication information from the storage instance storing each third communication information, without processing the third information index corresponding to each third communication information. The above information index processing method will not only waste the storage space of the index data, but also, considering that the storage space occupied by the index data corresponding to an object is limited, the information index corresponding to the deleted communication information is prone to storage space being full, resulting in the inability to store the information index corresponding to the subsequently received communication information, resulting in the failure of communication information storage. In addition, when it is necessary to pull communication information, there is also a problem of low efficiency in obtaining communication information due to too many invalid information indexes.

[0110] In this embodiment, in order to save the storage space occupied by information storage and ensure the integrity and efficiency of communication information acquisition, the target server can delete the third information index corresponding to each third communication information from the index data corresponding to the target object. Deletion of the third information index corresponding to each third communication information can be performed after receiving the first information deletion request, that is, regardless of whether the third communication information is successfully deleted, the corresponding third information index will be deleted. It can also be performed after deleting each third communication information from the storage instance storing each third communication information, that is, after deleting the third communication information from the storage instance storing the third communication information, the third information index corresponding to the third communication information will be deleted from the index data corresponding to the target object.

[0111] For example, Fig.10 As shown in the figure, when the player deletes the email in the mailbox by himself, the game client can send the email deletion request to the email system. After receiving the email deletion request, the email system first deletes the corresponding email content from the distributed database with the email ID as the key, and then deletes the email ID from the index layer. This can avoid the situation where the email content is not cleaned up due to network failure.

[0112] Through the embodiments provided in the present application, by deleting the information index corresponding to the communication information, the storage space occupied by the information storage can be saved, while ensuring the integrity and efficiency of the acquisition of the communication information.

[0113] As an optional solution, after deleting the third information index corresponding to each third communication information from the index data corresponding to the target object, the method further includes:

[0114] S61, when there is target communication information whose corresponding information index fails to be deleted in a group of third communication information, receiving a second information pull request sent by a client of the target object, wherein the second information pull request is used to request to pull the communication information to be displayed in the target information carrier;

[0115] S62, in response to the received second information pull request, pull the index data corresponding to the target object to obtain a set of fifth information indexes, wherein the set of fifth information indexes corresponds one-to-one to the communication information to be displayed in the target information carrier, and the set of fifth information indexes includes an information index corresponding to the target communication information;

[0116] S63, when no communication information is pulled from the storage instance indicated by the information index corresponding to the target communication information according to the information index corresponding to the target communication information, deleting the information index corresponding to the target communication information from the index data corresponding to the target object;

[0117] S64, according to each other information index in a set of fifth information indexes except the information index corresponding to the target communication information, pull the fifth communication information corresponding to each other information index from the storage instance indicated by each other information index to obtain a set of fifth communication information to be displayed;

[0118] S65: Send a set of fifth communication information to the client of the target object, so that the set of fifth communication information is displayed in the target information carrier.

[0119] After deleting the third information index corresponding to each third communication information from the index data corresponding to the target object, the deletion result of the third information index corresponding to each third communication information can be verified. The verification method can be: pull the index data corresponding to the target object according to the object identifier of the target object, parse a group of information indexes from the index data corresponding to the target object, and determine whether there is a third information index corresponding to each third communication information in the group of information indexes, so as to verify the deletion result of the third information index corresponding to each third communication information. In the case of determining that there is a target communication information in a group of third communication information whose corresponding information index has failed to be deleted, you can retry to delete the third information index corresponding to the target communication information from the index data corresponding to the target object.

[0120] However, the verification method of the deletion result of the above-mentioned information index requires re-pulling the index data corresponding to the target object and parsing the pulled index data, resulting in a waste of computing resources and network resources. In this embodiment, when a subsequent information pull request is received, it can be determined whether the information index is valid based on whether the corresponding communication information can be found, thereby clearing the invalid information index. Since the cleaning operation of the invalid information index is associated with the communication information pulling process, the number of times the index data is pulled and parsed can be reduced, reducing the waste of computing resources and network resources.

[0121] In the case where there is target communication information in a set of third communication information for which the corresponding information index deletion fails, the target object can trigger the target client to generate and send a second information pull request to the target server in a manner similar to that in the aforementioned embodiment, so as to request to pull the communication information to be displayed in the target information carrier. In response to the received second information pull request, the target server can pull the index data corresponding to the target object in a manner similar to that in the aforementioned embodiment, and obtain a set of fifth information indexes, wherein the obtained set of fifth information indexes includes the information index corresponding to the target communication information.

[0122] Since the target communication information has been deleted successfully, according to the information index corresponding to the target communication information, the target server has not pulled the communication information from the storage instance indicated by the information index corresponding to the target communication information, and the target server can delete the information index corresponding to the target communication information from the index data corresponding to the target object. For each other information index in a set of fifth information indexes except the information index corresponding to the target communication information, the target server can pull the fifth communication information corresponding to each other information index from the storage instance indicated by each other information index to obtain a set of fifth communication information to be displayed, where the number of fifth communication information contained in a set of fifth communication information is less than the number of fifth information indexes contained in a set of fifth information indexes.

[0123] For example, if the email content with the email ID as the key is deleted successfully, but the index data storing the email ID is deleted but failed, when the player views the email list, the email system searches for the corresponding email content by the email ID and finds that the data does not exist. At this time, the email system can clear the email ID and the player cannot see the deleted email.

[0124] Through the embodiments provided by the present application, when an information pull request is subsequently received, whether the information index is valid is determined based on whether the corresponding communication information can be found, thereby cleaning up invalid information indexes, which can reduce the number of times the index data is pulled and parsed, and reduce the waste of computing resources and network resources.

[0125] As an optional solution, the above method also includes:

[0126] S71, obtaining an information index whose writing time is located after a group of fifth information indexes from the index data corresponding to the target object, to obtain a first newly added information index;

[0127] S72, according to the first newly added information index, pull communication information corresponding to the first newly added information index from the storage instance indicated by the first newly added information index, wherein a group of fifth communication information also includes communication information corresponding to the first newly added information index.

[0128] The communication information corresponding to the target object may be displayed in the form of a communication information page in the target information carrier, the maximum number of communication information allowed to be displayed in a communication information page may be a fixed value Q, and the second information pull request may be used to request to pull the communication information to be displayed in a certain communication information page. If there is an information index located after a set of fifth information indexes in the index data corresponding to the target object, the number of fifth information indexes contained in a set of fifth information indexes is Q, and since the information index corresponding to the target communication information does not pull the communication information, the number of fifth communication information contained in the pulled set of fifth communication information is less than Q.

[0129] In order to ensure the integrity of the communication information display, the target server can obtain the information index whose write time is located after a group of fifth information indexes from the index data corresponding to the target object, and obtain the first newly added information index. The number of first newly added information indexes and the number of target communication information can be the same; according to the first newly added information index, the target server can pull the communication information corresponding to the first newly added information index from the storage instance indicated by the first newly added information index, and add the pulled communication information corresponding to the first newly added information index to a group of fifth communication information, which also includes the communication information corresponding to the first newly added information index.

[0130] For example, the maximum number of emails that can be seen on the mailbox interface is 100. When the player's emails exceed 100, the player can only see a maximum of 100 emails. When the player deletes emails in the email list, the previously invisible emails will be pushed out until the number of emails reaches 100, or the player has no new emails.

[0131] Through the embodiments provided by the present application, when there is an invalid information index, the integrity of the communication information displayed in the information carrier can be ensured by obtaining a subsequent information index and pulling the corresponding communication information for display.

[0132] As an optional solution, after deleting each third communication information from the storage instance storing each third communication information, the method further includes:

[0133] S81, acquiring a group of second newly added information indexes from index data corresponding to the target object according to the number of third communication information that is successfully deleted from a group of third communication information;

[0134] S82, according to each second new information index in a group of second new information indexes, pull the new communication information corresponding to each second new information index from the storage instance indicated by each second new information index to obtain a group of new communication information to be displayed;

[0135] S83, sending a set of newly added communication information to the client of the target object, so as to update the communication information displayed in the target information carrier with the set of newly added communication information.

[0136] The deleted set of third communication information may be the communication information currently displayed in the target information carrier. In order to avoid incomplete communication information displayed in the target information carrier due to the deletion of the displayed communication information, in this embodiment, a set of second newly added information indexes may be obtained from the index data corresponding to the target object according to the number of third communication information successfully deleted in the set of third communication information, and the number of second newly added information indexes in the set of second newly added information indexes is the same as the number of third communication information successfully deleted. According to each second newly added information index in the set of second newly added information indexes, the target server may respectively pull the communication information corresponding to each second newly added information index from the storage instance indicated by each second newly added information index, obtain a set of newly added communication information to be displayed, and send the obtained set of newly added communication information to the target client.

[0137] After receiving a group of newly added communication information, the target client can update the communication information displayed in the target information carrier. If, before sending the first information deletion request, the communication information displayed in the target information carrier includes a group of other communication information in addition to a group of third communication information, the display position of the group of other communication information in the target information carrier can be adjusted so that the group of other communication information is displayed in sequence on the target information carrier, and the group of newly added communication information is displayed in sequence after the group of other communication information.

[0138] like Fig.11 As shown, the email list displayed in the mailbox interface includes emails 1 to 10. The player selects emails 1 to 5 to delete. After emails 1 to 5 are deleted, emails 6 to 10 are displayed at the front of the current email page, and the invisible emails 11 to 15 are pushed out.

[0139] Through the embodiments provided in the present application, subsequent communication information is obtained according to the number of deleted communication information and displayed on the information carrier, so that the integrity of the communication information displayed in the information carrier can be guaranteed.

[0140] As an optional solution, writing the first information index into the index data corresponding to the target object includes:

[0141] S91: Write the storage path of the first communication information as a first information index into index data corresponding to the target object.

[0142] In this embodiment, in order to save storage space occupied by information storage and improve the convenience of information acquisition, the storage path of the communication information can be used as the information index of the communication information to store and read the communication information. For the first communication information, the target server can write the storage path of the first communication information as the first information index into the index data corresponding to the target object.

[0143] Here, the information index corresponding to the communication information may be the information identifier of the communication information, and the information identifier of the communication information may be the storage path of the communication information. By using the storage path of the communication information as the information index corresponding to the communication information, there is no need to use other information identifiers to establish an association relationship between the target object and the storage path of the communication information.

[0144] Through the embodiments provided in the present application, the storage path of the communication information is used as the information index of the communication information to store and read the communication information, which can save the storage space occupied by the information storage and improve the convenience of information acquisition.

[0145] As an optional solution, writing the first information index into the index data corresponding to the target object includes:

[0146] S101, using an object identifier of a target object to pull first index data corresponding to the target object, wherein the first index data includes a set of page indexes, and each page index in the set of page indexes is used to route to a storage location of an information index page in a set of information index pages included in second index data corresponding to the target object;

[0147] S103, when the number of information indexes stored in the latest first information index page in a group of information index pages is less than a first number threshold, write the first information index into the first information index page, wherein the first number threshold is the maximum number of information indexes allowed to be stored in the first information index page.

[0148] In order to further expand the amount of stored communication information, the index layer can be layered again to establish a secondary index. First, the information index list is found through the secondary index, and then the specific communication information is found through the information index, so as to further expand the number of information indexes that the index layer can accommodate. Taking the mailbox of a mobile game as an example, by separating the email ID from the email content, the storage capacity of the email can be greatly improved, but it will still be limited by the hard upper limit (the number of email IDs that can be accommodated). Based on the characteristics of mobile games, the number of emails received is positively correlated with the player's activity level. In general, the storage capacity of emails is sufficient. Taking the general table in a distributed database as an example, a record can accommodate approximately 130,000 email IDs. If further expansion is required, such as Fig.12 As shown, the index layer can be further layered to establish a secondary index: first, the email ID list is found through the secondary index, and then the specific email content is found through the email ID. In this way, the number of email IDs that can be accommodated by the index layer becomes 130,000*130,000=16.9 billion.

[0149] In a scenario where a secondary index is used, under the primary index, the correspondence between the object identifier and the page index of the information index page is saved, and under the secondary index, the correspondence between the page index of the information index page and the information index corresponding to the communication information is saved in the information index page. For a target object, the index data corresponding to the target object is the second index data, and the second index data includes a set of information index pages, each of which is used to record one or more information indexes corresponding to the communication information of the target object. The maximum number of information indexes allowed to be recorded in each information index page is the first number threshold.

[0150] After receiving the first communication information, the target server may first use the object identifier of the target object to pull the first index data corresponding to the target object, where the first index data includes a set of page indexes, each page index being used to route to the storage location of an information index page in the set of information index pages. If the number of information indexes stored in the latest first information index page in a set of information index pages is less than a first quantity threshold, the first information index may be written to the first information index page, where the first quantity threshold may be the maximum number of information indexes allowed to be stored in the first information index page, or a value smaller than the maximum number of information indexes allowed to be stored in the first information index page.

[0151] Through the embodiments provided in the present application, the index layer is further layered to establish a secondary index, which can further expand the number of information indexes that can be accommodated by the index layer and improve the integrity of communication information storage.

[0152] As an optional solution, writing the first information index into the index data corresponding to the target object further includes:

[0153] S111, when the number of information indexes stored in the latest first information index page in a group of information index pages reaches a first number threshold, create a new information index page for the target object to obtain a second information index page, wherein the first number threshold is the maximum number of information indexes allowed to be stored in the first information index page;

[0154] S112, writing a page index corresponding to the second information index page into the first index data, and writing the first information index into the second information index page.

[0155] If the number of information indexes stored in the latest first information index page in a group of information index pages reaches a first number threshold, it is possible to check whether there is an information index page in the group of information index pages whose number of stored information indexes does not reach the first number threshold. If so, the first information index can be written into the information index page. However, since the information indexes are stored in an unordered manner, all information index pages need to be traversed when index information needs to be read, which reduces the efficiency of information search.

[0156] In this embodiment, if the number of information indexes stored in the latest first information index page in a group of information index pages reaches a first quantity threshold, the target server can create a new information index page for the target object, obtain a second information index page, write the page index corresponding to the second information index page into the first index data, and write the first information index into the second information index page, thereby completing the writing of the first information index into the second index data (the second index data includes the second information index page).

[0157] For example, when pulling emails with object ID 1001, first find the first-level index data according to the key player_1001, and the parsed content is the page identifier (for example, page number) of the information index page contained therein; then, find the second-level index data through the page identifier (for example, the key is page_1), and the parsed content is the email ID contained in the information index page; finally, pull the email content through the email ID (for example, the key is mail_1), and by using each email ID in each information index page to pull the corresponding email content, emails from all information index pages can be pulled.

[0158] Through the embodiments provided in the present application, after an information index page is full, by creating a new information index page and writing the information index into the new information index page, the convenience of index information storage can be improved, and at the same time, the efficiency of information search can be improved.

[0159] As an optional solution, before writing the first information index into the index data corresponding to the target object, the method further includes:

[0160] S121, when the number of information indexes corresponding to the target object reaches a second number threshold, determining a group of historical information indexes to be cleared in the index data corresponding to the target object, wherein the second number threshold is a maximum number of information indexes allowed to be stored in the index data corresponding to the target object;

[0161] S122: Clear a group of historical information indexes and communication information corresponding to each historical information index in the group of historical information indexes.

[0162] Before writing the first information index, the target server may first determine whether the number of information indexes corresponding to the target object reaches a second number threshold, where the second number threshold may be the maximum number of information indexes allowed to be stored in the index data corresponding to the target object, or a value smaller than the maximum number of information indexes allowed to be stored in the index data corresponding to the target object. If the number of information indexes corresponding to the target object reaches the second number threshold, the target server may determine a group of historical information indexes to be cleared in the index data corresponding to the target object, and clear a group of historical information indexes and the communication information corresponding to each historical information index in a manner similar to that in the aforementioned embodiment. For example, the communication information corresponding to each historical information index may be cleared first, and then a group of historical information indexes may be cleared.

[0163] A group of historical information indexes may be information indexes that meet information clearing conditions in the index data corresponding to the target object. The information clearing conditions may be: the corresponding communication information is received at the earliest time, the corresponding communication information is plain text, or other information clearing conditions. The number of historical information indexes included in a group of historical information indexes may be one or more, which may be all information indexes that meet the information clearing conditions in the index data corresponding to the target object, or may be a specified number of information indexes that meet the information clearing conditions. In this embodiment, there is no limitation on a group of historical information indexes.

[0164] For example, Fig.13 As shown, when the mail system receives multiple mails from other systems, it checks whether it exceeds the hard limit (the number of mail IDs that a single record in the database can accommodate, for example, 130,000). If it exceeds the hard limit, a batch of historical mails are cleared until there is space to accommodate new mails; finally, the mail content is written and the index is established.

[0165] Through the embodiments provided in the present application, when the number of information indexes corresponding to an object reaches a specified number threshold, the success rate of writing the information indexes can be improved by clearing some historical information indexes and corresponding communication information.

[0166] As an optional solution, when the number of information indexes corresponding to the target object reaches a second number threshold, determining a group of historical information indexes to be cleared in the index data corresponding to the target object includes:

[0167] S131, when the number of information indexes corresponding to the target object reaches a second number threshold, determine a specified number of historical information indexes with the earliest writing time in the index data corresponding to the target object as a group of historical information indexes to be cleared.

[0168] In this embodiment, the historical information indexes can be cleared in the order of writing time. If the number of information indexes corresponding to the target object reaches the second number threshold, a specified number of historical information indexes with the earliest writing time in the index data corresponding to the target object can be determined as a group of historical information indexes to be cleared. The specified number can be a fixed value or the number of information indexes included in the first information index.

[0169] For example, when the mail system receives multiple mails from other systems, it checks whether the hard limit is exceeded. If the hard limit is exceeded, the oldest batch of mails is cleared until there is space to accommodate new mails.

[0170] Through the embodiments provided by the present application, when the number of information indexes corresponding to an object reaches a specified number threshold, the reliability of information index deletion can be improved by clearing the information indexes corresponding to the oldest batch of communication information.

[0171] As an optional solution, before writing the first information index into the index data corresponding to the target object, the method further includes:

[0172] S141, when the number of communication information corresponding to the target object is greater than or equal to a third quantity threshold, clear the read communication information in the communication information corresponding to the target object and the information index corresponding to the read communication information, wherein the read communication information is the communication information that has been viewed by the target object, and the third quantity threshold is the maximum number of communication information that can be displayed in a preset information carrier in the client of the target object.

[0173] Before writing the first information index, the target server may first determine whether the number of communication information corresponding to the target object reaches a third number threshold, where the third number threshold may be the maximum number of communication information that can be displayed in the target information carrier. If the number of communication information corresponding to the target object reaches the third number threshold, the target server may clear the read communication information in the communication information corresponding to the target object, where the read communication information is the communication information that has been viewed by the target object, and the method of clearing the read communication information may be: clearing the read communication information in the communication information corresponding to the target object and the information index corresponding to the read communication information, and the order of clearing the read communication information and the information index corresponding to the read communication information may be: clearing the read communication information first, and then clearing the information index corresponding to the read communication information.

[0174] For example, Fig.13As shown in the figure, when the mail system receives multiple mails from other systems, the mail system first checks whether the number of received mails exceeds the soft limit (the player can see the maximum number of mails on the client interface, for example, 100). If it exceeds the soft limit, the player's read mails will be cleared first. Read mails usually mean that the player has indeed received the reward in the mail (for reward mails), and deleting read mails has almost no effect on the player.

[0175] Here, you can use the email processing rules to inform players that they will clean up the read emails. The cleanup operation will be performed after the number of received emails reaches the specified upper limit, thereby guiding players to maintain the habit of reading emails in a timely manner. In addition, most emails with attachments are triggered by activities. Not receiving them means that players do not care about the activities. By configuring email cleaning rules, you can increase players' attention and participation in activities, thereby increasing players' activity.

[0176] According to the embodiments provided by the present application, when the amount of communication information corresponding to an object reaches a specified amount threshold, the timeliness of displaying the communication information can be improved by clearing the read communication information and its corresponding information index.

[0177] As an optional solution, after clearing the read communication information and the information index corresponding to the read communication information in the communication information corresponding to the target object, the method further includes:

[0178] S151, when the number of updated communication information corresponding to the target object is greater than or equal to a third number threshold, clear the plain text communication information in the updated communication information corresponding to the target object and the information index corresponding to the plain text communication information, wherein the plain text communication information is communication information containing only text.

[0179] In this embodiment, before writing the first information index, when it is determined that the number of communication information corresponding to the target object is greater than or equal to the third quantity threshold, the target server may also clear the plain text communication information in the communication information corresponding to the target object, that is, the communication information containing only text. The cleared plain text communication information may be read communication information or unread communication information.

[0180] As an optional implementation, clearing the plain text communication information may be performed after clearing the read communication information in the communication information corresponding to the target object, that is, if the number of communication information corresponding to the target object is greater than or equal to a third number threshold, the read communication information in the communication information corresponding to the target object and the information index corresponding to the read communication information are cleared; if the number of updated communication information corresponding to the target object is still greater than or equal to the third number threshold, the plain text communication information in the updated communication information corresponding to the target object and the information index corresponding to the plain text communication information are cleared.

[0181] As another optional implementation, clearing the plain text communication information may be performed before clearing the read communication information in the communication information corresponding to the target object, that is, if the number of communication information corresponding to the target object is greater than or equal to a third number threshold, the plain text communication information in the communication information corresponding to the target object and the information index corresponding to the plain text communication information are cleared; if the number of updated communication information corresponding to the target object is still greater than or equal to the third number threshold, the read communication information in the updated communication information corresponding to the target object and the information index corresponding to the read communication information are cleared.

[0182] Optionally, the execution order of determining whether the number of information indexes corresponding to the target object reaches a second quantity threshold and determining whether the number of communication information corresponding to the target object reaches a third quantity threshold can be configured as needed. It is possible to first determine whether the number of communication information corresponding to the target object reaches the third quantity threshold, and then determine whether the number of information indexes corresponding to the target object reaches the second quantity threshold. It is also possible to first determine whether the number of information indexes corresponding to the target object reaches the second quantity threshold, and then determine whether the number of communication information corresponding to the target object reaches the third quantity threshold.

[0183] Optionally, clearing historical communication information, clearing read communication information and clearing plain text communication information can be arbitrarily combined with determining whether the number of information indexes corresponding to the target object reaches a second number threshold and determining whether the number of communication information corresponding to the target object reaches a third number threshold, that is, when the number of information indexes corresponding to the target object reaches the second number threshold, at least one of clearing historical communication information, clearing read communication information and clearing plain text communication information can be executed, and when the number of communication information corresponding to the target object reaches the third number threshold, at least one of clearing historical communication information, clearing read communication information and clearing plain text communication information can be executed.

[0184] For example, Fig.13As shown, when the mail system receives multiple mails from other systems, the mail system first checks whether the number of received mails exceeds the soft upper limit. If it exceeds the soft upper limit, the read mails from the players are cleared first. After clearing the read mails, if it still exceeds the soft upper limit, the plain text mails (i.e., mails without any rewards) are cleared.

[0185] Through the embodiments provided by the present application, when the amount of communication information corresponding to an object reaches a specified amount threshold, the timeliness of the communication information display can be improved by clearing the plain text communication information and its corresponding information index.

[0186] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0187] According to another aspect of an embodiment of the present application, a communication information processing device for implementing the above communication information processing method is also provided. Fig.14 is a structural block diagram of an optional communication information processing device according to an embodiment of the present application, such as Fig.14 As shown, the apparatus may include:

[0188] The first receiving unit 1402 is used to receive first communication information corresponding to a target object in the game application, wherein the first communication information is communication information carried by a preset information carrier in the game application;

[0189] The storage unit 1404 is connected to the first receiving unit 1402, and is used to store the first communication information in a storage instance in the information storage cluster in response to the received first communication information, wherein the information storage cluster is used to store the communication information carried by the preset information carrier;

[0190] The writing unit 1406 is connected to the storage unit 1404 and is used to write the first information index into the index data corresponding to the target object, wherein the first information index is used to indicate the storage instance storing the first communication information so as to pull the first communication information.

[0191] It should be noted that the first receiving unit 1402 in this embodiment can be used to execute the above step S202, the storage unit 1404 in this embodiment can be used to execute the above step S204, and the writing unit 1406 in this embodiment can be used to execute the above step S206.

[0192] Through the embodiments provided in the present application, first communication information corresponding to a target object in a game application is received, wherein the first communication information is communication information carried by a preset information carrier in the game application; in response to the received first communication information, the first communication information is stored in a storage instance in an information storage cluster, wherein the information storage cluster is used to store communication information carried by the preset information carrier; the first information index is written into index data corresponding to the target object, wherein the first information index is used to indicate the storage instance storing the first communication information, so as to pull the first communication information, thereby solving the problem of poor integrity of communication information acquisition due to limited capacity of the information carrier in the communication information processing method in the related art, and improving the integrity of communication information acquisition.

[0193] As an optional solution, the above device also includes:

[0194] A second receiving unit is used to receive a first information pull request sent by a client of the target object after writing the first information index into the index data corresponding to the target object, wherein the first information pull request is used to request to pull the communication information to be displayed in the target information carrier, and the target information carrier is a preset information carrier in the client of the target object;

[0195] A first pulling unit, configured to pull index data corresponding to a target object in response to a received first information pulling request, and obtain a set of second information indexes, wherein the set of second information indexes corresponds one-to-one to the communication information to be displayed in a target information carrier of a client of the target object;

[0196] A second pulling unit, configured to pull, according to each second information index in a group of second information indexes, second communication information corresponding to each second information index from a storage instance indicated by each second information index, to obtain a group of second communication information to be displayed;

[0197] The sending unit is used to send a set of second communication information to the client of the target object, so that the set of second communication information is displayed in the target information carrier.

[0198] Optional examples of this embodiment can refer to the examples shown in the above-mentioned communication information processing method, which will not be described in detail in this embodiment.

[0199] As an optional solution, the first pulling unit includes:

[0200] A first pulling module, configured to, in response to a received first information pulling request, pull index data corresponding to a target object according to an object identifier of the target object, and parse a set of candidate information indexes from the index data corresponding to the target object;

[0201] A filtering module is used to filter out a group of second information indexes from a group of candidate information indexes according to the maximum number of communication information allowed to be displayed in a communication information page in a target information carrier, wherein a group of second information indexes are information indexes corresponding to the communication information to be displayed in the Nth communication information page of the target information carrier, N is a positive integer greater than or equal to 1, and the number of communication information pages allowed to be displayed in the target information carrier is positively correlated with the number of information indexes contained in the index data corresponding to the target object.

[0202] Optional examples of this embodiment can refer to the examples shown in the above-mentioned communication information processing method, which will not be described in detail in this embodiment.

[0203] As an optional solution, the above device also includes:

[0204] A third receiving unit is used to receive a first information deletion request sent by a client of the target object after writing the first information index into the index data corresponding to the target object, wherein the first information deletion request is used to request deletion of a group of third communication information displayed in a target information carrier, the first information deletion request carries a third information index corresponding to each third communication information in the group of third communication information, and the target information carrier is a preset information carrier in the client of the target object;

[0205] The first deleting unit is configured to delete each third communication information from a storage instance storing each third communication information according to a third information index corresponding to each third communication information in response to the received first information deletion request.

[0206] Optional examples of this embodiment can refer to the examples shown in the above-mentioned communication information processing method, which will not be described in detail in this embodiment.

[0207] As an optional solution, the above device also includes:

[0208] a control unit, configured to, after deleting each third communication information from a storage instance storing each third communication information, control display of the fourth communication information in the target information carrier in the case where there is fourth communication information in a group of third communication information that fails to be deleted;

[0209] A fourth receiving unit, configured to receive a second information deletion request sent by a client of the target object, wherein the second information deletion request is used to request deletion of fourth communication information, and the second information deletion request carries a fourth information index corresponding to the fourth communication information;

[0210] The second deleting unit is configured to delete the fourth communication information from the storage instance storing the fourth communication information in response to the received second information deletion request and according to the fourth information index.

[0211] Optional examples of this embodiment can refer to the examples shown in the above-mentioned communication information processing method, which will not be described in detail in this embodiment.

[0212] As an optional solution, the above device also includes:

[0213] The third deleting unit is used to delete the third information index corresponding to each third communication information from the index data corresponding to the target object in response to the received first information deletion request after receiving the first information deletion request sent by the client of the target object.

[0214] Optional examples of this embodiment can refer to the examples shown in the above-mentioned communication information processing method, which will not be described in detail in this embodiment.

[0215] As an optional solution, the above device also includes:

[0216] A fifth receiving unit, configured to, after deleting the third information index corresponding to each third communication information from the index data corresponding to the target object, receive a second information pull request sent by the client of the target object in the case where there is target communication information in a group of third communication information for which the corresponding information index fails to be deleted, wherein the second information pull request is used to request to pull the communication information to be displayed in the target information carrier;

[0217] A third pulling unit is used to pull the index data corresponding to the target object in response to the received second information pulling request, and obtain a set of fifth information indexes, wherein the set of fifth information indexes corresponds one-to-one to the communication information to be displayed in the target information carrier, and the set of fifth information indexes includes an information index corresponding to the target communication information;

[0218] a fourth deleting unit, configured to delete the information index corresponding to the target communication information from the index data corresponding to the target object when no communication information is pulled from the storage instance indicated by the information index corresponding to the target communication information according to the information index corresponding to the target communication information;

[0219] a fourth pulling unit, configured to pull, according to each other information index in a set of fifth information indexes except the information index corresponding to the target communication information, the fifth communication information corresponding to each other information index from the storage instance indicated by each other information index, to obtain a set of fifth communication information to be displayed;

[0220] The first sending unit is used to send a set of fifth communication information to the client of the target object, so that the set of fifth communication information is displayed in the target information carrier.

[0221] Optional examples of this embodiment can refer to the examples shown in the above-mentioned communication information processing method, which will not be described in detail in this embodiment.

[0222] As an optional solution, the above device also includes:

[0223] A first acquisition unit is used to acquire, from the index data corresponding to the target object, an information index whose writing time is located after a group of fifth information indexes, to obtain a first newly added information index;

[0224] The fifth pulling unit is used to pull the communication information corresponding to the first new information index from the storage instance indicated by the first new information index according to the first new information index, wherein a group of fifth communication information also includes the communication information corresponding to the first new information index.

[0225] Optional examples of this embodiment can refer to the examples shown in the above-mentioned communication information processing method, which will not be described in detail in this embodiment.

[0226] As an optional solution, the above device also includes:

[0227] A second acquisition unit is used to acquire a group of second newly added information indexes from the index data corresponding to the target object according to the number of third communication information successfully deleted from a group of third communication information after deleting each third communication information from the storage instance storing each third communication information;

[0228] a sixth pulling unit, configured to pull, according to each second new information index in a group of second new information indexes, the new communication information corresponding to each second new information index from the storage instance indicated by each second new information index, to obtain a group of new communication information to be displayed;

[0229] The second sending unit is used to send a set of newly added communication information to the client of the target object, so as to update the communication information displayed in the target information carrier with the set of newly added communication information.

[0230] Optional examples of this embodiment can refer to the examples shown in the above-mentioned communication information processing method, which will not be described in detail in this embodiment.

[0231] As an optional solution, the writing unit includes:

[0232] The first writing module is used to write the storage path of the first communication information as the first information index into the index data corresponding to the target object.

[0233] Optional examples of this embodiment can refer to the examples shown in the above-mentioned communication information processing method, which will not be described in detail in this embodiment.

[0234] As an optional solution, the first writing module includes:

[0235] a pulling submodule, configured to pull first index data corresponding to the target object using the object identifier of the target object, wherein the first index data includes a set of page indexes, and each page index in the set of page indexes is used to route to a storage location of an information index page in a set of information index pages included in second index data corresponding to the target object;

[0236] The first writing submodule is used to write the first information index into the first information index page when the number of information indexes stored in the latest first information index page in a group of information index pages is less than a first number threshold, wherein the first number threshold is the maximum number of information indexes allowed to be stored in the first information index page.

[0237] Optional examples of this embodiment can refer to the examples shown in the above-mentioned communication information processing method, which will not be described in detail in this embodiment.

[0238] As an optional solution, the first writing module further includes:

[0239] A new submodule is used to create a new information index page for the target object to obtain a second information index page when the number of information indexes stored in the latest first information index page in a group of information index pages reaches a first number threshold, wherein the first number threshold is the maximum number of information indexes allowed to be stored in the first information index page;

[0240] The second writing submodule is used to write the page index corresponding to the second information index page into the first index data, and write the first information index into the second information index page.

[0241] Optional examples of this embodiment can refer to the examples shown in the above-mentioned communication information processing method, which will not be described in detail in this embodiment.

[0242] As an optional solution, the above device also includes:

[0243] a determining unit, configured to determine, before writing the first information index into the index data corresponding to the target object, a set of historical information indexes to be cleared in the index data corresponding to the target object when the number of information indexes corresponding to the target object reaches a second number threshold, wherein the second number threshold is a maximum number of information indexes allowed to be stored in the index data corresponding to the target object;

[0244] The first clearing unit is used to clear a group of historical information indexes and communication information corresponding to each historical information index in the group of historical information indexes.

[0245] Optional examples of this embodiment can refer to the examples shown in the above-mentioned communication information processing method, which will not be described in detail in this embodiment.

[0246] As an optional solution, the determining unit includes:

[0247] The second writing module is used to determine a specified number of historical information indexes with the earliest writing time in the index data corresponding to the target object as a group of historical information indexes to be cleared when the number of information indexes corresponding to the target object reaches a second number threshold.

[0248] Optional examples of this embodiment can refer to the examples shown in the above-mentioned communication information processing method, which will not be described in detail in this embodiment.

[0249] As an optional solution, the above device also includes:

[0250] A second clearing unit is used to clear the read communication information and the information index corresponding to the read communication information in the communication information corresponding to the target object before writing the first information index into the index data corresponding to the target object, when the number of communication information corresponding to the target object is greater than or equal to a third number threshold, wherein the read communication information is the communication information that has been viewed by the target object, and the third number threshold is the maximum number of communication information that can be displayed in a preset information carrier in the client of the target object.

[0251] Optional examples of this embodiment can refer to the examples shown in the above-mentioned communication information processing method, which will not be described in detail in this embodiment.

[0252] As an optional solution, the above device also includes:

[0253] A third clearing unit is used to clear the plain text communication information and the information index corresponding to the plain text communication information in the communication information corresponding to the target object after clearing the read communication information and the information index corresponding to the read communication information in the communication information corresponding to the target object, if the number of the updated communication information corresponding to the target object is greater than or equal to a third number threshold, wherein the plain text communication information is communication information containing only text.

[0254] Optional examples of this embodiment can refer to the examples shown in the above-mentioned communication information processing method, which will not be described in detail in this embodiment.

[0255] According to another aspect of the embodiment of the present application, an electronic device for implementing the above communication information processing method is also provided. The electronic device may be Figure 1 The terminal device or server shown in the figure. This embodiment is described by taking the electronic device as a terminal device as an example. Fig.15 As shown, the electronic device includes a memory 1502 and a processor 1504. The memory 1502 stores a computer program, and the processor 1504 is configured to execute the steps in any of the above method embodiments through the computer program.

[0256] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

[0257] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0258] S1, receiving first communication information corresponding to a target object in a game application, wherein the first communication information is communication information carried by a preset information carrier in the game application;

[0259] S2, in response to the received first communication information, storing the first communication information in a storage instance in an information storage cluster, wherein the information storage cluster is used to store the communication information carried by a preset information carrier;

[0260] S3: Write the first information index into the index data corresponding to the target object, wherein the first information index is used to indicate a storage instance storing the first communication information, so as to pull the first communication information.

[0261] Alternatively, a person skilled in the art may understand that: Fig.15 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, or a terminal device such as an MID or a PAD. Fig.15 The structure of the electronic device is not limited. Fig.15 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.15 Different configurations are shown.

[0262] Among them, the memory 1502 can be used to store software programs and modules, such as the program instructions / modules corresponding to the communication information processing method and device in the embodiment of the present application. The processor 1504 executes various functional applications and data processing by running the software programs and modules stored in the memory 1502, that is, realizing the above-mentioned communication information processing method. The memory 1502 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1502 may further include a memory remotely arranged relative to the processor 1504, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof. Among them, the memory 1502 may be specifically, but not limited to, used for information such as serialized files and compiled files.

[0263] As an example, Fig.15 As shown, the memory 1502 may include but is not limited to the first receiving unit 1402, the storage unit 1404 and the writing unit 1406 in the communication information processing device. In addition, it may also include but is not limited to other module units in the communication information processing device, which will not be repeated in this example.

[0264] Optionally, the transmission device 1506 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 1506 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1506 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0265] In addition, the electronic device further includes: a display 1508 for displaying a display interface of a game application; and a connection bus 1510 for connecting various module components in the electronic device.

[0266] In other embodiments, the terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. Among them, the nodes may form a peer-to-peer (P2P, Peer To Peer) network, and any form of computing device, such as a server, terminal and other electronic devices, may become a node in the blockchain system by joining the peer-to-peer network.

[0267] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program / instruction, the computer program / instruction comprising a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1609, and / or installed from the removable medium 1611. When the computer program is executed by the central processing unit 1601, various functions provided by the embodiments of the present application are executed. The above serial numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.

[0268] Fig.16 The computer system structure block diagram of the electronic device used to implement the embodiment of the present application is schematically shown. Fig.16 As shown, the computer system 1600 includes a central processing unit 1601 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 1602 (ROM) or the program loaded from the storage part 1608 to the random access memory 1603 (RAM). Various programs and data required for system operation are also stored in the random access memory 1603. The central processing unit 1601, the read-only memory 1602 and the random access memory 1603 are connected to each other through a bus 1604. The input / output interface 1605 (Input / Output interface, i.e., I / O interface) is also connected to the bus 1604.

[0269] The following components are connected to the input / output interface 1605: an input section 1606 including a keyboard, a mouse, etc.; an output section 1607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1608 including a hard disk, etc.; and a communication section 1609 including a network interface card such as a LAN card, a modem, etc. The communication section 1609 performs communication processing via a network such as the Internet. A drive 1610 is also connected to the input / output interface 1605 as needed. A removable medium 1611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1610 as needed so that a computer program read therefrom is installed into the storage section 1608 as needed.

[0270] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1609, and / or installed from the removable medium 1611. When the computer program is executed by the central processor 1601, various functions defined in the system of the present application are executed.

[0271] It should be noted that Fig.16 The computer system 1600 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0272] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in various optional implementations of the above embodiments.

[0273] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0274] S1, receiving first communication information corresponding to a target object in a game application, wherein the first communication information is communication information carried by a preset information carrier in the game application;

[0275] S2, in response to the received first communication information, storing the first communication information in a storage instance in an information storage cluster, wherein the information storage cluster is used to store the communication information carried by a preset information carrier;

[0276] S3: Write the first information index into the index data corresponding to the target object, wherein the first information index is used to indicate a storage instance storing the first communication information, so as to pull the first communication information.

[0277] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0278] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.

[0279] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0280] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0281] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0282] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist physically separately, or at least two units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0283] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for processing communication information, characterized in that: include: Receiving first communication information corresponding to a target object in a game application, wherein the first communication information is communication information carried by a preset information carrier in the game application; In response to the received first communication information, storing the first communication information in a storage instance in an information storage cluster, wherein the information storage cluster is used to store the communication information carried by the preset information carrier; A first information index is written into index data corresponding to the target object, wherein the first information index is used to indicate a storage instance storing the first communication information so as to pull the first communication information.

2. The method according to claim 1, characterized in that: After writing the first information index into the index data corresponding to the target object, the method further includes: Receiving a first information pull request sent by the client of the target object, wherein the first information pull request is used to request to pull communication information to be displayed in a target information carrier, and the target information carrier is the preset information carrier in the client of the target object; In response to the received first information pull request, pull the index data corresponding to the target object to obtain a set of second information indexes, wherein the set of second information indexes has a one-to-one correspondence with the communication information to be displayed in the target information carrier of the client of the target object; According to each second information index in the group of second information indexes, second communication information corresponding to each second information index is pulled from the storage instance indicated by each second information index to obtain a group of second communication information to be displayed; The set of second communication information is sent to the client of the target object so that the set of second communication information is displayed in the target information carrier.

3. The method according to claim 2, characterized in that The step of pulling index data corresponding to the target object in response to the received first information pull request to obtain a set of second information indexes includes: In response to the received first information pull request, pull the index data corresponding to the target object according to the object identifier of the target object, and parse a set of candidate information indexes from the index data corresponding to the target object; According to the maximum number of communication information allowed to be displayed in a communication information page in the target information carrier, the group of second information indexes is filtered out from the group of candidate information indexes, wherein the group of second information indexes are information indexes corresponding to the communication information to be displayed in the Nth communication information page of the target information carrier, N is a positive integer greater than or equal to 1, and the number of communication information pages allowed to be displayed in the target information carrier is positively correlated with the number of information indexes contained in the index data corresponding to the target object.

4. The method according to claim 1, characterized in that: After writing the first information index into the index data corresponding to the target object, the method further includes: Receive a first information deletion request sent by the client of the target object, wherein the first information deletion request is used to request deletion of a group of third communication information displayed in a target information carrier, the first information deletion request carries a third information index corresponding to each third communication information in the group of third communication information, and the target information carrier is the preset information carrier in the client of the target object; In response to the received first information deletion request, each third communication information is deleted from the storage instance storing the each third communication information according to the third information index corresponding to the each third communication information.

5. The method according to claim 4, characterized in that After deleting each third communication information from the storage instance storing each third communication information, the method further includes: When there is fourth communication information that fails to be deleted in the group of third communication information, controlling the fourth communication information to be displayed in the target information carrier; Receiving a second information deletion request sent by the client of the target object, wherein the second information deletion request is used to request deletion of the fourth communication information, and the second information deletion request carries a fourth information index corresponding to the fourth communication information; In response to the received second information deletion request, the fourth communication information is deleted from the storage instance storing the fourth communication information according to the fourth information index.

6. The method according to claim 4, characterized in that After receiving the first information deletion request sent by the client of the target object, the method further includes: In response to the received first information deletion request, the third information index corresponding to each third communication information is deleted from the index data corresponding to the target object.

7. The method according to claim 6, characterized in that After deleting the third information index corresponding to each third communication information from the index data corresponding to the target object, the method further includes: In the case that there is target communication information whose corresponding information index deletion fails in the set of third communication information, receiving a second information pull request sent by the client of the target object, wherein the second information pull request is used to request to pull the communication information to be displayed in the target information carrier; In response to the received second information pull request, pull the index data corresponding to the target object to obtain a set of fifth information indexes, wherein the set of fifth information indexes corresponds one-to-one to the communication information to be displayed in the target information carrier, and the set of fifth information indexes includes an information index corresponding to the target communication information; If, according to the information index corresponding to the target communication information, no communication information is pulled from the storage instance indicated by the information index corresponding to the target communication information, deleting the information index corresponding to the target communication information from the index data corresponding to the target object; According to each other information index in the set of fifth information indexes except the information index corresponding to the target communication information, fifth communication information corresponding to each other information index is pulled from the storage instance indicated by each other information index to obtain a set of fifth communication information to be displayed; The set of fifth communication information is sent to the client of the target object so that the set of fifth communication information is displayed in the target information carrier.

8. The method according to claim 7, characterized in that The method further comprises: Acquire, from the index data corresponding to the target object, an information index whose writing time is after the set of fifth information indexes, to obtain a first newly added information index; According to the first newly added information index, communication information corresponding to the first newly added information index is pulled from the storage instance indicated by the first newly added information index, wherein the set of fifth communication information also includes communication information corresponding to the first newly added information index.

9. The method according to claim 4, characterized in that After deleting each third communication information from the storage instance storing each third communication information, the method further includes: According to the number of the third communication information that is successfully deleted from the group of third communication information, obtaining a group of second newly added information indexes from the index data corresponding to the target object; According to each second new information index in the group of second new information indexes, pull the new communication information corresponding to each second new information index from the storage instance indicated by each second new information index to obtain a group of new communication information to be displayed; The set of newly added communication information is sent to the client of the target object, so as to update the communication information displayed in the target information carrier with the set of newly added communication information.

10. The method according to any one of claims 1 to 9, characterized in that The step of writing the first information index into the index data corresponding to the target object includes: The storage path of the first communication information is written as the first information index into the index data corresponding to the target object.

11. The method according to any one of claims 1 to 9, characterized in that The step of writing the first information index into the index data corresponding to the target object includes: Pulling first index data corresponding to the target object using the object identifier of the target object, wherein the first index data includes a set of page indexes, and each page index in the set of page indexes is used to route to a storage location of an information index page in a set of information index pages included in second index data corresponding to the target object; When the number of information indexes stored in the latest first information index page in the group of information index pages is less than a first quantity threshold, the first information index is written into the first information index page, wherein the first quantity threshold is the maximum number of information indexes allowed to be stored in the first information index page.

12. The method according to claim 11, characterized in that The step of writing the first information index into the index data corresponding to the target object further includes: When the number of information indexes stored in the latest first information index page in the group of information index pages reaches a first number threshold, a new information index page is created for the target object to obtain a second information index page, wherein the first number threshold is the maximum number of information indexes allowed to be stored in the first information index page; A page index corresponding to the second information index page is written into the first index data, and the first information index is written into the second information index page.

13. The method according to any one of claims 1 to 9, characterized in that Before writing the first information index into the index data corresponding to the target object, the method further includes: When the number of information indexes corresponding to the target object reaches a second number threshold, determining a group of historical information indexes to be cleared in the index data corresponding to the target object, wherein the second number threshold is a maximum number of information indexes allowed to be stored in the index data corresponding to the target object; The set of historical information indexes and communication information corresponding to each historical information index in the set of historical information indexes are cleared.

14. The method according to claim 13, characterized in that The step of determining a group of historical information indexes to be cleared from the index data corresponding to the target object when the number of information indexes corresponding to the target object reaches a second number threshold comprises: When the number of information indexes corresponding to the target object reaches the second number threshold, a specified number of historical information indexes with the earliest writing time in the index data corresponding to the target object are determined as the group of historical information indexes to be cleared.

15. The method according to any one of claims 1 to 9, characterized in that Before writing the first information index into the index data corresponding to the target object, the method further includes: When the number of communication information corresponding to the target object is greater than or equal to a third quantity threshold, the read communication information in the communication information corresponding to the target object and the information index corresponding to the read communication information are cleared, wherein the read communication information is the communication information that has been viewed by the target object, and the third quantity threshold is the maximum number of communication information that can be displayed in a preset information carrier in the client of the target object.

16. The method according to claim 15, characterized in that After clearing the read communication information in the communication information corresponding to the target object and the information index corresponding to the read communication information, the method further includes: When the number of updated communication information corresponding to the target object is greater than or equal to the third number threshold, clear the plain text communication information in the updated communication information corresponding to the target object and the information index corresponding to the plain text communication information, wherein the plain text communication information is communication information containing only text.

17. A communication information processing device, characterized in that: include: A first receiving unit, configured to receive first communication information corresponding to a target object in a game application, wherein the first communication information is communication information carried by a preset information carrier in the game application; a storage unit, configured to, in response to receiving the first communication information, store the first communication information in a storage instance in an information storage cluster, wherein the information storage cluster is used to store the communication information carried by the preset information carrier; A writing unit is used to write a first information index into index data corresponding to the target object, wherein the first information index is used to indicate a storage instance storing the first communication information so as to pull the first communication information.

18. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 16 when executed.

19. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 16 are implemented.

20. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 16 through the computer program.