Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and apparatus for realizing permission data caching synchronization on the basis of Quorum mechanism

A permission and data technology, applied in the computer field, can solve the problems of not obtaining the latest permission data, synchronization, and strong dependence on web servers, so as to improve update efficiency, solve system delays, and avoid strong dependencies.

Active Publication Date: 2017-05-10
BEIJING JINGDONG ZHENSHI INFORMATION TECH CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In reality, when there are too many cache servers, on the one hand, the administrator may not be able to wait for all cache servers to be synchronized and prompt "operation successful" before performing other operations; on the other hand, most web applications basically The timeout period is set, and it may have timed out before the synchronization is completed.
This brings a very bad user experience, and at the same time has some impact on the robustness of the system and data consistency
[0005] Moreover, it was found during use that the existing permission data cache synchronization method is too dependent on the web server, and once the web server goes down, the permission data cannot be updated
For example: when the administrator modifies the permission data of a user (that is: the manager of a commodity or module), but it goes down when updating to the 5th web server, so the 5th web server is not updated successfully; When the user logs in to the product management system next time, if the web server provides the service, the authority data error will occur, that is, the web server has not obtained the latest authority data

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
  • Method and apparatus for realizing permission data caching synchronization on the basis of Quorum mechanism
  • Method and apparatus for realizing permission data caching synchronization on the basis of Quorum mechanism
  • Method and apparatus for realizing permission data caching synchronization on the basis of Quorum mechanism

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0022] The technical scheme of the present invention realizes data synchronization by adopting a Quorum mechanism.

[0023] The known Quorum mechanism is used to solve the load balancing of reads and writes in the read-write model. Assuming that there are a total of n data copies, k of which have been updated (k

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 method and apparatus for realizing permission data caching synchronization of n caching servers on the basis of a Quorum mechanism. The method comprises the following steps: updating permission data needing to be updated to k caching servers, and afterwards, prompting that updating succeeds, wherein an integer k is greater than 0 and smaller than or equal to n, and the permission data comprises version numbers; and after it is prompted that the updating succeeds, when a permission data obtaining request sent by a user is received, reading the permission data from any n-k+1 caching servers so as to obtain n-k+1 groups of caching data, and returning permission data with the latest version numbers to the user.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for realizing permission data cache synchronization based on Quorum mechanism. Background technique [0002] Operation Management Center (OMC) is a unified platform for commodity attribute management in warehousing projects, which includes a lot of authority management, and manages the authority relationship between commodity attributes or commodity modules and their managers or administrators. When the administrator of the OMC system authorizes the user (ie: the manager of the product or module), it is necessary to ensure the consistency of the authorization, that is, all users who access the OMC system (ie: the manager of the product or module) should Have up-to-date permissions, otherwise there will be administrative chaos. [0003] At present, the commonly used method for synchronizing permission data cache is basically based on the built-in session (se...

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): H04L29/06H04L29/08G06F17/30
CPCH04L63/10G06F16/24552H04L67/568H04L67/01
Inventor 刘恩英
Owner BEIJING JINGDONG ZHENSHI INFORMATION TECH CO LTD