Data processing method and device, electronic equipment and program product
By introducing virtual resource transfer credentials as the intermediate processing layer, combined with dynamic rule selection and differentiated allocation strategies, the problems of low efficiency and poor consistency of virtual resource allocation in the existing technology are solved, and efficient and accurate virtual resource allocation is achieved to adapt to complex large-scale data environments.
Patent Information
- Application Number
- CN202510606163.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-12
- Publication Date
- 2025-08-12
- Estimated Expiration
- 2045-05-12
AI Technical Summary
The existing data processing systems have high risk of human error, low efficiency and inability to effectively utilize parallel processing when allocating virtual resources. Especially in large-scale data environments, the system resource consumption is high and the processing performance is poor, and it is unable to adapt to the intelligent allocation problem in heterogeneous data environments.
Virtual resource transfer credentials are introduced as the intermediate processing layer, combining multiple allocation mechanisms, through the secondary allocation architecture of virtual resource transfer credentials and resource allocation items, a dynamic rule selection mechanism and differentiated allocation strategy are adopted to achieve efficient and accurate virtual resource allocation.
It significantly improves data processing efficiency, reduces the risk of data inconsistency, improves the system's processing capabilities in large-scale data environments, adapts to complex allocation scenarios, and meets diverse technical needs.
Smart Images

Figure CN120469810A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer application technology, and in particular to a data processing method and device, an electronic device, and a program product. Background Art
[0002] Currently, a common technical scenario in data processing systems is virtual resource allocation data processing. Specifically, the system contains a large number of allocation records generated by data interactions or service requests. When the system receives virtual resource transfer information, it needs to allocate the virtual resource value to the associated allocation record and update its status data. In practical applications, the virtual resource value is often less than the total outstanding value of the associated allocation record. Therefore, the system needs to determine how to properly distribute the limited virtual resource value across multiple allocation records.
[0003] To this end, existing systems often adopt two methods: one is to manually allocate virtual resource values to allocation record items; the other is to use simple linear automatic processing to update allocation record items one by one.
[0004] However, these solutions all have significant technical flaws: First, manual processing can easily introduce human errors, leading to inconsistent system data. Second, in a big data environment, existing processing methods exhibit efficiency bottlenecks, especially when large numbers of records need to be processed simultaneously. This leads to high system resource consumption and poor processing performance.
[0005] Therefore, an improved data processing method is urgently needed to ensure the reliability and efficiency of virtual resource allocation processing, thereby enhancing the allocation and processing capabilities of the system in a large-scale data environment.
[0006] The content of this background technology description is only for facilitating understanding of the relevant technology in this field and is not regarded as an admission of the prior art. Summary of the Invention
[0007] The embodiments of the present disclosure aim to provide a data processing method and apparatus, an electronic device, and a program product, which can alleviate or solve at least one of the technical problems mentioned above.
[0008] In a first aspect, an embodiment of the present disclosure provides a data processing method, which may include:
[0009] Acquire virtual resource transfer information of a virtual resource provider, wherein the virtual resource transfer information includes a virtual resource value;
[0010] determining a transfer voucher resource value of at least one virtual resource transfer voucher associated with the virtual resource provider and a voucher allocation resource value of a corresponding resource allocation item;
[0011] Acquire resource allocation data of at least one resource allocation item associated with each virtual resource transfer voucher in the at least one virtual resource transfer voucher, the resource allocation data comprising a resource allocation value and a resource allocation state;
[0012] Allocating the virtual resource value to at least one target virtual resource transfer voucher in the at least one virtual resource transfer voucher, and determining a first transfer value corresponding to each target virtual resource transfer voucher;
[0013] Allocating the first transfer value corresponding to each target virtual resource transfer voucher to the target resource allocation item corresponding to each target virtual resource transfer voucher, and determining the second transfer value corresponding to the target resource allocation item;
[0014] The resource allocation state of the resource allocation item is updated according to the resource allocation value and the second transfer value.
[0015] Optionally, allocating the first transfer value corresponding to each target virtual resource transfer voucher to the target resource allocation item corresponding to each target virtual resource transfer voucher, and determining the second transfer value corresponding to the target resource allocation item includes:
[0016] selectively adopting the first allocation item allocation rule or the second allocation item allocation rule according to the relationship between the first transfer value and the transfer voucher resource value of the corresponding target virtual resource transfer voucher;
[0017] Among them, when the first transfer value is equal to the transfer voucher resource value of the corresponding target virtual resource transfer voucher, the first transfer value is allocated to the at least one resource allocation item associated with the corresponding target virtual resource transfer voucher according to the first allocation item allocation rule; when the first transfer value is less than the transfer voucher resource value of the corresponding target virtual resource transfer voucher, the first transfer value is allocated to the at least one resource allocation item associated with the corresponding target virtual resource transfer voucher according to the second allocation item allocation rule.
[0018] Optionally, allocating the first transfer value corresponding to each target virtual resource transfer voucher to the target resource allocation item corresponding to each target virtual resource transfer voucher, and determining the second transfer value corresponding to the target resource allocation item includes:
[0019] Identifying the resource type of the target virtual resource transfer certificate;
[0020] selectively adopting the first allocation item allocation rule or the second allocation item allocation rule according to the resource type;
[0021] Among them, when the resource type is the first preset type, the first transfer value is allocated to the one or more target resource allocation items associated with the target virtual resource transfer voucher according to the first allocation item allocation rule; when the resource type is the second preset type, the first transfer value is allocated to at least one of the target resource allocation items associated with the target virtual resource transfer voucher according to the second allocation item allocation rule.
[0022] Optionally, allocating the first transfer value corresponding to each target virtual resource transfer voucher to the target resource allocation item corresponding to each target virtual resource transfer voucher, and determining the second transfer value corresponding to the target resource allocation item includes:
[0023] Identifying a participant category of the at least one resource allocation item associated with the target virtual resource transfer voucher;
[0024] selectively adopting the first allocation item allocation rule, the second allocation item allocation rule, or a combination thereof according to the participant category;
[0025] Among them, when the participant category is the first preset category, the first transfer value is allocated to the at least one target resource allocation item associated with the target virtual resource transfer voucher according to the first allocation item allocation rule; when the participant category is the second preset category, the first transfer value is allocated to the at least one target resource allocation item associated with the target virtual resource transfer voucher according to the second allocation item allocation rule; when the participant category includes the first preset category and the second preset category, the first intermediate transfer value applicable to the first allocation item allocation rule and the second intermediate transfer value applicable to the second allocation item allocation rule are determined, and the first intermediate transfer value is allocated to the at least one target resource allocation item associated with the target virtual resource transfer voucher according to the first allocation item allocation rule, and the second intermediate transfer value is allocated to the at least one target resource allocation item associated with the target virtual resource transfer voucher according to the second allocation item allocation rule.
[0026] Optionally, allocating the first transfer value corresponding to each target virtual resource transfer voucher to the target resource allocation item corresponding to each target virtual resource transfer voucher, and determining the second transfer value corresponding to the target resource allocation item includes:
[0027] Constructing a multidimensional allocation factor matrix, wherein the dimensions of the multidimensional allocation factor matrix include at least a relationship between the first transfer value and the transfer voucher resource value of the target virtual resource transfer voucher, a resource type corresponding to the target virtual resource transfer voucher, and a participant category corresponding to the target virtual resource transfer voucher;
[0028] Determining corresponding allocation decision values based on element values in the multidimensional allocation factor matrix;
[0029] selectively adopting the first allocation item allocation rule, the second allocation item allocation rule, or a combination thereof according to the threshold range to which the allocation decision value belongs;
[0030] Wherein, when the allocation decision value is within the first preset threshold interval, the first transfer value is allocated to at least one target resource allocation item associated with the target virtual resource transfer voucher according to the first allocation item allocation rule; when the allocation decision value is within the second preset threshold interval, the first transfer value is allocated to at least one target resource allocation item associated with the target virtual resource transfer voucher according to the second allocation item allocation rule; when the allocation decision value is within the third preset threshold interval, the first intermediate transfer value applicable to the first allocation item allocation rule and the second intermediate transfer value applicable to the second allocation item allocation rule are determined, and the first intermediate transfer value is allocated to at least one target resource allocation item associated with the target virtual resource transfer voucher according to the first allocation item allocation rule, and the second intermediate transfer value is allocated to at least one target resource allocation item associated with the target virtual resource transfer voucher according to the second allocation item allocation rule.
[0031] Optionally, the first allocation item allocation rule is to allocate according to the proportion of the voucher allocation resource value of each target resource allocation item in the target virtual resource transfer voucher;
[0032] The second allocation item allocation rule is to allocate according to the priority order of each target resource allocation item.
[0033] Optionally, allocating the virtual resource value to at least one target virtual resource transfer voucher in the virtual resource transfer voucher to determine the first transfer value includes:
[0034] selectively adopting a first voucher allocation rule or a second voucher allocation rule according to a relationship between the virtual resource value and a total transfer voucher resource value of the at least one target virtual resource transfer voucher;
[0035] wherein, when the virtual resource value is equal to the total transfer voucher resource value of the at least one target virtual resource transfer voucher, allocating the virtual resource value to the at least one target virtual resource transfer voucher according to a first voucher allocation rule to determine the first transfer value;
[0036] When the virtual resource value is less than the total transfer voucher resource value of the at least one virtual resource transfer voucher, the virtual resource value is allocated to the at least one target virtual resource transfer voucher according to a second voucher allocation rule to determine the first transfer value.
[0037] In a second aspect, an embodiment of the present disclosure provides a data processing device, which may include:
[0038] A first acquiring unit is configured to acquire virtual resource transfer information of a virtual resource provider, wherein the virtual resource transfer information includes a virtual resource value;
[0039] a determining unit configured to determine a transfer credential resource value of at least one virtual resource transfer credential associated with the virtual resource provider and an allocation credential resource value of a corresponding resource allocation item;
[0040] a second acquiring unit configured to acquire resource allocation data of at least one resource allocation item associated with each virtual resource transfer voucher in the at least one virtual resource transfer voucher, the resource allocation data comprising a resource allocation value and a resource allocation state;
[0041] a first allocating unit configured to allocate the virtual resource value to at least one target virtual resource transfer voucher in the at least one virtual resource transfer voucher, and determine a first transfer value corresponding to each target virtual resource transfer voucher;
[0042] A second allocation unit is configured to allocate the first transfer value corresponding to each target virtual resource transfer voucher to the target resource allocation item corresponding to each target virtual resource transfer voucher, and determine a second transfer value corresponding to the target resource allocation item;
[0043] An updating unit is configured to update the resource allocation state of the resource allocation item according to the resource allocation value and the second transfer value.
[0044] In a third aspect, an embodiment of the present disclosure provides an electronic device, which may include: a processor and a memory storing a computer program, wherein the processor is configured to implement the method described in the first aspect when executing the computer program.
[0045] In a fourth aspect, an embodiment of the present disclosure provides a program product, including a computer program, which implements the method described in the first aspect when executed by a processor.
[0046] The data processing method of the embodiment of the present disclosure obtains virtual resource transfer information of the virtual resource provider, the virtual resource transfer information includes a virtual resource value; determines the transfer voucher resource value of the virtual resource transfer voucher associated with the virtual resource provider and the voucher allocation resource value of the corresponding resource allocation item; obtains resource allocation data of the resource allocation item associated with each virtual resource transfer voucher in the virtual resource transfer voucher, the resource allocation data includes a resource allocation value and a resource allocation status; allocates the virtual resource value to the target virtual resource transfer voucher in the virtual resource transfer voucher, and determines a first transfer value corresponding to each target virtual resource transfer voucher; allocates the first transfer value corresponding to each target virtual resource transfer voucher to the target resource allocation item corresponding to each target virtual resource transfer voucher, and determines a second transfer value corresponding to the target resource allocation item; and updates the resource allocation status of the resource allocation item according to the resource allocation value and the second transfer value. The data processing method of the disclosed embodiment introduces virtual resource transfer vouchers as an intermediate processing layer, constructing an allocation architecture of "virtual resource values, transfer vouchers, and resource allocation items." This allows large-scale data allocation tasks to be decomposed into multiple independently executable subtasks. The system can process resource allocation items associated with different transfer vouchers in parallel, fundamentally improving data processing efficiency while significantly reducing the risk of data inconsistency. Furthermore, the method of the disclosed embodiment implements a dynamic rule selection mechanism based on numerical relationships. The system can automatically select appropriate allocation rules based on the relationship between the first transfer value and the transfer voucher resource value of its corresponding target virtual resource transfer voucher, and the relationship between the virtual resource value and the total transfer voucher resource value of at least one target virtual resource transfer voucher, thereby improving the system's adaptability to complex allocation scenarios. The method of the disclosed embodiment also introduces resource type information and resource participant category information, thereby enabling differentiated allocation strategies for different types of resources, meeting diverse technical processing requirements. The technical solution of the disclosed embodiment avoids technical problems such as data inconsistency introduced by manual operations, low automation processing efficiency, and high resource consumption, enabling the data processing system to efficiently and accurately process and allocate large-scale virtual resource allocation data, and can be widely used in various technical scenarios requiring precise resource allocation.
[0047] Other optional features and technical effects of the embodiments of the present disclosure are partially described below, and partially can be understood by reading this document. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. The elements shown are not limited to the scale shown in the drawings. The same or similar reference numerals in the drawings represent the same or similar elements, wherein:
[0049] Figure 1 One of the exemplary flow charts of the data processing method according to an embodiment of the present disclosure is shown;
[0050] Figure 2 FIG2 shows a second exemplary flow chart of a data processing method according to an embodiment of the present disclosure;
[0051] Figure 3 FIG2 shows a second exemplary flow chart of a data processing method according to an embodiment of the present disclosure;
[0052] Figure 4 An exemplary structural diagram showing a data processing device according to an embodiment of the present disclosure; and
[0053] Figure 5 An exemplary structural diagram of an electronic device capable of implementing the data processing method according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in conjunction with specific embodiments and drawings. Here, the illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure, but are not intended to limit the present disclosure.
[0055] As used herein, the term "including" and its variations represent open inclusion, i.e., "including but not limited to." Unless otherwise stated, the term "or" means "and / or." The term "based on" means "based at least in part on." The terms "an example embodiment" and "an embodiment" mean "at least one example embodiment." The term "another embodiment" means "at least one some embodiments." The terms "first," "second," etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0056] Currently, data processing systems often face the challenge of efficiently processing virtual resource allocation data. Specifically, data processing systems often contain a large number of resource allocation items that need to be updated. These resource allocation items primarily stem from various virtual resource requests and virtual service interactions during the system's daily operations. For example, in data exchange platforms, service requests and virtual resource calls received by the system generate corresponding allocation records. In resource pool management systems, the allocation and occupancy of various virtual resources must be recorded as allocation items. In multi-node collaborative environments, the sharing and transfer of virtual resources between nodes also generates a large number of allocation records. During business interactions, the service credentials generated by service providers after providing services to resource recipients and the subsequent virtual resource returns received must be recorded and matched by the system. Therefore, data processing systems must promptly reflect the actual allocation of virtual resources to ensure data consistency and accurate resource tracking. Only when the allocation item status is correctly updated can the system maintain transparency of virtual resource allocation and ensure the reliability of subsequent resource scheduling and other business decisions.
[0057] However, in practical applications, there is a structural mismatch between the virtual resource values received by the data processing system and the resource values of the allocated items to be processed. In particular, in most technical scenarios, the available virtual resource values are less than the total resource allocation value of the allocated items. To address this, existing manual methods for allocating resource values rely on manual intervention by system operators, which is not only extremely inefficient but also prone to human error, leading to inconsistent system data and compromising the reliability and accuracy of data processing. Other approaches use simple linear automated processing to allocate resource values. However, these methods typically employ simple sequential traversals and fixed rules, lacking the technical capabilities to handle complex data relationships.
[0058] At the same time, this simple sequential traversal and fixed rules hinder the full utilization of the computer's parallel mechanism. As an explanation rather than a limitation, since there is no intermediate layer in the allocation of existing virtual resource values, but the resource allocation items are updated directly, when the system needs to process multiple virtual resource value allocations in parallel, all processing threads directly compete to access the same batch of resource allocation item data, which can easily lead to data contention and concurrency conflicts, resulting in duplicate allocations or data inconsistencies; secondly, the lack of a hierarchical structure makes it difficult for the system to achieve batch optimization processing. Each resource allocation item needs to be calculated and processed separately. As the number of resource allocation items grows exponentially, the system performance will drop drastically.
[0059] Crucially, neither of the aforementioned technical solutions can solve the problem of intelligent allocation in heterogeneous data environments. In practical applications, different types of resource allocation items may require different allocation update strategies. However, existing technologies lack a mechanism for dynamically selecting allocation strategies based on data characteristics. This makes data processing systems particularly vulnerable to complex and large-scale resource allocation scenarios, severely limiting the system's processing capabilities and application scope.
[0060] To address the above technical issues, the present invention proposes an improved data processing method that achieves efficient and accurate virtual resource allocation by introducing virtual resource transfer vouchers as an intermediate processing layer and combining multiple allocation mechanisms. The technical solution of the present invention is applicable to a variety of application scenarios requiring virtual resource allocation data processing, including but not limited to distributed computing resource scheduling systems, blockchain consensus reward distribution, cloud service resource management platforms, and any technical scenario requiring the precise allocation of limited resources to multiple targets.
[0061] In some embodiments of the present disclosure, reference Figure 1A data processing method is provided. The data processing method can be used in, but is not limited to, a virtual resource allocation management platform, a data exchange system, a virtual resource transfer system, a distributed resource scheduling system, an enterprise resource planning system, a service delivery voucher settlement management system, etc. The data processing method can include at least the following steps 110 to 150:
[0062] 110: Obtain virtual resource transfer information from the virtual resource provider.
[0063] In an embodiment of the present disclosure, virtual resource transfer information may include various data transferred with the virtual resource provider, and the virtual resource transfer information may include at least the virtual resource value, and optionally include information such as a transfer timestamp and an identification code of the virtual resource provider. In this embodiment, the virtual resource value includes a numerical representation of a quantified resource in a data processing system, which includes but is not limited to computing resource points, service points, data processing quotas, system resource units or other quantifiable virtual resources. In a specific example, a piece of virtual resource transfer information is: "provider identification code: R001, virtual resource value: 10,000 units, transfer timestamp: 2023-10-01 14:30:25". In other embodiments, the virtual resource transfer information may also include more information, which is not limited by the present disclosure.
[0064] In an embodiment of the present disclosure, virtual resource transfer information may be stored in, for example, but not limited to, an online data source or a local database for query. In one example, the system may maintain a relational database (RDBMS) that stores virtual resource transfer information of all virtual resource providers, from which one or more virtual resource transfer information of a virtual resource provider may be obtained through the SQL query language (Structured Query Language). It should be pointed out that the information and data involved in the present disclosure are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant information and data comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0065] In the embodiment of the present disclosure, any virtual resource transfer information from the virtual resource provider may correspond to one or more virtual resource transfer vouchers generated in the system. In the embodiment of the present disclosure, further, each virtual resource transfer voucher may correspond to one or more resource allocation items recorded in the system.
[0066] By way of explanation and not limitation, in a data processing system, the system may first generate one or more resource allocation items for each service or resource request. The resource allocation items record the type and value of the resource requirement. After the relevant recipient confirms that the resource allocation item value is correct, the system may generate a virtual resource transfer voucher with a corresponding value based on the confirmed resource allocation item value. A virtual resource transfer voucher may be associated with multiple resource allocation items, or a resource allocation item may be split into multiple virtual resource transfer vouchers. In other words, in the disclosed embodiments, the virtual resource values subsequently transferred by the data processing system to the relevant parties may optionally be directed to the virtual resource transfer vouchers, rather than directly to the original large number of resource allocation items. This not only simplifies the system architecture, but also provides a technical foundation for parallel processing and differentiated resource allocation strategies.
[0067] In the embodiments of the present disclosure, any virtual resource transfer voucher has corresponding transfer voucher data, which at least includes the voucher resource value and the voucher allocation resource value of the corresponding resource allocation item. For example, in a digital service delivery system, a transfer voucher can be a service confirmation or a resource allocation certificate; in a virtual resource management platform, a transfer voucher can be a resource allocation certificate or a value transfer confirmation; in a service settlement system, a transfer voucher can be a verification record or a receipt and payment voucher. In some embodiments, a resource allocation item can have a unique identifier. When generating a virtual resource transfer voucher, the system can record the identifier of one or more resource allocation items corresponding to the voucher, as well as the resource value assigned to each resource allocation item, and store these associated information as part of the transfer voucher data in the data source, so as to accurately trace the correspondence between the voucher and the resource allocation item during data processing. In some embodiments, the transfer voucher data can also include other information such as the resource value to be allocated, the service object name, the service project identifier, the resource type code, the participant identification code, the voucher generation timestamp, and the voucher unique identifier.
[0068] In a specific example, in response to the provider providing multiple services to participant A, the data processing system generated resource allocation item B1 (resource allocation value 10,000 units), resource allocation item B2 (resource allocation value 13,000 units), and resource allocation item B3 (resource allocation value 7,000 units). After participant A confirmed that the resource allocation requirements were correct, the system generated three virtual resource transfer certificates F1, F2, and F3 based on resource allocation items B1, B2, and B3 on October 1, 2023, among which: the transfer certificate data corresponding to the virtual resource transfer certificate F1 is: "Certificate unique identifier: F001, certificate resource value: 10,000 units, resource value to be allocated: 10,000 units, allocation certificate resource value of resource allocation item B1: 10,000 units, service object: participant A, participant identification code: R001, certificate generation time: 2023 / 10 / 01"; the transfer certificate data corresponding to the virtual resource transfer certificate F2 is: "Certificate unique identifier: F002, Voucher resource value: 10,000 units, allocation voucher resource value of resource allocation item B2: 10,000 units, service object: participant A, participant identification code: R001, voucher generation time: 2023 / 10 / 01"; the transfer voucher data corresponding to the virtual resource transfer voucher F3 is: "Voucher unique identification: F003, voucher resource value: 10,000 units, resource value to be allocated: 10,000 units, allocation voucher resource value of resource allocation item B2: 3,000 units, allocation voucher resource value of resource allocation item B3: 7,000 units, service object: participant A, participant identification code: R001, voucher generation time: 2023 / 10 / 01".
[0069] In this embodiment, the transfer voucher data can be persistently stored in a database for future query, wherein the virtual resource transfer voucher F3 is associated with multiple (2) resource allocation items: resource allocation items B2 and B3, and resource allocation item B2 is associated with multiple (2) virtual resource transfer vouchers: F2 and F3. In the embodiment of the present disclosure, when or after obtaining the virtual resource transfer information from the virtual resource provider, the data processing method implemented by the present disclosure may at least include the following 120:
[0070] 120: Determine a transfer credential resource value of at least one virtual resource transfer credential associated with the virtual resource provider and a credential allocation resource value of a corresponding resource allocation item.
[0071] In an embodiment of the present disclosure, the transfer credential data of the virtual resource transfer credential associated with the virtual resource provider can be determined based on, for example but not limited to, the identification name, identification code, etc. of the virtual resource provider. These transfer credential data may include the credential resource value of the virtual resource transfer credential and the allocation credential resource values of one or more resource allocation items corresponding to the virtual resource transfer credential.
[0072] In some embodiments of the present disclosure, transfer voucher data for all virtual resource transfer vouchers associated with a virtual resource provider can be determined. In one example, transfer voucher data for all virtual resource transfer vouchers that match the virtual resource provider's identification name and / or identification code can be retrieved from an online data source or a local database. In a further example, transfer voucher data for virtual resource transfer vouchers within a predetermined date range can be selected based on the voucher generation time.
[0073] 130: Obtain resource allocation data of at least one resource allocation item associated with each virtual resource transfer voucher in at least one virtual resource transfer voucher.
[0074] In embodiments of the present disclosure, the resource allocation data may include, but is not limited to, resource allocation values and resource allocation statuses. The resource allocation values may include an original resource allocation value and a pending resource allocation value, and the resource allocation statuses may include unallocated, partially allocated, and allocated. In one specific embodiment, the resource allocation data for resource allocation item B1 is: an original resource value of 10,000 units, a pending resource allocation value of 10,000 units, and a resource allocation status of unallocated.
[0075] In the embodiments of the present disclosure, the resource allocation items may include data in various forms. In one example, in a computing resource allocation system, resource allocation items may include resource requirement records for computing tasks; in a service resource management platform, resource allocation items may include records of various service requests; and in a data processing system, resource allocation items may include resource allocation records for data processing units.
[0076] In this embodiment, the allocation item data may be stored in, for example but not limited to, an online data source or a local database for query, which will not be described in detail here.
[0077] In some embodiments of the present disclosure, resource allocation data for all resource allocation items associated with the virtual resource transfer voucher may be determined. In some embodiments of the present disclosure, resource allocation data for resource allocation items associated with the virtual resource transfer voucher whose resource allocation status is unallocated or partially allocated may also be determined.
[0078] In embodiments of the present disclosure, for large-scale virtual resource allocation scenarios, the data processing method of the present disclosure introduces a data allocation processing solution based on virtual resource transfer vouchers. Using the virtual resource transfer vouchers as an intermediate processing layer, multi-layer allocation can be performed according to preset allocation rules, namely, two-level allocation based on allocation rules at the voucher level and allocation rules at the resource allocation item level. In some embodiments of the present disclosure, the data processing method may include the following steps S140 and S150.
[0079] 140: Allocate the virtual resource value to at least one target virtual resource transfer voucher in the at least one virtual resource transfer voucher, and determine a first transfer value corresponding to each target virtual resource transfer voucher.
[0080] In an embodiment of the present disclosure, the virtual resource value can be preliminarily allocated to one or more virtual resource transfer vouchers according to the voucher allocation rules, wherein the virtual resource transfer voucher determined to be allocated the virtual resource value can also be referred to as the target virtual resource transfer voucher, wherein the virtual resource value to which each target virtual resource transfer voucher determined according to the voucher allocation rules will be allocated is referred to as the first transfer value of the target virtual resource transfer voucher.
[0081] It should be understood that the operations such as allocation of virtual resource values and determination of first transfer values in the embodiments of the present disclosure refer to the numerical data processing process in the data processing system, rather than the physical transfer of entity resources. Specifically, these allocation operations refer to allocating specific numerical values to corresponding data records in accordance with established algorithms and rules in the database or memory of the data processing system, and updating the attribute values of these records. For example, when the system allocates a virtual resource value of 8,000 units to transfer vouchers F0 and F1, the system actually updates the "first transfer value" field of the corresponding records of F0 and F1 to 2,000 units and 6,000 units in the internal data structure, and may also update other related status marks. This data processing operation can be used to maintain the accuracy and consistency of system data and provide a basis for subsequent resource allocation item data updates.
[0082] In some embodiments of the present disclosure, the credential allocation rule may include a first credential allocation rule and a second credential allocation rule, wherein the first credential allocation rule includes allocation according to the credential resource value ratio of each virtual resource transfer credential, and the second credential allocation rule includes allocation according to a preset priority order.
[0083] In this embodiment, the preset priority order can be determined based on at least one of the following factors: the generation timestamp of the virtual resource transfer voucher, the voucher resource value of the virtual resource transfer voucher, the participant category associated with the virtual resource transfer voucher, and the resource type corresponding to the virtual resource transfer voucher. In one example, for example, the earlier the generation timestamp of the virtual resource transfer voucher, the higher the priority and the higher the allocation order; or the lower the voucher resource value of the virtual resource transfer voucher, the higher the priority and the higher the allocation order.
[0084] In some embodiments of the present disclosure, step 140 may include at least: selectively adopting a first voucher allocation rule or a second voucher allocation rule based on a relationship between the virtual resource value and a total transfer voucher resource value of the at least one target virtual resource transfer voucher. In this embodiment, the total transfer voucher resource value may include the total value of resources to be allocated of the target virtual resource transfer voucher.
[0085] In some embodiments of the present disclosure, when the virtual resource value is equal to the total transfer voucher resource value of the corresponding one or more target virtual resource transfer vouchers, the virtual resource value can be allocated to the associated one or more target virtual resource transfer vouchers in accordance with the first voucher allocation rule to determine the first transfer value. In this embodiment, since the virtual resource value is equal to the total transfer voucher resource value, the to-be-allocated virtual resource values corresponding to all (target) virtual resource transfer vouchers can be fully allocated; when the virtual resource value is less than the total transfer voucher resource value of one or more target virtual resource transfer vouchers, the virtual resource value can be allocated to the associated one or more target virtual resource transfer vouchers in accordance with the second voucher allocation rule to determine the first transfer value. In this embodiment, since the virtual resource value is less than the total transfer voucher resource value, selective allocation is required at this time.
[0086] In one specific embodiment, virtual resource provider R1 provides a virtual resource value of 8,000 units. The virtual resource transfer vouchers associated with R1 include F0 and F1. Based on the transfer voucher data, the resource values to be allocated for F0 and F1 are determined to be 2,000 units and 6,000 units, respectively. Because the virtual resource value of 8,000 units equals the total voucher resource value of 2,000 + 6,000 = 8,000 units, the system uses the first voucher allocation rule for resource allocation, determining that the first transfer value for virtual resource transfer voucher F0 is 2,000 units and the first transfer value for F1 is 6,000 units.
[0087] In another specific embodiment, the virtual resource value provided by virtual resource provider R2 is 4,000 units. The virtual resource transfer vouchers associated with R2 include F2 and F3. Based on the transfer voucher data, the resource values to be allocated for F2 and F3 are 2,000 units and 4,000 units, respectively. Because the virtual resource value of 4,000 units is less than the total voucher resource value of 2,000 + 4,000 = 6,000 units, the system uses the second voucher allocation rule for resource allocation. The generation timestamp of F2 is 2023 / 10 / 01, and the generation timestamp of F3 is 2023 / 10 / 15. According to the rule of "the earlier the generation timestamp, the higher the priority", the system determines the allocation order as F2 and F3: first, the first transfer value of the target transfer voucher F2 is determined to be 2,000 units, and then the first transfer value of the target transfer voucher F3 is determined to be 4,000-2,000 = 2,000 units.
[0088] The method of the disclosed embodiment introduces virtual resource transfer vouchers as the intermediate layer of resource allocation. Based on the association between virtual resource transfer vouchers and resource allocation items, it realizes a two-level allocation architecture of "virtual resource value → virtual resource transfer voucher → resource allocation item", effectively reducing the processing complexity, and decomposing the large-scale resource allocation problem into a hierarchical problem of first processing a small number of virtual resource transfer vouchers and then processing the resource allocation items associated with each transfer voucher, which significantly reduces the data processing volume and computational complexity. In a specific example, taking a data processing system for a blockchain consensus reward system as an example, when there are 500 node contribution records in the network distributed on 50 block confirmation records, and the system releases 10,000 units of feedback value after a consensus cycle ends, the method of the embodiment of the present disclosure does not need to directly perform complex feedback value allocation calculations between the 500 node contribution records. Instead, it first performs resource allocation processing at the block confirmation record level, selectively allocating 10,000 units of feedback value to some or all of the 50 blocks (based on technical factors such as block difficulty and confirmation time), and then finely allocates the feedback value within each block (with an average of only 10 node contribution records) according to the node's computing power contribution ratio or priority, significantly reducing the data size and computational complexity of a single process. This hierarchical allocation method not only improves the processing efficiency of the data processing system, but also enables the blockchain network to implement differentiated feedback strategies based on the contribution type and historical performance of different participating nodes, optimizing the resource allocation mechanism and computational efficiency of the overall data processing system.
[0089] 150: Allocate the first transfer value corresponding to each target virtual resource transfer voucher to the target resource allocation item corresponding to each target virtual resource transfer voucher, and determine the second transfer value corresponding to the target resource allocation item.
[0090] In an embodiment of the present disclosure, the first transfer value of each target virtual resource transfer voucher can be further allocated to one or more target resource allocation items in the resource allocation items corresponding to the target virtual resource transfer voucher according to a preset allocation item allocation rule, wherein the value to which each target resource allocation item determined according to the allocation item allocation rule will be allocated is referred to as a second transfer value. It should be understood that in an embodiment of the present disclosure, step 150 can be performed simultaneously for a plurality of different virtual resource transfer vouchers. As an explanation and not a limitation, for example, after the virtual resource value is initially allocated to each target virtual resource transfer voucher through the aforementioned step S140, the allocation process of the resource allocation items within the plurality of target virtual resource transfer vouchers described in step S150 can be started simultaneously and executed in parallel, and the data allocation processing between different target virtual resource transfer vouchers can be carried out in parallel without affecting each other.
[0091] In some embodiments of the present disclosure, the allocation item allocation rule may include a first allocation item allocation rule and a second allocation item allocation rule, wherein the first allocation item allocation rule includes allocating according to the proportion of the voucher allocation resource value of each target resource allocation item in the target virtual resource transfer voucher; the second allocation item allocation rule includes allocating according to the priority order of each target resource allocation item.
[0092] In this embodiment, the priority order may be determined based on a preset priority rule, which may be determined based on the resource allocation value and / or time attribute parameters of the target resource allocation item. In one example, for example, the preset priority rule may be such that the earlier the target resource allocation item is generated, the higher the priority and the earlier the allocation order. In another example, the preset priority rule may be such that the lower the resource allocation value of the target resource allocation item, the higher the priority and the earlier the allocation order. In the disclosed embodiment, the first allocation item allocation rule or the second allocation item allocation rule may be selectively used to determine the second transfer value.
[0093] In some embodiments of the present disclosure, the second transfer value may be determined by selectively using the first allocation item allocation rule or the second allocation item allocation rule based on the relationship between the first transfer value and the voucher resource value of the corresponding target virtual resource transfer voucher.
[0094] In this embodiment, the step 150 may include selectively adopting the first allocation item allocation rule or the second allocation item allocation rule according to a relationship between the first transfer value and a voucher resource value of the corresponding target virtual resource transfer voucher.
[0095] In some embodiments of the present disclosure, when the first transfer value is equal to the voucher resource value of the corresponding target virtual resource transfer voucher, the first transfer value can be allocated to one or more target resource allocation items associated with the corresponding virtual resource transfer voucher according to the first allocation item allocation rule.
[0096] In one specific embodiment, using a data processing system for blockchain consensus rewards as an example, the first transfer value of a block confirmation record D4 in the data processing system is 1,000 units. Based on D4's transfer voucher data, its voucher resource value is confirmed to be 1,000 units, and the allocated voucher resource values of the associated node contribution records N4 and N5 are 400 units and 600 units, respectively. Since D4's first transfer value is equal to its voucher resource value, the first allocation item allocation rule is applied to D4, and allocation is performed based on the proportion of the allocated voucher resource values of node contribution records N4 and N5 in D4: the second transfer value of node contribution record N4 is determined to be (400 / 1000)*1000=400 units, and the second transfer value of node contribution record N5 is determined to be (600 / 1000)*1000=600 units.
[0097] In other embodiments of the present disclosure, when the first transfer value is less than the voucher resource value of the corresponding target virtual resource transfer voucher, the first transfer value can be allocated to at least one of the target resource allocation items associated with the corresponding target virtual resource transfer voucher according to the second allocation item allocation rule.
[0098] In a specific embodiment, taking a data processing system used in a service resource allocation system as an example, a virtual resource transfer voucher T5 in the data processing system has a first transfer value of 800 resource units, a voucher resource value of 1,000 resource units, and associated service request records J6, J7, and J8 have allocation voucher resource values of 300 units, 400 units, and 300 units, respectively. Because T5's first transfer value is less than its voucher resource value, the second allocation item allocation rule is applied to T5, allocating resources based on the order of the time attribute parameters of service request records J6, J7, and J8. This prioritizes time-sensitive service requests for all required resources. Furthermore, J7's expiration time parameter is within 2 days, J8's is within 5 days, and J6's is within 10 days. The system determines the resource allocation order as: J7, J8, J6. J7 first receives the full corresponding value of 400 units, followed by J8, which receives the full corresponding value of 300 units. Finally, J6 receives a partial corresponding value of 100 units. This timeliness-based allocation ensures that time-sensitive service requests receive priority resources, improving the timeliness of service delivery and overall system efficiency. In practical applications, this mechanism is particularly suitable for technical scenarios where service providers need to manage multiple service commitments based on priority.
[0099] In some embodiments of the present disclosure, the resource type of the target virtual resource transfer voucher may be considered, and the first allocation item allocation rule or the second allocation item allocation rule may be selected to determine the second transfer value. In this embodiment, the resource type of the virtual resource transfer voucher includes but is not limited to computing resource type (e.g., processor usage time), storage resource type (e.g., data storage space), network resource type (e.g., network bandwidth resource), service resource type (e.g., service item), etc. As an explanation and not a limitation, in a data processing system, different types of resource records will be generated due to the allocation of different types of technical resources. When generating a virtual resource transfer voucher, the system may also generate corresponding transfer vouchers based on different resource types.
[0100] In some embodiments of the present disclosure, Figure 2 As shown, the step 150 may further include 151 and 152. 151: Identify the resource type of the target virtual resource transfer certificate; 152: Selectively adopt the first allocation item allocation rule or the second allocation item allocation rule according to the resource type.
[0101] In this embodiment, the resource type of the target virtual resource transfer voucher can be determined based on, but not limited to, the service item identifier, resource type code, and other information included in the target virtual resource transfer voucher. This disclosure does not impose any restrictions on this. In one example, the system can maintain a resource type database, in which each record stores the correspondence between the resource type and information such as the service item identifier and resource type code, thereby accurately identifying the resource type through data matching.
[0102] In some embodiments of the present disclosure, when the resource type is a first preset type, the first transfer value may be allocated to one or more target resource allocation items associated with the target virtual resource transfer voucher according to a first allocation item allocation rule. In this embodiment, the first preset type includes, but is not limited to, storage resources, etc. However, it is understood that the first preset type may be set by a system administrator based on the specific needs of a specific scenario, and this disclosure does not impose any restrictions on this.
[0103] In a specific embodiment, taking a data processing system used for a service resource allocation system as an example, the first transfer value of a virtual resource transfer voucher T6 in the data processing system is 600 resource units. According to the data contained in the transfer voucher of T6, it is confirmed that its voucher resource value is 1,000 resource units, and the associated resource allocation items R9 and R 10 The allocation voucher resource values of T6 are 400 units and 600 units respectively. The system determines that its service item is identified as "distributed storage service" and the resource type of T6 is "storage resource" (the first preset type) through the transfer voucher data of T6. The first allocation item allocation rule is used to allocate T6. According to the resource allocation items R9 and R 10 The resource value ratio of the voucher allocation in T6 is allocated: the second transfer value of the resource allocation item R9 is determined to be (400 / 1000)*600=240 units, and the resource allocation item R 10 The second transfer value is (600 / 1000)*600=360 units.
[0104] In some embodiments of the present disclosure, when the resource type is a second preset type, the first transfer value may be allocated to at least one target resource allocation item associated with the target virtual resource transfer voucher according to a second allocation item allocation rule. In this embodiment, the second preset type includes, but is not limited to, computing resources, etc. However, it is understood that the second preset type may be set by a system administrator based on the specific needs of a specific scenario, and this disclosure does not impose any restrictions on this.
[0105] In a specific embodiment, taking a data processing system used for a service resource allocation system as an example, the first transfer value of a virtual resource transfer voucher T7 in the data processing system is 8,000 resource units. According to the data contained in the transfer voucher of T7, it is confirmed that its voucher resource value is 10,000 resource units and the associated resource allocation item R 11 、R 12 、R 13 and R 14 The resource values of the allocation vouchers are 2,000 units, 4,000 units, 3,000 units, and 1,000 units respectively. The system determines that its service item identifier is "high-performance quantum computing node" and the resource type of T7 is "computing resource" (the second preset type) through the data contained in the transfer voucher of T7. The second allocation item allocation rule is used for allocation of T7. According to the resource allocation item R 11 、R 12 、R 13 and R 14 The resource allocation items are sorted from high to low in order of priority: 14 >R 11 >R 13 >R 12 , the system determines the resource allocation order as follows: R 14 、R 11 、R 13 、R 12 , where R 14 The first to obtain 1,000 units of all resources, R 11 Then get all the resources 2,000 units, R 13 Then get all the resources 3,000 units, R 12 Finally, 2,000 units of some resources were obtained.
[0106] In some embodiments of the present disclosure, the participant category of the resource allocation item associated with the target virtual resource transfer voucher may also be considered to select the first allocation item allocation rule and / or the second allocation item allocation rule to determine the second transfer value.
[0107] In some embodiments of the present disclosure, the participant categories include but are not limited to standard participants and priority participants.
[0108] In some embodiments of the present disclosure, Figure 3 As shown, the 150 may further include 153 and 154. 153: Identify the participant category of at least one target resource allocation item associated with the target virtual resource transfer voucher; 154: Selectively adopt the first allocation item allocation rule, the second allocation item allocation rule or a combination thereof according to the participant category.
[0109] In this embodiment, a participant category database may be maintained, wherein each record stores a correspondence between a participant identifier and a participant category, wherein the participant categories include, but are not limited to, standard participants and priority participants. In some embodiments, the standard participants include, but are not limited to, standard computing nodes, non-time-sensitive service requesters, and ordinary users, while the priority participants include, but are not limited to, key business processing units, time-sensitive service requesters, and advanced users.
[0110] In some embodiments of the present disclosure, when the participant category is a first preset category, the first transfer value may be allocated to one or more target resource allocation items associated with the target virtual resource transfer voucher according to a first allocation item allocation rule. In this embodiment, the first preset category includes but is not limited to standard participants.
[0111] In a specific embodiment, the first transfer value of the target virtual resource transfer voucher T8 is 800 resource units. According to the data contained in the transfer voucher of T8, it is confirmed that the voucher resource value is 1,000 resource units and the associated resource allocation item P is 1,000 resource units. 15 、P 16 The resource values of the allocation vouchers are 200 units and 400 units respectively, and the associated resource allocation items P 15 and P 16 The participant categories are all standard participants. The system uses the first allocation item allocation rule to allocate T8. According to the resource allocation item P 15 and P 16 Allocate the resource value proportion of the allocation voucher in T8: Determine the resource allocation item P 15 The second transfer value is (200 / 600)*800=267 units, and the resource allocation item P 16 The second transfer value is (400 / 600)*800=533 units.
[0112] In some embodiments of the present disclosure, when the participant category is a second preset category, the first transfer value may be allocated to at least one target resource allocation item associated with the target virtual resource transfer voucher according to a second allocation item allocation rule. In this embodiment, the second preset category includes, but is not limited to, priority participants.
[0113] In a specific embodiment, the first transfer value of the target virtual resource transfer voucher T9 is 1,000 resource units. According to the data contained in the transfer voucher, the voucher resource value of T9 is confirmed to be 1,200 resource units. The associated resource allocation item P 17 and P 18 The voucher allocation resource values are 300 units and 900 units respectively, and the associated resource allocation item P 17 and P 18The participant categories are all priority participants, and the system uses the second allocation item allocation rule to allocate T9. 17 and P 18 The priority order based on the service level is allocated so that the resource allocation items with high priority get all resources first: according to the system configuration P 17 The service level is higher than P 18 , determine the allocation order: P 17 、P 18 , where P 17 The first to obtain all resources 300 units, P 18 Then obtain the remaining resources of 700 units.
[0114] In some embodiments of the present disclosure, when the participant categories include a first preset category and a second preset category, a first intermediate transfer value applicable to a first allocation item allocation rule and a second intermediate transfer value applicable to a second allocation item allocation rule can be determined, and the first intermediate transfer value is allocated to the one or more target resource allocation items associated with the target virtual resource transfer voucher according to the first allocation item allocation rule, and the second intermediate transfer value is allocated to at least one of the target resource allocation items associated with the target virtual resource transfer voucher according to the second allocation item allocation rule. In this embodiment, the first preset category includes but is not limited to standard participants, and the second preset category includes but is not limited to priority participants.
[0115] In this embodiment, a first intermediate transfer value applicable to the first allocation item allocation rule and a second intermediate transfer value applicable to the second allocation item allocation rule may be determined in a variety of ways.
[0116] In one example, the first intermediate transfer value and the second intermediate transfer value may be determined based on a ratio of a total allocated voucher resource value of bills whose participant category is a first preset category to a total allocated voucher resource value of bills whose participant category is a second preset category.
[0117] In another example, the total allocated voucher resource value for bills with a participant category of the second preset category can be directly determined as the second intermediate transfer value, and the remaining amount from the first transfer value can be determined as the first intermediate transfer value. This approach ensures that resource allocation items of priority participants receive priority resource allocation. However, it should be understood that the above approach is merely an example, and other approaches can be used to determine the first intermediate transfer value and the second intermediate transfer value in other embodiments, and this disclosure is not limited thereto.
[0118] In a specific embodiment, taking a data processing system used in a distributed computing environment as an example, a virtual resource transfer certificate T in the data processing system 10 The first transfer value is 1,000 computing resource units, according to T10 The transfer voucher data confirms that its voucher resource value is 2,000 units and the associated resource allocation item P 19 、P 20 and P 21 The resource values of the allocation vouchers are 400 units, 600 units, and 1,000 units respectively. The associated resource allocation items P 19 、P 20 and P 21 The participant categories are: priority participating node, standard participating node, standard participating node. The system first determines the participant category as the priority participating node P 19 P for which the second allocation item allocation rule is applied and the participant category is a standard participating node 20 and P 21 Apply the first allocation item allocation rule and then determine P 19 The total allocation voucher resource value of 400 units is the second intermediate transfer value, and the remaining value of 1,000-400=600 units in the first transfer value is determined as the first intermediate transfer value. 19 , according to the second allocation item allocation rule P 19 All 400 units of resources are allocated; for resource allocation item P 20 and P 21 , according to P 20 and P 21 In T 10 Allocate the resource value of the allocation certificate in the proportion: Determine P 20 The second transfer value is (600 / 1600)*600=225 units, P 21 The second transfer value is (1000 / 1600)*600=375 units. This hybrid allocation strategy effectively balances priority resource allocation and fairness considerations, ensuring that the resource requirements of critical computing tasks are met while ensuring that standard computing tasks receive the remaining resources in proportion.
[0119] The embodiment of the present disclosure provides a data processing method based on a two-level allocation architecture of "virtual resource value → transfer voucher → resource allocation item", which can apply different resource allocation rules to the allocation of the same batch of virtual resource values. The technical solution of the embodiment of the present disclosure can independently determine whether the first transfer value of the target transfer voucher should adopt the first allocation item allocation rule (based on resource value ratio allocation) or the second allocation item allocation rule (based on priority order allocation) according to the specific technical attributes of each target virtual resource transfer voucher and its resource allocation item (such as the relationship between the first transfer value and the voucher resource value of the corresponding target transfer voucher, the resource type of the target transfer voucher, the participant category of the resource allocation item, etc.). This differentiated processing mechanism of the embodiment of the present disclosure enables the data processing system to simultaneously meet the allocation requirements of different technical scenarios in a single resource allocation process. For example, in a distributed computing environment, the resources of standard computing tasks can be allocated proportionally to ensure fairness, while the resources of critical tasks can be allocated with priority to ensure that important resource requirements are met first, thereby achieving high adaptability and accuracy in the resource allocation process, and being able to accurately adapt to the complex and changing technical environment requirements.
[0120] Furthermore, the two-level allocation architecture of the embodiment of the present disclosure also achieves a significant improvement in data processing efficiency. As an explanation, when performing resource allocation, traditional data processing systems must perform linear serial processing on all resource allocation items, that is, no matter what algorithm is used, unified calculation and sorting are required in the entire set of resource allocation items, resulting in exponential growth of computational complexity with the number of resource allocation items, seriously affecting system performance. The technical solution of the embodiment of the present disclosure adopts a hierarchical allocation architecture, which converts the large-scale resource allocation problem that originally required global processing into multiple independent and smaller-scale virtual resource transfer voucher-level processing tasks. After the preliminary allocation of virtual resources to each target transfer voucher is completed, the resource allocation item processing process within each transfer voucher can be started and executed in parallel at the same time, and the data allocation processing between different virtual resource transfer vouchers is parallel and does not affect each other.
[0121] Here, the method of the embodiment of the present disclosure is particularly suitable for modern parallel computing architectures, and can fully utilize the technical advantages of multi-core processing and distributed computing environments to provide excellent response speed and processing efficiency for large-scale data processing. For example, in a blockchain consensus reward system, when limited token rewards need to be distributed to hundreds of node contribution records, this method can first allocate resources at the block confirmation record level, and then process the node reward allocation within each block in parallel, significantly reducing the computational complexity; in cloud computing resource scheduling, the system can adopt differentiated resource allocation strategies based on different service types and participant characteristics, optimizing overall resource utilization while ensuring key service performance.
[0122] In other embodiments of the present disclosure, a multi-dimensional allocation factor matrix can be used to comprehensively consider the relationship between the first transfer value and the target virtual resource transfer voucher resource value, the resource type corresponding to the target virtual resource transfer voucher, and the participant category corresponding to the virtual resource transfer voucher to determine whether to further allocate the first transfer value using the first allocation item allocation rule, the second allocation item allocation rule, or a combination thereof. Accordingly, in some embodiments of the present disclosure, the 150 may also include the following K1-K3.
[0123] K1: Construct a multidimensional allocation factor matrix.
[0124] In some embodiments of the present disclosure, a multidimensional allocation factor matrix can be constructed to comprehensively consider multiple factors affecting the distribution of repayments, wherein the dimensions of the multidimensional allocation factor matrix include at least three dimensions: the relationship between the first transfer value and the target virtual resource transfer voucher resource value, the resource type corresponding to the virtual resource transfer voucher, and the participant category corresponding to the virtual resource transfer voucher.
[0125] In one example, the value range and factor value of each dimension may be defined, and a multi-dimensional matrix may be constructed by combining the values of each dimension, where each element in the matrix corresponds to a factor score.
[0126] In a specific embodiment, a three-dimensional allocation factor matrix can be constructed, wherein dimension 1 can be about the relationship between the first transfer value and the voucher resource value, wherein the factor value corresponding to "the first transfer value < the transfer voucher resource value of the corresponding target virtual resource transfer voucher" is "2", the factor value corresponding to "the first transfer value = the transfer voucher resource value of the corresponding target virtual resource transfer voucher" is "1", and the factor value corresponding to "the first transfer value > the transfer voucher resource value of the corresponding target virtual resource transfer voucher" is "0"; dimension 2 can be about the target virtual resource transfer voucher resource type, wherein the factor value corresponding to "target virtual resource transfer voucher resource type = storage resource" is "2", the factor value corresponding to "target virtual resource transfer voucher resource type = computing resource" is "1", and The corresponding factor value of "target virtual resource transfer voucher resource type = network resource" is "0"; dimension 3 may be about the virtual resource transfer voucher participant category, wherein the corresponding factor value of "target virtual resource transfer voucher participant category = core participant" is "2", the corresponding factor value of "target virtual resource transfer voucher participant category = standard participant" is "1", and the corresponding factor value of "target virtual resource transfer voucher participant category = priority participant" is "0". However, it can be understood that, in further embodiments, an allocation factor matrix with more dimensions can be constructed, and the dimensions can also include the time attribute parameters of the target resource allocation items associated with the target virtual resource transfer voucher, the number of target resource allocation items associated with the target virtual resource transfer voucher, etc., and the present disclosure does not impose any restrictions on this.
[0127] K2: Determine the corresponding allocation decision value based on the element values in the multidimensional allocation factor matrix.
[0128] In some embodiments of the present disclosure, the value of each element in the multidimensional matrix (element value) includes a combination of factor values of the corresponding dimensions. In one example, the element value can be obtained by adding the factor values of each dimension. However, it is understood that in other embodiments, the element value can also be obtained by weighted summation of the factor values of each dimension, and the present disclosure is not limited to this.
[0129] In this embodiment, when processing a specific repayment allocation task, the corresponding element value is found from the multidimensional allocation factor matrix according to the specific situation of the target virtual resource transfer certificate (i.e., the value of each dimension). This element value can be called the allocation decision value.
[0130] In a specific embodiment, taking a data processing system for distributed computing resource allocation as an example, the target resource transfer certificate T in the data processing system 13 The first transfer value is 1,500 units of calculation. The data contained in the transfer voucher is used to confirm T 13 The associated participant categories are core nodes, T 13 The voucher resource value is 2,000 units, T 13 The service item is identified as "storage cluster" and its resource type is determined to be "storage resource", and the associated resource allocation item P 28 、P 29 and P 30 The allocation voucher resource values are 800 units, 700 units, and 500 units, respectively. The system then calculates the allocation decision value: first, it obtains the actual factor values for each dimension. Dimension 1 (the relationship between the first transfer value and the voucher resource value): First transfer value (1,500 units) < voucher resource value (2,000 units), with a factor value of "2"; Dimension 2 (resource type): Storage resource, with a factor value of "2"; Dimension 3 (participant category): Core node, with a factor value of "2". The system calculates the allocation decision value = Dimension 1 factor value + Dimension 2 factor value + Dimension 3 factor value = 2 + 2 + 2 = 6.
[0131] K3: selectively adopting the first allocation item allocation rule, the second allocation item allocation rule, or a combination thereof according to the threshold range to which the allocation decision value belongs.
[0132] In embodiments of the present disclosure, threshold intervals for allocation decision values may be preset. Based on the calculated allocation decision value, the threshold interval to which the value belongs is determined, thereby determining which resource allocation item allocation rule to employ. In one example, the threshold intervals may include a first preset threshold interval, a second preset threshold interval, and a third preset threshold interval.
[0133] In this embodiment, when the allocation decision value is within the first preset threshold interval, the first transfer value can be allocated to one or more target resource allocation items associated with the target virtual resource transfer voucher according to the first allocation item allocation rule; when the allocation decision value is within the second preset threshold interval, the first transfer value can be allocated to one or more target resource allocation items associated with the target virtual resource transfer voucher according to the second allocation item allocation rule; when the allocation decision value is within the third preset threshold interval, a first intermediate transfer value applicable to the first allocation item allocation rule and a second intermediate transfer value applicable to the second allocation item allocation rule can be determined, and the first intermediate transfer value can be allocated to one or more target resource allocation items associated with the target virtual resource transfer voucher according to the first allocation item allocation rule, and the second intermediate transfer value can be allocated to one or more target resource allocation items associated with the target virtual resource transfer voucher according to the second allocation item allocation rule. In this embodiment, the relevant description of allocating the first transfer value according to the first allocation item allocation rule and / or the second allocation item allocation rule can refer to the records of the above embodiments of the present disclosure, for example, the relevant records in the above 150, and will not be repeated here.
[0134] Continuing from the previous specific embodiment, the first preset threshold interval can be set to: 0 ≤ allocation decision value ≤ 3, the second preset threshold interval can be set to: 4 ≤ allocation decision value ≤ 6, and the third preset threshold interval can be set to: 7 ≤ allocation decision value ≤ 9. The allocation decision value = 6 is within the second preset threshold interval, so the system uses the second allocation item allocation rule to allocate the first transfer value of 1,500 computing units to the resource allocation item P. 28 、P 29 and P 30 According to the priority rules of the system configuration, the resource allocation item P 28 、P 29 and P 30 Sort by resource value from small to large: P 30 <P 29 <P 28 , determine the allocation order: P 30 、P 29 、P 28 The system first sends 30 Allocate 500 units of resources and then send it to P 29 Allocate 700 units of resources and finally send it to P 28 Allocate the remaining 300 units of resources.
[0135] 160: Update the resource allocation state of the resource allocation item according to the resource allocation value and the second transfer value.
[0136] In an embodiment of the present disclosure, when allocating a virtual resource value, particularly when or after the second transfer value is determined, the payment status of the associated target resource allocation item may be updated based on the second transfer value. In this embodiment, the second transfer value is determined, for example, by the aforementioned step 150. In one example, the value of the resource (to be) allocated item of each target resource allocation item and the second transfer value may be updated based on the resource allocation item value of each target resource allocation item and the second transfer value.
[0137] The data processing method of the embodiment of the present disclosure obtains virtual resource transfer information of the virtual resource provider, the virtual resource transfer information includes a virtual resource value; determines the transfer voucher resource value of the virtual resource transfer voucher associated with the virtual resource provider and the voucher allocation resource value of the corresponding resource allocation item; obtains resource allocation data of the resource allocation item associated with each virtual resource transfer voucher in the virtual resource transfer voucher, the resource allocation data includes a resource allocation value and a resource allocation status; allocates the virtual resource value to the target virtual resource transfer voucher in the virtual resource transfer voucher, and determines a first transfer value corresponding to each target virtual resource transfer voucher; allocates the first transfer value corresponding to each target virtual resource transfer voucher to the target resource allocation item corresponding to each target virtual resource transfer voucher, and determines a second transfer value corresponding to the target resource allocation item; and updates the resource allocation status of the resource allocation item according to the resource allocation value and the second transfer value. The data processing method of the embodiment of the present disclosure introduces a virtual resource transfer voucher as an intermediate processing layer, and constructs a two-level allocation architecture of "virtual resource value, transfer voucher, and resource allocation item", so that large-scale data allocation tasks are decomposed into multiple independently executable sub-tasks. The system can process resource allocation items associated with different transfer vouchers in parallel, fundamentally improving data processing efficiency while significantly reducing the risk of data inconsistency. Furthermore, the method of the embodiment of the present disclosure implements a dynamic rule selection mechanism based on numerical relationships. The system can automatically select appropriate allocation rules based on the relationship between the first transfer value and the transfer voucher resource value of the target virtual resource transfer voucher corresponding to it (i.e., the first transfer value), and the relationship between the virtual resource value and the total transfer voucher resource value of at least one target virtual resource transfer voucher, thereby improving the system's adaptability to complex allocation scenarios. The method of the embodiment of the present disclosure also introduces resource type information and resource participant category information, so that differentiated allocation strategies can be adopted for different types of resources to meet diverse technical processing requirements. The technical solution of the disclosed embodiment avoids technical problems such as data inconsistency introduced by manual operations, low efficiency of automated processing, and high resource consumption, enabling the data processing system to efficiently and accurately process and allocate large-scale virtual resource allocation data, and can be widely used in various technical scenarios that require rapid resource allocation.
[0138] In some embodiments of the present disclosure, Figure 4As shown, a data processing device 400 is also provided, which may include a first acquisition unit 410, a determination unit 420, a second acquisition unit 430, a first allocation unit 440, a second allocation unit 450 and an update unit 460. In which:
[0139] The first acquiring unit 410 is configured to acquire virtual resource transfer information of a virtual resource provider, wherein the virtual resource transfer information includes a virtual resource value;
[0140] The determining unit 420 is configured to determine a transfer credential resource value of at least one virtual resource transfer credential associated with the virtual resource provider and an allocation credential resource value of a corresponding resource allocation item;
[0141] The second obtaining unit 430 is configured to obtain resource allocation data of at least one resource allocation item associated with each virtual resource transfer voucher in the at least one virtual resource transfer voucher, wherein the resource allocation data includes a resource allocation value and a resource allocation state;
[0142] The first allocating unit 440 is configured to allocate the virtual resource value to at least one target virtual resource transfer voucher in the at least one virtual resource transfer voucher, and determine a first transfer value corresponding to each target virtual resource transfer voucher;
[0143] The second allocating unit 450 is configured to allocate the first transfer value corresponding to each target virtual resource transfer voucher to the target resource allocation item corresponding to each target virtual resource transfer voucher, and determine the second transfer value corresponding to the target resource allocation item;
[0144] The updating unit 460 is configured to update the resource allocation state of the resource allocation item according to the resource allocation value and the second transfer value.
[0145] In some embodiments of the present disclosure, Figure 5 As shown, a schematic diagram of an electronic device 500 that can implement the method of the embodiment of the present disclosure is provided. In some embodiments, more or fewer electronic devices than shown may be included. In some embodiments, the method can be implemented using a single or multiple electronic devices. In some embodiments, the method can be implemented using cloud-based or distributed electronic devices.
[0146] like Figure 5As shown, the electronic device 500 includes a processor 501, which can perform various appropriate operations and processes according to the programs and / or data stored in the read-only memory (ROM) 502 or the programs and / or data loaded from the storage part 508 into the random access memory (RAM) 503. CPU 501 can be a multi-core processor or can include multiple processors. In some embodiments, the processor 501 can include a general-purpose main processor and one or more special coprocessors, such as a graphics processing unit (GPU), a neural network processor (NPU), a digital signal processor (DSP), etc. In RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. CPU 501, ROM 502 and RAM 503 are connected to each other via a bus 504. Input / output (I / O) interface 505 is also connected to bus 504.
[0147] The processor and the memory are used together to execute the program stored in the memory. When the program is executed by the computer, the steps or functions of the file transfer method described in the above embodiments can be implemented.
[0148] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, a touch screen, and the like; an output section 507 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 508 including devices such as a hard disk; and a communication section 509 including a network interface card such as a LAN card or a modem. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 510 as needed, so that computer programs read therefrom can be installed into the storage section 508 as needed. Figure 5 Only some components are shown schematically, which does not mean that the computer system 500 only includes Figure 5 Components shown.
[0149] In some embodiments, the electronic device 500 refers to a mobile terminal or a computer, including a mobile phone, a car terminal, a smart TV, etc. Taking a mobile phone as an example, the electronic device 500 also includes a display screen with a touch function, an external speaker, a gyroscope, a camera, a 4G / 5G antenna and other device modules.
[0150] The systems, devices, modules or units described in the above embodiments may be implemented by a computer or its associated components. The computer may be, for example, a mobile terminal, a smart phone, a personal computer, a laptop computer, an in-vehicle human-computer interaction device, a personal digital assistant, a media player, a navigation device, a game console, a tablet computer, a wearable device, a smart TV, an Internet of Things system, a smart home, an industrial computer, a server or a combination thereof.
[0151] Although not shown, in an embodiment of the present disclosure, a program product is provided, including a computer program, which implements any method of the embodiments of the present disclosure when executed by a processor.
[0152] Although not shown, in an embodiment of the present disclosure, a storage medium is provided, wherein the storage medium stores a computer program, and the computer program is configured to implement any method of the embodiments of the present disclosure when executed.
[0153] Storage media in embodiments of the present disclosure include permanent and non-permanent, removable and non-removable items that can be used to store information using any method or technology. Examples of storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
[0154] The methods, programs, systems, and apparatuses of the embodiments of the present disclosure may be executed or implemented in a single or multiple networked computers, or may be practiced in a distributed computing environment. In the embodiments of this specification, in these distributed computing environments, tasks may be performed by remote processing devices connected via a communication network.
[0155] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, those skilled in the art will appreciate that the functional modules / units or controllers and related method steps described in the above embodiments may be implemented using software, hardware, or a combination of software / hardware.
[0156] Unless explicitly stated, the actions or steps of the methods, programs, and embodiments of the present disclosure do not have to be performed in a specific order and can still achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0157] In this document, multiple embodiments of the present disclosure are described, but for the sake of brevity, the description of each embodiment is not exhaustive, and the same or similar features or parts between the various embodiments may be omitted. In this document, "one embodiment", "some embodiments", "example", "specific example", or "some examples" are intended to apply to at least one embodiment or example according to the present disclosure, rather than all embodiments. The above terms do not necessarily mean to refer to the same embodiment or example. Those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0158] While the exemplary systems and methods of the present disclosure have been specifically shown and described with reference to the foregoing embodiments, these are merely examples of the best modes for implementing the present systems and methods. Those skilled in the art will appreciate that various changes may be made to the embodiments of the systems and methods described herein when implementing the present systems and / or methods without departing from the spirit and scope of the present disclosure as defined in the appended claims.
Claims
1. A data processing method, characterized in that: The method comprises: Acquire virtual resource transfer information of a virtual resource provider, wherein the virtual resource transfer information includes a virtual resource value; determining a transfer voucher resource value of at least one virtual resource transfer voucher associated with the virtual resource provider and a voucher allocation resource value of a corresponding resource allocation item; Acquire resource allocation data of at least one resource allocation item associated with each virtual resource transfer voucher in the at least one virtual resource transfer voucher, the resource allocation data comprising a resource allocation value and a resource allocation state; Allocating the virtual resource value to at least one target virtual resource transfer voucher in the at least one virtual resource transfer voucher, and determining a first transfer value corresponding to each target virtual resource transfer voucher; Allocating the first transfer value corresponding to each target virtual resource transfer voucher to the target resource allocation item corresponding to each target virtual resource transfer voucher, and determining the second transfer value corresponding to the target resource allocation item; The resource allocation state of the resource allocation item is updated according to the resource allocation value and the second transfer value.
2. The data processing method according to claim 1, wherein: Allocating the first transfer value corresponding to each target virtual resource transfer voucher to the target resource allocation item corresponding to each target virtual resource transfer voucher, and determining the second transfer value corresponding to the target resource allocation item, includes: selectively adopting the first allocation item allocation rule or the second allocation item allocation rule according to the relationship between the first transfer value and the transfer voucher resource value of the corresponding target virtual resource transfer voucher; Among them, when the first transfer value is equal to the transfer voucher resource value of the corresponding target virtual resource transfer voucher, the first transfer value is allocated to the at least one resource allocation item associated with the corresponding target virtual resource transfer voucher according to the first allocation item allocation rule; when the first transfer value is less than the transfer voucher resource value of the corresponding target virtual resource transfer voucher, the first transfer value is allocated to the at least one resource allocation item associated with the corresponding target virtual resource transfer voucher according to the second allocation item allocation rule.
3. The data processing method according to claim 1, wherein: Allocating the first transfer value corresponding to each target virtual resource transfer voucher to the target resource allocation item corresponding to each target virtual resource transfer voucher, and determining the second transfer value corresponding to the target resource allocation item, includes: Identifying the resource type of the target virtual resource transfer certificate; selectively adopting the first allocation item allocation rule or the second allocation item allocation rule according to the resource type; Among them, when the resource type is the first preset type, the first transfer value is allocated to the one or more target resource allocation items associated with the target virtual resource transfer voucher according to the first allocation item allocation rule; when the resource type is the second preset type, the first transfer value is allocated to at least one of the target resource allocation items associated with the target virtual resource transfer voucher according to the second allocation item allocation rule.
4. The data processing method according to claim 1, wherein: Allocating the first transfer value corresponding to each target virtual resource transfer voucher to the target resource allocation item corresponding to each target virtual resource transfer voucher, and determining the second transfer value corresponding to the target resource allocation item, includes: Identifying a participant category of the at least one resource allocation item associated with the target virtual resource transfer voucher; selectively adopting the first allocation item allocation rule, the second allocation item allocation rule, or a combination thereof according to the participant category; Among them, when the participant category is the first preset category, the first transfer value is allocated to the at least one target resource allocation item associated with the target virtual resource transfer voucher according to the first allocation item allocation rule; when the participant category is the second preset category, the first transfer value is allocated to the at least one target resource allocation item associated with the target virtual resource transfer voucher according to the second allocation item allocation rule; when the participant category includes the first preset category and the second preset category, the first intermediate transfer value applicable to the first allocation item allocation rule and the second intermediate transfer value applicable to the second allocation item allocation rule are determined, and the first intermediate transfer value is allocated to the at least one target resource allocation item associated with the target virtual resource transfer voucher according to the first allocation item allocation rule, and the second intermediate transfer value is allocated to the at least one target resource allocation item associated with the target virtual resource transfer voucher according to the second allocation item allocation rule.
5. The data processing method according to claim 1, wherein: Allocating the first transfer value corresponding to each target virtual resource transfer voucher to the target resource allocation item corresponding to each target virtual resource transfer voucher, and determining the second transfer value corresponding to the target resource allocation item, includes: Constructing a multidimensional allocation factor matrix, wherein the dimensions of the multidimensional allocation factor matrix include at least a relationship between the first transfer value and the transfer voucher resource value of the target virtual resource transfer voucher, a resource type corresponding to the target virtual resource transfer voucher, and a participant category corresponding to the target virtual resource transfer voucher; Determining corresponding allocation decision values based on element values in the multidimensional allocation factor matrix; selectively adopting the first allocation item allocation rule, the second allocation item allocation rule, or a combination thereof according to the threshold range to which the allocation decision value belongs; Wherein, when the allocation decision value is within the first preset threshold interval, the first transfer value is allocated to at least one target resource allocation item associated with the target virtual resource transfer voucher according to the first allocation item allocation rule; when the allocation decision value is within the second preset threshold interval, the first transfer value is allocated to at least one target resource allocation item associated with the target virtual resource transfer voucher according to the second allocation item allocation rule; when the allocation decision value is within the third preset threshold interval, the first intermediate transfer value applicable to the first allocation item allocation rule and the second intermediate transfer value applicable to the second allocation item allocation rule are determined, and the first intermediate transfer value is allocated to at least one target resource allocation item associated with the target virtual resource transfer voucher according to the first allocation item allocation rule, and the second intermediate transfer value is allocated to at least one target resource allocation item associated with the target virtual resource transfer voucher according to the second allocation item allocation rule.
6. The data processing method according to any one of claims 2 to 5, characterized in that: The first allocation item allocation rule is to allocate according to the proportion of the voucher allocation resource value of each target resource allocation item in the target virtual resource transfer voucher; The second allocation item allocation rule is to allocate according to the priority order of each target resource allocation item.
7. The data processing method according to claim 1, wherein: The allocating the virtual resource value to at least one target virtual resource transfer voucher in the virtual resource transfer voucher to determine a first transfer value includes: selectively adopting a first voucher allocation rule or a second voucher allocation rule according to a relationship between the virtual resource value and a total transfer voucher resource value of the at least one target virtual resource transfer voucher; wherein, when the virtual resource value is equal to the total transfer voucher resource value of the at least one target virtual resource transfer voucher, allocating the virtual resource value to the at least one target virtual resource transfer voucher according to a first voucher allocation rule to determine the first transfer value; When the virtual resource value is less than the total transfer voucher resource value of the at least one virtual resource transfer voucher, the virtual resource value is allocated to the at least one target virtual resource transfer voucher according to a second voucher allocation rule to determine the first transfer value.
8. A data processing device, characterized in that: include: A first acquiring unit is configured to acquire virtual resource transfer information of a virtual resource provider, wherein the virtual resource transfer information includes a virtual resource value; a determining unit configured to determine a transfer credential resource value of at least one virtual resource transfer credential associated with the virtual resource provider and an allocation credential resource value of a corresponding resource allocation item; a second acquiring unit configured to acquire resource allocation data of at least one resource allocation item associated with each virtual resource transfer voucher in the at least one virtual resource transfer voucher, the resource allocation data comprising a resource allocation value and a resource allocation state; a first allocating unit configured to allocate the virtual resource value to at least one target virtual resource transfer voucher in the at least one virtual resource transfer voucher, and determine a first transfer value corresponding to each target virtual resource transfer voucher; A second allocation unit is configured to allocate the first transfer value corresponding to each target virtual resource transfer voucher to the target resource allocation item corresponding to each target virtual resource transfer voucher, and determine a second transfer value corresponding to the target resource allocation item; An updating unit is configured to update the resource allocation state of the resource allocation item according to the resource allocation value and the second transfer value.
9. An electronic device, characterized in that: include: A processor and a memory storing a computer program, wherein the processor is configured to implement the method according to any one of claims 1 to 7 when executing the computer program.
10. A program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Virtual resource allocation method and device, storage medium and computer equipment
CN113893552A
Virtual resource allocation method and device, equipment, storage medium and product
CN116663837A
Virtual resource message cover processing method and device, computer equipment and medium
CN117331627A
Virtual resource allocation method, device and equipment
CN118260546A
Virtual resource allocation method and device, electronic equipment and computer medium
CN118396612A