Resource management method and device, computer equipment and computer storage medium

By generating resource replacement information and storing it in a shared database of managed resource pairs, the problem of low development efficiency and high equipment performance requirements of resource management parties when providing resource replacement services in different regions is solved, and the rapid and low-cost implementation of resource management is achieved.

CN120031644APending Publication Date: 2025-05-23TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311583364.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-23
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

In the financial field, resource management parties need to establish different entities for different regions to provide resource replacement services, resulting in low development efficiency and high equipment performance requirements, which limits business expansion.

Method used

By generating resource replacement information and storing it in a shared database of managed resource pairs, the management entity manages the resource amount based on the resource replacement information, thereby reducing the workload and equipment performance requirements of the target entity.

Benefits of technology

It improves the development efficiency of resource replacement services, reduces the performance requirements for the deployment main equipment, and achieves the rapid and low-cost implementation of resource management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120031644A_ABST
    Figure CN120031644A_ABST
Patent Text Reader

Abstract

The invention discloses a resource management method and device, computer equipment and a computer storage medium, and the method comprises the steps: generating resource replacement information in response to a resource replacement request, and obtaining a pre-marked trusteeship resource pair, the resource replacement request being used for indicating to replace a reference resource with a target resource, and the trusteeship resource pair being used for indicating to replace the reference resource with the target resource; the trusteeship resource pair refers to a resource pair associated with a management main body, and the management main body is used for managing the resource quantity of the trusteeship resource pair in the resource repository. Furthermore, when a target resource pair formed by the reference resource and the target resource is a hosted resource pair, the resource replacement information is stored in a shared database of the hosted resource pair, so that a management main body of the hosted resource pair can perform resource replacement on the hosted resource pair based on a change condition indicated by the resource replacement information in the shared database. And managing the resource quantity of the reference resource and the target resource in the resource warehouse. By adopting the method, the performance requirement on the equipment for deploying the main body can be reduced, and the development efficiency of the resource replacement service of the main body is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a resource management method, device, computer equipment and computer storage medium. Background Art

[0002] The application of computer technology in the financial field enables resource managers to provide global resource exchange services based on electronic networks. In actual applications, limited by the compliance systems for resource exchange in different regions, resource managers need to establish different entities to provide resource exchange services in different regions, but the resource exchange services provided by different entities are roughly the same.

[0003] However, if the current resource manager wants to deploy a target entity to carry the resource replacement business in the corresponding area, it is necessary to establish a resource connection between the target entity and the local resource pool, and independently develop resource replacement functions and resource management functions for the target entity, which not only affects the development efficiency of the target entity's resource replacement business, but also raises the performance requirements for the equipment deployed with the target entity, resulting in the resource manager's business expansion being constrained. In view of this, it is necessary and meaningful to propose a resource management method to reduce the performance requirements for the equipment deployed by the entity and improve the development efficiency of the entity's resource replacement business. Summary of the invention

[0004] The embodiments of the present application provide a resource management method, apparatus, computer equipment, and computer storage medium, which can reduce the performance requirements for the equipment of the deployment entity and improve the development efficiency of the resource replacement business of the entity.

[0005] On the one hand, an embodiment of the present application provides a resource management method, including:

[0006] In response to a resource replacement request of a target object, generating resource replacement information; wherein the resource replacement request is used to indicate that a reference resource and a target resource are to be replaced, and the resource replacement information is used to indicate changes in the reference resource and the target resource in a resource warehouse when the resource replacement is performed;

[0007] Acquire a pre-marked managed resource pair, wherein the managed resource pair refers to a resource pair associated with a management subject, and the management subject is used to manage the resource quantity of the managed resource pair in the resource warehouse;

[0008] If the target resource pair formed by the reference resource and the target resource is the managed resource pair, the resource replacement information is stored in the shared database of the managed resource pair, so that the management entity of the managed resource pair can manage the resource quantity of the reference resource and the target resource in the resource warehouse based on the changes indicated by the resource replacement information in the shared database.

[0009] On the other hand, an embodiment of the present application provides a resource management device, including:

[0010] A response unit, configured to generate resource replacement information in response to a resource replacement request of a target object; wherein the resource replacement request is used to indicate that a reference resource and a target resource are to be replaced, and the resource replacement information is used to indicate changes in the reference resource and the target resource in a resource warehouse when the resource replacement is performed;

[0011] an acquisition unit, configured to acquire a pre-marked managed resource pair, wherein the managed resource pair refers to a resource pair associated with a management subject, and the management subject is configured to manage the resource quantity of the managed resource pair in the resource warehouse;

[0012] A management unit is used to store the resource replacement information in a shared database of the managed resource pair if the target resource pair formed by the reference resource and the target resource is the managed resource pair, so that the management subject of the managed resource pair can manage the resource quantity of the reference resource and the target resource in the resource warehouse based on the changes indicated by the resource replacement information in the shared database.

[0013] On the other hand, an embodiment of the present application provides a computer device, including:

[0014] a processor adapted to implement one or more computer programs;

[0015] A computer storage medium storing one or more computer programs, wherein the one or more computer programs are suitable for being loaded by the processor and executing the resource management method according to the first aspect.

[0016] On the other hand, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores one or more computer programs, and the one or more computer programs are suitable for being loaded by a processor and executing the resource management method of the first aspect.

[0017] On the other hand, an embodiment of the present application provides a program product, which includes a computer program, and the computer program is suitable for being loaded by a processor and executing the resource management method of the first aspect.

[0018] In an embodiment of the present application, when the target entity receives a resource replacement request for indicating resource replacement of resources in a managed resource pair, the target entity can generate resource replacement information in response to the resource replacement request, and then send the resource replacement information to the management entity associated with the managed resource pair, so that the management entity can manage the resource quantity of the relevant resources in the resource warehouse based on the changes indicated by the resource replacement information, thereby reducing the workload of the target entity, alleviating the work pressure of the target entity, and further reducing the performance requirements for the computer equipment on which the target entity is deployed. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0020] Figure 1a It is a schematic diagram of a resource replacement principle provided by an embodiment of the present application;

[0021] Figure 1b It is a schematic diagram of the structure of a main body provided in an embodiment of the present application;

[0022] Figure 1c It is a structural diagram of a resource management system provided by an embodiment of the present application;

[0023] Figure 2 is a schematic flow chart of a resource management method provided in an embodiment of the present application;

[0024] Figure 3 is a schematic flow chart of another resource management method provided in an embodiment of the present application;

[0025] Figure 4a It is a structural diagram of an asset management system of a bank provided in an embodiment of the present application;

[0026] Figure 4b It is a schematic diagram of a principle of sharing data between databases provided in an embodiment of the present application;

[0027] Figure 5a It is a schematic diagram of a foreign exchange transaction implementation principle provided by an embodiment of the present application;

[0028] Figure 5b It is a schematic diagram of the principle of a liquidation operation provided by an embodiment of the present application;

[0029] Figure 6 It is a structural diagram of a resource management device provided in an embodiment of the present application;

[0030] Figure 7 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0031] It should be noted in advance that, in order to enable those skilled in the art to better understand the technical solutions proposed in the embodiments of the present application, the embodiments of the present application will be combined with one or more drawings to clearly and completely describe the implementation of the technical solutions proposed in the embodiments of the present application. In addition, the various drawings shown in the embodiments of the present application are only exemplary illustrations, and the execution order of the various steps in the drawings, for example, can be adaptively adjusted according to the actual application scenario. In addition, in the embodiments of the present application, the block diagrams, modules and units shown in the drawings are only functional entities, which do not necessarily correspond to physically independent entities, and each module or unit can be a part of an overall module or unit containing the function of the module or unit. That is, the term "module" or "unit" mentioned in the embodiments of the present application refers to a computer program or a part of a computer program with a predetermined function, which can work with other related parts to achieve a predetermined goal, and can also be implemented in whole or in part by using software, hardware (such as a processing circuit or memory) or a combination thereof, or implemented in different networks and / or processor devices and / or microcontroller devices. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units.

[0032] Specifically, this application mainly proposes a technical solution suitable for managing resources in the financial field. The adoption of this technical solution can effectively improve the efficiency of resource managers in developing resource replacement services for target entities, and reduce the performance requirements for the equipment deployed with the target entity, thereby realizing the rapid and low-cost implementation of resource replacement services. Among them, the subject can be understood as the business carrier used by the resource manager to provide resource replacement services. A resource manager can be configured with multiple subjects, and different subjects can be used to provide resource replacement services to different object groups, and the target entity can be any one of the multiple subjects.

[0033] In this technical solution, after receiving a resource replacement request for indicating that a reference resource is replaced with a target resource, the target subject will respond to the resource replacement request of the target object and generate resource replacement information to indicate the changes in the reference resource and the target resource in the resource warehouse when the replacement of the reference resource and the target resource corresponding to the request is realized. In addition, the target subject will also obtain a pre-marked managed resource pair, so that when it is determined that there is a resource pair formed by a reference resource and a target resource in the pre-marked managed resource pair, the resource replacement information will be stored in the shared database of the corresponding managed resource pair, so that the management subject of the managed resource pair can manage the resource quantity of the reference resource and the target resource in the resource warehouse based on the changes indicated by the resource replacement information.

[0034] When the resource replacement request received by the target subject is used to indicate the replacement of resources in the managed resource pair that has been configured with a management subject, the resource replacement information generated in response to the resource replacement request is handed over to the management subject of the managed resource pair for processing, so that the resource management function of the target subject for the managed resource pair can be implemented with the help of the management subject, which effectively reduces the resource processing work of the target subject and reduces the functional requirements of the target subject, thereby reducing the performance requirements of the computer equipment used to deploy the target subject. In addition, since the resource processing work of the target subject is reduced, then, during the development stage of the resource replacement business of the target subject, the technicians can selectively omit the development of related functions (such as the resource processing function of the managed resource pair), thereby improving the development efficiency of the resource replacement business of the target subject.

[0035] Among them, resource replacement refers to the exchange of two different resources under certain rules. In the embodiment of the present application, the resource replacement performed in response to the resource replacement request of the target object is usually to exchange a resource held by the target object (such as a reference resource) with a resource in the resource warehouse (such as a target resource), and the resource warehouse can be understood as a storage space for resource storage. For example, the principle of resource replacement in this application can be seen in Figure 1a As shown, based on Figure 1a It is not difficult to see that the subject in this application (such as the target subject, the management subject, etc.) can have a communication connection with the resource warehouse to realize the resource replacement between the resource warehouse and the target object. As an example, Figure 1a The structure of each subject can be found in Figure 1b .like Figure 1bIt can be seen that the subject can be composed of a client and a database. Among them, the client is used to provide resource replacement services to the target object, and the database is used to provide data storage services for the client, such as: the client can store resource replacement information in the database. Of course, in actual applications, the subject can also be composed of only the client, and the client can establish a data connection with one or more databases to realize the storage of resource replacement information.

[0036] In other embodiments, the resource replacement in the present application may also include the exchange between resources in the resource warehouse associated with the target subject and resources in other resource warehouses. In general, other resource warehouses are resource warehouses configured by resource managers different from the target subject. For example, the target subject belongs to resource manager A, the resource warehouse associated with the target subject may be configured by resource manager A, while other resource warehouses are usually configured by resource manager B. In actual applications, the number of other resource warehouses may be one or more, and these one or more other resource warehouses may constitute a resource pool. In other words, a subject in the present application can not only be associated with the resource warehouse configured by the resource manager to which it belongs, but also establish a resource connection with a resource pool containing one or more other resource warehouses.

[0037] In one embodiment, the present application can be specifically applied to Figure 1c In the resource management system shown, however Figure 1c This is only an exemplary description of the applicable system of this application. That is to say, in a specific application scenario, the structure of the resource management system actually adopted by this application and the connection relationship between the various components (such as communication connection relationship, resource connection relationship, etc.) can be set according to specific business needs, and the embodiments of this application do not limit this.

[0038] exist Figure 1c In the resource management system shown, the resource management system includes at least one subject (such as N subjects, N is a positive integer), one or more resource pools, at least one resource warehouse and at least one object group. There is a communication connection between the N subjects, and these N subjects belong to the same resource management party and are associated with at least one resource warehouse configured by the resource management party. That is to say, in the resource management system of the present application, there is at least one resource warehouse shared by N subjects. For example, Figure 1c As shown, different subjects can be used to respond to resource replacement requests sent by objects in different object groups. In addition, optionally, the subject in the resource management system can establish a resource connection with the resource pool, so that the subject can transfer resources between the resource warehouse and the resource pool based on the resource connection, thereby managing the resource quantity of related resources in the resource warehouse. For example, Figure 1c As shown, different entities may be associated with different resource pools.

[0039] In one embodiment, the subject (such as the target subject, the management subject) in the present application can exist in the form of a client (or application), and the subject can be deployed (or run) in a computer device so that the present application can be implemented by the various modules or units included in the computer device. Among them, the computer device refers to an electronic device with data calculation and processing capabilities, which can specifically include but is not limited to one or both of a terminal device and a server. Optionally, the terminal device can be specific such as a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server can be specific such as an independent physical server, a server cluster or a distributed system composed of multiple physical servers, and one or more of cloud servers that provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network), and basic cloud computing services such as big data and artificial intelligence platforms, etc., and the present application embodiment does not impose specific restrictions on this.

[0040] Based on the implementation principle and related embodiments of the above technical solution, this application proposes a resource management method. Specifically, the schematic flow chart of the resource management method can be found in Figure 2 As shown, the method can still be executed by the target subject mentioned above. Figure 2 It can be seen that the method at least includes steps S201-S203:

[0041] S201. Generate resource replacement information in response to a resource replacement request of a target object; wherein the resource replacement request is used to indicate resource replacement of a reference resource and a target resource, and the resource replacement information is used to indicate changes in the reference resource and the target resource in the resource warehouse during resource replacement.

[0042] In a specific embodiment, resources can be digitized and transmitted through a network. As an example, resources can be currency. A resource replacement request is used to indicate that a resource provided by a target object is replaced with another resource that the target object expects to obtain, such as replacing a reference resource with a target resource. Among them, the target resource is usually a resource currently existing in a resource warehouse, or a resource that can be obtained by the resource warehouse. In this case, resource replacement can be understood as replacing one currency with another currency according to a certain currency replacement strategy (or currency replacement rule), for example: according to the exchange rate between RMB and Hong Kong dollars, a certain amount of RMB is converted into a corresponding amount of Hong Kong dollars.

[0043] Then, the resource replacement information can be specifically used to indicate: when implementing the resource replacement corresponding to the resource replacement request, the change of the corresponding currency in the resource warehouse. For example, when the resource replacement is used to realize the conversion of a certain amount of RMB into a corresponding amount of Hong Kong dollars, the resource replacement information can be used to indicate the change of RMB and the change of Hong Kong dollars in the resource warehouse. Among them, the change is at least used to indicate the type of change (such as increase, decrease) and the amount of change in the currency holdings. Optionally, the change can also be used to indicate one or more information such as the change time, the object causing the change (such as the target object), and the currency replacement strategy adopted.

[0044] It should be noted that in the embodiment of the present application, the resource replacement information is generated before executing the resource replacement corresponding to the resource replacement request, and the relevant subject (such as the target subject or the management subject) can perform resource replacement according to the changes indicated by the resource replacement information. Specifically, the resource replacement information can be generated by the target subject after determining the currency replacement strategy between the reference resource and the target resource, based on the number of reference resources provided by the target object and the currency replacement strategy.

[0045] S202: Acquire a pre-marked managed resource pair, where the managed resource pair refers to a resource pair associated with a management subject, and the management subject is used to manage the resource quantity of the managed resource pair in the resource warehouse.

[0046] In a specific embodiment, a resource pair is composed of two different resources, such as a target resource pair is composed of a reference resource and a target resource. The resource amount of the resource pair includes the resource amount of each of the two resources constituting the resource pair, for example, the resource amount of the target resource pair includes the resource amount of the reference resource and the resource amount of the target resource. Then, the management subject manages the resource amount of the resource pair, that is, manages the resource amount of each resource forming the resource pair.

[0047] In addition, a managed resource pair refers to a resource pair associated with a management subject, and the management subject at least has the ability to manage the resource quantity of the managed resource pair in the resource warehouse. For example, if subject a has the ability to manage the resource quantity of resource pair x in the resource warehouse, then resource pair x can be marked as a managed resource pair, and subject a is the management subject associated with resource pair x, and the management subject is used to manage the resource quantity of resource pair x in the resource warehouse.

[0048] In particular, if subject a can manage resource pair x through cross-management of multiple resource pairs, then resource pair x can also be regarded as a managed resource pair. For example, subject a can manage resource pairs formed by resources A and B, and resource pairs formed by resources B and C. Then, if resource pair x consists of resources A and C, subject a can manage resource pairs formed by resources A and B, and resource pairs formed by resources B and C to indirectly manage resource pair x. Therefore, resource pair x can still be regarded as a managed resource pair, and subject a is the management subject of resource pair x.

[0049] The management subject of the managed resource pair can be determined by other subjects in the subject cluster except the target subject and establish a corresponding association relationship, or can be determined by the target subject and establish an association relationship. In addition, the management subject can be pre-associated or associated in the process of responding to the resource replacement request of the target object, and the embodiments of the present application do not limit this.

[0050] However, it should be noted that in the embodiment of the present application, the management subject is a subject in the subject cluster to which the target subject belongs, and the subject cluster can be specifically understood as the aforementioned Figure 1c Optionally, a managed resource pair in the present application can be associated with one or more management subjects in the subject cluster, and each management subject can manage the resource quantity of the managed resource pair in the resource warehouse by transferring resources based on the resource quantity of the managed resource pair in the resource warehouse. In the process of transferring resources to the managed resource pair, the resource quantities of the two resources in the managed resource pair change in a negative correlation in the resource warehouse.

[0051] S203. If the target resource pair formed by the reference resource and the target resource is a managed resource pair, the resource replacement information is stored in the shared database of the managed resource pair, so that the management entity of the managed resource pair can manage the resource quantity of the reference resource and the target resource in the resource warehouse based on the changes indicated by the resource replacement information in the shared database.

[0052] In a specific embodiment, the shared database of the managed resource pair may be a database designated by the management subject of the managed resource pair, and the database is used to store the resource replacement information of the managed resource pair. Optionally, when the target resource pair is a managed resource pair, the management performed by the management subject of the target resource pair may include but is not limited to one or both of the following:

[0053] ① Transfer target resource pairs between the resource warehouse and the target object to adjust the resource amounts of reference resources and target resources in the resource warehouse. For example, transfer the reference resources provided by the target object to the resource warehouse, and transfer the target resources in the resource warehouse to the target object, so that the resource amount of reference resources in the resource warehouse increases and the resource amount of target resources decreases.

[0054] ②Transfer target resource pairs between the resource warehouse and the resource pool to adjust the resource amounts of reference resources and target resources in the resource warehouse. For example, send the reference resources in the resource warehouse to the resource pool, and instruct the resource pool to replace the reference resources with target resources to receive the target resources fed back by the resource pool, so that the resource amount of reference resources in the resource warehouse is reduced and the resource amount of target resources is increased.

[0055] In an embodiment of the present application, when the target entity receives a resource replacement request for indicating resource replacement of resources in a managed resource pair, the target entity can generate resource replacement information in response to the resource replacement request, and then send the resource replacement information to the management entity associated with the managed resource pair, so that the management entity can manage the resource quantity of the relevant resources in the resource warehouse based on the changes indicated by the resource replacement information, thereby reducing the workload of the target entity, alleviating the work pressure of the target entity, and further reducing the performance requirements for the computer equipment on which the target entity is deployed.

[0056] Based on the implementation principle of the above technical solution and Figure 2 In addition to the embodiment of the method shown in the figure, the present application also proposes another resource management method. Specifically, the schematic flow chart of the resource management method can be found in Figure 3 As shown, the method can still be executed by the target subject mentioned above. Figure 3 It can be seen that the method at least includes steps S301-S306:

[0057] S301. Generate resource replacement information in response to a resource replacement request of a target object; wherein the resource replacement request is used to indicate resource replacement of a reference resource and a target resource, and the resource replacement information is used to indicate changes in the reference resource and the target resource in the resource warehouse during resource replacement.

[0058] In one embodiment, when generating resource replacement information, the target entity can first determine the first quantity of reference resources provided by the target object from the resource replacement request, and obtain the resource replacement strategy between the reference resources and the target resources (such as the aforementioned currency replacement strategy), and then determine the second quantity of target resources that the target object can obtain by replacement based on the resource replacement strategy and the first quantity of reference resources. Finally, based on the first quantity of reference resources and the second quantity of target resources, generate resource replacement information, so that the resource replacement information can at least be used to indicate: during the resource replacement process, the reference resources in the resource warehouse increase by a first quantity, and the target resources in the resource warehouse decrease by a second quantity.

[0059] S302: Acquire a pre-marked managed resource pair, where the managed resource pair refers to a resource pair associated with a management subject, and the management subject is used to manage the resource quantity of the managed resource pair in the resource warehouse.

[0060] In one embodiment, the management subject associated with the managed resource pair can be dynamically selected by the target subject. Specifically, the target subject can dynamically select the management subject of each managed resource pair according to the resource management performance (or simply referred to as management performance) of each subject in the subject cluster. It can be understood that resource management performance refers to the performance of managing the resource quantity of the target resource and the reference resource in the resource warehouse.

[0061] As an example, the target subject may give priority to selecting a subject with higher resource management performance as a management subject. In addition, there may be multiple subjects in the subject cluster that have the ability to manage the resource volume of a certain managed resource pair. In a specific application, the target subject may use these multiple subjects as candidate subjects for the managed resource pair, and evaluate the resource management performance of each candidate subject, so as to select the management subject of the managed resource pair from each candidate subject based on the resource management performance of each candidate subject.

[0062] Optionally, when there are multiple candidate entities for a managed resource pair, the target entity can select a management entity from among them to process the relevant resource replacement information to reduce data processing conflicts, thereby ensuring data consistency and system stability. In other application scenarios, the target entity can also select multiple management entities from among them to process the relevant resource replacement information to increase the amount of data processing per unit time, thereby improving the service efficiency of the resource replacement business. In other words, in the embodiment of the present application, the number of management entities associated with each managed resource pair can be determined according to the specific business development needs.

[0063] In order to more clearly understand the technical solution provided by this application, a feasible way for the target subject to select the management subject is described below with reference to a specific example. In this example, it is assumed that the target resource pair formed by the reference resource and the target resource has been marked as a managed resource pair, and the target subject currently needs to determine the management subject of the target resource pair.

[0064] In a specific implementation, the target subject may first determine the candidate subject that has the ability to manage the resource quantity of the target resource pair in the resource warehouse from the various subjects included in the subject cluster, and then obtain the resource management parameters required for each candidate subject to be used when performing management. Among them, the resource management parameters may exemplarily include the execution parameters required to perform resource replacement, such as one or more of the size of the running memory, the data reading and writing rate, etc., and when the resource is currency, the resource management parameters may further include the currency replacement rate.

[0065] Furthermore, the target subject can estimate the consumption of management resources adopted by each candidate subject when performing resource management based on the resource management parameters corresponding to each candidate subject, and finally use the candidate subject whose consumption of management resources is lower than or equal to the preset consumption as the management subject of the target resource pair. Among them, management resources may include but are not limited to storage memory, running memory, time and network resources (such as the traffic required for data transmission), etc. And it can be understood that in the embodiment of the present application, the consumption of management resources is negatively correlated with the resource management performance. That is, the more the management resources consumed by the candidate subject, the lower the resource management performance of the candidate subject.

[0066] In one implementation, the indication information of the candidate subject may be stored in a target database, and may be associated and stored with the indication information (such as an identifier) ​​of the corresponding managed resource pair, so that the target subject can quickly determine the management subject of the managed resource pair by accessing the target database. The indication information in the target database may be updated by at least one subject in the subject cluster. Exemplarily, the indication information in the target database may include one or more of the indication information of the managed resource pair and the indication information of the candidate subject, and the information update may include one or more of information deletion, information addition, information modification, etc.

[0067] As an example, the target database can be a database shared by all subjects in the subject cluster where the target subject is located. Each subject in the subject cluster can access the target database, and at least one subject can perform read and write operations in the target database to update the indication information in the target database, so that each subject can obtain accurate indication information from the target database.

[0068] Optionally, the target database may also be a private database of any subject in the subject cluster where the target subject is located. The subject has management authority over the private database and can control the private database to selectively provide data query services to other subjects. For example, when the target subject wants to access the private database, the subject to which the private database belongs can authenticate the identity of the target subject and grant the target subject the authority to access the private database for a period of time (i.e., the authority to use the data query service) after the identity authentication is passed, so that the target subject can obtain the pre-marked managed resource pairs within the period of time.

[0069] In addition, it should be particularly pointed out that in the embodiment of the present application, the execution order of step S301 and step S302 can be interchanged. That is to say, in the resource management method proposed in the present application, the target subject can also first respond to the resource replacement request of the target object, obtain the pre-marked managed resource pair, and then generate resource replacement information, and the present application does not limit this.

[0070] S303. If the target resource pair formed by the reference resource and the target resource is a managed resource pair, the resource replacement information is stored in the shared database of the managed resource pair, so that the management entity of the managed resource pair can manage the resource quantity of the reference resource and the target resource in the resource warehouse based on the changes indicated by the resource replacement information in the shared database.

[0071] In one embodiment, the target subject and the management subject of the target resource pair may be the same subject or different subjects. For ease of description, in the relevant embodiments of this step, unless otherwise specified, the management subject refers specifically to the management subject of the target resource pair. Among them, when the target subject and the management subject are different, the shared database of the managed resource pair may be a database to which both the target subject and the management subject have data connections, so that the target subject can store the resource replacement information in the shared database based on the data connection with the shared database, and the management subject can detect or obtain the resource replacement information from the shared database based on the data connection with the shared database, thereby realizing the management of the resource quantity of the managed resource pair in the resource warehouse.

[0072] Optionally, the shared database of the managed resource pair may also be a database constructed by the target subject. In this case, in order for the management subject to obtain the resource replacement information, the shared database needs to establish a direct or indirect data connection with the management subject. As an example, the indirect data connection between the management subject and the shared database may be realized based on a data sharing connection constructed between the shared database and the database of the management subject. Part or all of the data may be shared between two databases with a data sharing connection.

[0073] In a feasible implementation, the target subject can use the database it constructs as a shared database of the target resource pair in the following manner:

[0074] After building the database, a data sharing request is initiated to the management subject of the target resource pair, and a response result fed back by the management subject of the target resource pair to the data sharing request is received. The data sharing request is used to apply to the management subject to establish a data sharing connection between the database of the target subject and the database of the management subject, and the response result is used to indicate whether the management subject allows (or agrees to) the establishment of data sharing. If the response result indicates that the management subject allows data sharing, the target subject can start to establish a data sharing connection between the database of the target subject and the database of the management subject, and when the data sharing connection is successfully established, the database of the target subject is used as a shared database.

[0075] By using the existing database of the target subject itself as a shared database, it is possible to avoid building an additional database in the process of developing management functions for target resources for the target subject, thereby reducing development workload and saving storage resources.

[0076] S304: When the target resource pair is not a managed resource pair, the resource replacement information is stored in a private database.

[0077] The private database mentioned in step S304 refers to the private database of the target entity. In actual application, if the target resource pair does not exist in the pre-marked managed resource pairs, the target entity can be regarded as the management entity of the target resource pair, so as to use the target entity to manage the resource quantity of the target resource pair in the resource warehouse based on the resource replacement information.

[0078] In addition, in a specific embodiment, when the target resource pair is not currently a managed resource pair, the target subject can determine whether to use itself as the management subject of the target resource pair based on the performance quality of its own management performance. Specifically, when the target subject detects that the target resource pair is not a managed resource pair, it can estimate the management performance based on its own resource management parameters, and when the performance quality of the management performance is greater than or equal to the quality threshold, use the private database as the shared database of the target resource pair, and use the target subject itself as the management subject of the target resource pair, so that the target resource pair can be marked as a managed resource pair.

[0079] In one implementation, the principle of estimating management performance based on resource management parameters by the target subject can be found in the relevant embodiments in the above step S302, which will not be repeated here. It is worth mentioning that in this step, the consumption of management resources is negatively correlated with the performance quality of management performance.

[0080] S305: If a resource quantity management instruction for the target resource pair is detected, resource replacement information is obtained from a private database.

[0081] In a specific embodiment, the resource quantity management instruction is used to instruct the management of the resource quantity of the target resource pair in the resource warehouse. In one implementation, the resource quantity management instruction can be specifically used to instruct: based on the resource replacement information of the target resource pair, perform resource replacement between the target object and the resource warehouse, so that the resource warehouse obtains the reference resource provided by the target object, and the target object obtains the target resource provided by the resource warehouse. In this case, the resource replacement information obtained by the target subject may only include the resource replacement information generated in response to the resource replacement request of the target object.

[0082] In another implementation, the resource management instruction can also be specifically used to indicate: after estimating the loss risk of the resource warehouse, based on the estimated risk results and the resource replacement information of the target resource pair, perform resource replacement between the resource pool and the resource warehouse to adjust the resource amount of the target resource pair in the resource warehouse, so as to achieve the purpose of reducing or avoiding the risk of loss. In this case, the resource replacement information obtained by the target subject may include various resource replacement information that has not been processed in the private database, and each resource replacement information is used to indicate the changes of the two resources in the target resource pair. In other words, each resource replacement information mentioned here is generated for the target resource pair, and different resource replacement information can be generated by different subjects.

[0083] Wherein, the risk of loss refers to the risk of depreciation of resources held in the resource warehouse. The risk of loss is usually caused by changes in resource replacement strategies, and / or fluctuations in the replacement ratio between resources (such as exchange rates between different currencies). As an example, in order to reduce or avoid the risk of loss, the embodiment of the present application can use the target subject to adaptively adjust the resource amount of the target resource pair in the resource warehouse when the target resource pair is not currently associated with the management subject. In addition, when the target resource pair is associated with a management subject, the management subject of the target resource pair can be used to adaptively adjust the resource amount of the target resource pair in the resource warehouse. For example, when the management subject of resource pair x is subject a, the embodiment of the present application can use subject a to adaptively adjust the resource amount of resource pair x in the resource warehouse when a resource amount management instruction is detected.

[0084] Optionally, the resource quantity management instruction may be generated by the target subject when the target moment is detected to have arrived, or may be sent by the target object or other device. As an example, when the resource quantity management instruction is used to indicate the adaptive adjustment of the execution resource quantity, the target moment may be periodically determined, for example, the interval period between each target moment may be 24 hours. Similarly, as an example, when the resource quantity management instruction is used to indicate the execution of resource replacement between the target object and the resource warehouse, the target moment may also be a moment with a preset time interval (such as 12 hours) from the request reception time, and the request reception time refers to the time when the resource replacement request of the target object is received. For example, if the target subject receives a resource replacement request at 01:20:00, the resource quantity management instruction corresponding to the resource replacement request may be initiated at 13:20:00.

[0085] S306: Manage the resource amounts of the reference resources and the target resources in the resource warehouse according to the changes indicated by the acquired resource replacement information.

[0086] Based on the description of step S305, it can be known that in one embodiment, the resource quantity management instruction can be specifically used to indicate: based on the resource replacement information of the target resource pair, perform resource replacement between the target object and the resource warehouse, so that the resource warehouse obtains the reference resource provided by the target object, and the target object obtains the target resource provided by the resource warehouse. In this case, if the resource replacement information is used to indicate that a first quantity of reference resources is added to the resource warehouse, and a second quantity of target resources is reduced, then when the target subject manages the resource quantity of the reference resources and the target resources in the resource warehouse, it can specifically perform: according to the changes indicated by the resource replacement information, add the first quantity of reference resources to the resource warehouse, and output the second quantity of target resources from the resource warehouse to the target object.

[0087] It can also be known based on the description of step S305 that in another embodiment, the resource management instruction can also be specifically used to indicate: after estimating the loss risk of the resource warehouse, based on the estimated risk results and the resource replacement information of the target resource pair, perform resource replacement between the resource pool and the resource warehouse to adjust the resource quantity of the target resource pair in the resource warehouse.

[0088] In this case, when the target subject manages the resource amounts of the reference resources and the target resources in the resource warehouse, it can first determine the resource amounts of the reference resources and the target resources in the resource warehouse, and obtain the resource replacement parameters used when performing historical resource replacement on the reference resources and the target resources. Among them, historical resource replacement refers to resource replacement performed within a historical time period, and the historical time period specifically refers to a time period whose start time is before the current time. In addition, the resource replacement parameters obtained by the target subject here can at least include the replacement ratio between resources.

[0089] In actual application scenarios, fluctuations in the replacement ratio may also bring loss risks to the resource warehouse. Therefore, the target subject in the embodiment of the present application can obtain the replacement ratio of the target resource pair in the historical time period, and then predict the replacement ratio of the target resource pair in the future time period based on the obtained replacement ratio, and further formulate a corresponding resource adjustment strategy based on the predicted replacement ratio to reduce or avoid the risk of loss. In other words, the target subject can predict the resource adjustment strategy of the resource warehouse based on the obtained resource replacement parameters, the resource quantity of the reference resource, and the resource quantity of the target resource.

[0090] After predicting the resource adjustment strategy, the target entity can further determine the resource pool to which it is connected, and perform resource replacement of the target resource and the reference resource between the resource warehouse and the resource pool according to the resource adjustment strategy, so as to adjust the resource amount of the target resource and the resource amount of the reference resource in the resource warehouse. Among them, the resource pool includes at least one other resource warehouse, and the resource management party to which the other resource warehouse belongs may be different from the resource management party to which the resource warehouse belongs. In addition, the resource adjustment strategy can be specifically used to indicate what kind of resource amount in the resource warehouse is to be processed in what way, such as: it can be indicated to increase the resource amount of the target resource in the resource warehouse, and to reduce the resource amount of the reference resource. In addition, the resource amount mentioned here can be understood as the number of resources, such as the resource amount of the target resource can be understood as the number of target resources.

[0091] It should be noted that when the management subject in step S203 and step S303 manages the resource quantity of the target resource pair in the resource warehouse, it can also be implemented according to the various implementation methods proposed for the target subject in step S306, which is not elaborated in the embodiment of the present application.

[0092] In an embodiment of the present application, when the target entity receives a resource replacement request for indicating resource replacement of resources in a managed resource pair, the target entity can generate resource replacement information in response to the resource replacement request and then store the resource replacement information in a private database constructed by itself. The management entity associated with the managed resource pair can establish a direct or indirect communication connection with the private database and obtain the resource replacement information by accessing the private database. The management entity can then manage the resource quantity of related resources in the resource warehouse based on the changes indicated by the resource replacement information. This not only reduces the number of database development and saves equipment resources, but also reduces the workload of the target entity, thereby alleviating the work pressure of the target entity and ultimately reducing the performance requirements of the computer equipment on which the target entity is deployed.

[0093] In this application, Figure 2 or Figure 3 The method shown can be specifically applied in the financial field, so that the resource manager in the financial field can realize resource management through the above technical solution, thereby reducing the performance requirements of related computer equipment when deploying the main body of the resource manager, so as to facilitate the development of related financial business of the resource manager. Among them, the resource manager can be a financial institution, and the main body of the resource manager can be a financial service platform established by the financial institution.

[0094] In order to facilitate relevant technical personnel to realize the application of this technical solution, the implementation process of this application is fully explained below with reference to specific examples, drawings and scenarios.

[0095] In this example, the resource is currency, and the resource pair consists of two different currencies, such as US dollars and RMB, Japanese yen and euros, etc. The resource exchange request can be a foreign exchange transaction request, and the resource exchange information includes position data. The resource manager is a bank, and the subject of the resource manager is the asset management platform corresponding to the bank branch established by the bank in a certain area. The platform at least includes a client (or application), and the client is used to provide currency exchange services to various objects in the area. The resource warehouse is a virtual warehouse used to store assets (such as currency) held by the bank.

[0096] See also Figure 4a , Figure 4a An asset management system of a bank is shown. As an example, the system includes entity-A marked by 401 (hereinafter referred to as entity 401), entity-B marked by 402 (hereinafter referred to as entity 402), and entity-C marked by 403 (hereinafter referred to as entity 403). The structure of each entity can be as described above. Figure 1bAs shown in the structure, each subject has its own database. As an example, the structure of subject 401 can be as follows Figure 4b As shown in the structure marked by 411, the structure of the main body 402 can be as follows Figure 4b As shown in the structure marked by 412. It can be understood that Figure 4a In the example, the Redis master instance corresponding to each subject (hereinafter referred to as Redis, i.e., Remote Dictionary Server) represents the database of the subject. Optionally, the data in the database can be stored in the form of key-value pairs, so that the database has good scalability and high access efficiency.

[0097] In actual applications, the databases of various entities can form a database cluster, and there is a data sharing connection between the databases in the database cluster, so that data can be shared between databases through two-way replication. As an example, the data of the resource manager can be uniformly stored by the databases in the database cluster to form a replicable unified data set based on the database cluster. Then, when the resource manager subsequently creates a new entity, it can add the database of the entity to the database cluster so that the entity can quickly obtain comprehensive data through two-way replication, thereby accelerating the speed at which the newly created entity is put into actual application.

[0098] The principle of bidirectional replication can be found in Figure 4b .based on Figure 4b It can be seen that when the subject 401 (ie Figure 4b When the application service module in the client of the subject indicated by the structure marked by 411 in the figure writes a piece of data (such as key-val1) to the Redis of the subject 401, the Redis of the subject 401 can actively synchronize the data with each Redis with which it has data sharing connection, such as to the subject 402 (i.e. Figure 4b The Redis of the subject indicated by the structure marked by 412 in the sync command initiates data synchronization for key-val1. Figure 4b In actual applications, the Redis of the subject 402 can also detect that the Redis of the subject 401 has data updates, and actively update the data in its own Redis based on the data in the Redis of the subject 401. The embodiment of the present application does not limit this. Correspondingly, when the Redis of the subject 402 has data updates, the Redis of the subject 401 can also be synchronized and updated, which will not be described in detail here.

[0099] It should be specifically noted that in the actual application of this application, a Redis can be logically divided into multiple data storage areas, and the data stored in different data storage areas can correspond to different sharing permissions. As an example, please refer to Figure 5a . Such as Figure 5a . As shown, the Redis of the main body entity-B can include a central position set storage area and a private position set storage area. Among them, the central position set storage area is used to store position data that can be shared, while the private position set storage area can be used to store position data that cannot be shared (or called private data). Among them, the position set can also be called the exposure set, which is mainly used to record foreign exchange exposures.

[0100] The following takes asset management, specifically foreign exchange trading, as an example, and continues to combine Figure 5a , and elaborates in detail on a processing method of a foreign exchange transaction in the asset management scenario of a bank in this application. Among them, foreign exchange trading refers to: simultaneously buying one currency in a pair of currency combinations and selling another currency. Specifically, it can be the exchange of one country's currency for another country's currency. And foreign exchange trading is mainly carried out through the electronic network among banks, enterprises and individuals.

[0101] In Figure 5a , the position data (which can be abbreviated as position, that is, resource replacement information) is generated by the exposure management module in the main body. The target resource pair is composed of currency i and currency j, and the target resource pair is a managed resource pair, and its management entity is Figure 5a the main body entity-A in. In addition, it is assumed that both foreign exchange trading request 1 and foreign exchange trading request 3 are used to indicate resource replacement between the resources in the target resource pair. Among them, resource replacement between the resources in the target resource pair can include replacing currency i with currency j, or replacing currency j with currency i.

[0102] Then, based on Figure 5a It can be seen that if the main body receives a foreign exchange trading request for the target resource pair (such as foreign exchange trading request 1 or foreign exchange trading request 3), the exposure management module can be used to respond to the foreign exchange trading request to generate a corresponding position. Since the target resource pair is a managed resource pair, it indicates that this position needs to be handled by the management entity of this managed resource pair. Then, the position related to this resource pair also needs to be shareable. Therefore, the exposure management module can be called to record this position in the central position set of its own database, so that the management entity of the target resource pair can obtain this position.

[0103] Continue to refer to Figure 5a, Suppose the foreign exchange trading request 2 is a foreign exchange trading request for other resource pairs, and the other resource pairs are not custodian resource pairs. Then, after receiving the foreign exchange trading request 2, the entity can record the position generated in response to the request in the private position set for the entity itself to process. The data in the private position set is not shared, which can reduce the data communication frequency between databases, thereby saving storage resources and communication resources to a certain extent.

[0104] It is worth mentioning that in practical applications, the exposure management module can also be used for exposure management. Among them, exposure refers to the position data of "the purchase amount is greater than the sale amount (or: long position)" or "the sale amount is greater than the purchase amount (or: short position)" formed in foreign exchange trading. Exposure management can also be understood as closing positions, which can be specifically achieved by selling long positions and / or covering short positions. The following continues to take asset management, specifically foreign exchange trading, as an example and combines Figure 5b with specific examples to elaborate in detail on an exposure management method for foreign exchange trading in the asset management scenario of a bank in this application.

[0105] Please refer to Figure 5b , Suppose the entity entity-A is the management entity of the target resource pair. Then, the entity entity-A can perform exposure management based on the position data related to the target resource pair in the central position set. The specific exposure management method can be, for example, the entity entity-A can conduct transactions related to the target resource pair with the connected resource market, thereby adjusting the resource quantity of the target resource pair in the resource warehouse to make it reach the expected value. Optionally, the position data in the central position set can also be updated as the transaction progresses.

[0106] In addition, it should be pointed out that there can be multiple target resource pairs in this application. For example, the target resource pairs can include: resource pair 1 composed of US dollars and RMB (denoted as USDCNY), resource pair 2 composed of euros and RMB (denoted as EURCNY), and resource pair 3 composed of Hong Kong dollars and RMB (denoted as HKDCNY). Then, exemplarily, the position data stored in the central position set can be as shown in Table 1.

[0107] Table 1

[0108] Position ID Resource pair Foreign currency share CNY Share 101 USDCNY 100 -700 102 EURCNY 100 -750 103 HKDNY 110 -100

[0109] As an example, entity-A can sell 100 USD in the resource market and buy 700 RMB at the same time to achieve exposure management for the target resource pair USDCNY. After entity-A performs exposure management (such as liquidation) for each target resource pair based on the position data shown in Table 1, the position data stored in the central position set can be updated as shown in Table 2. It can be understood that in the embodiment of the present application, the amount in the position data is reset to zero, indicating that liquidation has been performed for the position data.

[0110] Table 2

[0111]

[0112]

[0113] In the embodiment of the present application, by setting up a unified replicable data set between multiple entities, the newly added database can share data from the existing database through a two-way replication mechanism, so that the newly added database can also have full data, which is beneficial to the business development of the entity associated with the database. In addition, since in the embodiment of the present application, each entity can write the position data of the managed resource pair into the central position set, the positions that can be handled by the management entity do not need to be managed by the non-management entity, which saves the exposure management construction work of the non-management entity, and can also improve the efficiency of the new entity's business development.

[0114] Based on the above Figure 2 and Figure 3 The resource management method shown in the present application also discloses a resource management device for executing the following Figure 2 as well as Figure 3 The resource management method of the present invention is as follows. The resource management device may be a computer program (including program code) running on the aforementioned computer device. Figure 6 The resource management device may at least include Figure 6 The response unit 601, the acquisition unit 602 and the management unit 603 in the embodiment of the present invention.

[0115] A response unit 601 is used to generate resource replacement information in response to a resource replacement request of a target object; wherein the resource replacement request is used to indicate that a reference resource and a target resource are to be replaced, and the resource replacement information is used to indicate changes in the reference resource and the target resource in a resource warehouse when the resource replacement is performed;

[0116] An acquisition unit 602 is used to acquire a pre-marked managed resource pair, where the managed resource pair refers to a resource pair associated with a management subject, and the management subject is used to manage the resource quantity of the managed resource pair in the resource warehouse;

[0117] The management unit 603 is used to store the resource replacement information in the shared database of the managed resource pair if the target resource pair formed by the reference resource and the target resource is the managed resource pair, so that the management entity of the managed resource pair can manage the resource quantity of the reference resource and the target resource in the resource warehouse based on the changes indicated by the resource replacement information in the shared database.

[0118] In one implementation, the management unit 603 in the resource management device may also be used to execute:

[0119] When the target resource pair is not the managed resource pair, storing the resource replacement information in a private database;

[0120] If a resource quantity management instruction for the target resource pair is detected, obtaining the resource replacement information from the private database;

[0121] According to the changes indicated by the acquired resource replacement information, the resource amounts of the reference resource and the target resource in the resource warehouse are managed.

[0122] In another embodiment, the reference resource is a resource provided by the target object, and the target resource is a resource that the target object expects to obtain; the resource replacement information is used to indicate that a first quantity is added to the reference resource, and a second quantity is reduced to the target resource; when the management unit 603 in the resource management device manages the resource quantities of the reference resource and the target resource in the resource warehouse according to the changes indicated by the acquired resource replacement information, the following may be specifically performed:

[0123] According to the change indicated by the resource replacement information, the first number of reference resources is added to the resource warehouse, and the second number of target resources is output from the resource warehouse to the target object.

[0124] In another embodiment, the resource management device is integrated in the target subject, and the management unit 603 in the resource management device can also be used to execute:

[0125] If it is detected that the performance quality of the management performance of the target subject is greater than or equal to the quality threshold, the private database is used as a shared database of the target resource pair; wherein the management performance refers to the performance of managing the resource quantity of the target resource and the reference resource in the resource warehouse;

[0126] The target subject itself is used as the management subject of the target resource pair, and the target resource pair is marked as a managed resource pair.

[0127] In yet another embodiment, the management unit 603 in the resource management device may also be used to execute:

[0128] Determining the resource amount of the reference resource and the resource amount of the target resource in the resource warehouse;

[0129] Acquire resource replacement parameters used when performing historical resource replacement on the reference resource and the target resource;

[0130] Predicting a resource adjustment strategy of the resource warehouse according to the acquired resource replacement parameters, the resource quantity of the reference resource, and the resource quantity of the target resource;

[0131] Determine a resource pool to which the target subject is connected, the resource pool including at least one other resource warehouse;

[0132] According to the resource adjustment strategy, resource replacement of the target resource and the reference resource is performed between the resource warehouse and the resource pool to adjust the resource amount of the target resource and the resource amount of the reference resource in the resource warehouse.

[0133] In another embodiment, the resource management device is integrated in the target subject, and the management unit 603 in the resource management device can also specifically perform:

[0134] Determine a candidate subject from each subject included in the subject cluster where the target subject is located, wherein the candidate subject refers to a subject that has the ability to manage the resource amount of the target resource and the reference resource in the resource warehouse;

[0135] Obtain resource management parameters required by each candidate subject when performing management, and estimate the consumption of management resources of the corresponding candidate subject according to the resource management parameters corresponding to each candidate subject;

[0136] A candidate subject whose consumption of managed resources is lower than or equal to a preset consumption is selected as a management subject of the target resource pair.

[0137] In yet another embodiment, the management unit 603 in the aforementioned embodiment may further execute:

[0138] Initiate a data sharing request to the management subject of the target resource pair, wherein the data sharing request is used to apply for establishing a data sharing connection between the database of the target subject and the database of the management subject of the target resource pair;

[0139] receiving a response result fed back by the management subject of the target resource pair in response to the data sharing request;

[0140] If the response result indicates that data sharing is allowed, establishing a data sharing connection between the database of the target entity and the database of the management entity of the target resource pair;

[0141] If the data sharing connection is established successfully, the database of the target entity is used as the shared database.

[0142] In another embodiment, when the response unit 601 in the resource management device generates resource replacement information in response to the resource replacement request of the target object, it can be specifically used to execute:

[0143] Determining, from the resource replacement request, a first quantity of the reference resource provided by the target object;

[0144] Acquire a resource replacement strategy between the reference resource and the target resource;

[0145] Determining, according to the resource replacement strategy and the first number of reference resources, a second number of the target resources that can be obtained by replacing the target object;

[0146] The resource replacement information is generated based on the first quantity of the reference resources and the second quantity of the target resources; wherein the resource replacement information is used to indicate that the reference resources in the resource warehouse are increased by the first quantity, and the target resources in the resource warehouse are reduced by the second quantity.

[0147] It should be noted that Figure 6 The various units in the resource management device shown are divided based on logical functions, and the above-mentioned various units can be separately or completely combined into one or several other units to constitute, or one (some) of the units can be further divided into multiple functionally smaller units to constitute, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. In other embodiments of the present application, the above-mentioned resource management device may also include other units. In actual applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.

[0148] In an embodiment of the present application, when the resource management device receives a resource replacement request for indicating resource replacement of resources in a managed resource pair, the resource management device may generate resource replacement information in response to the resource replacement request, and then send the resource replacement information to a management entity associated with the managed resource pair, so that the management entity can manage the resource quantity of the relevant resources in the resource warehouse based on the changes indicated by the resource replacement information, thereby reducing the workload of the resource management device, alleviating the working pressure of the resource management device, and further reducing the performance requirements for the computer equipment on which the resource management device is deployed.

[0149] Based on the above description of the resource management method and device, the present application embodiment also provides a computer device, which can be used to execute Figure 2 and Figure 3 Specifically, see Figure 7 , the computer device at least includes a processor 701 and a computer storage medium 702, and the processor 701 and the computer storage medium 702 can be connected via a bus or other means. Among them, the storage medium 702 is a memory device in the computer device, which is used to store programs and data. It can be understood that the storage medium 702 here can include both the built-in storage medium in the computer device and the extended storage medium supported by the computer device. The computer storage medium 702 is used to provide a storage space, and the storage space stores the operating system of the computer device. In addition, one or more computer programs suitable for being loaded and executed by the processor 701 are also stored in the storage space. These computer programs can be one or more program codes.

[0150] In addition, the computer storage medium can be a high-speed RAM memory or a non-volatile memory, such as at least one disk storage; optionally, it can also be at least one storage medium located away from the aforementioned processor. The processor (or CPU (Central Processing Unit)) corresponds to the computing core and control core of the computer device, which is suitable for implementing one or more computer programs, and is specifically suitable for loading and executing one or more computer programs to implement the corresponding method flow or corresponding function.

[0151] The embodiment of the present application also provides a computer storage medium, in which one or more computer programs corresponding to the resource management method described above are stored. When one or more processors load and execute the one or more computer programs, the description of the resource management method in the embodiment can be implemented, which will not be repeated here. It is understandable that the computer program can be deployed on one or more devices that can communicate with each other for execution.

[0152] An embodiment of the present application also provides a program product or a computer program, which includes computer instructions stored in a computer storage medium, and a processor of a computer device can read the computer instructions from the computer storage medium and execute the computer instructions, so that the computer device can execute the resource management method provided in the above-mentioned embodiments.

[0153] It can be understood that the beneficial effects of the same method in the present application on the computer storage medium, computer equipment and resource management device are the same as those in the present application. Figure 2 and Figure 3 The beneficial effects of the proposed resource management method are the same, so they will not be described here in detail. In addition, the various implementation methods disclosed above are only partial embodiments of the present application, and certainly cannot be used to limit the scope of the rights of the present application. A person of ordinary skill in the art can understand that the implementation of all or part of the above-mentioned embodiments and the equivalent changes made according to the claims of the present application still fall within the scope of the present invention.

Claims

1. A resource management method, It is characterized in that include: In response to a resource replacement request of a target object, generating resource replacement information; wherein the resource replacement request is used to indicate that a reference resource and a target resource are to be replaced, and the resource replacement information is used to indicate changes in the reference resource and the target resource in a resource warehouse when the resource replacement is performed; Acquire a pre-marked managed resource pair, wherein the managed resource pair refers to a resource pair associated with a management subject, and the management subject is used to manage the resource quantity of the managed resource pair in the resource warehouse; If the target resource pair formed by the reference resource and the target resource is the managed resource pair, the resource replacement information is stored in the shared database of the managed resource pair, so that the management entity of the managed resource pair can manage the resource quantity of the reference resource and the target resource in the resource warehouse based on the changes indicated by the resource replacement information in the shared database.

2. The method according to claim 1, It is characterized in that The method further comprises: When the target resource pair is not the managed resource pair, storing the resource replacement information in a private database; If a resource quantity management instruction for the target resource pair is detected, obtaining the resource replacement information from the private database; According to the changes indicated by the acquired resource replacement information, the resource amounts of the reference resource and the target resource in the resource warehouse are managed.

3. The method according to claim 2, It is characterized in that The reference resource is a resource provided by the target object, and the target resource is a resource that the target object expects to obtain; the resource replacement information is used to indicate that a first amount is added to the reference resource, and a second amount is reduced to the target resource; The managing the resource amounts of the reference resource and the target resource in the resource warehouse according to the change indicated by the acquired resource replacement information includes: According to the change indicated by the resource replacement information, the first number of reference resources is added to the resource warehouse, and the second number of target resources is output from the resource warehouse to the target object.

4. The method according to claim 2, It is characterized in that The method is performed by the target subject, and the method further includes: If it is detected that the performance quality of the management performance of the target subject is greater than or equal to the quality threshold, the private database is used as a shared database of the target resource pair; wherein the management performance refers to the performance of managing the resource quantity of the target resource and the reference resource in the resource warehouse; The target subject itself is used as the management subject of the target resource pair, and the target resource pair is marked as a managed resource pair.

5. The method according to claim 4, It is characterized in that The method further comprises: Determining the resource amount of the reference resource and the resource amount of the target resource in the resource warehouse; Acquire resource replacement parameters used when performing historical resource replacement on the reference resource and the target resource; Predicting a resource adjustment strategy of the resource warehouse according to the acquired resource replacement parameters, the resource quantity of the reference resource, and the resource quantity of the target resource; Determine a resource pool to which the target subject is connected, the resource pool including at least one other resource warehouse; According to the resource adjustment strategy, resource replacement of the target resource and the reference resource is performed between the resource warehouse and the resource pool to adjust the resource amount of the target resource and the resource amount of the reference resource in the resource warehouse.

6. The method according to claim 1, It is characterized in that The method is performed by the target subject, and the method further includes: Determine a candidate subject from each subject included in the subject cluster where the target subject is located, wherein the candidate subject refers to a subject that has the ability to manage the resource amount of the target resource and the reference resource in the resource warehouse; Obtain resource management parameters required by each candidate subject when performing management, and estimate the consumption of management resources of the corresponding candidate subject according to the resource management parameters corresponding to each candidate subject; A candidate subject whose consumption of managed resources is lower than or equal to a preset consumption is selected as a management subject of the target resource pair.

7. The method according to claim 6, It is characterized in that The method further comprises: Initiate a data sharing request to the management subject of the target resource pair, wherein the data sharing request is used to apply for establishing a data sharing connection between the database of the target subject and the database of the management subject of the target resource pair; receiving a response result fed back by the management subject of the target resource pair in response to the data sharing request; If the response result indicates that data sharing is allowed, establishing a data sharing connection between the database of the target entity and the database of the management entity of the target resource pair; If the data sharing connection is established successfully, the database of the target entity is used as the shared database.

8. The method according to claim 1, It is characterized in that The generating resource replacement information in response to the resource replacement request of the target object includes: Determining, from the resource replacement request, a first quantity of the reference resource provided by the target object; Acquire a resource replacement strategy between the reference resource and the target resource; Determining, according to the resource replacement strategy and the first number of reference resources, a second number of the target resources that can be obtained by replacing the target object; The resource replacement information is generated based on the first quantity of the reference resources and the second quantity of the target resources; wherein the resource replacement information is used to indicate that the reference resources in the resource warehouse are increased by the first quantity, and the target resources in the resource warehouse are reduced by the second quantity.

9. A resource management device, It is characterized in that include: A response unit, configured to generate resource replacement information in response to a resource replacement request of a target object; wherein the resource replacement request is used to indicate that a reference resource and a target resource are to be replaced, and the resource replacement information is used to indicate changes in the reference resource and the target resource in a resource warehouse when the resource replacement is performed; an acquisition unit, configured to acquire a pre-marked managed resource pair, wherein the managed resource pair refers to a resource pair associated with a management subject, and the management subject is configured to manage the resource quantity of the managed resource pair in the resource warehouse; A management unit is used to store the resource replacement information in a shared database of the managed resource pair if the target resource pair formed by the reference resource and the target resource is the managed resource pair, so that the management subject of the managed resource pair can manage the resource quantity of the reference resource and the target resource in the resource warehouse based on the changes indicated by the resource replacement information in the shared database.

10. A computer device, It is characterized in that include: a processor adapted to implement one or more computer programs; A computer storage medium storing one or more computer programs, wherein the one or more computer programs are suitable for being loaded by the processor and executing the resource management method according to any one of claims 1 to 8.

11. A computer storage medium, It is characterized in that The computer storage medium stores one or more computer programs, and the one or more computer programs are suitable for being loaded by a processor and executing the resource management method according to any one of claims 1 to 8.