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

Data synchronization method, device, server and storage medium

A data synchronization and server technology, applied in the transmission system, electrical components, etc., can solve the problems that the main server cannot synchronize the cached data, the cached data is inconsistent, and achieve the effect of reducing complexity and improving consistency

Active Publication Date: 2020-04-14
GUANGDONG OPPO MOBILE TELECOMM CORP LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The data synchronization method, device, server and storage medium provided by the embodiments of the present application can solve the problem that when synchronizing cached data, the slave server can only unidirectionally synchronize the cached data in the master server, while the master server cannot synchronize the cached data in the slave server , resulting in inconsistency between the cached data in the slave server and the cached data in the master server

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
  • Data synchronization method, device, server and storage medium
  • Data synchronization method, device, server and storage medium
  • Data synchronization method, device, server and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the following will further describe the embodiments of the present application in detail in conjunction with the accompanying drawings.

[0036] First, several terms involved in the embodiments of the present application are introduced.

[0037] Cache data: refers to the data that is directly cached in the cache memory in order to improve the data access speed. Cached data is usually accessed more frequently and changes more quickly.

[0038] Optionally, in the embodiment of the present application, the cached data can be the cached data in the remote data service (Remote DictionaryServe, Redis), and can also be the cached data in the distributed cache system Memcache, which is not done in the embodiment of the present application. limited.

[0039] figure 1 It is a schematic structural diagram of a data synchronization system shown in an exemplary ...

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 present application discloses a data synchronization method, device, server and storage medium, belonging to the technical field of data storage. The method includes: obtaining a modification instruction for cached data in the first server; intercepting the modification instruction through an intercepting component, and adding a modification message corresponding to the modification instruction to a message queue; modifying the first server according to the modification instruction Cache data in a server; sending a change message in the message queue to a second server, where the change message is used for the second server to synchronously change the cache data in the second server. The embodiment of the present application can solve the problem that the master server cannot synchronously change the cache data when the cache data of the slave server is changed; because no matter whether the first server is the slave server or the master server, the cache data and the cache data in the second server can be maintained Consistent, not limited by server type, can improve the consistency of cached data.

Description

technical field [0001] The embodiments of the present application relate to the technical field of data storage, and in particular to a data synchronization method, device, server, and storage medium. Background technique [0002] Distributed service refers to a service system in which multiple servers work together to complete a certain business. In a distributed service system, in order to ensure that the same terminal can access the cached data corresponding to the terminal from different servers, the cached data in different servers need to be kept synchronized. [0003] Taking the cached data in the remote dictionary server (Redis) as an example, the distributed service system includes a master server and a slave server. When synchronizing Redis cache data, the slave server can only synchronize the Redis cache data in the master server. The master server cannot synchronize the Redis cache data in the slave server. [0004] Since the slave server can only copy the cach...

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 Patents(China)
IPC IPC(8): H04L29/08
CPCH04L67/1095H04L67/568H04L67/5682
Inventor 肖利强康大强李元军
Owner GUANGDONG OPPO MOBILE TELECOMM CORP LTD