Distributed lock processing method and device
By using local and cross-center agents to manage distributed locks in remote multi-center scenarios, the complexity of cross-machine room lock resource management is solved, high-performance distributed lock processing and unified interfaces are implemented, and a variety of distributed locks are adapted. technology.
Patent Information
- Application Number
- CN202111273364.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-29
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-10-29
AI Technical Summary
In a multi-center distributed scenario, it is difficult to achieve an effective and reasonable solution for distributed lock resource management across computer rooms, resulting in a complex architecture. Existing technologies cannot uniformly adapt to multiple distributed lock technologies and have low performance.
Distributed lock requests are obtained through the identification unit, requests from the same computer room are sent to the local agent, and requests from other computer rooms are sent to the cross-center agent. The local and cross-center agents are used to call the distributed lock interfaces of local and off-site resources respectively to provide a unified distributed lock. Operation interface to realize the management and acquisition of cross-machine room locks.
It simplifies the architecture, improves the processing performance of distributed locks, provides a unified solution to adapt to multiple distributed lock technologies, reduces connection complexity, and improves ease of use and efficiency.
Smart Images

Figure CN114006913B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of distributed technology, and in particular to a distributed lock processing method and device. Background Art
[0002] This section is intended to provide a background or context to the embodiments of the invention recited in the claims. No admission is made that the description herein is prior art by inclusion in this section.
[0003] At present, in a distributed scenario with multiple centers in different locations, a transaction in one center may involve access to multiple different resources in other computer rooms, and at the same time require transaction consistency. Such transactions are not easy to process by splitting, which will cause the resources of one computer room to be locked by multiple other computer rooms to achieve linear access, which involves the management mechanism of lock resources across computer rooms. The problem faced by this scenario at present is that there is no effective and reasonable solution for adding distributed locks to cross-center resources. The user of the lock needs to connect to multiple computer rooms, which will cause too many connections to be difficult to manage, resulting in a complex architecture. The same computer room can be solved by distributed lock tools (such as REDIS), but it is difficult to solve across computer rooms. There is no unified solution for adding distributed locks to the resources in this computer room to adapt to multiple distributed lock technologies. Users need to use the native interface of the distributed lock, which cannot be uniformly adapted. Therefore, the performance of the existing distributed lock processing solution is low. Summary of the invention
[0004] An embodiment of the present invention provides a distributed lock processing method for implementing high-performance distributed lock processing, the method comprising:
[0005] The identification unit obtains a distributed lock request from a distributed lock user, and when it is identified that the distributed lock request is from the same computer room, the distributed lock request from the same computer room is sent to the local proxy, and when it is identified that the distributed lock request is from another computer room, the distributed lock request from another computer room is sent to the cross-center proxy;
[0006] After the local proxy obtains the distributed lock request from the same computer room, it calls the distributed lock interface corresponding to the local resource to enable the user to obtain the distributed lock of the local resource;
[0007] After the cross-center proxy obtains the distributed lock request from other computer rooms, it sends the distributed lock request from other computer rooms to the cross-center proxy of other computer rooms, and calls the interface of the distributed lock corresponding to the resources in other computer rooms through the cross-center proxy of other computer rooms, so that the user can obtain the distributed lock of the resources in other computer rooms.
[0008] The embodiment of the present invention further provides a distributed lock processing device for implementing high-performance distributed lock processing, the device comprising:
[0009] An identification unit is used to obtain a distributed lock request from a distributed lock user, and when it is identified that the distributed lock request is from the same computer room, the distributed lock request from the same computer room is sent to a local proxy, and when it is identified that the distributed lock request is from another computer room, the distributed lock request from another computer room is sent to a cross-center proxy;
[0010] The local proxy is used to obtain the distributed lock request from the same computer room, and then call the distributed lock interface corresponding to the local resource to enable the user to obtain the distributed lock of the local resource;
[0011] The cross-center proxy is used to obtain the distributed lock request from other computer rooms, send the distributed lock request from other computer rooms to the cross-center proxy of other computer rooms, and call the interface of the distributed lock corresponding to the resources of other computer rooms through the cross-center proxy of other computer rooms, so that users can obtain the distributed lock of the resources of other computer rooms.
[0012] An embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned distributed lock processing method when executing the computer program.
[0013] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing the above-mentioned distributed lock processing method.
[0014] In an embodiment of the present invention, a distributed lock processing scheme is as follows: an identification unit obtains a distributed lock request of a distributed lock user, and when it is identified that the distributed lock request is a distributed lock request of the same computer room, the distributed lock request of the same computer room is sent to a local agent, and when it is identified that the distributed lock request is a distributed lock request of other computer rooms, the distributed lock request of other computer rooms is sent to a cross-center agent; after the local agent obtains the distributed lock request of the same computer room, the user obtains a distributed lock of the local resource by calling an interface of the distributed lock corresponding to the local resource; after the cross-center agent obtains the distributed lock request of other computer rooms, the distributed lock request of other computer rooms is sent to the cross-center agent of other computer rooms, and the interface of the distributed lock corresponding to the resources of other computer rooms is called by the cross-center agent of other computer rooms, so that the user obtains a distributed lock of the resources of other computer rooms, thereby realizing high-performance distributed lock processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0016] Figure 1 Schematic diagram of a process of a distributed lock processing method in an embodiment of the present invention;
[0017] Figure 2 It is a flowchart of a method for processing a distributed lock in another embodiment of the present invention;
[0018] Figure 3 A schematic diagram of the working process of the identification unit in an embodiment of the present invention;
[0019] Figure 4 Schematic diagram of the structure of a distributed lock processing device in an embodiment of the present invention;
[0020] Figure 5 It is a schematic diagram of the structure of a distributed lock processing device in another embodiment of the present invention. DETAILED DESCRIPTION
[0021] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0022] Before introducing the embodiments of the present invention, the terms involved in the present invention are first introduced.
[0023] 1. Distributed: A computer system that connects multiple computers in different locations, with different functions and different data through network communications and coordinates to complete large-scale information processing tasks under the unified management of the control system.
[0024] 2. Distributed lock: Distributed lock is a way to control synchronous access to shared resources between distributed systems.
[0025] 3.REDIS: REDIS is a memory-based NoSQL database that stores data in the form of key-value pairs.
[0026] 4.DB: database, relational database.
[0027] 5.ZK: Zookeeper, a distributed coordination service, provides coordination services for users' distributed applications and can also implement distributed lock functions.
[0028] 6. Distributed lock users: programs, applications, services, etc. that need to obtain distributed resource locks.
[0029] At present, all solutions for using distributed locks for resources are co-centric, and there is no cross-centric solution for using distributed locks for resources. At the same time, there is currently no unified distributed lock processing layer solution, and distributed lock users need to use the specific interface of the distributed lock. The embodiment of the present invention provides a distributed lock processing solution, which can solve this problem well through the distributed lock proxy layer, and the user only needs to access the proxy layer.
[0030] The embodiment of the present invention proposes a solution to the cross-center distributed lock processing using a proxy layer, manages the distributed locks in multiple computer rooms, has a simple architecture, and is easy to use. The embodiment of the present invention proposes a solution using a local proxy, provides users with a unified interface, and adapts to a variety of distributed lock technologies. Specifically:
[0031] 1) Use multi-center distributed lock agent
[0032] The embodiment of the present invention designs a simple and efficient solution for using a distributed lock agent to manage distributed locks in a cross-center shared resource scenario in a remote multi-center architecture. When each computer room obtains a distributed lock, it is uniformly managed by a local distributed lock agent. The agent layer provides a unified operation interface for users, and users can conveniently and efficiently obtain distributed locks of local computer room resources or distributed locks of other computer room resources in remote locations.
[0033] 2) Using a distributed lock agent in the same center
[0034] When the same computer room in the center needs to use a distributed lock, the distributed lock is managed through a local distributed lock agent. The agent layer provides users with a unified operation interface. At the same time, the agent layer acts as the technical implementation layer of the underlying distributed lock and can adapt to a variety of distributed lock implementations.
[0035] 3) Use distributed lock agents across centers
[0036] When distributed locks are needed in different computer rooms across centers, they are managed through cross-center distributed lock agents. The agent layer provides users with a unified operation interface, and at the same time the agent connects to the agent layers of other computer rooms to realize the management of distributed locks across computer rooms.
[0037] 4) Implement P2P network between agents
[0038] A P2P network is implemented between proxy layers across centers. The proxy layers communicate with each other through direct connections to achieve operations such as acquisition and release of distributed locks across centers. At the same time, direct connections between proxy layers can also more efficiently handle the processing of distributed locks across computer rooms.
[0039] 5) Queue cache design for proxy mechanism
[0040] The local proxy in the proxy means that the local proxy is acting as the proxy for the distributed locks of other computer rooms. The proxy is designed with queue cache to cache the distributed locks of other computer rooms that need to be acquired. Through this sequential cache mechanism, first, the order of acquiring locks can be guaranteed, and second, the management of distributed lock requests in remote computer rooms can be facilitated by pre-caching, thereby reducing the pressure on the proxy layer of the local computer room.
[0041] 6) Integrity management of all locks in the proxy transaction
[0042] The proxy in the proxy means that the local proxy proxies the local application to obtain the distributed lock. The local proxy proxies the request for the distributed lock of the local resource, providing the user with a unified request interface, so that the application does not need to worry about the details of obtaining the lock, nor the specific technical implementation details of the distributed lock. The proxy provides management of all locks, providing a fully functional and easy-to-use distributed lock function.
[0043] The following is a detailed introduction to the distributed lock processing solution.
[0044] Figure 1 FIG. 1 is a flow chart of a method for processing a distributed lock in an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0045] Step 101: the identification unit obtains a distributed lock request from a distributed lock user, and when it is identified that the distributed lock request is from the same computer room, the distributed lock request from the same computer room is sent to the local proxy; when it is identified that the distributed lock request is from another computer room, the distributed lock request from another computer room is sent to the cross-center proxy;
[0046] Step 102: After the local proxy obtains the distributed lock request from the same computer room, it calls the interface of the distributed lock corresponding to the local resource, so that the user obtains the distributed lock of the local resource;
[0047] Step 103: After the cross-center proxy obtains the distributed lock request from other computer rooms, it sends the distributed lock request from other computer rooms to the cross-center proxy of other computer rooms, and calls the interface of the distributed lock corresponding to the resources in other computer rooms through the cross-center proxy of other computer rooms, so that the user obtains the distributed lock of the resources in other computer rooms.
[0048] The distributed lock processing solution provided by the embodiment of the present invention can realize high-performance distributed lock processing. The following is a detailed introduction to each step involved in the method.
[0049] 1. First, the above step 101 is introduced.
[0050] like Figure 3 As shown, step 101 includes: step 1011: obtaining a distributed lock request of a distributed lock user; step 1012: when it is identified that the distributed lock request is a distributed lock request of the same computer room, sending the distributed lock request of the same computer room to the local agent; step 1013: when it is identified that the distributed lock request is a distributed lock request of other computer rooms, sending the distributed lock requests of other computer rooms to the cross-center agent.
[0051] In specific implementation, the identification unit obtains the distributed lock user's request to apply for a distributed lock or release a distributed lock, and then distinguishes whether the request is for a distributed lock in the same computer room or a distributed lock in another computer room to transfer the request to the local computer room agent or another computer room agent.
[0052] In one embodiment, the distributed lock user may include a program, application or service that needs to acquire a distributed lock.
[0053] It can be seen from the above that, in one embodiment, the distributed lock request may include a request to apply for a distributed lock or to release a distributed lock.
[0054] 2. Next, step 102 is introduced.
[0055] In one embodiment, Figure 5 As shown, the distributed lock may include a REDIS distributed lock, a DB distributed lock or a ZK distributed lock.
[0056] In specific implementation, after the local agent obtains the request to apply for or release a distributed lock, it transfers the request to the distributed lock implementation layer, that is, REDIS distributed lock, DB distributed lock or ZK distributed lock, etc.
[0057] 3. Next, step 103 is introduced.
[0058] After the cross-center agent obtains the request to apply for a distributed lock or release a distributed lock, it transfers the request to the distributed lock agent layer of the corresponding computer room (which can be a cross-center agent). At the same time, the agent layers of different computer rooms (which can include identification units, local agents and cross-center agents) communicate with each other to achieve information synchronization.
[0059] 4. Next, further optimization steps are introduced.
[0060] In one embodiment, Figure 2 As shown, the above-mentioned distributed lock processing method may further include step 104: queue cache stores distributed lock requests from other computer rooms.
[0061] In order to facilitate understanding of how the present invention is implemented, the following Figure 5 The architecture provided by the embodiment of the present invention is generally introduced.
[0062] like Figure 5 As shown, the distributed lock proxy layer may include a local proxy, a cross-center proxy, and a queue cache.
[0063] 1) Distributed lock solution across computer rooms
[0064] Through the design of the distributed lock proxy layer, users can apply for and release distributed locks locally and in other centers through the proxy layer, which can handle cross-center distributed lock scenarios efficiently and concisely.
[0065] 2) Distributed lock users
[0066] Programs, applications, services, etc. that need to obtain distributed resource locks.
[0067] 3) Local Agent
[0068] Provide users with unified interfaces for distributed locks corresponding to local resources, and users use these interfaces to obtain distributed locks for local resources; the local agent connects to a variety of distributed lock technologies, that is, the local agent is responsible for proxying the distributed locks of local resources and adapting to a variety of implementation methods, such as REDIS distributed locks, DB distributed locks, ZK distributed locks, etc.
[0069] 4) Cross-center proxy
[0070] The cross-center agent is responsible for obtaining the distributed locks of resources in other centers and providing users with a unified cross-center distributed lock acquisition method. The agents communicate with each other and manage the connection between centers, that is, providing users with unified cross-center resource corresponding distributed lock interfaces, and users use these interfaces to obtain distributed locks of resources in other centers; the cross-center agent connects to other centers and realizes the processing of distributed locks involving multiple resources in multiple centers by directly connecting to the cross-center agents of other centers.
[0071] 5) Queue Cache
[0072] A queue cache is used across the central proxy, which stores requests for distributed locks.
[0073] 6) Connections between centers
[0074] The connections between various centers (computer rooms) are managed uniformly through the distributed lock proxy layer, which enables the creation and destruction of connections and manages the life cycle of connections. Users do not need to worry about the connection status between centers.
[0075] In summary, the embodiment of the present invention includes a local agent, a cross-center agent and a queue cache. The local agent is a module for completing the acquisition of distributed locks for local resources; the cross-center agent is a module for completing the acquisition of distributed locks for other central resources; the queue cache is a module for caching distributed lock requests, wherein:
[0076] The local agent provides an interface for distributed locks corresponding to local resources, and is compatible with a variety of distributed lock technologies.
[0077] The cross-center agent provides a unified interface for distributed locks corresponding to cross-center resources, interconnects cross-center agents and manages connections between centers, and caches cross-center agent connection queues.
[0078] The queue cache is connected across central proxies and stores requests for distributed locks.
[0079] In summary, the advantages of the distributed lock processing method provided by the embodiment of the present invention are:
[0080] 1. A unified distributed lock processing function is provided through the local proxy layer, and it can adapt to a variety of distributed lock technologies.
[0081] 2. Through cross-center proxies, a solution for obtaining distributed locks in multiple centers is provided, which can make the architecture simpler and more convenient for users.
[0082] 3. Queue cache provides a method for caching distributed lock requests, which can ensure the order of application.
[0083] 4. The present invention provides an effective solution for processing distributed locks under multiple centers.
[0084] The present invention also provides a distributed lock processing device, as described in the following embodiments. Since the principle of the device to solve the problem is similar to the distributed lock processing method, the implementation of the device can refer to the implementation of the distributed lock processing method, and the repeated parts will not be repeated.
[0085] Figure 4 FIG. 1 is a schematic diagram of the structure of a distributed lock processing device according to an embodiment of the present invention. Figure 4 As shown, the device comprises:
[0086] Identification unit 01 is used to obtain a distributed lock request from a distributed lock user. When the distributed lock request is identified as a distributed lock request from the same computer room, the distributed lock request from the same computer room is sent to the local proxy. When the distributed lock request is identified as a distributed lock request from another computer room, the distributed lock request from another computer room is sent to the cross-center proxy.
[0087] The local agent 02 is used to obtain the distributed lock request of the same computer room, and then call the interface of the distributed lock corresponding to the local resource to enable the user to obtain the distributed lock of the local resource;
[0088] The cross-center agent 03 is used to obtain the distributed lock request of other computer rooms, send the distributed lock request of other computer rooms to the cross-center agent of other computer rooms, and call the interface of the distributed lock corresponding to the resources of other computer rooms through the cross-center agent of other computer rooms, so that the user can obtain the distributed lock of the resources of other computer rooms.
[0089] In one embodiment, the distributed lock includes a REDIS distributed lock, a DB distributed lock or a ZK distributed lock.
[0090] In one embodiment, Figure 5 As shown, the above-mentioned distributed lock processing device may further include: a queue cache, which is used to store distributed lock requests from other computer rooms.
[0091] In one embodiment, the distributed lock user includes a program, application or service that needs to acquire a distributed lock.
[0092] In one embodiment, the distributed lock request includes a request to apply for a distributed lock or to release a distributed lock.
[0093] An embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned distributed lock processing method when executing the computer program.
[0094] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing the above-mentioned distributed lock processing method.
[0095] In an embodiment of the present invention, a distributed lock processing scheme is as follows: an identification unit obtains a distributed lock request of a distributed lock user, and when it is identified that the distributed lock request is a distributed lock request of the same computer room, the distributed lock request of the same computer room is sent to a local agent, and when it is identified that the distributed lock request is a distributed lock request of other computer rooms, the distributed lock request of other computer rooms is sent to a cross-center agent; after the local agent obtains the distributed lock request of the same computer room, the user obtains a distributed lock of the local resource by calling an interface of the distributed lock corresponding to the local resource; after the cross-center agent obtains the distributed lock request of other computer rooms, the distributed lock request of other computer rooms is sent to the cross-center agent of other computer rooms, and the interface of the distributed lock corresponding to the resources of other computer rooms is called by the cross-center agent of other computer rooms, so that the user obtains a distributed lock of the resources of other computer rooms, thereby realizing high-performance distributed lock processing.
[0096] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0097] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0098] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0099] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0100] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A distributed lock processing method, characterized in that: The distributed lock processing method is a method for managing distributed locks using a distributed lock proxy layer in a cross-center shared resource scenario in a remote multi-center architecture, and the method includes: The identification unit obtains a distributed lock request from a distributed lock user, and when it is identified that the distributed lock request is from the same computer room, the distributed lock request from the same computer room is sent to the local proxy, and when it is identified that the distributed lock request is from another computer room, the distributed lock request from another computer room is sent to the cross-center proxy; After the local proxy obtains the distributed lock request from the same computer room, it calls the distributed lock interface corresponding to the local resource to enable the user to obtain the distributed lock of the local resource; After the cross-center proxy obtains the distributed lock request from other computer rooms, it sends the distributed lock request from other computer rooms to the cross-center proxy of other computer rooms, and calls the interface of the distributed lock corresponding to the resources in other computer rooms through the cross-center proxy of other computer rooms, so that the user obtains the distributed lock of the resources in other computer rooms; The distributed lock processing method further includes: queuing and caching distributed lock requests from other computer rooms; Among them, the distributed lock proxy layer includes local agents, cross-center agents and queue caches; the connections between various computer rooms are uniformly managed through the distributed lock proxy layer to achieve the creation and destruction of connections and manage the life cycle of connections. Users do not need to worry about the connection status between centers.
2. The distributed lock processing method according to claim 1, characterized in that: The distributed lock includes a REDIS distributed lock, a DB distributed lock or a ZK distributed lock.
3. The distributed lock processing method according to claim 1, characterized in that: The distributed lock user includes a program, application or service that needs to obtain a distributed lock.
4. The distributed lock processing method according to claim 1, characterized in that: The distributed lock request includes a request for applying for a distributed lock or releasing a distributed lock.
5. A distributed lock processing device, characterized in that: The distributed lock processing device is a device for managing distributed locks using a distributed lock proxy layer in a cross-center resource sharing scenario in a remote multi-center architecture, and the device includes: An identification unit is used to obtain a distributed lock request from a distributed lock user, and when it is identified that the distributed lock request is from the same computer room, the distributed lock request from the same computer room is sent to a local proxy, and when it is identified that the distributed lock request is from another computer room, the distributed lock request from another computer room is sent to a cross-center proxy; The local proxy is used to obtain the distributed lock request from the same computer room, and then call the distributed lock interface corresponding to the local resource to enable the user to obtain the distributed lock of the local resource; The cross-center proxy is used to obtain the distributed lock request of other computer rooms, send the distributed lock request of other computer rooms to the cross-center proxy of other computer rooms, and call the interface of the distributed lock corresponding to the resources of other computer rooms through the cross-center proxy of other computer rooms, so that the user can obtain the distributed lock of the resources of other computer rooms; The distributed lock processing device also includes: a queue cache for storing distributed lock requests from other computer rooms; Among them, the distributed lock proxy layer includes local agents, cross-center agents and queue caches; the connections between various computer rooms are uniformly managed through the distributed lock proxy layer to achieve the creation and destruction of connections and manage the life cycle of connections. Users do not need to worry about the connection status between centers.
6. The distributed lock processing device according to claim 5, characterized in that: The distributed lock includes a REDIS distributed lock, a DB distributed lock or a ZK distributed lock.
7. The distributed lock processing device according to claim 5, characterized in that: The distributed lock user includes a program, application or service that needs to obtain a distributed lock.
8. The distributed lock processing device according to claim 5, characterized in that: The distributed lock request includes a request for applying for a distributed lock or releasing a distributed lock.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 4 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program for executing the method according to any one of claims 1 to 4.
