Information synchronization method, device and system

A technology of information synchronization and messaging, applied in the computer field, to achieve the effect of ensuring final consistency

Active Publication Date: 2019-12-24
YOUXINPAI BEIJING INFORMATION TECH CO LTD
View PDF3 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the vehicle information management platform shown in the prior art, the user usually completes the search for the target document through the Elasticsearch search engine during the search process. In the Elasticsearch search engi

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
  • Information synchronization method, device and system
  • Information synchronization method, device and system
  • Information synchronization method, device and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0110] see figure 2 , the first aspect of the embodiment of the present application shows a data synchronization system, the system includes: an application platform server 31, a query database 32 connected to the application platform server 31, the query database 32 is set in the application The internal or independent setting of the platform server 31, the application platform server 31 is connected with the Java end 33 through the Internet;

[0111] The Java end 33 is used to search out the update data based on the update document ID, and use the update data to update the index corresponding to the Elasticsearch search engine, and the data.

[0112] The application platform server 31 is configured to implement the method shown in the embodiment of the present application;

[0113] For receiving the execution message, (1) determining the reconstruction flag of the index corresponding to the execution message;

[0114] The execution message includes; an update message and ...

Embodiment 2

[0123] Please refer to 3, the first aspect of the embodiment of this application shows an information synchronization method, the method includes:

[0124] S101 receives an execution message, and determines the reconstruction flag of the index corresponding to the execution message;

[0125] The execution message includes; an update message and a reconstruction message;

[0126] The rebuilding flag is a specified value of the system. If the index is being rebuilt, the rebuilding flag is 1, and if the index is not being rebuilt, the rebuilding flag is 0. In practical applications, it can be distinguished between the index being rebuilt and the index being rebuilt. Inconsistent representation methods that are not in the reconstruction state are all within the scope of protection of the methods shown in the embodiments of the present application, and will not be illustrated here due to limited space.

[0127] It is worth noting that the Redis queue records the reconstruction fla...

Embodiment 3

[0133] see Figure 4 , Embodiment 3 has similar steps to Embodiment 2, the only difference is that step S101 in the technical solution shown in Embodiment 2 includes the following steps:

[0134] S1011 Receive an execution message, where the execution message includes: an update message, and a reconstruction message;

[0135] The update message includes: relevant document insertion, replacement, and deletion related data in the index.

[0136] The rebuild message includes data related to index rebuilding.

[0137] S1012 judge the type of the execution message;

[0138] For the update message, first access the Redis queue to obtain the rebuild flag of the index corresponding to the update message, if the index is not being updated, then directly update the data, the update includes: insertion of data, replacement, And, delete.

[0139] If the index is not being updated, the update message is directly sent to the Redis queue, and the Redis queue caches the update message.

...

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 invention discloses an information synchronization method, device and system, and the method comprises the steps: receiving an execution message, and determining a reconstructionidentification bit of an index corresponding to the execution message; if the reconstruction identification bit is being reconstructed, continuing to create an index, and caching the update message in a Redis queue; and completing the index creation, traversing the Redis queue, and calling the update message to realize the synchronization of the data in the Elasticsearch search engine and the data in the query database. According to the method disclosed by the embodiment of the invention, the update message is cached in the Redis queue, and after the index is reconstructed, the update messageis taken out from the cache and then consumed into the new index, so that the final consistency of the data in the Elasticsearch search search engine and the data in the query database is ensured.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to an information synchronization method, device and system. Background technique [0002] Nowadays, automobiles have entered thousands of households, and the industries related to automobiles have also developed vigorously. For some automotive industries, large and complex vehicle information needs to be managed and processed. For example, the vehicle information management platform displays the latest vehicle data to users in real time to ensure that users can obtain accurate vehicle information. For the use of vehicles, the maintenance records are updated in real time, which makes the vehicle information management platform update the data in real time to ensure that the data shown on the platform is accurate. [0003] Such as figure 1 The vehicle information management platform shown in the prior art generally includes: a query database, a Go terminal, and a Java te...

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
IPC IPC(8): G06F16/27G06F16/23G06F16/22G06F16/2457
Inventor 李军浩赵帅王亮巩仔明邱慧
Owner YOUXINPAI BEIJING INFORMATION TECH 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