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

A data synchronization method and device

A data synchronization and cache data technology, applied in transmission systems, electrical components, etc., can solve problems such as large system resource consumption, achieve the effects of improving overall performance, improving cache efficiency, and solving large system resources

Active Publication Date: 2020-09-08
ADVANCED NEW TECH CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the embodiment of the present application provides a data synchronization method and device, which are used to solve the problem of relatively large system resource consumption in the remote cache technology in the prior art

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
  • A data synchronization method and device
  • A data synchronization method and device
  • A data synchronization method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0049] figure 1 It is a schematic flowchart of a data synchronization method provided by the embodiment of the present application. The method can be as follows. The execution subject of the embodiment of the present application is the controller described in the embodiment of the present application.

[0050] Step 101: Receive a clearing instruction sent by the cache component.

[0051] The clearing instruction includes attribute values ​​of cached data to be cleared.

[0052] The cache data stored in the cache component is synchronized with the cache data stored in the local cache of the service system.

[0053] In the embodiment of the present application, when the business system needs to perform a clearing operation on the cached data in the local cache, it sends a clearing notification message to the cache component. At this time, the cache component sends a clearing instruction to the controller by calling the RPC interface. The controller here may be a remote cont...

Embodiment 2

[0070] figure 2 It is a schematic flowchart of a data synchronization method provided by the embodiment of the present application. The method can be as follows. The data synchronization method described in the embodiment of the present application is applied to the cache component.

[0071] In the embodiment of the present application, the cache data stored in the cache component is synchronized with the cache data stored in the local cache of the service system.

[0072] Specifically, in order to alleviate the pressure on the entire business system caused by the data synchronization between the business system and the remote cache server when the amount of cached data is large, the cache components described in the embodiments of this application have storage capabilities and can be real-time or periodically Synchronize the cached data stored in the local cache of the business system from the business system, so that when the business system clears the cached data in the ...

Embodiment 3

[0089] image 3 It is a schematic flowchart of a data synchronization method provided by the embodiment of the present application. The method can be as follows. The data synchronization method is applied to a remote cache server.

[0090] Step 301: Receive a data synchronization instruction sent by a control device.

[0091] The data synchronization instruction is sent by the control device when receiving the clear instruction, the data synchronization instruction is used to instruct the remote cache server to synchronize the cache data corresponding to the attribute value from the cache component, and the clear instruction is sent by the cache sent by the component.

[0092] Step 302: Send a data synchronization request to the cache component, where the data synchronization request includes the attribute value.

[0093] Step 303: Receive cache data corresponding to the attribute value sent by the cache component, and store the cache data synchronously.

[0094] Through ...

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 present application discloses a data synchronization method and device, including: by adding a cache component and a controller, the controller sends a data synchronization command to a remote cache server when receiving a clear command sent by the cache component, and the clear command includes The attribute value of the cached data to be cleared, the cached data stored in the cache component is synchronized with the cached data stored in the local cache of the business system, and the data synchronization instruction is used to instruct the remote cache server to retrieve the cached data from the cache component The cached data corresponding to the attribute value is synchronized. In this way, the controller controls the cache synchronization function of the remote cache server, which can enable the remote cache server to quickly obtain the cache data in the local cache of the business system, keep the cache data updated fastest, improve the cache efficiency of the remote cache, and effectively solve the existing problems. In the technology, the remote cache service consumes a lot of system resources, which greatly improves the overall performance of the system.

Description

technical field [0001] The present application relates to the field of Internet information processing technology and computer processing technology, and in particular to a data synchronization method and device. Background technique [0002] With the expansion of computer systems to distributed systems, the caching technology in distributed systems is called distributed caching technology. EhCache (a pure Java in-process caching framework), as a distributed caching component, is widely used in various distributed systems. [0003] EhCache applications are generally deployed in a cluster environment. Each node in the cluster environment maintains its own cache data. When a node updates the cache data, the updated data cannot be shared among other nodes, which will not only reduce the efficiency of node operation, but also cause data out of synchronization. Situation happens. Therefore, in order to overcome the problem of out-of-sync data of each node in the EhCache applic...

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/5682
Inventor 郑起
Owner ADVANCED NEW TECH CO LTD