Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for maintaining data consistency, electronic device and readable storage medium

A technology for maintaining data and consistency, applied in the computer field, can solve the problems of data inconsistency between the cache server and the database server, and achieve the effects of shortening the time of data inconsistency, reducing the possibility of business data errors, and reducing the possibility of data loss

Active Publication Date: 2018-10-16
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF7 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] In view of this, the embodiments of the present invention provide a method, device, electronic device, and readable storage medium for maintaining data consistency, which can solve the problem of data inconsistency between the cache server and the database server, and are reliable, efficient, and can save a lot of money. Business server resources

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 device for maintaining data consistency, electronic device and readable storage medium
  • Method and device for maintaining data consistency, electronic device and readable storage medium
  • Method and device for maintaining data consistency, electronic device and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] 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.

[0040]In the embodiment of the present invention, the previous method for maintaining data consistency is improved, and a solution for maintaining data consistency is realized. The embodiment adds three new servers, namely two message queue servers and one database consistency maintenance server. The message queue server stores the data from the cache server and the datab...

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

An embodiment of the invention provides a method and device for maintaining data consistency, an electronic device and a readable storage medium, which can solve the problem of data inconsistency between a cache server and a database server, are reliable, have high efficiency and can save a large amount of service server resources. The method for maintaining data consistency in the embodiment of the present invention includes the steps of copying and sending the modified data to a corresponding message queue server while modifying the data; receiving data from the caching server and / or the database server and placing the data in respective message queues; and obtaining data from the message queue server and processing the data according to the data consistency principle.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method, device, electronic equipment and readable storage medium for maintaining data consistency. Background technique [0002] In large-scale Internet e-commerce applications, in order to cope with high concurrency and high availability scenarios, the application data needs to be stored in the cache server and the database server at the same time, and the data of the cache server and the database server are allowed to be modified at the same time. Cause data inconsistency, affect business logic, and even lead to logic errors. [0003] There are two methods to solve the problem of data inconsistency in the prior art, one is to clear the cache: regularly clear the cache, and then copy the data in the database server to the cache server; the other is to traverse the data method: to traverse the cache regularly The data in the server and the database server, if inconsistent data is foun...

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): G06F17/30G06F9/54
CPCG06F9/546G06F2209/548
Inventor 李立威
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products