A data processing method, device and computer readable storage medium

By determining multiple keys in the interface server and evenly distributing data access, the problem of excessive load on the storage server caused by hot data in a distributed environment is solved, and the parallel expansion and stability of the interface service are achieved.

CN111782732BActive Publication Date: 2024-09-10SHENZHEN WANGYU COMPUTER NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010703197.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-21
Publication Date
2024-09-10
Estimated Expiration
2040-07-21

AI Technical Summary

Technical Problem

In a distributed environment, hotspot data causes excessive load on the storage server, causing system processing delays or failures. Existing solutions cannot effectively avoid the problem of hotspot data.

Method used

When receiving a target item acquisition request through the interface server, the target key among multiple keys is determined, and data access is evenly distributed among these keys to avoid frequent reading of hotspot data, thereby achieving parallel expansion of the interface service.

Benefits of technology

It effectively avoids the occurrence of hot data in the storage server, improves the system's processing capability and scalability, and ensures the stability and performance of interface services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111782732B
    Figure CN111782732B
Patent Text Reader

Abstract

The embodiment of the present application provides a data processing method, device and computer-readable storage medium, wherein the method includes: receiving a target item acquisition request sent by a terminal device; determining a target key from multiple keys corresponding to the target item in response to the acquisition request, wherein each of the multiple keys is used to record the consumption and consumption threshold of the target item on each key, and the sum of the consumption thresholds recorded corresponding to the multiple keys is the preset total consumption threshold of the target item; obtaining the first consumption and the first consumption threshold of the target item on the target key recorded corresponding to the target key from the storage server; if the first consumption is less than the first consumption threshold, determining that the acquisition request is passed. Through this method, it is possible to evenly distribute data access to multiple keys when processing item acquisition requests, avoid the occurrence of frequently read hotspot data in the storage server, and facilitate parallel expansion of interface services.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a data processing method, device and computer-readable storage medium. Background Art

[0002] Hotspots are data that are frequently accessed in a distributed environment. When a large number of access requests for a certain data appear in the network, the data becomes a hotspot. Storage services can use keys to record some data, such as the total consumption of an item. The calculation of the total consumption is completed by the corresponding computing unit (such as the CPU core unit).

[0003] Currently, for scenarios where total consumption is limited, when the interface server receives a request for an item, it needs to access the total consumption recorded by the key corresponding to the item from the storage service. When there are too many access requests, the total consumption data recorded by the key will become hot data and be frequently accessed. The load of the computing unit corresponding to the key will be too large, causing the system to experience large processing delays or even processing failures. Therefore, how to avoid the appearance of hot data in the storage service when accessing data is an urgent problem that needs to be solved. Summary of the invention

[0004] Embodiments of the present invention provide a data processing method, device, and computer-readable storage medium, which can evenly distribute data access to multiple keys when processing item acquisition requests, avoid frequently read hot spot data in the storage server, and facilitate parallel expansion of interface services.

[0005] In a first aspect, an embodiment of the present application provides a data processing method, which is applied to an interface server included in an interface service cluster, and the method includes:

[0006] Receiving a request for obtaining a target item sent by a terminal device;

[0007] In response to the acquisition request, a target key is determined from a plurality of keys corresponding to the target item, wherein each of the plurality of keys is used to record the consumption and the consumption threshold of the target item on each key, and the sum of the consumption thresholds recorded corresponding to the plurality of keys is a preset total consumption threshold of the target item;

[0008] Obtaining from the storage server the first consumption amount and the first consumption threshold of the target item recorded corresponding to the target key on the target key;

[0009] If the first consumption is less than the first consumption threshold, it is determined that the acquisition request is passed.

[0010] In a second aspect, an embodiment of the present application provides a data processing method, which is applied to a control server, and the method includes:

[0011] Obtaining the performance parameters of the management system configuration and the configuration parameters of the target item, wherein the performance parameters include the maximum concurrent request volume of the interface service cluster and the maximum concurrent number of requests per second of the storage server, and the configuration parameters include the total consumption threshold of the target item;

[0012] Determine, according to the performance parameters and the configuration parameters, a plurality of keys corresponding to the target item and a consumption threshold of the target item corresponding to each of the plurality of keys, wherein the sum of the consumption thresholds corresponding to the plurality of keys is a preset total consumption threshold of the target item;

[0013] A plurality of keys corresponding to the target item are sent to an interface server included in the interface service cluster, and a consumption threshold of the target item corresponding to each key is sent to a storage server, so that the storage server stores the consumption threshold of the target item corresponding to each key.

[0014] In a third aspect, an embodiment of the present application provides a data processing device, which is applied to an interface server included in an interface service cluster, and the device includes:

[0015] A transceiver unit, used for receiving a request for obtaining a target item sent by a terminal device;

[0016] A processing unit, configured to determine a target key from a plurality of keys corresponding to the target item in response to the acquisition request, wherein each of the plurality of keys is used to record a consumption amount and a consumption threshold of the target item on each key, and a sum of the consumption thresholds recorded corresponding to the plurality of keys is a preset total consumption threshold of the target item;

[0017] An acquisition unit, configured to acquire, from a storage server, a first consumption amount and a first consumption amount threshold of a target item recorded corresponding to the target key on the target key;

[0018] The processing unit is further configured to determine that the acquisition request is passed if the first consumption is less than a first consumption threshold.

[0019] In a fourth aspect, an embodiment of the present application provides a data processing device, applied to a control server, the device comprising:

[0020] An acquisition unit, used to acquire performance parameters configured by the management system and configuration parameters of the target item, wherein the performance parameters include the maximum concurrent request volume of the interface service cluster and the maximum concurrent number of requests per second of the storage server, and the configuration parameters include the total consumption threshold of the target item;

[0021] A processing unit, configured to determine, according to the performance parameter and the configuration parameter, a plurality of keys corresponding to the target item and a consumption threshold of the target item corresponding to each of the plurality of keys, wherein the sum of the consumption thresholds corresponding to the plurality of keys is a preset total consumption threshold of the target item;

[0022] The transceiver unit is used to send multiple keys corresponding to the target items to the interface server included in the interface service cluster, and send the consumption threshold of the target item corresponding to each key to the storage server, so that the storage server stores the consumption threshold of the target item corresponding to each key.

[0023] In a fifth aspect, an embodiment of the present application provides a data processing device, which includes a processor and a memory, and the processor and the memory are connected to each other, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the data processing method as described in the first aspect, or the data processing method as described in the second aspect.

[0024] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. The computer program includes program instructions. When the program instructions are executed by a processor, the processor executes the data processing method described in the first aspect and the data processing method described in the second aspect.

[0025] In a seventh aspect, an embodiment of the present application provides a computer program product or a computer program, the computer program product or the computer program including computer instructions, the computer instructions being 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 data processing method provided in various optional ways of the first aspect or the second aspect.

[0026] In the embodiment of the present application, the interface server in the interface service cluster receives a target item acquisition request sent by a terminal device; in response to the acquisition request, the target key is determined from multiple keys corresponding to the target item, wherein each of the multiple keys is used to record the consumption and consumption threshold of the target item on each key, and the sum of the consumption thresholds recorded corresponding to the multiple keys is the preset total consumption threshold of the target item; the first consumption and the first consumption threshold of the target item on the target key recorded corresponding to the target key are obtained from the storage server; if the first consumption is less than the first consumption threshold, it is determined that the acquisition request is passed. Through this method, it is possible to evenly distribute data access to multiple keys when processing item acquisition requests, avoid the occurrence of frequently read hotspot data in the storage server, and thus facilitate the parallel expansion of the interface service. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0028] Figure 1 An architectural diagram of an item management system provided in an embodiment of the present application;

[0029] Figure 2 A flowchart of a data processing method provided in an embodiment of the present application;

[0030] Figure 3 A schematic diagram of multiple keys corresponding to a target object provided in an embodiment of the present application;

[0031] Figure 4 An architectural diagram of another item management system provided in an embodiment of the present application;

[0032] Figure 5 An architectural diagram of another article control system provided in an embodiment of the present application;

[0033] Figure 6 A flowchart of another data processing method provided in an embodiment of the present application;

[0034] Figure 7 A schematic diagram of a process for generating multiple keys corresponding to a target item provided in an embodiment of the present application;

[0035] Figure 8 A flowchart of another data processing method provided in an embodiment of the present application;

[0036] Fig. 9 A unit schematic diagram of a data processing device provided in an embodiment of the present application;

[0037] Fig.10 A simplified schematic diagram of the physical structure of a data processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0039] In the current technology, since there is no control server to generate multiple keys for the interface server and the storage server, after receiving the item acquisition request sent by the user, the interface server will determine whether the item acquisition request can be passed by obtaining the current consumption and consumption threshold corresponding to the only key corresponding to the item in the storage server. In addition, each time the interface server receives an item acquisition request, it will obtain the current consumption and consumption threshold of the key from the storage server for judgment. In addition, the storage server will only use one computing unit to process the key. If the user sends too many item acquisition requests within a period of time, the computing unit will become the bottleneck of the entire system due to its limited computing power, making the key a hot spot, making it difficult to expand the interface service in parallel. There are currently two solutions to this phenomenon.

[0040] One is to increase the frequency of the computing unit in the storage server or optimize program performance. However, the main frequency of the computing unit has a physical upper limit, and program performance also has a limit value. These two points can only be expanded vertically, and the room for improvement is very limited.

[0041] The second is to cancel the total quantity limit of items, calculate the total quantity consumption of items in real time through the background, and give an alarm when the total quantity consumption of items reaches the limit, so that the relevant operation personnel can increase the total quantity limit or stop the user's item collection activities. However, the alarm after the total quantity consumption of items reaches the limit may be delayed or missed, resulting in the inability to accurately control the total quantity of items issued, and at the same time, part of the system operation risk will be allocated to the system users.

[0042] Therefore, the above two solutions fail to solve the problem of hot key well.

[0043] In order to better understand the embodiments of the present application, the professional terms and professional knowledge involved in the embodiments of the present application are introduced below:

[0044] Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model. It can form a resource pool, which can be used on demand and is flexible and convenient. Cloud computing technology will become an important support. The backend services of the technical network system require a large amount of computing and storage resources, such as video websites, picture websites and more portal websites. With the rapid development and application of the Internet industry, in the future, each item may have its own identification mark, which needs to be transmitted to the backend system for logical processing. Data of different levels will be processed separately. All kinds of industry data need strong system backing support, which can only be achieved through cloud computing.

[0045] Cloud storage is a new concept that extends and develops from the concept of cloud computing. A distributed cloud storage system (hereinafter referred to as storage system) refers to a storage system that uses cluster applications, grid technology, and distributed storage file systems to bring together a large number of different types of storage devices (storage devices are also called storage nodes) in the network through application software or application interfaces to work together and provide external data storage and business access functions.

[0046] At present, the storage method of the storage system is: create a logical volume, and when creating a logical volume, allocate physical storage space for each logical volume. The physical storage space may be composed of disks of a storage device or several storage devices. The client stores data on a logical volume, that is, stores the data on the file system. The file system divides the data into many parts, each of which is an object. The object contains not only data but also additional information such as data identification (ID, IDentity). The file system writes each object into the physical storage space of the logical volume, and the file system records the storage location information of each object, so that when the client requests to access the data, the file system can allow the client to access the data according to the storage location information of each object.

[0047] The process of the storage system allocating physical storage space to a logical volume is as follows: based on the estimated capacity of the objects stored in the logical volume (this estimate often has a large margin relative to the actual capacity of the objects to be stored) and the grouping of independent redundant disk arrays (RAID, Redundant Array of Independent Disks), the physical storage space is pre-divided into stripes. A logical volume can be understood as a stripe, thereby allocating physical storage space to the logical volume.

[0048] In order to better understand the embodiments of the present application, the system architecture applicable to the embodiments of the present application is described below.

[0049] See also Figure 1 , Figure 1 This is an architecture diagram of an item control system provided in an embodiment of the present application. Figure 1 As shown, the article control system includes a management system, a control server, an interface service cluster and a storage service. The interface service cluster may include multiple interface servers. Figure 1The interface service cluster includes a first interface server, a second interface server and a third interface server, and each interface server is configured with a routing module. In practical applications, the interface service cluster may include more than three interface servers. The embodiment of the present application takes the interface service cluster including three interface servers as an example. The storage server can assign multiple keys to the target item, and each key is used to record the consumption of the target item on the key. The storage server can also assign a calculation unit to each of the multiple keys (Key), that is, "K1 / L1" to "Kn / Ln" in the figure. Among them, K1~Kn are the indexes of each Key, L1~Ln are the consumption thresholds configured for each Key in K1~Kn, and the sum of the consumption thresholds corresponding to the n keys K1~Kn (that is, L1, L2,..., Ln) is the preset total consumption threshold (Lmax) of the target item.

[0050] like Figure 1 The management system shown can be a system used by operators to set parameters such as the total item consumption threshold (Lmax), the single-user limit, the maximum concurrent request amount of the interface service cluster (Qmax), and the maximum concurrent request amount per second (Pmax) of the storage server for each item. Among them, the total item limit refers to the total number of items issued, which limits the maximum number of items that can be issued; the single-user limit refers to the maximum number of items that a user can receive; the maximum concurrent request amount per second refers to the maximum number of item requests that the storage server can receive within one second. Items can refer to props in virtual games and other products, or other items or data that can be received and accessed. The management system may include an interactive interface to configure each performance parameter and configuration parameter by obtaining the parameter values ​​input by the operator for the above parameters. Of course, the management system can also configure each performance parameter and configuration parameter by the operator inputting a recognizable computer language.

[0051] like Figure 1 The control server shown is used to provide control services, and can perform control operations on one or more interface servers and storage servers in the interface service cluster. The control server can generate keys based on the performance parameters and configuration parameters configured by the management system, combined with the working capabilities of the specific server. Among them, the control service can control the number of generated keys and the threshold of each key; it can also control the storage server to allocate corresponding computing units to the generated keys. For example, the control server determines that 10 keys are to be generated based on the performance parameters and configuration parameters obtained from the management system. The control server can send the 10 keys to each interface server in the interface service cluster, and can also control the storage service to allocate 10 computing units to the 10 keys.

[0052] like Figure 1 Each interface service in the interface service cluster shown is used to receive an item acquisition request initiated by a user, and judge whether the item acquisition request can be passed based on the information obtained from the storage service. Specifically, after receiving the item acquisition request sent by the user, the interface service can determine a target key from multiple keys in the storage server through the routing module, and then judge whether the item acquisition request can be passed based on the current consumption and consumption threshold of the target key obtained from the storage server. In the scenario where the total amount of items is limited, the requests received by the interface service can be evenly distributed to multiple keys to avoid the frequent reading of hot data in the storage server, so that increasing the number of interface services will not cause hot data, which is convenient for parallel expansion of interface services. Among them, each interface server is configured with a routing module, and the routing module enables each interface server to exchange data with the storage service. For example, the interface server can obtain the current consumption of one or more keys and the consumption threshold of each key through the routing module.

[0053] like Figure 1 The storage server shown can allocate calculation units for multiple keys generated by the control server. The storage server can also increase the total consumption of the item by one counting unit after the interface server receives an item acquisition request sent by a user. For example, for an item that a single user can only receive one, and the current total consumption of the item is 99, if the storage server receives a notification message from the interface server that an item acquisition request has been passed, the total consumption of the item can be increased by one counting unit, that is, the total consumption becomes 100; accordingly, the target key selected by the interface server as the item acquisition request in the storage server will also increase by one consumption.

[0054] In order to eliminate hot spots in the server, the embodiments of the present application provide a data processing method, device and computer-readable storage medium. The data processing method and communication device provided in the embodiments of the present application are further introduced in detail below.

[0055] See also Figure 2 , Figure 2 A flow chart of a data processing method applied to an interface server provided in an embodiment of the present application. The execution subject of this embodiment is any interface server in the interface service cluster. The data processing method may include the following steps:

[0056] 210. Receive a request for obtaining a target item sent by a terminal device.

[0057] When the user clicks to receive the target item through the interactive page of the terminal device, the terminal device can generate a request to obtain the target item according to the user's operation and send the request to obtain the target item to the interface server.

[0058] Before the interface server receives the acquisition request of the target item sent by the terminal device, the interface service also needs to receive multiple keys corresponding to the target item sent by the control server, wherein the multiple keys are determined by the control server according to the performance parameters and configuration parameters configured by the management system. The performance parameters configured by the management system include the maximum concurrent request amount (Qmax) of the interface service cluster and the maximum concurrent number per second (Pmax) of the storage server, and the configuration parameters include the total consumption threshold (Lmax) of the target item.

[0059] 220. In response to the acquisition request, a target key is determined from multiple keys corresponding to the target item, wherein each of the multiple keys is used to record the consumption and consumption threshold of the target item on each key, and the sum of the consumption thresholds recorded corresponding to the multiple keys is a preset total consumption threshold of the target item.

[0060] Specifically, after receiving the acquisition request of the target item, the interface server may respond to the acquisition request and determine the target key from the multiple keys corresponding to the target item. The interface server may first use the old key to process the acquisition request, and correspondingly consume one key in the old key. Then the interface server may convert the consumed key in the old key into the multiple keys sent by the control server.

[0061] In a possible implementation, the interface service can determine the target key by polling. The interface server can first respond to the above acquisition request and obtain the first index of the recorded key. And determine the target key from the multiple keys corresponding to the target item based on the first index. Among them, the first index can be recorded and saved by the interface server. The saved first index can be the number of a key, indicating that the interface server determines that the key corresponding to the number is the target key. For example, if the first index is 8, the interface server can determine that the 7th key is the target key. It should be noted that the indexes of the above multiple keys, i.e., K1~Kn, are counted from 0, that is, the index of K1 is 0, and the index of Kn is n-1.

[0062] In a possible implementation, before the interface server obtains the first index of the recorded key, it needs to first determine whether the interface server has the first index. If the first index exists, the target key can be directly determined based on the first index. If the first index does not exist in the interface server, the interface server needs to generate a random number r, which can be any positive integer greater than or equal to 0. The situation where the first index does not exist in the interface server may be because the interface server is currently receiving the acquisition request for the target item sent by the user through the terminal device for the first time, or because the first index is lost in the interface server and cannot be read. After the interface service generates a random number r, the random number r is modulo the number n of multiple keys to obtain the second index, and the target key can be determined from the multiple keys corresponding to the target item through the second index. Among them, the number n of the multiple keys is determined by the control server according to the performance parameters and configuration parameters configured by the management system. For example, if the random number generated by the interface service is 99, and the number of multiple keys n is 10, then the first index is equal to r%n, that is, 99%10, and the result is 9, then the second index is 9, and the interface server can determine that the 10th key among the multiple keys corresponding to the target item is the target key. After the interface server determines the target key from the multiple keys corresponding to the target item according to the second index, it will generate the above-mentioned first index according to the second index and the number of multiple keys, and store the first index. The method for generating the first index can be based on adding one to the second index, and then taking the modulus of the number of multiple keys n with the sum obtained by adding one to the second index. For example, continuing the above example, the second index is 9, then after the interface server determines the target key from the multiple keys corresponding to the target item according to the second index, it adds 9+1 to get 10, and then calculates 10%10 to get 0, and then the first index is 0. If the interface server receives the next acquisition request for the target item, it can be determined that the target key is the key with index 0 as the target key.

[0063] In a possible implementation, the interface server can also determine the target key by a probabilistic access method. The interface server can respond to the acquisition request and obtain the target item consumption recorded for each key in the multiple keys corresponding to the target item. Then, the access probability of each key is determined based on the target item consumption recorded for each key, and finally, the target key is determined from the multiple keys based on the access probability of each key. See Figure 3 , Figure 3 A schematic diagram of a structure of multiple keys corresponding to a target object provided in an embodiment of the present application. Figure 3The number of multiple keys shown is 5, namely K1~K5, and the consumption of the target item recorded corresponding to each key is a, b, c, d, e respectively, and the threshold configured for each key is L1, L2, L3, L4, L5 respectively. Let s=a+b+c+d+e, then the access probability of K1 is e / s, the access probability of K2 is d / s, the access probability of K3 is c / s, the access probability of K4 is b / s, and the access probability of K5 is a / s. It can be understood that the consumption of the target item recorded corresponding to each key is arranged in reverse order in the numerator of the access probability. In this way, the probability of accessing keys with small consumption is increased, and the probability of accessing keys with large consumption is reduced, so that each key can be accessed more evenly, preventing some keys from becoming hot spots. For example, if the number of multiple keys is 5, namely K1~K5, the threshold of each key is 20. The interface server obtains the consumption of the target item recorded corresponding to each key as 6, 8, 10, 12, and 14 respectively. The interface server can calculate that the access probability of K1 is 14 / 50, the access probability of K2 is 12 / 50, the access probability of K3 is 10 / 50, the access probability of K4 is 8 / 50, and the access probability of K5 is 6 / 50. According to the threshold of each key being 20, it can be seen that K1 has the largest remaining consumption, so the access probability of K1 is the largest; K5 has the least remaining consumption, so the access probability of K5 is the smallest. Through this method, the access of K1 to K5 can be made more uniform.

[0064] In a possible implementation, the interface server may obtain data from the local cache, and query the consumption of the target item recorded for each key in the multiple keys corresponding to the target item from the local cache data. If the consumption of the target item for each key exists in the local cache, the consumption of the target item in the local cache is used to calculate the access probability of each key. If the consumption of the target item for each key does not exist in the local cache, the interface server may obtain the consumption of the target item for each key from the storage server.

[0065] In a possible implementation, the interface server may also only obtain the size arrangement relationship of the consumption of the target item recorded corresponding to each key in the multiple keys, that is, it is not necessary to obtain the specific value. Figure 3 In the example, the interface server obtains the consumption of target items K1 to K5 as a>b>c>d>e, so the interface server can calculate that the access probability of K5 is the smallest and the access probability of K1 is the largest. The interface server can then determine the target key based on the order of the access probabilities.

[0066] 230. Obtain, from the storage server, a first consumption amount and a first consumption amount threshold of the target item recorded corresponding to the target key on the target key.

[0067] After determining the target key, the interface server can determine whether the acquisition request for the target item sent by the terminal device received by the interface server can be passed. It is necessary to obtain the first consumption and the first consumption threshold of the target item recorded corresponding to the target key on the target key from the storage server.

[0068] 240. If the first consumption is less than a first consumption threshold, determine that the acquisition request is passed.

[0069] The interface server can determine the relationship between the first consumption and the first consumption threshold. If the first consumption is less than the first consumption, it means that the target key still has the remaining consumption of the target item available, and the interface server can determine the acquisition request of the target item sent by the terminal device. After the interface server determines the acquisition request of the target item sent by the terminal device, it will send a notification message of updating the target key to the storage server, and the notification message is used to instruct the storage server to update the consumption of the target item corresponding to the stored target key. For example, the current consumption of the target key in the storage server is 19. When the storage server receives the notification message sent by the interface server, the current consumption of the target key can be updated. If the user picks up 1 item, the current consumption of the target key in the storage server is updated to 20; if the user picks up 2 items, the current consumption of the target key in the storage server is updated to 21, and so on.

[0070] After the interface server determines the acquisition request of the target item sent by the terminal device, the interface service can update the consumption of the target item corresponding to the target key included in the locally cached data. When the next acquisition request for the target item arrives, the interface server can update the consumption of the target item according to the target item consumption recorded for each of the multiple keys corresponding to the target item in the local cache without having to re-acquire it from the storage server. It should be noted that there may be a certain error between the target item consumption recorded for each of the multiple keys corresponding to the target item in the local cache of the interface server and the target item consumption recorded for each of the multiple keys corresponding to the target item in the storage server, because the storage server will also receive notification messages of key updates from other interface servers. This error will only have a certain impact on the accuracy of the access probability, that is, the error will at most affect the average degree of each key in the storage server being determined as a target key by the interface server, so that the average degree cannot reach a very high accuracy. For example, in the case of a very high average degree, if the storage server Figure 3The number of times each key is determined as the target key may be 19 times, 20 times, 20 times, 19 times, and 20 times. The error may only make the number of times each key is determined as the target key less uniform, such as 17 times, 18 times, 20 times, 22 times, and 21 times. However, the total number of times the target key is determined from multiple keys is the same. Therefore, the error does not affect the storage server's calculation of the total consumption of the target item.

[0071] In a possible implementation, when the interface server detects that the first consumption of the target item recorded in the target key corresponding to the target key has just reached the first consumption threshold after the acquisition request of the target item this time, that is, the target key has just been consumed after the acquisition of the target item this time, the interface server will automatically skip the key when determining the target key next time. For example, if the first consumption of the target key determined by the interface server is 99 and the first consumption threshold is 100, then after the acquisition of the target item this time, the first consumption will become 100, that is, the consumption of the target key is about to reach the threshold. The interface server will no longer select the key as the target key next time.

[0072] In a possible implementation, if a user wants to collect two items at a time, if the first consumption of the target key determined by the interface server is 99 and the first consumption threshold is 100, the number of target items that the user wants to collect is greater than the remaining consumption of the target key. In this case, the interface server can first consume one consumption of the current target key, and then re-determine another target key from the storage server to complete the request sent by the user to obtain two target items.

[0073] In a possible implementation, in the prior art, when the target item is limited to a single user, the storage server will allocate a key to each user to calculate whether the target item collection quantity of each user exceeds the limit. Therefore, this system can be combined with the architecture of the total item limit in the embodiment of the present application. Figure 4 , Figure 4The architecture diagram of another item control system provided by the embodiment of the present application. The system can be applied to the situation where the total amount of items is limited, and there are also restrictions on a single user. That is to say, the item control system can use a storage server to provide two storage services, namely, a storage service limited to a single user and a storage service limited to the total amount of items. Specifically, after receiving the acquisition request of the target item sent by the terminal device, the interface server can first determine whether the target item received by the user exceeds the limit on multiple keys of the single user limit. If not, it can determine whether the consumption of the target item reaches the consumption threshold on multiple keys of the total amount of items, thereby determining whether to pass the acquisition request of the target item sent by the terminal device. For example, the consumption threshold of the target item is 1000, and a single user can receive up to 3 (i.e., the upper limit of the number of single user collections). If the interface server learns that the target item received by a user is 2 on multiple keys of the single user limit, it is determined that the target item received by the user is not exceeded; and then continue to judge on multiple keys of the total amount of items. If the total consumption of the target item is 900, it means that the target item has not been collected, and the interface server can pass the acquisition request of the target item.

[0074] In a possible implementation, when an interface server fails or crashes, it can be directly shut down or taken offline. Each interface server is independent and does not affect each other.

[0075] In one possible implementation, if the operator increases the total amount of target items through the management system, the control server can generate multiple new keys based on the performance parameters and configuration parameters configured by the management system. After receiving the keys, the interface server can determine the target key based on the original multiple keys and the newly added multiple keys, and then determine whether the request to obtain the target item can be approved.

[0076] In one possible implementation, the embodiments of the present application can be applied to performance advertising, such as limiting the number of advertisements played based on the amount of advertisement exposure, clicks, or cost consumption.

[0077] In one possible implementation, see Figure 5 , Figure 5 This is another architecture diagram of an article control system provided in an embodiment of the present application. Figure 5 The item management system shown includes an interface service cluster and a real-time calculation server. The real-time calculation server can calculate the remaining consumption corresponding to each interface server in real time and push the real-time remaining consumption value to each interface server. Each interface server determines whether the acquisition request of the target item has reached the upper limit based on its own remaining consumption.

[0078] In a possible implementation, based on Figure 5 The item management and control system shown can be reported by each interface server to the real-time computing server, and the real-time computing server summarizes and calculates the total consumption. When the total consumption reaches the consumption threshold, all interface servers are notified of the over-limit and the item acquisition request sent by the terminal device is rejected.

[0079] In a possible implementation, the embodiment of the present application can also be applied to scenarios such as single IP and single Open ID, that is, the number of items that can be collected by a device corresponding to an IP or an Open ID is limited. In addition, the consumption threshold can be extended to a consumption threshold of 1 year, a consumption threshold of 1 month, a consumption threshold of 1 week, etc., or a periodic consumption threshold, such as a weekly consumption threshold, etc.

[0080] Through the embodiment of the present application, after receiving the acquisition request of the target item sent by the terminal device, the interface server determines the target key from the multiple keys corresponding to the target item, and determines whether the first consumption of the target item on the target key is less than the first consumption threshold. If so, the acquisition request of the target item can be used to send a notification message to the storage server to update the target key, and the storage server will update the consumption of the target item corresponding to the stored target key. Through this method, it is possible to avoid the keys corresponding to the target item from becoming access hotspots, and the requests received by the interface server can be evenly distributed to multiple keys, avoiding the occurrence of frequently read hotspot data in the storage server, so that increasing the number of interface services will not lead to the occurrence of hotspot data, which is convenient for parallel expansion of interface services.

[0081] See also Figure 6 , Figure 6 A flowchart of a data processing method applied to a control server provided in an embodiment of the present application. The execution subject of this embodiment is the control server. The data processing method may include the following steps:

[0082] 610. Obtain performance parameters of the management system configuration and configuration parameters of the target item, wherein the performance parameters include the maximum concurrent request volume of the interface service cluster and the maximum concurrent number of requests per second of the storage server, and the configuration parameters include the total consumption threshold of the target item.

[0083] The maximum concurrent request volume of the interface service cluster is Qmax, the maximum concurrent number of requests per second of the storage server is Pmax, and the total consumption threshold of the target item is Lmax.

[0084] 620. Determine multiple keys corresponding to the target item and a consumption threshold of the target item corresponding to each of the multiple keys according to the performance parameters and the configuration parameters, wherein the sum of the consumption thresholds corresponding to the multiple keys is a preset total consumption threshold of the target item.

[0085] Specifically, Figure 7 As shown, the control server can generate n keys based on Lmax (the total consumption threshold of the target item), Qmax (the maximum concurrent request volume of the interface service cluster), and Pmax (the maximum concurrent request volume per second of the storage server). The generated n keys are Figure 7 K1 / L1~Kn / Ln in, where K1~Kn is the index of each newly generated key, and L1~Ln is the threshold of each newly generated key. The control server first determines the number n of multiple keys corresponding to the target item that should be generated based on Qmax and Pmax. Then the control server calculates an intermediate parameter t, t=Qmax / Pmax, when t=0, n=1; when t>0 and t is not an integer, n=int(t)+1; when t>0 and t is an integer, n=t.

[0086] After determining the number of multiple keys corresponding to the target item, it is necessary to determine the consumption threshold L of the target item corresponding to each key in the multiple keys according to Lmax and the number of multiple keys n. Threshold L = int (Lmax / n) + delta, let m = Lmax%n, delta = 1 for the first m keys; delta = 0 for the last nm keys.

[0087] For example, if Qmax=1000, Pmax=200, Lmax=2000, then t=5, n=t=5, m=2000%5=0; then the thresholds L of the corresponding points of the five keys are the same, that is, L1=L2=L3=L4=L5=2000 / 5=400, and L1+L2+L3+L4+L5=400+400+400+400+400=2000 (that is, the total consumption threshold Lmax of the target item).

[0088] If Qmax=1100, Pmax=200, Lmax=2000, then t=5.5, n=int(5.5)+1=6, m=2000%6=2; the threshold value of the first two keys is L1=L2=int(2000 / 6)+1=334; the threshold value of the last four keys is L3=L4=L5=L6=int(2000 / 6)=333, and L1+L2+L3+L4+L5+L6=334+334+333+333+333+333=2000 (that is, the total consumption threshold value Lmax of the target item).

[0089] 630. Send multiple keys corresponding to the target item to the interface server included in the interface service cluster, and send the consumption threshold of the target item corresponding to each key to the storage server, so that the storage server stores the consumption threshold of the target item corresponding to each key.

[0090] Through the embodiment of the present application, the control server can obtain the performance parameters configured by the management system and the configuration parameters of the target item, and determine the multiple keys corresponding to the target item and the consumption threshold of the target item corresponding to each of the multiple keys according to the performance parameters and the configuration parameters of the target item. After the determination, the multiple keys corresponding to the target item can be sent to each interface server, and the consumption threshold of the target item corresponding to each key can be sent to the storage server, so that the storage server stores the consumption threshold of the target item corresponding to each key. Through this method, the control server can split the key corresponding to the item into multiple keys, thereby controlling the interface server and the storage server to perform data processing, which can avoid the occurrence of frequently read hotspot data in the storage server, so that increasing the number of interface services will not lead to the occurrence of hotspot data, which is convenient for parallel expansion of interface services.

[0091] See also Figure 8 , Figure 8 A flowchart of another data processing method provided in an embodiment of the present application. The execution subject of this embodiment includes a control server and an interface server. The data processing method may include the following steps:

[0092] 810. The control server obtains the performance parameters of the management system configuration and the configuration parameters of the target item, wherein the performance parameters include the maximum concurrent request volume of the interface service cluster and the maximum concurrent number of requests per second of the storage server, and the configuration parameters include the total consumption threshold of the target item.

[0093] 820. The control server determines multiple keys corresponding to the target item and a consumption threshold of the target item corresponding to each of the multiple keys according to the performance parameters and the configuration parameters, and the sum of the consumption thresholds corresponding to the multiple keys is a preset total consumption threshold of the target item.

[0094] 830. The control server sends multiple keys corresponding to the target item to the interface server included in the interface service cluster.

[0095] 840. The control server sends the consumption threshold of the target item corresponding to each key to the storage server, so that the storage server stores the consumption threshold of the target item corresponding to each key.

[0096] 850. The interface server receives a request for obtaining a target item sent by a terminal device.

[0097] 860. The interface server determines the target key from the multiple keys corresponding to the target item in response to the acquisition request, wherein each key in the multiple keys is used to record the consumption and consumption threshold of the target item on each key.

[0098] 870. The interface server obtains the first consumption and the first consumption threshold of the target item recorded corresponding to the target key from the storage server.

[0099] 880. If the first consumption is less than a first consumption threshold, the interface server determines to pass the acquisition request.

[0100] The specific implementation of steps 810 to 880 can refer to the relevant description of the aforementioned embodiment and will not be repeated here.

[0101] Through the embodiments of the present application, the control server determines the multiple keys corresponding to the target item and the consumption threshold of the target item corresponding to each of the multiple keys by managing the performance parameters and configuration parameters of the management system. The interface server and the storage server perform data processing based on the multiple keys corresponding to the target item and the consumption threshold of the target item corresponding to each key generated by the control server, thereby avoiding the occurrence of frequently read hot spot data in the storage server, thereby increasing the number of interface services without causing the occurrence of hot spot data, and facilitating parallel expansion of interface services.

[0102] See also Fig. 9 , Fig. 9 A unit schematic diagram of a data processing device provided in an embodiment of the present application. Fig. 9 The data processing device shown can be used to perform the above Figure 2 , Figure 5 and Figure 8 Some or all of the functions of the described method embodiments. The device may be a server, or a device in a server, or a device that can be used in conjunction with a server. The logical structure of the device may include: a transceiver unit 910, a processing unit 920, and an acquisition unit 930. When the device is applied to an interface server included in an interface service cluster:

[0103] The transceiver unit 910 is used to receive a request for obtaining a target item sent by a terminal device;

[0104] The processing unit 920 is configured to determine a target key from a plurality of keys corresponding to the target item in response to the acquisition request, wherein each of the plurality of keys is used to record a consumption amount and a consumption threshold of the target item on each key, and the sum of the consumption thresholds recorded corresponding to the plurality of keys is a preset total consumption threshold of the target item;

[0105] An acquisition unit 930 is used to acquire, from a storage server, a first consumption amount and a first consumption amount threshold of a target item recorded corresponding to the target key on the target key;

[0106] The processing unit 920 is further configured to determine that the acquisition request is passed if the first consumption is less than a first consumption threshold.

[0107] In a possible implementation, the acquisition unit 930 is further configured to obtain a first index of a key of a record in response to an acquisition request; and the processing unit 920 is further configured to determine a target key from multiple keys corresponding to the target item according to the first index.

[0108] In one possible implementation, if the first index does not exist, the processing unit 920 is further used to generate a random number; determine the second index based on the random number and the number of multiple keys; determine the target key from the multiple keys corresponding to the target item based on the second index; generate the first index based on the second index and the number of multiple keys, and store the first index.

[0109] In a possible implementation, the acquisition unit 930 is further used to respond to an acquisition request to obtain the consumption of the target item recorded for each of the multiple keys corresponding to the target item; the processing unit 920 is further used to determine the access probability of each key according to the consumption of the target item recorded for each key; and determine the target key from the multiple keys according to the access probability of each key.

[0110] In a possible implementation, the acquisition unit 930 is also used to obtain locally cached data in response to an acquisition request; the processing unit 920 is also used to query the consumption of the target item recorded in each of the multiple keys corresponding to the target item from the locally cached data.

[0111] In one possible implementation, before receiving a request to obtain a target item sent by a terminal device, the transceiver unit 910 is also used to receive multiple keys corresponding to the target item sent by a control server, wherein the multiple keys are determined by the control server according to performance parameters configured by the management system, and the performance parameters include the maximum concurrent request amount of the interface service cluster and the maximum concurrent number of requests per second of the storage server.

[0112] When the device is used to control the server:

[0113] An acquisition unit 930 is used to acquire performance parameters configured by the management system and configuration parameters of the target item, wherein the performance parameters include the maximum concurrent request amount of the interface service cluster and the maximum concurrent number per second of the storage server, and the configuration parameters include the total consumption threshold of the target item;

[0114] The processing unit 920 is used to determine, according to the performance parameter and the configuration parameter, a plurality of keys corresponding to the target item and a consumption threshold of the target item corresponding to each of the plurality of keys, wherein the sum of the consumption thresholds corresponding to the plurality of keys is a preset total consumption threshold of the target item;

[0115] The transceiver unit 910 is used to send multiple keys corresponding to the target item to the interface server included in the interface service cluster, and send the consumption threshold of the target item corresponding to each key to the storage server, so that the storage server stores the consumption threshold of the target item corresponding to each key.

[0116] In a possible implementation, the processing unit 920 is also used to determine multiple keys corresponding to the target item based on the maximum concurrent request volume of the interface service cluster and the maximum concurrent number of requests per second of the storage server; and determine the consumption threshold of the target item corresponding to each key in the multiple keys based on the total consumption threshold and the number of keys.

[0117] See also Fig.10 , Fig.10 A simplified schematic diagram of the physical structure of a data processing device provided in an embodiment of the present application, the device includes a processor 1010, a memory 1020 and a communication interface 1030, and the processor 1010, the memory 1020 and the communication interface 1030 are connected via one or more communication buses.

[0118] The processor 1010 is configured to support the communication device to execute Figure 2 , Figure 5 and Figure 8 The processor 1010 may be a central processing unit (CPU), a network processor (NP), a hardware chip or any combination thereof.

[0119] The memory 1020 is used to store program codes, etc. The memory 1020 may include a volatile memory, such as a random access memory (RAM); the memory 1020 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); the memory 1020 may also include a combination of the above-mentioned types of memories.

[0120] The communication interface 1030 is used to send and receive data, information or messages, etc., and can also be described as a transceiver, a transceiver circuit, etc.

[0121] In the embodiment of the present application, when the data processing device is applied to the interface server included in the interface service cluster, the processor 1010 may call the program code stored in the memory 1020 to perform the following operations:

[0122] Controlling the communication interface 1030 to receive a target item acquisition request sent by a terminal device;

[0123] The processor 1010 calls the program code stored in the memory 1020 to determine the target key from the multiple keys corresponding to the target item in response to the acquisition request, wherein each of the multiple keys is used to record the consumption and the consumption threshold of the target item on each key, and the sum of the consumption thresholds corresponding to the multiple keys is the preset total consumption threshold of the target item;

[0124] The processor 1010 calls the program code stored in the memory 1020 to obtain the first consumption and the first consumption threshold of the target item recorded corresponding to the target key from the storage server;

[0125] The processor 1010 calls the program code stored in the memory 1020 and determines to pass the acquisition request if the first consumption is less than the first consumption threshold.

[0126] In one possible implementation, the processor 1010 calls the program code stored in the memory 1020 to respond to the acquisition request to obtain the first index of the recorded key; the processor 1010 calls the program code stored in the memory 1020 to determine the target key from multiple keys corresponding to the target item according to the first index.

[0127] In one possible implementation, if the first index does not exist, the processor 1010 calls the program code stored in the memory 1020 to generate a random number; determines the second index based on the random number and the number of multiple keys; determines the target key from the multiple keys corresponding to the target item based on the second index; generates the first index based on the second index and the number of multiple keys, and stores the first index.

[0128] In one possible implementation, the processor 1010 calls the program code stored in the memory 1020 to respond to the acquisition request to obtain the consumption of the target item recorded for each key in the multiple keys corresponding to the target item; the processor 1010 calls the program code stored in the memory 1020 to determine the access probability of each key according to the consumption of the target item recorded for each key; and determines the target key from the multiple keys according to the access probability of each key.

[0129] In one possible implementation, the processor 1010 calls the program code stored in the memory 1020 to respond to the acquisition request and obtain the locally cached data; the processor 1010 calls the program code stored in the memory 1020 to query the consumption of the target item recorded in each of the multiple keys corresponding to the target item from the locally cached data.

[0130] In one possible implementation, before receiving a request to obtain a target item sent by a terminal device, the control communication interface 1030 receives multiple keys corresponding to the target item sent by a control server, wherein the multiple keys are determined by the control server according to performance parameters configured by the management system, and the performance parameters include the maximum concurrent request amount of the interface service cluster and the maximum concurrent number of requests per second of the storage server.

[0131] In the embodiment of the present application, when the device is applied to a control server, the processor 1010 may call the program code stored in the memory 1020 to perform the following operations:

[0132] The processor 1010 calls the program code stored in the memory 1020 to obtain the performance parameters of the management system configuration and the configuration parameters of the target item, wherein the performance parameters include the maximum concurrent request volume of the interface service cluster and the maximum concurrent number per second of the storage server, and the configuration parameters include the total consumption threshold of the target item;

[0133] The processor 1010 calls the program code stored in the memory 1020 to determine the multiple keys corresponding to the target item and the consumption threshold of the target item corresponding to each of the multiple keys according to the performance parameters and the configuration parameters, and the sum of the consumption thresholds corresponding to the multiple keys is the preset total consumption threshold of the target item;

[0134] The control communication interface 1030 sends multiple keys corresponding to the target items to the interface server included in the interface service cluster, and sends the consumption threshold of the target item corresponding to each key to the storage server, so that the storage server stores the consumption threshold of the target item corresponding to each key.

[0135] In one possible implementation, the processor 1010 calls the program code stored in the memory 1020 to determine multiple keys corresponding to the target item based on the maximum concurrent request volume of the interface service cluster and the maximum concurrent number of requests per second of the storage server; and determines the consumption threshold of the target item corresponding to each key in the multiple keys based on the total consumption threshold and the number of keys.

[0136] The present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes Figure 2 , Figure 5 and Figure 8 The corresponding function of the method.

[0137] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0138] The steps in the method of the embodiment of the present invention can be adjusted in order, combined or deleted according to actual needs.

[0139] The units in the processing device in the embodiment of the present invention can be merged, divided and deleted according to actual needs.

[0140] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integrated. The available medium can be a magnetic medium, (e.g., a floppy disk, a storage disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state storage disk Solid State Disk (SSD)), etc.

[0141] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A data processing method, characterized in that: Applied to an interface server included in an interface service cluster, the method includes: Receiving a request for obtaining a target item sent by a terminal device; In response to the acquisition request, a target key is determined from a plurality of keys corresponding to the target item, wherein each of the plurality of keys is used to record the consumption and the consumption threshold of the target item on each key, and the sum of the consumption thresholds recorded corresponding to the plurality of keys is a preset total consumption threshold of the target item; the plurality of keys corresponding to the target item are sent by a control server, and the plurality of keys corresponding to the target item are determined by the control server according to performance parameters and configuration parameters configured by a management system, wherein the performance parameters configured by the management system include the maximum concurrent request amount of an interface service cluster and the maximum concurrent number per second of a storage server, and the configuration parameters include the total consumption threshold of the target item; Acquire the first consumption amount and the first consumption threshold of the target item on the target key recorded corresponding to the target key from the storage server; If the first consumption is less than the first consumption threshold, it is determined that the acquisition request is passed.

2. The method according to claim 1, characterized in that The step of determining a target key from a plurality of keys corresponding to the target item in response to the acquisition request includes: Responding to the acquisition request, acquiring a first index of a key of the record; A target key is determined from a plurality of keys corresponding to the target item according to the first index.

3. The method according to claim 2, characterized in that The method further comprises: If the first index does not exist, generate a random number; determining a second index based on the random number and the number of the plurality of keys; Determine a target key from a plurality of keys corresponding to the target item according to the second index; The first index is generated according to the second index and the number of the plurality of keys, and the first index is stored.

4. The method according to claim 1, characterized in that: The step of determining a target key from a plurality of keys corresponding to the target item in response to the acquisition request includes: In response to the acquisition request, acquiring the consumption of the target item recorded corresponding to each key in the multiple keys corresponding to the target item; Determine the access probability of each key according to the consumption of the target item recorded corresponding to each key; A target key is determined from the plurality of keys according to the access probability of each key.

5. The method according to claim 4, characterized in that The step of obtaining the consumption of the target item recorded corresponding to each key in the plurality of keys corresponding to the target item in response to the acquisition request includes: Responding to the acquisition request, acquiring locally cached data; The consumption of the target item recorded corresponding to each key in the multiple keys corresponding to the target item is queried from the locally cached data.

6. The method according to claim 1, characterized in that Before receiving the acquisition request of the target item sent by the terminal device, the method further includes: Receive multiple keys corresponding to the target item sent by a control server, wherein the multiple keys are determined by the control server according to performance parameters configured by a management system, and the performance parameters include the maximum concurrent request volume of the interface service cluster and the maximum concurrent number per second of the storage server.

7. A data processing method, characterized in that: Applied to a control server, the method comprises: Acquire performance parameters configured by the management system and configuration parameters of the target item, wherein the performance parameters include the maximum concurrent request volume of the interface service cluster and the maximum concurrent number of requests per second of the storage server, and the configuration parameters include the total consumption threshold of the target item; Determine, according to the performance parameter and the configuration parameter, a plurality of keys corresponding to the target item and a consumption threshold of the target item corresponding to each of the plurality of keys, wherein the sum of the consumption thresholds corresponding to the plurality of keys is a preset total consumption threshold of the target item; Send multiple keys corresponding to the target item to the interface server included in the interface service cluster, and send the consumption threshold of the target item corresponding to each key to the storage server, so that the storage server stores the consumption threshold of the target item corresponding to each key.

8. The method according to claim 7, characterized in that The determining, according to the performance parameter and the configuration parameter, a plurality of keys corresponding to the target item and a consumption threshold of the target item corresponding to each of the plurality of keys, comprises: Determine a plurality of keys corresponding to the target item according to the maximum concurrent request amount of the interface service cluster and the maximum concurrent number per second of the storage server; A consumption threshold of the target item corresponding to each key in the plurality of keys is determined according to the total consumption threshold and the number of the plurality of keys.

9. A data processing device, characterized in that: include: A processor and a memory, the processor and the memory are connected to each other, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the data processing method according to any one of claims 1 to 6, or the data processing method according to claim 7 or 8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which includes program instructions. When the program instructions are executed by a processor, the processor executes the data processing method according to any one of claims 1 to 6, or the data processing method according to claim 7 or 8.

11. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the data processing method according to any one of claims 1 to 6, or the data processing method according to claim 7 or 8 is implemented.