Intermediate management method, device, equipment and product capable of selecting management strategy

The method optimizes database management by selecting and creating policy backend objects based on user demands, improving connection flexibility and reducing redundancy, thus enhancing user-server connection adaptability and efficiency.

CN120017700BActive Publication Date: 2025-07-15TIANJIN NANKAI UNIV GENERAL DATA TECH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510458935.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-14
Publication Date
2025-07-15
Estimated Expiration
2045-04-14

AI Technical Summary

Technical Problem

In the prior art, the management strategy when a user connects to a database instance is single, resulting in limited management effect, high maintenance cost, slow update speed, and affecting the database usage effect.

Method used

By selecting an intermediate management method for management policies, according to the connection needs of the user, select or establish a policy backend object from the existing policy backend object collection to connect to the server, and delete the policy backend object that has not been used for a long time to achieve personalized management policy settings.

Benefits of technology

It realizes high transparency between the user-side and the server-side connection, strong adaptability of management strategies, reduces redundant space and meets diverse user needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120017700B_ABST
    Figure CN120017700B_ABST
Patent Text Reader

Abstract

The present invention discloses an intermediate management method, device, equipment and product capable of selecting management strategies. According to the connection requirements of the client, it can select a matching policy backend object from the existing policy backend object set and connect it to the server side, realizing the connection between the client capable of selecting management strategies and the server side. Moreover, it can establish a new policy backend and delete the policy backend objects that have not been used for a long time according to the connection requirements of the client, and can meet the diverse needs of the client through personalized and controllable policy settings, featuring high transparency in the connection between the client and the server side, strong adaptability of management strategies, and small redundant occupied space.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of database management, and in particular, relates to an intermediate management method, device, equipment, and product capable of selecting management strategies. Background Art

[0002] When using database products, the management strategies for different users to connect to database instances are also different. However, under the existing technical conditions, when a user connects to a data node and operates on a database instance, the setting of management strategies is usually relatively single. Often, only a relatively unified connection management strategy from the user to the data server can be set according to needs, and the management effect is very limited. At the same time, when it is necessary to change the connection management strategy between the user and the data server, there are also problems such as high maintenance costs, slow update speed, and affecting the actual use effect of the database. Summary of the Invention

[0003] In view of this, the present invention aims to overcome the defects in the prior art and proposes an intermediate management method, device, equipment, and product capable of selecting management strategies.

[0004] To achieve the above object, the technical solution of the present invention is realized as follows:

[0005] In a first aspect, the present invention discloses an intermediate management method capable of selecting management strategies, including:

[0006] According to the connection requirements of the user terminal, select a matching policy backend object from the set of existing policy backend objects and connect it to the server terminal; wherein, the policy backend object can connect the user terminal and the corresponding server terminal according to the set management strategy;

[0007] If no policy backend object is matched in the set of existing policy backend objects, then according to the connection requirements of the user terminal, establish a new policy backend object and connect it to the server terminal using the new policy backend object;

[0008] Supplement the new policy backend object into the set of existing policy backend objects;

[0009] Delete the policy backend objects in the set of policy backend objects that exceed the unused time threshold.

[0010] In another embodiment of the present invention, according to the connection requirements of the user terminal, selecting a matching policy backend object from the set of existing policy backend objects and connecting it to the server terminal includes: the connection requirements of the user terminal match the policy backend objects with the same connection requirements.

[0011] In another embodiment of the present invention, according to the connection requirements of the client, a matching policy backend object is selected from the set of stored policy backend objects and connected to the server side, including: matching the connection requirements of the client according to the snapshot of the policy backend object, where the snapshot includes: connection requirement attribute information, time attribute information, and usage attribute information of the policy backend object. The connection requirement attribute information is used to record the connection requirements of the policy backend object, the usage attribute information is used to record whether the policy backend object is being used, and the time attribute information is used to record the time when the policy backend object was last stopped being used.

[0012] In another embodiment of the present invention, policy backend objects that exceed the unused time threshold in the set of policy backend objects are deleted, including: screening out policy backend objects that are not being used, and based on the time attribute information, deleting policy backend objects that are not being used and exceed the unused time threshold.

[0013] In another embodiment of the present invention, according to the connection requirements of the client, a matching policy backend object is selected from the set of stored policy backend objects and connected to the server side, including: setting up a listening module, and the listening module can obtain the connection requirements of the client.

[0014] In another embodiment of the present invention, the method further includes: setting up a status query module, and the status query module can query the policy backend objects in the set of stored policy backend objects.

[0015] In another embodiment of the present invention, according to the connection requirements of the client, a new policy backend object is established and connected to the server side using the new policy backend object, including: selecting a corresponding management policy according to the connection requirements of the client and generating a new policy backend object.

[0016] In a second aspect, the present invention discloses an intermediate management device capable of selecting a management policy. The device includes:

[0017] A selection module for selecting a matching policy backend object from the set of stored policy backend objects according to the connection requirements of the client and connecting it to the server side; where the policy backend object can connect the client to the corresponding server side according to the set management policy;

[0018] A creation module for, if no matching policy backend object is found in the set of stored policy backend objects, creating a new policy backend object according to the connection requirements of the client and connecting it to the server side using the new policy backend object;

[0019] A supplement module for supplementing the new policy backend object into the set of stored policy backend objects;

[0020] A deletion module, configured to delete policy backend objects in a set of policy backend objects that exceed an unused time threshold.

[0021] In a third aspect, the present invention discloses an electronic device, including: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors are caused to execute the above method.

[0022] In a fourth aspect, the present invention discloses a computer program product, including a computer program which, when executed by a processor, implements the above method.

[0023] Compared with the prior art, the present invention has the following advantages:

[0024] The present invention discloses an intermediate management method, device, equipment, and product capable of selecting management policies. According to the connection requirements of the user terminal, it can select a matching policy backend object from a set of existing policy backend objects and connect it to the server terminal, realizing the connection between the user terminal and the server terminal capable of selecting management policies. Moreover, it can establish new policy backends and delete policy backend objects that have not been used for a long time according to the connection requirements of the user terminal, and can meet the diverse needs of the user terminal through personalized and controllable policy settings, featuring a high degree of transparency in the connection between the user terminal and the server terminal, strong adaptability of management policies, and small redundant occupied space. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation to the present invention.

[0026] In the drawings:

[0027] Figure 1 is a schematic diagram of an application scenario of an intermediate management method capable of selecting management policies according to an embodiment of the present invention;

[0028] Figure 2 is a schematic diagram of an intermediate management method capable of selecting management policies according to an embodiment of the present invention;

[0029] Figure 3 is a snapshot schematic diagram of a policy backend object of an intermediate management method capable of selecting management policies according to an embodiment of the present invention;

[0030] Figure 4 is a schematic diagram of an intermediate management device capable of selecting management policies according to an embodiment of the present invention;

[0031] Figure 5 is a schematic diagram of an intermediate management electronic device capable of selecting management policies according to an embodiment of the present invention. Detailed implementation manners

[0032] It should be noted that, without conflict, the embodiments in the present invention and the features in the embodiments may be combined with each other.

[0033] In the description of the present invention, it should be noted that, unless otherwise clearly defined and limited, the terms "installation", "connection" and "coupling" should be understood in a broad sense. For example, it may be a fixed connection, a detachable connection or an integral connection; it may be a mechanical connection or an electrical connection; it may be a direct connection or an indirect connection through an intermediate medium, and it may be the communication inside two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention may be understood according to specific situations.

[0034] In the description of the present invention, it should be further noted that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first", "second", etc. may explicitly or implicitly include one or more of such features. In the description of the present invention, unless otherwise stated, the meaning of "a plurality" is two or more.

[0035] The present invention discloses an intermediate management method, device, equipment and product application scenario capable of selecting management strategies as Figure 1 shown. Under the existing technical conditions, when a user terminal connects to a server terminal as needed, it generally connects through an intermediate management tool with a set management strategy. However, the existing intermediate management methods generally only set a relatively unified connection management strategy according to needs, and the management effect is very limited, and the maintenance cost is high and the update speed is slow. The present invention discloses an intermediate management method, device, equipment and product capable of selecting management strategies. According to the connection requirements of the user terminal, a matching policy backend object can be selected from the existing policy backend object set to connect to the server terminal, so as to realize the connection between the user terminal and the server terminal capable of selecting management strategies, and a new policy backend can be established and a policy backend object that has not been used for a long time can be deleted according to the connection requirements of the user terminal, having the characteristics of high transparency of the connection between the user terminal and the server terminal, strong adaptability of the management strategy and small redundant occupied space.

[0036] The present invention will be described in detail below with reference to the drawings and in combination with embodiments.

[0037] In an embodiment disclosed by the present invention, as Figure 2 shown, an intermediate management method capable of selecting management strategies includes:

[0038] Step S201: According to the connection requirements of the client, select a matching policy backend object from the set of stored policy backend objects and connect it to the server side; among them, the policy backend object can connect the client to the corresponding server side according to the set management policy.

[0039] In this embodiment, the connection requirements of the client match the policy backend objects with the same connection requirements. Exemplarily, the client uses the policy backend object with the same connection requirements to connect to the server side, and this policy backend object connects the client to the corresponding server side according to the set management policy for intermediate management.

[0040] The policy backend object is an intermediate management object that can connect the client to the corresponding server side according to the set management policy.

[0041] In this embodiment, a monitoring module is set up, and the monitoring module can obtain the connection requirements of the client.

[0042] Furthermore, according to the connection requirements of the client, select a matching policy backend object from the set of stored policy backend objects and connect it to the server side, that is, select the policy backend object with the same connection requirements to connect to the server side.

[0043] In this embodiment, a status query module is set up, and the status query module can query the policy backend objects in the set of stored policy backend objects, including how many policy backend objects there are in the current set of stored policy backend objects, whether they are in use, and the clients and servers bound to each policy backend object.

[0044] Exemplarily, the set of stored policy backend objects serves as a policy backend object pool, which facilitates the selection and matching of the connection requirements of the client.

[0045] Step S202: If no policy backend object is matched in the set of stored policy backend objects, then according to the connection requirements of the client, create a new policy backend object and use the new policy backend object to connect to the server side.

[0046] In this embodiment, according to the connection requirements of the client, select the corresponding management policy to generate a new policy backend object.

[0047] In this embodiment, a server-side status module is set up to monitor the status of the cluster server and provide support for generating a new policy backend object.

[0048] Exemplarily, according to the connection requirements of the client, select the corresponding management policy to generate a policy backend object suitable for the connection requirements of this client.

[0049] Step S203: Supplement the new policy object into the set of stored policy backend objects.

[0050] Step S204, delete the policy backend objects in the policy backend object set that exceed the unused time threshold.

[0051] In this embodiment, according to the connection requirements of the client, the method can select a matching policy backend object from the existing policy backend object set to connect to the server side, realizing the connection between the client that can select the management policy and the server side, and can establish a new policy backend and delete the policy backend objects that have not been used for a long time according to the connection requirements of the client, effectively reducing redundancy, and having the characteristics of high transparency of the connection between the client and the server side and flexible matching of management policies.

[0052] Based on the previous embodiment, in another embodiment of the present invention, as Figure 2 and Figure 3 shown, step S201 further includes: matching according to the snapshot of the policy backend object for the connection requirements of the client, where the snapshot includes: connection requirement attribute information, time attribute information, and usage attribute information of the policy backend object, where the connection requirement attribute information is used to record the connection requirements of the policy backend object, the usage attribute information is used to record whether the policy backend object is being used, and the time attribute information is used to record the time when the policy backend object stopped being used last time.

[0053] In this embodiment, when the policy backend object has not been used for a period of time, update the time attribute information and usage attribute information corresponding to the policy backend object.

[0054] In this embodiment, if the connection requirements of the client are the same as the connection requirements recorded in the connection requirement attribute information of the policy backend object, the two match successfully.

[0055] In this embodiment, matching according to the snapshot of the policy backend object can effectively improve the matching efficiency between the connection requirements of the client and the policy backend object.

[0056] Based on the previous embodiment, in another embodiment of the present invention, deleting the policy backend objects in the policy backend object set that exceed the unused time threshold includes: screening out the policy backend objects that are not being used, and based on the time attribute information, deleting the policy backend objects that are not being used and exceed the unused time threshold.

[0057] In this embodiment, screening out the policy backend objects that are not being used and exceed the unused time threshold for deletion can effectively reduce the redundancy of the policy backend object set while avoiding affecting the policy backend objects that are being used.

[0058] In this embodiment, for the policy backend objects in the hierarchical management policy backend object set, a first-level screening is first performed, and then a second-level screening is performed on the results of the first-level screening. The first level is screening using attributes to filter out unused policy backend objects; the second level is screening using time attributes to further filter out policy backend objects that have not been used for a long time. Finally, the filtered policy backend objects are deleted to achieve the effect of removing redundancy.

[0059] Exemplarily, the management policy for policy backend objects can be one or more of the following policies:

[0060] 1. Session retention policy: Under the session retention policy, in the case of an exception on the server side, it can be transparently shielded on the user side, and the user side only perceives a short period of lag and can continue to execute subsequent operations after the server side recovers. This policy improves the user experience in the case of server-side exceptions, such as database exceptions.

[0061] 2. Read-write separation policy: Under the read-write separation policy, by distributing the read and write operations of the database to different servers, the performance and scalability of the database are effectively improved. Write operations are usually processed by the main database to ensure data consistency and integrity, while read operations can be distributed to multiple slave databases to achieve load balancing and improve the system's reading ability and response speed. The read-write separation policy not only reduces the burden on the main database but also significantly improves the overall performance of the system by processing read requests in parallel, and is particularly suitable for application scenarios with more reads than writes, such as online trading systems and content management systems.

[0062] 3. Load balancing policy: Under the load balancing policy, by dynamically monitoring the load conditions of each server, requests are routed to the server with the lowest current load, avoiding overloading of a single server, improving the system's throughput, and enhancing the system's availability and reliability. Especially in high-concurrency scenarios, it can effectively prevent service degradation or failures caused by overloading of a single server.

[0063] 4. Circuit breaker policy: Under the circuit breaker policy, when a server, such as a server carrying a database, has too high a load or too long a response time, the circuit breaker will be automatically triggered to temporarily cut off certain operations or requests to the server to protect the stable operation of the database.

[0064] 5. Composite Strategy: Under the composite strategy, each tenant can have its own independent data and business logic. Multiple tenants can share one application instance, but the data and operations are completely isolated. When processing each request, set the context information of the current tenant to ensure that all database operations contain the correct tenant ID. In the case of multiple database instances, dynamically select the data source based on the tenant ID. When querying the data of a certain tenant, the query statement will add the tenant identifier tenant_id in the WHERE clause.

[0065] 6. Co-rental Strategy: Under the co-rental strategy, each tenant can have its own independent data part and also a common data part, enabling multiple tenants to share one application instance, but the data and operations can be isolated and shared according to requirements. When querying the unique data of a certain tenant, the query statement will add the tenant identifier tenant_id in the WHERE clause. When querying the common data part, there is no need to add the tenant identifier.

[0066] As Figure 4 shown, the present invention also discloses an intermediate management device capable of selecting a management strategy. The device includes:

[0067] A selection module 401, configured to select a matching policy backend object from the set of stored policy backend objects according to the connection requirements of the user terminal and connect it to the server terminal; wherein, the policy backend object can connect the user terminal and the corresponding server terminal according to the set management strategy;

[0068] An establishment module 402, configured to, if no policy backend object is matched in the set of stored policy backend objects, establish a new policy backend object according to the connection requirements of the user terminal and connect to the server terminal using the new policy backend object;

[0069] A supplement module 403, configured to supplement the new policy backend object into the set of stored policy backend objects;

[0070] A deletion module 404, configured to delete the policy backend objects in the set of policy backend objects that exceed the unused time threshold.

[0071] The present invention also discloses an electronic device. As Figure 5 shown, an embodiment is disclosed, which is a block diagram of an intermediate management electronic device applicable to the above-mentioned one capable of selecting a management strategy.

[0072] The electronic device 50 in this embodiment includes a processor 501, which can perform various appropriate actions and processes according to the programs stored in the ROM 502 or loaded from the storage section 508 into the RAM 503. The processor 501 can include, for example, a general microprocessor, an instruction set processor, and / or a related chipset, and / or a dedicated microprocessor, etc. The processor 501 can also include on-board memory for caching purposes. The processor 501 can include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiments of the present invention.

[0073] In the RAM 503, various programs and data required for the operation of the electronic device 50 are stored. The processor 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. The processor 501 performs various operations of the method flow according to the embodiments of the present invention by executing the programs in the ROM 502 and / or the RAM 503. It should be noted that the programs can also be stored in one or more memories other than the ROM 502 and the RAM 503, and the processor 501 can also perform various operations of the method flow according to the embodiments of the present invention by executing the programs stored in one or more memories.

[0074] According to an embodiment of the present invention, the electronic device 50 may further include an I / O interface 505, and the I / O interface 505 is also connected to the bus 504. The electronic device 50 may further include one or more of the following components connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube, a liquid crystal display, a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 5010 is also connected to the I / O interface 505 as needed. A removable medium 5011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 5010 as needed so that a computer program read from it can be installed into the storage section 508 as needed.

[0075] The present invention also provides a computer-readable storage medium.

[0076] The computer-readable storage medium may be included in the electronic device / device system described in the above embodiments; or it may exist separately and not be assembled into the electronic device / device. The above computer-readable storage medium carries one or more programs, and when the one or more programs are executed, the method according to the embodiments of the present invention is implemented.

[0077] According to an embodiment of the present invention, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include but is not limited to: portable computer disks, hard disks, random access memory RAM, read-only memory ROM, erasable programmable read-only memory EPROM or flash memory, portable compact disk read-only memory CD ROM, optical storage devices, magnetic storage devices, or any suitable combination of the above. In the present invention, the computer-readable storage medium may be any tangible medium that contains or stores a program, and this program can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0078] An embodiment of the present invention further includes a computer program product.

[0079] This computer program product includes a computer program, and this computer program contains program code for executing the method provided by the embodiment of the present invention. When the computer program product runs on an electronic device, this program code is used to enable the electronic device to implement the method provided by the embodiment of the present invention.

[0080] In one embodiment, this computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, this computer program may also be transmitted and distributed in the form of signals on a network medium. The program code contained in this computer program can be transmitted by any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0081] According to an embodiment of the present invention, the program code for executing the computer program provided by the embodiment of the present invention can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level procedures and / or object-oriented programming languages. Programming languages include but are not limited to, such as Java, C++, python, C language, or similar programming languages. The program code can be executed entirely on the user's computing device, partially on the user's device, partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user's computing device through any type of network, including a local area network or a wide area network, or can be connected to an external computing device.

[0082] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a part of code, and the above-mentioned module, segment of a program, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, as well as combinations of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions. Those skilled in the art can understand that the features described in various embodiments and / or claims of the present invention can be combined and / or combined in various ways, even if such combinations or combinations are not explicitly described in the present invention. In particular, without departing from the spirit and teachings of the present invention, the features described in various embodiments and / or claims of the present invention can be combined and / or combined in various ways. All such combinations and / or combinations fall within the scope of the present invention.

[0083] The embodiments of the present invention have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present invention. Although the embodiments have been described separately above, this does not mean that the measures in each embodiment cannot be used advantageously in combination. The scope of the present invention is defined by the appended claims and their equivalents, and without departing from the scope of the present invention, those skilled in the art can make various substitutions and modifications, and all such substitutions and modifications should fall within the scope of the present invention.

Claims

1. An intermediate management method capable of selecting a management strategy, characterized in that, Including: According to the connection requirements of the client, select a matching policy backend object from the set of existing policy backend objects and connect it to the server side; wherein, the policy backend object can connect the client to the corresponding server side according to the set management policy; If no matching policy backend object is found in the set of existing policy backend objects, a new policy backend object is established according to the connection requirements of the client and connected to the server side using the new policy backend object; Supplement the new policy backend object to the set of existing policy backend objects; When a policy backend object has not been used for a period of time, update the time attribute information and usage attribute information corresponding to the policy backend object; Delete the policy backend objects in the policy backend object set that exceed the unused time threshold; The management policy of the policy backend object is one or more of the following policies: Session retention policy: Under the session retention policy, in the case of an exception on the server side, it can be transparently shielded on the client side, and the client only perceives a short period of lag and continues to execute subsequent operations after the server side recovers; Combined policy: Under the combined policy, each tenant has its own independent data and business logic, and multiple tenants share one application instance, but the data and operations are completely isolated; when processing each request, set the context information of the current tenant to ensure that all database operations contain the correct tenant ID. In the case of multiple database instances, the data source is dynamically selected according to the tenant ID. When querying the data of a certain tenant, the query statement will add the tenant identifier tenant_id in the WHERE clause; Co-rental policy: Under the co-rental policy, each tenant has its own independent data part and also has a common data part, realizing that multiple tenants share one application instance, but the data and operations are isolated and shared according to requirements. When querying the unique data of a certain tenant, the query statement will add the tenant identifier tenant_id in the WHERE clause. When querying the common data part, there is no need to add the tenant identifier.

2. The intermediate management method capable of selecting a management strategy according to claim 1, characterized in that The step of selecting a matching policy backend object from the set of existing policy backend objects according to the connection requirements of the client and connecting it to the server side includes: the connection requirements of the client match the policy backend objects with the same connection requirements.

3. The intermediate management method capable of selecting a management strategy according to claim 2, characterized in that, The step of selecting a matching policy backend object from the set of existing policy backend objects according to the connection requirements of the client and connecting it to the server side includes: the connection requirements of the client are matched according to the snapshot of the policy backend object, wherein the snapshot includes: the connection requirement attribute information, time attribute information, and usage attribute information of the policy backend object, wherein the connection requirement attribute information is used to record the connection requirements of the policy backend object, the usage attribute information is used to record whether the policy backend object is being used, and the time attribute information is used to record the time when the policy backend object stopped being used last time.

4. The intermediate management method capable of selecting a management strategy according to claim 3, wherein, Deleting the policy backend objects in the policy backend object set that exceed the unused time threshold includes: screening out the policy backend objects that are not in use, and based on the time attribute information, deleting the policy backend objects that exceed the unused time threshold among the policy backend objects that are not in use.

5. The intermediate management method capable of selecting a management strategy according to claim 1, wherein Selecting a matching policy backend object from the existing policy backend object set according to the connection requirement of the client and connecting it to the server side includes: setting up a listening module that can obtain the connection requirement of the client.

6. The intermediate management method capable of selecting a management strategy according to claim 1, characterized in that The method further includes: setting up a status query module that can query the policy backend objects in the existing policy backend object set.

7. The intermediate management method capable of selecting a management strategy according to claim 1, characterized in that Establishing a new policy backend object according to the connection requirement of the client and using the new policy backend object to connect to the server side includes: selecting a corresponding management policy according to the connection requirement of the client and generating the new policy backend object.

8. An intermediate management device capable of selecting a management strategy, characterized in that: The device includes: A selection module for selecting a matching policy backend object from the existing policy backend object set according to the connection requirement of the client and connecting it to the server side; wherein, the policy backend object can connect the client to the corresponding server side according to the set management policy; An establishment module for, if the policy backend object is not matched in the existing policy backend object set, establishing a new policy backend object according to the connection requirement of the client and using the new policy backend object to connect to the server side; A supplement module for supplementing the new policy backend object into the existing policy backend object set; when a policy backend object has not been used for a period of time, updating the time attribute information and usage attribute information corresponding to the policy backend object; A deletion module for deleting the policy backend objects in the policy backend object set that exceed the unused time threshold; The management policy of the policy backend object is one or more of the following policies: Session retention policy: Under the session retention policy, in the case of an exception on the server side, it can be transparently shielded on the client side, and the client only perceives a short period of lag, and continues to execute subsequent operations after the server side recovers; Combined policy: Under the combined policy, each tenant has its own independent data and business logic, and multiple tenants share one application instance, but the data and operations are completely isolated; when processing each request, the context information of the current tenant is set to ensure that all database operations include the correct tenant ID. In the case of multiple database instances, the data source is dynamically selected according to the tenant ID. When querying the data of a certain tenant, the query statement will add the tenant identifier tenant_id in the WHERE clause; Co-rental strategy: Under the co-rental strategy, each tenant has its own independent data part and also has a common data part, enabling multiple tenants to share one application instance. However, data and operations are isolated and shared according to requirements. When querying the unique data of a certain tenant, the tenant identifier tenant_id will be added to the WHERE clause of the query statement. When querying the common data part, the tenant identifier does not need to be added.

9. An electronic device, characterized in that, Including: One or more processors; A storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors are caused to execute the method according to any one of claims 1 to 7.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Snapshot management method, system, apparatus and device, and readable storage medium

    CN108959614A

  • Flow management method and device for micro-service request, server and storage medium

    CN111600930A

  • Communication strategy configuration method and device, storage medium and equipment

    CN114157710A