Supercharge Your Innovation With Domain-Expert AI Agents!

Distributed lock transfer method and device, electronic equipment and computer readable medium

A technology of distributed locks and critical resources, applied in the field of distributed lock handover methods, electronic equipment and computer-readable media, and devices, can solve problems such as difficulty in achieving load balancing, inability to reasonably control alternate acquisitions, etc., and achieve load balancing. Effect

Pending Publication Date: 2022-08-09
JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] When implementing distributed locks based on relational databases or distributed locks based on distributed cache, the acquisition of distributed locks by each application node is random, and it is impossible to reasonably control the fairness of each application node's acquisition of distributed locks in turn. Difficult to achieve load balancing of each node

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Distributed lock transfer method and device, electronic equipment and computer readable medium
  • Distributed lock transfer method and device, electronic equipment and computer readable medium
  • Distributed lock transfer method and device, electronic equipment and computer readable medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes, and are not intended to limit the protection scope of the present disclosure.

[0042] In addition, it should be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings. The embodiments of this disclosure and features of the embodiments may be combined with each other without conflict.

[0043] It should be noted that concepts ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a distributed lock transfer method and device, electronic equipment and a computer readable medium. A specific embodiment of the method comprises the steps of determining whether a token is held or not according to a value of a distributed lock of a target critical resource; and in response to determining that the token is held, executing a service operation by using the target critical resource, determining whether the distributed lock meets a handover condition or not according to preset token holding time in response to determining that the service operation is executed by using the target critical resource; and in response to determining that the distributed lock meets the handover condition, updating the value of the distributed lock to a node identifier of a next application node in a target token ring, the target token ring being composed of application nodes competing for the target critical resource. According to the embodiment, load balancing when the application nodes compete for the critical resources is achieved.

Description

technical field [0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular, to a distributed lock handover method, apparatus, electronic device, and computer-readable medium. Background technique [0002] In a distributed environment, when multiple application nodes operate critical resources at the same time, distributed locks are used to coordinate each application node, so that only one of the application nodes can obtain access rights to distributed locks and critical resources. At present, when implementing distributed locks, the usual methods are: implementing distributed locks based on relational databases, or implementing distributed locks based on distributed caches. [0003] However, when using the above method to implement distributed locks, there are often the following technical problems: [0004] When a distributed lock is implemented based on a relational database, or a distributed lock is implemented based on a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L67/1001H04L9/40H04L9/32G06F16/2455
CPCH04L63/10H04L63/0807H04L9/3213G06F16/24552
Inventor 陈志国
Owner JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More