Active resource inventory management method and device
By adopting the combination of key-value storage system and cache in active resource inventory management and combining the dual inventory verification mechanism, the problems of poor inventory management performance and difficult to guarantee data consistency in the medium and high concurrency scenarios in the existing technology have been solved, and high Inventory management for performance and data consistency.
Patent Information
- Application Number
- CN202411550166.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-02-14
AI Technical Summary
The existing active resource inventory management scheme performs poorly in high concurrency scenarios, with limited database query and write performance, cached data is easily lost, and the combination of database and cache increases system complexity, making it difficult to ensure consistency of multi-dimensional inventory sex.
Active resource inventory management is carried out in a combination of key-value storage systems and caches, and data consistency is ensured through a dual inventory verification mechanism. The specific steps include: determining the demand data based on inventory consumption requests, querying the key-value storage system to obtain inventory configuration data, performing cache inventory checks and key-value storage inventory checks, and storing the data persistently through verification.
While ensuring data reliability, high-performance inventory management is achieved, avoiding the risk of data loss and over-send caused by cache failures, and ensuring data consistency between cache and key-value storage systems.
Smart Images

Figure CN119444062A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of Internet technology, and in particular to a method and device for managing activity resource inventory. Background Art
[0002] Platforms, merchants, etc. often attract users by holding various activities, and allocate activity resources such as items to users as rewards for participating in the activities according to their participation in the activities. In order to ensure the supply of activity resources and the effect of the activities during the activities, it is necessary to manage the activity resource inventory. The existing activity resource inventory management scheme is usually implemented in the following three ways: the first is to store inventory consumption through the database, but as the amount of data increases, the query and write performance of the database may be seriously affected, resulting in a slower system response speed, especially in the rush purchase scenario. The inventory consumption performance is poor; the second is to store inventory consumption through the cache, but the cache data is stored in the memory. Once the system fails or restarts, the inventory record data in the cache will be lost, affecting the reliability of the data; the third is to store inventory consumption through the combination of database and cache. This method may cause inconsistency between cache and database data. The combined use of database and cache increases the complexity of the system, and the consistency between multi-dimensional inventory types is more difficult to ensure. How to effectively manage the activity resource inventory has become an urgent problem to be solved. Summary of the invention
[0003] In view of the above problems, the present application is proposed to provide an activity resource inventory management method and device that overcomes the above problems or at least partially solves the above problems.
[0004] According to one aspect of an embodiment of the present application, there is provided an activity resource inventory management method, comprising:
[0005] According to the inventory consumption request for the activity resource, determine the inventory consumption demand data, and query the inventory configuration data corresponding to the activity resource from the key-value storage system;
[0006] Perform cache inventory verification based on inventory consumption demand data, inventory configuration data, and inventory consumption record data corresponding to active resources stored in the cache;
[0007] If the cache inventory verification passes, the inventory consumption record data in the cache is updated and the key-value storage inventory verification is performed;
[0008] If the key-value storage inventory verification passes, the inventory consumption record data in the cache will be persistently stored in the key-value storage system.
[0009] Further, determining inventory consumption demand data according to the inventory consumption request for the activity resource, and querying the inventory configuration data corresponding to the activity resource from the key-value storage system further includes:
[0010] Parse the inventory consumption request to obtain the activity resource ID, the activity resource to be consumed amount, and the user ID;
[0011] Determine inventory consumption demand data based on the activity resource to be consumed and user ID;
[0012] The inventory configuration data whose data key contains the activity resource identifier is queried from the key-value storage system as the inventory configuration data corresponding to the activity resource.
[0013] Furthermore, the inventory configuration data includes inventory configuration quantities in multiple dimensions; the inventory consumption record data corresponding to the activity resource includes inventory consumption quantities in multiple dimensions;
[0014] Performing cache inventory verification based on the inventory consumption demand data, the inventory configuration data, and the inventory consumption record data corresponding to the active resources stored in the cache further includes:
[0015] Perform multi-dimensional inventory verification based on inventory consumption demand data, multi-dimensional inventory configuration quantities, and multi-dimensional inventory consumption quantities stored in the cache;
[0016] If the inventory verification of all dimensions passes, the cache inventory verification is considered to pass;
[0017] If the inventory check of any dimension fails, it is determined that the cache inventory check fails.
[0018] Furthermore, performing inventory verification in multiple dimensions based on the inventory consumption demand data, the inventory configuration amounts in multiple dimensions, and the inventory consumption amounts in multiple dimensions stored in the cache further includes:
[0019] For each dimension, based on the inventory consumption demand data and the inventory consumption corresponding to the dimension, calculate the new inventory consumption corresponding to the dimension after the current inventory consumption;
[0020] Determine whether the new inventory consumption corresponding to the dimension is greater than the inventory configuration of the dimension;
[0021] If so, it is determined that the inventory check of the dimension has failed; if not, it is determined that the inventory check of the dimension has passed.
[0022] Furthermore, the multiple dimensions include: a total inventory dimension of an activity resource during the activity period, an inventory dimension of an activity resource per unit time, a total inventory dimension of a single user during the activity period, and an inventory dimension of a single user per unit time.
[0023] Furthermore, the inventory consumption record data corresponding to the activity resource also includes a formal inventory consumption set and a standby inventory consumption set;
[0024] The formal inventory consumption set is used to record the generated global consumption records, and the standby inventory consumption set is used to record the global consumption records that have been generated but not successfully consumed; the global consumption records contain the active resource consumption sequence number.
[0025] Furthermore, the method further comprises:
[0026] During the cache inventory verification process, the global consumption records in the backup inventory consumption set in the cache are preferentially moved to the formal inventory consumption set;
[0027] If the number of global consumption records in the reserve inventory consumption set is less than the amount of active resource to be consumed in the inventory consumption demand data, then after the inventory verification of the total inventory dimension of the active resource during the activity period passes, the corresponding global consumption record is generated in the formal inventory consumption set;
[0028] If the inventory check of any dimension fails, the global consumption records that were not successfully consumed in the formal inventory consumption set will be moved to the backup inventory consumption set.
[0029] Furthermore, performing key-value storage inventory verification further includes:
[0030] Querying the unique key data of the inventory set from the key-value storage system; wherein the unique key data of the inventory set includes the consumption sequence number of the activity resource that has been successfully consumed;
[0031] Determine whether the unique key data of the inventory collection contains the active resource consumption sequence number in the global consumption record corresponding to the current inventory consumption;
[0032] If so, it is determined that the key-value storage inventory verification has failed; if not, it is determined that the key-value storage inventory verification has passed.
[0033] Furthermore, the method further comprises:
[0034] If the cache inventory verification fails, a cache verification failure prompt message is generated;
[0035] If the key-value storage inventory check fails, the inventory consumption record data stored in the key-value storage system is written into the cache, and then the cache inventory check is performed based on the inventory consumption demand data, inventory configuration data, and the inventory consumption record data corresponding to the active resources stored in the cache.
[0036] According to another aspect of an embodiment of the present application, there is provided an activity resource inventory management device, comprising:
[0037] a query module adapted to determine inventory consumption demand data according to an inventory consumption request for an activity resource, and query inventory configuration data corresponding to the activity resource from a key-value storage system;
[0038] A cache inventory verification module, adapted to perform cache inventory verification based on inventory consumption demand data, inventory configuration data, and inventory consumption record data corresponding to active resources stored in the cache;
[0039] A key-value storage inventory verification module, adapted to update the inventory consumption record data in the cache if the cache inventory verification passes, and perform key-value storage inventory verification;
[0040] The persistence module is adapted to persistently store the inventory consumption record data in the cache into the key-value storage system if the key-value storage inventory verification passes.
[0041] According to another aspect of the embodiment of the present application, there is provided a computing device, including: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;
[0042] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute operations corresponding to the above-mentioned activity resource inventory management method.
[0043] According to another aspect of the embodiments of the present application, a computer storage medium is provided, in which at least one executable instruction is stored, and the executable instruction enables a processor to perform operations corresponding to the above-mentioned activity resource inventory management method.
[0044] According to another aspect of the embodiments of the present application, a computer program product is provided, comprising at least one executable instruction, wherein the executable instruction enables a processor to perform operations corresponding to the above-mentioned activity resource inventory management method.
[0045] According to the activity resource inventory management method and device provided in the embodiment of the present application, a key-value storage system and a cache are combined to implement activity resource inventory management. The key-value storage system is used to store inventory configuration data corresponding to each activity resource and inventory consumption record data corresponding to each activity resource. The cache is used to store the inventory consumption record data corresponding to each activity resource, and a double inventory check is set. The cache inventory check is performed first, and then the key-value storage inventory check is performed after the cache inventory check passes. After the double inventory check passes, the inventory consumption record data in the cache is persistently stored in the key-value storage system, which conveniently ensures data consistency between the cache and the key-value storage system. This solution can achieve high-performance inventory management while ensuring data reliability.
[0046] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation method of the embodiment of the present application is listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only used for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the embodiments of the present application. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0048] Figure 1 A schematic diagram of a process of an activity resource inventory management method according to an embodiment of the present application is shown;
[0049] Figure 2 A schematic diagram showing a flow chart of an activity resource inventory management method according to another embodiment of the present application;
[0050] Figure 3 A structural block diagram of an activity resource inventory management device according to an embodiment of the present application is shown;
[0051] Figure 4 A schematic diagram of the structure of a computing device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0052] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0053] First, the terms involved in one or more embodiments of the present application are explained.
[0054] Activity resources: refers to specific items or other forms of content distributed to activity participants during an activity, used to encourage users to participate in the activity and increase the attractiveness of the activity.
[0055] Activity resource inventory: refers to the inventory quantity of items set or reserved for activity resources during marketing and other activities to ensure the supply of items and the effectiveness of the activity.
[0056] Database: refers to an organized, shareable collection of data stored in a computer for a long time. It is a warehouse for storing data, usually stored on a disk.
[0057] Cache: A high-speed memory in a computer system that is used to temporarily store frequently used data, usually stored in memory, to improve system performance.
[0058] Figure 1 FIG. 4 shows a flow chart of an activity resource inventory management method according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:
[0059] Step S101 : determining inventory consumption demand data according to an inventory consumption request for an activity resource, and querying inventory configuration data corresponding to the activity resource from a key-value storage system.
[0060] Users can participate in activities through the activity page. When activity resources need to be allocated to users based on their participation, an inventory consumption request for activity resources is initiated. Activity resources may include physical items, virtual items, etc. Virtual items may include points, coupons, virtual costumes, etc. The inventory consumption request may include information such as activity resource identification (such as activity resource ID, etc.), activity resource to be consumed, user identification (such as user ID, etc.), activity identification, request time, etc. Specifically, the activity resource to be consumed refers to the amount of the activity resource that needs to be consumed in this request.
[0061] After the inventory consumption request is initiated, the inventory consumption demand data is determined according to the inventory consumption request, wherein the inventory consumption demand data is used to reflect which activity resource needs to be allocated to which user and how many activity resources need to be allocated this time.
[0062] In an embodiment of the present application, a key-value (KV) storage system and a cache are combined to implement active resource inventory management, which can achieve high-performance inventory management while ensuring data reliability. Specifically, a key-value storage system is used to store inventory configuration data corresponding to each active resource and inventory consumption record data corresponding to each active resource, and a cache is used to store inventory consumption record data corresponding to each active resource. Among them, for a certain active resource, its corresponding inventory configuration data may include the inventory configuration quantity of the active resource in multiple dimensions, and its corresponding inventory consumption record data may include the inventory consumption quantity of the active resource in multiple dimensions. In order to achieve accurate inventory management, after receiving an inventory consumption request for an active resource, it is necessary to query the inventory configuration data corresponding to the active resource from the key-value storage system.
[0063] Step S102, perform cache inventory verification based on the inventory consumption demand data, inventory configuration data and inventory consumption record data corresponding to the active resources stored in the cache. If the cache inventory verification passes, execute step S103; if the cache inventory verification fails, execute step S105.
[0064] In the embodiment of the present application, a double inventory check is set, and the cache inventory check is performed first, and the key-value storage inventory check is performed after the cache inventory check passes. During the cache inventory check process, the new inventory consumption corresponding to the active resource after the current inventory consumption can be calculated based on the inventory consumption demand data and the inventory consumption record data corresponding to the active resource stored in the cache, and the new inventory consumption is compared with the inventory configuration data to determine whether there is insufficient inventory. If the inventory is sufficient, it means that the cache inventory check has passed, and step S103 is executed; if the inventory is insufficient, it means that the cache inventory check has not passed, and step S105 is executed. Among them, in the case of inventory configuration according to multiple dimensions, that is, the inventory configuration data contains inventory configuration quantities in multiple dimensions, it can be further determined from multiple dimensions whether there is insufficient inventory.
[0065] Step S103, update the inventory consumption record data in the cache, and perform key-value storage inventory verification. If the key-value storage inventory verification passes, execute step S104; if the key-value storage inventory verification fails, execute step S106.
[0066] When the cache inventory verification passes, the cache performs corresponding inventory consumption according to the inventory consumption demand data, and updates the inventory consumption record data in the cache according to the inventory consumption situation.
[0067] Considering that when a cache fails, the existing data in the cache will be lost, so that the inventory consumption record data will be generated from the first item, in order to avoid the risk of over-issuance caused by cache failure, after the cache inventory verification passes and the inventory consumption record data in the cache is updated, the key-value storage inventory verification is also required. For example, the key-value storage inventory verification can be performed based on the comparison of the inventory consumption record data in the cache with the data stored in the key-value storage system. If the key-value storage inventory verification passes, step S104 is executed; if the key-value storage inventory verification fails, step S106 is executed.
[0068] Step S104: persistently store the inventory consumption record data in the cache in the key-value storage system.
[0069] When the key-value storage inventory verification passes, the inventory consumption record data in the cache is persistently stored in the key-value storage system, which conveniently ensures the data consistency between the cache and the key-value storage system.
[0070] Step S105: Generate cache verification failure prompt information.
[0071] In the case where the cache inventory verification fails, a cache verification failure prompt message may be generated and returned, and the cache verification failure prompt message may record the reason why the cache inventory verification fails.
[0072] Step S106, writing the inventory consumption record data stored in the key-value storage system into the cache.
[0073] When the key-value storage inventory verification fails, it means that the inventory consumption record data in the cache is the data rewritten after the cache failure. Specifically, after the cache failure, the inventory consumption record data is generated from the first item. In order to avoid the risk of over-issuance caused by the cache failure, the inventory consumption record data stored in the key-value storage system is written into the cache to compensate for the cached data, and then the process jumps to step S102 to re-perform the cache inventory verification based on the compensated inventory consumption record data.
[0074] According to the activity resource inventory management method provided in the embodiment of the present application, a key-value storage system and a cache are combined to implement activity resource inventory management. The key-value storage system is used to store inventory configuration data corresponding to each activity resource and inventory consumption record data corresponding to each activity resource. The cache is used to store the inventory consumption record data corresponding to each activity resource, and a double inventory check is set. The cache inventory check is performed first, and then the key-value storage inventory check is performed after the cache inventory check passes. After both double inventory checks pass, the inventory consumption record data in the cache is persistently stored in the key-value storage system, which conveniently ensures data consistency between the cache and the key-value storage system. This solution can achieve high-performance inventory management while ensuring data reliability.
[0075] Figure 2 FIG. 4 shows a flow chart of an activity resource inventory management method according to another embodiment of the present application. Figure 2 As shown, the method comprises the following steps:
[0076] Step S201 : determining inventory consumption demand data according to an inventory consumption request for an activity resource, and querying inventory configuration data corresponding to the activity resource from a key-value storage system.
[0077] When it is necessary to allocate activity resources to a user according to his / her participation in an activity, an inventory consumption request for the activity resources is initiated. In step S201, the inventory consumption request is parsed to obtain the activity resource identifier, the amount of activity resources to be consumed, and the user identifier; then, the inventory consumption demand data can be determined based on the amount of activity resources to be consumed and the user identifier. For example, the inventory consumption demand data can be a combination of the activity resource identifier, the user identifier, and the amount of activity resources to be consumed, which is used to indicate that the inventory consumption demand is for the user with the user identifier to allocate the activity resource with the amount of activity resources to be consumed and the identifier being the activity resource identifier.
[0078] In addition, it is also necessary to query the inventory configuration data corresponding to the active resource from the key-value storage system in order to perform subsequent inventory management. Specifically, the embodiment of the present application adopts a combination of a key-value storage system and a cache to implement active resource inventory management, a key-value storage system is used to store the inventory configuration data corresponding to each active resource and the inventory consumption record data corresponding to each active resource, and a cache is used to store the inventory consumption record data corresponding to each active resource, wherein the inventory configuration data and the inventory consumption record data corresponding to the active resource are both data stored in the form of data key-value pairs (key-value), and the data key key may contain an active resource identifier, and the active resource identifier is used to distinguish which active resource the data belongs to. In step S201, the active resource identifier is parsed from the inventory consumption request, and then the inventory configuration data whose data key contains the active resource identifier can be queried from the key-value storage system as the inventory configuration data corresponding to the active resource.
[0079] Step S202, perform cache inventory verification based on the inventory consumption demand data, inventory configuration data and inventory consumption record data corresponding to the active resources stored in the cache. If the cache inventory verification passes, execute step S203; if the cache inventory verification fails, execute step S208.
[0080] The embodiment of the present application can manage multi-dimensional inventory types, and perform inventory configuration and consumption records according to multiple dimensions. The inventory configuration data contains inventory configuration quantities in multiple dimensions; the inventory consumption record data corresponding to the active resources contains inventory consumption quantities in multiple dimensions. Among them, the multiple dimensions may include: the total inventory dimension of the active resource during the activity period, the inventory dimension of the active resource per unit time, the total inventory dimension of a single user during the activity period, and the inventory dimension of a single user per unit time, etc. Through this dimensional setting method, comprehensive management of inventory from multiple aspects such as users, active resources, time and total amount is conveniently realized, and seamless connection and high correlation between various types of inventory data are realized. Those skilled in the art can set the length and dimension of the unit time according to actual needs, and no specific limitation is made here. For example, the unit time can be 1 day, 1 hour, etc.
[0081] Taking 1 day as an example, the multiple dimensions include the total inventory dimension of activity resources during the activity period, the inventory dimension of activity resources on a single day, the total inventory dimension of a single user during the activity period, and the inventory dimension of a single user on a single day. For example, if an activity resource has a total inventory of 1,000 during the activity period and 200 on a single day, a total inventory of 50 for a single user during the activity period, and a inventory of 10 for a single user on a single day, then the key corresponding to the inventory configuration data corresponding to the activity resource contains the activity resource identifier of the activity resource and may also contain characters indicating that it is inventory configuration data. The value contains the inventory configuration amounts of the above four dimensions. For example, the data in the value is: {"stock_cycle" (indicating the total inventory of the activity resource during the activity period): "1000", "stock_day" (indicating the inventory of the activity resource on a single day): "200", "user_stock_cycle" (indicating the total inventory of a single user during the activity period): "50", "user_stock_day" (indicating the inventory of a single user on a single day): "10"}. The key corresponding to the inventory consumption of the total inventory dimension of the activity resource during the activity period includes the activity resource identifier of the activity resource, and may also include characters used to indicate that it is the inventory consumption of this dimension, and the value includes a specific inventory consumption value, such as 600. The key corresponding to the inventory consumption of the inventory dimension of the activity resource in a single day includes the activity resource identifier and date of the activity resource, and may also include characters used to indicate that it is the inventory consumption of this dimension, and the value includes a specific inventory consumption value, such as 90. The key corresponding to the total inventory dimension of a single user during the activity period includes the activity resource identifier and user identifier of the activity resource, and may also include characters used to indicate that it is the inventory consumption of this dimension, and the value includes a specific inventory consumption value, such as 19. The key corresponding to the inventory consumption of the inventory dimension of a single user in a single day includes the activity resource identifier, user identifier and date of the activity resource, and may also include characters used to indicate that it is the inventory consumption of this dimension, and the value includes a specific inventory consumption value, such as 8.
[0082] In step S202, inventory verification of multiple dimensions is performed based on the inventory consumption demand data, the inventory configuration quantities of multiple dimensions, and the inventory consumption quantities of multiple dimensions stored in the cache; if the inventory verification of all dimensions passes, it is determined that the cache inventory verification has passed; if the inventory verification of any dimension fails, it is determined that the cache inventory verification has failed.
[0083] Specifically, for each dimension, based on the inventory consumption demand data and the inventory consumption corresponding to the dimension, calculate the new inventory consumption corresponding to the dimension after the current inventory consumption; determine whether the new inventory consumption corresponding to the dimension is greater than the inventory configuration of the dimension; if so, determine that the inventory verification of the dimension has failed; if not, determine that the inventory verification of the dimension has passed.
[0084] Optionally, the inventory consumption record data corresponding to the active resource also includes a formal inventory consumption set and a backup inventory consumption set; wherein the formal inventory consumption set is used to record the global consumption records that have been generated, and the backup inventory consumption set is used to record the global consumption records that have been generated but not successfully consumed; the global consumption record contains the active resource consumption sequence number. Whenever one inventory is consumed, a global consumption record containing the corresponding active resource consumption sequence number is generated. The global consumption record can intuitively and conveniently reflect which inventory is currently consumed. In a specific application, the key corresponding to the global consumption record contains the active resource identifier of the active resource, and may also contain characters used to indicate that it is a global consumption record. The value contains a timestamp and an active resource consumption sequence number, and may also contain a retry identifier, an inventory version number, an active resource identifier, etc., wherein the retry identifier is used to reflect the retransmission situation, and the inventory version number is used to reflect the inventory configuration change situation.
[0085] Among them, in the process of cache inventory verification, the global consumption records in the backup inventory consumption set in the cache are preferentially moved to the formal inventory consumption set; if the number of global consumption records in the backup inventory consumption set is less than the amount of active resources to be consumed in the inventory consumption demand data, then after the inventory verification of the total inventory dimension of the active resources during the activity period passes, the corresponding global consumption records are generated in the formal inventory consumption set; if the inventory verification of any dimension fails, the global consumption records that have not been successfully consumed in the formal inventory consumption set are moved to the backup inventory consumption set. The cache processing speed is very fast, and effective inventory consumption management and high-performance cache inventory verification are achieved by combining the backup inventory consumption set with the formal inventory consumption set.
[0086] Step S203, updating the inventory consumption record data in the cache.
[0087] When the cached inventory verification passes, the cache performs corresponding inventory consumption based on the inventory consumption demand data, and updates the inventory consumption record data in the cache according to the inventory consumption situation, such as generating new inventory consumption record data, modifying the inventory consumption in the original inventory consumption record data, etc.
[0088] Step S204: query the unique key data of the inventory set from the key-value storage system.
[0089] Considering that when a cache fails, the existing data in the cache will be lost, so that the inventory consumption record data will be generated from the first item. In order to avoid the risk of over-issuance caused by cache failure, the key-value storage system stores the inventory set unique key data, where the inventory set unique key data contains the consumption sequence number of the successfully consumed activity resources. Whenever one inventory is successfully consumed, an inventory set unique key data is generated. The inventory set unique key data can clearly know which inventory of the current activity resource has been successfully consumed. In a specific application, the key corresponding to the inventory set unique key data contains the activity resource identifier and activity resource consumption sequence number of the activity resource, and may also contain characters used to indicate that it is the inventory set unique key data, and the value contains consumption status characters, such as true, which is used to indicate that the activity resource corresponding to the consumption sequence number has been successfully consumed.
[0090] Considering that when a cache fails, the existing data in the cache will be lost, causing the inventory consumption record data to be generated from the first item. In order to avoid the risk of over-issuance caused by cache failure, after the cache inventory verification passes and the inventory consumption record data in the cache is updated, the key-value storage inventory verification is also required. Specifically, the verification is performed based on the unique key data of the inventory collection in the key-value storage system.
[0091] Step S205, determining whether the unique key data of the inventory set contains the active resource consumption sequence number in the global consumption record corresponding to the current inventory consumption; if so, executing step S206; if not, executing step S207.
[0092] If the unique key data of the inventory set contains the active resource consumption sequence number in the global consumption record corresponding to the current inventory consumption of the cache, it means that the active resource consumption sequence number has been consumed before, and the global consumption record corresponding to the current inventory consumption of the cache is rewritten after the cache failure, and is generated from the first record, then execute step S206. If the unique key data of the inventory set does not contain the active resource consumption sequence number in the global consumption record corresponding to the current inventory consumption of the cache, it means that the cache is normal, then execute step S207.
[0093] Step S206: determine that the key-value storage inventory verification fails, and write the inventory consumption record data stored in the key-value storage system into the cache.
[0094] When the key-value storage inventory check fails, in order to avoid the risk of over-issuance caused by cache failure, the inventory consumption record data stored in the key-value storage system is written into the cache to compensate for the cached data, and then the process jumps to step S202 to re-check the cached inventory based on the compensated inventory consumption record data, so that subsequent inventory consumption processing can avoid over-issuance.
[0095] Step S207 , determining that the key-value storage inventory verification has passed, and persistently storing the inventory consumption record data in the cache in the key-value storage system.
[0096] By persistently storing the inventory consumption record data in the cache in the key-value storage system, the data consistency between the cache and the key-value storage system is conveniently guaranteed. Among them, the persistence processing can adopt an asynchronous persistence method to avoid blocking the main process and help maintain processing performance.
[0097] Step S208: Generate cache verification failure prompt information.
[0098] In the case where the cache inventory verification fails, a cache verification failure prompt message may be generated and returned, and the cache verification failure prompt message may record the reason why the cache inventory verification fails.
[0099] The following introduces the cache inventory verification process and the key-value storage inventory verification process through specific examples.
[0100] Take a certain activity resource as an example. Its inventory configuration is 1,000 units in total during the activity period, 200 units in a single day, 50 units in total for a single user during the activity period, and 10 units in a single day. Assume that 600 units of the activity resource have been consumed during the activity period, and 100 units have been consumed on October 22; user A consumed 20 units of the activity resource during the activity period, and 10 units have been claimed on October 22; user B consumed 5 units of the activity resource during the activity period, and has not claimed or consumed them on October 22.
[0101] For user A, if user A expects to consume 3 more of the activity resources on October 22 (that is, the activity resources to be consumed are 3), then the inventory consumption process is as follows:
[0102] 1. First, perform cache inventory verification:
[0103] 1.1. Perform a backup inventory check and find that the backup inventory consumption set is empty, so perform a formal inventory check.
[0104] 1.2. Conduct formal inventory verification:
[0105] 1.2.1. Verify the total inventory dimension of the activity resources during the activity period:
[0106] 1.2.1.1. The inventory consumption of this dimension is 600. The sum of the inventory consumption and the active resource consumption is 603, which is less than the inventory configuration of this dimension, 1000. Therefore, the inventory check of this dimension passes.
[0107] 1.2.1.2. Generate three global consumption records in the formal inventory consumption set. The activity resource consumption serial numbers of these three global consumption records are 601, 602 and 603 respectively.
[0108] 1.2.2. Verify the inventory dimension of the activity resources within a single day:
[0109] The inventory consumption of this dimension is 100. The sum of the inventory consumption and the active resource consumption is 103, which is less than the inventory configuration of this dimension, 200. Therefore, the inventory check of this dimension passes.
[0110] 1.2.3. Verify the total inventory dimension of a single user during the activity period:
[0111] The inventory consumption of this dimension is 20. The sum of the inventory consumption and the active resource consumption is 23, which is less than the inventory configuration of this dimension, 50. Therefore, the inventory check of this dimension passes.
[0112] 1.2.4. Verify the inventory dimension of a single user within a single day:
[0113] 1.2.4.1. The inventory consumption of this dimension is 10. The sum of the inventory consumption and the active resource consumption is 13, which is greater than the inventory configuration of this dimension, 10. Therefore, the inventory check of this dimension fails.
[0114] 1.2.4.2. Put the three global consumption records generated in the official inventory consumption set into the backup cache, add the three global consumption records to the backup inventory consumption set, and delete the three global consumption records from the official inventory consumption set.
[0115] 1.2.4.3. Generate a cache verification failure prompt message, indicating that the current inventory consumption has failed. The cache verification failure prompt message records that the reason for the cache inventory verification failure is that the inventory remaining of a single user is insufficient on a single day. This method can provide users with personalized inventory prompts and warnings, so that they know the reasons for the inventory consumption failure, which helps to improve user satisfaction and loyalty.
[0116] For user B, if user B expects to consume 5 more of the activity resources on October 22 (that is, the activity resources to be consumed are 5), then the inventory consumption process is as follows:
[0117] 1. First, perform cache inventory verification:
[0118] 1.1. Check the spare inventory and find that the spare inventory consumption set contains 3 global consumption records, and the active resource consumption numbers of these 3 global consumption records are 601, 602 and 603. After adding these 3 global consumption records to the formal inventory consumption set, it is found that 2 more are needed, that is, the difference in the amount of active resources to be consumed is 2.
[0119] 1.2. Conduct formal inventory verification:
[0120] 1.2.1. Verify the total inventory dimension of the activity resources during the activity period:
[0121] 1.2.1.1. The activity resource consumption numbers 601, 602 and 603 have passed the verification of this dimension before. The inventory consumption of this dimension is 603. The difference between this inventory consumption and the activity resource to be consumed is 605, which is less than the inventory configuration of this dimension, 1000. Therefore, the inventory verification of this dimension passes.
[0122] 1.2.1.2. Starting from the active resource consumption sequence number 604, two global consumption records are generated in the formal inventory consumption set. The active resource consumption sequence numbers of these two global consumption records are 604 and 605 respectively.
[0123] 1.2.2. Verify the inventory dimension of the activity resources within a single day:
[0124] Activity resource consumption numbers 601, 602, and 603 have previously passed the verification of this dimension. The inventory consumption of this dimension is 103. The difference between this inventory consumption and the amount of activity resources to be consumed is 105, which is less than the inventory configuration of this dimension, 200. Therefore, the inventory verification of this dimension passes.
[0125] 1.2.3. Verify the total inventory dimension of a single user during the activity period:
[0126] The inventory consumption of this dimension is 5. The sum of the inventory consumption and the active resource consumption to be consumed is 10, which is less than the inventory configuration of this dimension, 50. Therefore, the inventory check of this dimension passes.
[0127] 1.2.4. Verify the inventory dimension of a single user within a single day:
[0128] The inventory consumption of this dimension is 0. The sum of the inventory consumption and the active resource consumption is 5, which is less than the inventory configuration of this dimension, 10. Therefore, the inventory check of this dimension passes.
[0129] 2. Perform key-value storage inventory verification and persistence processing:
[0130] 2.1. Verify the unique key data of the inventory collection: determine whether the activity resource consumption serial numbers 601 to 605 generated by the cache already exist in the unique key data of the inventory collection in the key-value storage system, for example, determine whether the value of the key corresponding to the unique key data of the inventory collection contains the data of the activity resource consumption serial numbers 601 to 605 is true.
[0131] 2.1.1. If it already exists, it means that it was rewritten after a cache failure (records are generated starting from the first item after the cache failure). At this time, all inventory consumption record data in the key-value storage system is written into the cache, so that new users can avoid over-issuance when they enter.
[0132] 2.1.2. If it does not exist, it means that the cache is normal. The inventory consumption record data of the cache record is written into the key-value storage system for asynchronous persistence.
[0133] According to the activity resource inventory management method provided in the embodiment of the present application, the activity resource inventory management is realized in the form of a combination of a key-value storage system and a cache, which can realize high-performance inventory management while ensuring data reliability, accurately manage inventory consumption, and can be stably executed in high-concurrency scenarios; and can manage multi-dimensional inventory types, with strong flexibility and scalability, realize high scalability and versatility of inventory types, conveniently realize comprehensive management of inventory from multiple aspects such as users, activity resources, time and total amount, realize seamless connection and high correlation between various types of inventory data, and can perform refined and personalized inventory management; and set up a double inventory check, first perform a cache inventory check, and then perform a key-value storage inventory check after the cache inventory check passes; if the key-value storage inventory check fails, the inventory consumption record data stored in the key-value storage system is written to the cache, effectively avoiding the risk of over-issuance caused by cache failure; after both double inventory checks pass, the inventory consumption record data in the cache is persistently stored in the key-value storage system, conveniently ensuring data consistency between the cache and the key-value storage system.
[0134] Figure 3 FIG. 4 shows a structural block diagram of an activity resource inventory management device according to an embodiment of the present application. Figure 3 As shown, the device includes: a query module 310, a cache inventory verification module 320, a key-value storage inventory verification module 330 and a persistence module 340.
[0135] The query module 310 is adapted to determine inventory consumption demand data according to an inventory consumption request for an activity resource, and query inventory configuration data corresponding to the activity resource from a key-value storage system.
[0136] The cache inventory verification module 320 is adapted to perform cache inventory verification according to the inventory consumption demand data, the inventory configuration data, and the inventory consumption record data corresponding to the active resources stored in the cache.
[0137] The key-value storage inventory verification module 330 is adapted to update the inventory consumption record data in the cache and perform key-value storage inventory verification if the cache inventory verification passes.
[0138] The persistence module 340 is adapted to: if the key-value storage inventory verification passes, persistently store the inventory consumption record data in the cache in the key-value storage system.
[0139] Optionally, the query module 310 is further adapted to: parse the inventory consumption request to obtain the activity resource identifier, the amount of activity resources to be consumed, and the user identifier; determine the inventory consumption demand data based on the amount of activity resources to be consumed and the user identifier; and query the inventory configuration data whose data key contains the activity resource identifier from the key-value storage system as the inventory configuration data corresponding to the activity resource.
[0140] Optionally, the inventory configuration data includes inventory configuration quantities in multiple dimensions; the inventory consumption record data corresponding to the active resource includes inventory consumption quantities in multiple dimensions. The cache inventory verification module 320 is further adapted to: perform inventory verification in multiple dimensions based on the inventory consumption demand data, the inventory configuration quantities in multiple dimensions, and the inventory consumption quantities in multiple dimensions stored in the cache; if the inventory verification in all dimensions passes, it is determined that the cache inventory verification passes; if the inventory verification in any dimension fails, it is determined that the cache inventory verification fails.
[0141] Optionally, the cache inventory verification module 320 is further adapted to: for each dimension, based on the inventory consumption demand data and the inventory consumption corresponding to the dimension, calculate the new inventory consumption corresponding to the dimension after the current inventory consumption; determine whether the new inventory consumption corresponding to the dimension is greater than the inventory configuration of the dimension; if so, determine that the inventory verification of the dimension has failed; if not, determine that the inventory verification of the dimension has passed.
[0142] Optionally, the multiple dimensions include: a total inventory dimension of an activity resource during the activity period, an inventory dimension of an activity resource per unit time, a total inventory dimension of a single user during the activity period, and an inventory dimension of a single user per unit time.
[0143] Optionally, the inventory consumption record data corresponding to the active resource also includes a formal inventory consumption set and a backup inventory consumption set; wherein, the formal inventory consumption set is used to record the generated global consumption records, and the backup inventory consumption set is used to record the global consumption records that have been generated but not successfully consumed; the global consumption record includes the active resource consumption sequence number.
[0144] Optionally, the cache inventory verification module 320 is further adapted to: during the cache inventory verification process, the global consumption records in the spare inventory consumption set in the cache are preferentially moved to the formal inventory consumption set; if the number of global consumption records in the spare inventory consumption set is less than the amount of active resources to be consumed in the inventory consumption demand data, then after the inventory verification of the total inventory dimension of the active resources during the activity period passes, the corresponding global consumption records are generated in the formal inventory consumption set; if the inventory verification of any dimension fails, the global consumption records that have not been successfully consumed in the formal inventory consumption set are moved to the spare inventory consumption set.
[0145] Optionally, the key-value storage inventory verification module 330 is further suitable for: querying the inventory set unique key data from the key-value storage system; wherein the inventory set unique key data includes the activity resource consumption serial number that has been successfully consumed; determining whether the inventory set unique key data includes the activity resource consumption serial number in the global consumption record corresponding to the current inventory consumption cached; if so, determining that the key-value storage inventory verification has failed; if not, determining that the key-value storage inventory verification has passed.
[0146] Optionally, the device is further adapted to: if the cache inventory verification fails, generate a cache verification failure prompt message; if the key-value storage inventory verification fails, write the inventory consumption record data stored in the key-value storage system into the cache, and then trigger the cache inventory verification module 320.
[0147] The description of each module above refers to the corresponding description in the method embodiment and will not be repeated here.
[0148] According to the activity resource inventory management device provided by the embodiment of the present application, the activity resource inventory management is realized in the form of a combination of a key-value storage system and a cache, which can realize high-performance inventory management while ensuring data reliability, accurately manage inventory consumption, and can be stably executed in high-concurrency scenarios; and it can manage multi-dimensional inventory types, has strong flexibility and scalability, realizes high scalability and versatility of inventory types, conveniently realizes comprehensive management of inventory from multiple aspects such as users, activity resources, time and total amount, realizes seamless connection and high correlation between various types of inventory data, and can perform refined and personalized inventory management; and a double inventory check is set, first performing a cache inventory check, and then performing a key-value storage inventory check after the cache inventory check passes; if the key-value storage inventory check fails, the inventory consumption record data stored in the key-value storage system is written to the cache, effectively avoiding the risk of over-issuance caused by cache failure; after both double inventory checks pass, the inventory consumption record data in the cache is persistently stored in the key-value storage system, conveniently ensuring data consistency between the cache and the key-value storage system.
[0149] An embodiment of the present application provides a non-volatile computer storage medium, which stores at least one executable instruction or computer program, and the executable instruction or computer program can enable a processor to perform operations corresponding to the activity resource inventory management method in any of the above method embodiments.
[0150] An embodiment of the present application provides a computer program product, which includes at least one executable instruction or computer program, and the executable instruction or computer program can enable a processor to perform operations corresponding to the activity resource inventory management method in any of the above method embodiments.
[0151] Figure 4 A schematic diagram of the structure of a computing device according to an embodiment of the present application is shown. The specific embodiment of the present application does not limit the specific implementation of the computing device.
[0152] like Figure 4 As shown, the computing device may include: a processor (processor) 402 , a communications interface (Communications Interface) 404 , a memory (memory) 406 , and a communication bus 408 .
[0153] The processor 402, the communication interface 404, and the memory 406 communicate with each other via the communication bus 408. The communication interface 404 is used to communicate with other devices such as a client or other server network elements. The processor 402 is used to execute the program 410, which can specifically execute the relevant steps in the above-mentioned embodiment of the active resource inventory management method for computing devices.
[0154] Specifically, the program 410 may include program codes, which include computer operation instructions.
[0155] The processor 402 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the computing device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0156] The memory 406 is used to store the program 410. The memory 406 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0157] The program 410 can be specifically used to enable the processor 402 to execute the activity resource inventory management method in any of the above method embodiments. The specific implementation of each step in the program 410 can refer to the corresponding descriptions in the corresponding steps and units in the above activity resource inventory management embodiment, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above-mentioned method embodiment, which will not be repeated here.
[0158] The algorithm and display provided herein are not inherently related to any specific computer, virtual system or other equipment. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious to construct the structure required for this type of system. In addition, the present application embodiment is not directed to any specific programming language yet. It should be understood that various programming languages can be utilized to realize the content of the present application embodiment described herein, and the above description of specific languages is to disclose the best mode of implementation of the present application embodiment.
[0159] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0160] Similarly, it should be understood that in order to streamline the present disclosure and help understand one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, the various features of the embodiments of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be interpreted as reflecting the following intention: the claimed embodiments of the present application require more features than the features clearly stated in each claim. More specifically, as reflected in the claims below, the inventive aspects are less than all the features of the single embodiment disclosed above. Therefore, the claims following the specific embodiment are hereby explicitly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the embodiment of the present application.
[0161] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0162] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the embodiments of the present application and to form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0163] The various component embodiments of the embodiments of the present application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components according to the embodiments of the present application. The embodiments of the present application can also be implemented as a device or apparatus program (e.g., computer program and computer program product) for executing part or all of the methods described herein. Such a program implementing the embodiments of the present application can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0164] It should be noted that the above embodiments illustrate rather than limit the embodiments of the present application, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets should not be constructed as a limitation to the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of multiple such elements. The embodiments of the present application may be implemented by means of hardware including several different elements and by means of appropriately programmed computers. In a unit claim that lists several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names.
Claims
1. A method for managing activity resource inventory, comprising: Determine inventory consumption demand data according to an inventory consumption request for an activity resource, and query inventory configuration data corresponding to the activity resource from a key-value storage system; Performing cache inventory verification according to the inventory consumption demand data, the inventory configuration data, and the inventory consumption record data corresponding to the activity resource stored in the cache; If the cache inventory verification passes, the inventory consumption record data in the cache is updated to perform key-value storage inventory verification; If the key-value storage inventory verification passes, the inventory consumption record data in the cache is persistently stored in the key-value storage system.
2. The method according to claim 1, wherein determining the inventory consumption demand data according to the inventory consumption request for the activity resource and querying the inventory configuration data corresponding to the activity resource from the key-value storage system further comprises: Parsing the inventory consumption request to obtain an activity resource identifier, an activity resource to be consumed amount, and a user identifier; Determining the inventory consumption demand data according to the amount of activity resources to be consumed and the user identifier; The inventory configuration data whose data key contains the active resource identifier is queried from the key-value storage system as the inventory configuration data corresponding to the active resource.
3. According to the method of claim 1, the inventory configuration data contains inventory configuration quantities in multiple dimensions; the inventory consumption record data corresponding to the activity resource contains inventory consumption quantities in multiple dimensions; The cache inventory verification based on the inventory consumption demand data, the inventory configuration data and the inventory consumption record data corresponding to the active resource stored in the cache further includes: Performing inventory verification in multiple dimensions according to the inventory consumption demand data, the inventory configuration amounts in multiple dimensions, and the inventory consumption amounts in multiple dimensions stored in the cache; If the inventory verification of all dimensions passes, the cache inventory verification is considered to pass; If the inventory check of any dimension fails, it is determined that the cache inventory check fails.
4. According to the method of claim 3, the performing of inventory verification in multiple dimensions based on the inventory consumption demand data, the inventory configuration amounts in multiple dimensions, and the inventory consumption amounts in multiple dimensions stored in the cache further comprises: For each dimension, based on the inventory consumption demand data and the inventory consumption corresponding to the dimension, calculate the new inventory consumption corresponding to the dimension after the current inventory consumption; Determine whether the new inventory consumption corresponding to the dimension is greater than the inventory configuration of the dimension; If so, it is determined that the inventory check of the dimension has failed; if not, it is determined that the inventory check of the dimension has passed.
5. The method according to claim 3, wherein the multiple dimensions include: The total inventory dimension of the activity resource during the activity period, the inventory dimension of the activity resource per unit time, the total inventory dimension of a single user during the activity period, and the inventory dimension of a single user per unit time.
6. According to the method of claim 5, the inventory consumption record data corresponding to the active resource further includes a formal inventory consumption set and a backup inventory consumption set; in, The formal inventory consumption set is used to record the generated global consumption records, and the standby inventory consumption set is used to record the global consumption records that have been generated but not successfully consumed; the global consumption records contain the active resource consumption sequence numbers.
7. The method according to claim 6, further comprising: During the cache inventory verification process, the global consumption records in the backup inventory consumption set in the cache are preferentially moved to the formal inventory consumption set; If the number of global consumption records in the standby inventory consumption set is less than the amount of active resource to be consumed in the inventory consumption demand data, then after the inventory check of the total inventory dimension of the active resource during the activity period passes, a corresponding global consumption record is generated in the formal inventory consumption set; If the inventory check of any dimension fails, the global consumption records of unsuccessful consumption in the formal inventory consumption set are moved to the backup inventory consumption set.
8. The method according to claim 6 or 7, wherein the key-value storage inventory verification further comprises: Querying the inventory set unique key data from the key-value storage system; wherein the inventory set unique key data includes the consumption sequence number of the successfully consumed activity resources; Determine whether the unique key data of the inventory set contains the active resource consumption sequence number in the global consumption record corresponding to the current inventory consumption; If so, it is determined that the key-value storage inventory verification has failed; if not, it is determined that the key-value storage inventory verification has passed.
9. The method according to any one of claims 1 to 8, further comprising: If the cache inventory verification fails, a cache verification failure prompt message is generated; If the key-value storage inventory check fails, the inventory consumption record data stored in the key-value storage system is written into the cache, and then the cache inventory check is performed based on the inventory consumption demand data, the inventory configuration data and the inventory consumption record data corresponding to the active resources stored in the cache.
10. An activity resource inventory management device, comprising: a query module adapted to determine inventory consumption demand data according to an inventory consumption request for an activity resource, and query inventory configuration data corresponding to the activity resource from a key-value storage system; A cache inventory verification module, adapted to perform cache inventory verification based on the inventory consumption demand data, the inventory configuration data, and the inventory consumption record data corresponding to the active resource stored in the cache; A key-value storage inventory verification module, adapted to update the inventory consumption record data in the cache if the cache inventory verification passes, and perform key-value storage inventory verification; The persistence module is adapted to persistently store the inventory consumption record data in the cache into the key-value storage system if the key-value storage inventory verification passes.
11. A computing device comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the activity resource inventory management method according to any one of claims 1 to 9.
12. A computer storage medium, wherein at least one executable instruction is stored in the storage medium, and wherein the executable instruction enables a processor to execute operations corresponding to the activity resource inventory management method according to any one of claims 1 to 9.
13. A computer program product, comprising at least one executable instruction, wherein the executable instruction enables a processor to execute operations corresponding to the activity resource inventory management method according to any one of claims 1 to 9.
Citation Information
Cited By
Resource dynamic allocation method, system, equipment and product in high-concurrency scene
CN120973544A