Distributed lock client and control method

A technology of distributed locks and control methods, applied in the field of communication, can solve the problems of performance bottleneck, inability to linearly increase, and the database is not easy to scale horizontally, so as to achieve the effect of improving processing performance and enhancing throughput capacity.

Active Publication Date: 2017-01-25
NUBIA TECHNOLOGY CO LTD
View PDF9 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Most of the current solutions are implemented based on traditional relational databases. The data of traditional relational databases is accessed and stored through disk IO. This implementation has a performance bottleneck, which is not conducive to massive concurrent access. At the same time, traditional relational databases are not easy to horizontal Scale so that it cannot increase linearly with the number of users

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 client and control method
  • Distributed lock client and control method
  • Distributed lock client and control method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0035] A distributed lock client implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, use of suffixes such as 'module', 'part' or 'unit' for denoting elements is only for facilitating description of the present invention and has no specific meaning by itself. Therefore, "module" and "component" may be mixedly used.

[0036] see figure 1 , figure 1 It is an application environment diagram of a distributed lock client according to an embodiment of the present invention. figure 1 The application environment diagram includes the first business server 1, the second business server 2, and the Redis cache cluster 3. The first business server 1 and the second business server 2 respectively include a distributed lock clien...

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 invention provides a distributed lock client. The distributed lock client comprises a generation module, a mapping module, an acquisition module and a setting module, wherein the generation module generates a first lock key of a distributed lock corresponding to a first competition resource, and the first lock key is used for uniquely identifying the distributed lock corresponding to the first competition resource; the mapping module generates a mapping data table, and the mapping data table comprises multiple lock keys and lock values corresponding to the multiple lock keys; the acquisition module acquires a first lock value corresponding to the first lock key from the mapping data table and a second lock value corresponding to the first lock key from a Redis buffer cluster and judging whether the first lock value is equal to the second lock value; when the first lock value is equal to the second lock value, the setting module sets the failure time of the second lock value, stores the second lock value with the failure time set in the mapping data table and returns the second lock value to a service server. The invention further provides a control method. By means of the distributed lock client and the control method, the handling performance of the distributed lock is greatly improved, and the handling capacity of the server distributed framework of the internet serve is improved.

Description

technical field [0001] The invention relates to the communication field, and more specifically, to a distributed lock client and a control method. Background technique [0002] With the rapid development of mobile communications and the mobile Internet, a large number of users use the mobile Internet to access and process Internet services. In this way, massive concurrent processing load pressure is generated on the server of the mobile Internet services. In order to meet the high concurrency performance requirements, the architecture of the server side of the Internet business adopts a distributed cluster, and at the same time, the server side has the ability to expand horizontally. In a distributed server-side architecture, how to ensure the lock processing of resource competition among multiple servers has become the primary problem. Most of the current solutions are implemented based on traditional relational databases. The data of traditional relational databases is ac...

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): G06F9/50H04L29/08
CPCG06F9/5083H04L67/1001H04L67/568
Inventor 傅磊
Owner NUBIA TECHNOLOGY CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products