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

Data synchronization method and device, electronic equipment and storage medium

A technology of data synchronization and database

Active Publication Date: 2019-05-28
BEIJING CHENGSHI WANGLIN INFORMATION TECH CO LTD
View PDF8 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] This application provides a data synchronization method, device, electronic equipment, and storage medium to solve the problem of non-idempotence that is prone to occur when a relational database and a blockchain perform data synchronization

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0094] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0095] Such as figure 1 The application scene diagram shown, the data synchronization method, device, electronic device and storage medium described in the embodiment of the present application, use the relational database 2 and the block chain 3 as the interactive objects of data synchronization. For some terminals 1, such as For smart phones, tablets, computers, etc., the business data generated by the application software / APP in them is first stored in the re...

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 discloses a data synchronization method and device, electronic equipment and a storage medium. The data synchronization method comprises the steps that a message record in a to-be-processed state is acquired from a message table; wherein the message table is used for storing message records associated with the service data; wherein the message record records contract calling information, a mark state and a primary key ID for identifying the message record; wherein the message record in the to-be-processed state is associated with the service data of the account book to be writteninto the block chain; determining a contract needing to be called according to contract calling information of the message record of the to-be-processed state; Sending synchronization information tothe block chain, wherein the synchronization information comprises a calling request of a contract and a primary key ID of a message record in a to-be-processed state; And if the synchronization success state information fed back by the block chain is received, changing the marking state of the message record of the to-be-processed state into a success state. The method can ensure that the data written into the block chain account book by the relational database has idempotency, and guarantees the consistency and accuracy of data synchronization.

Description

technical field [0001] The present application relates to the technical field of blockchain, and in particular to a data synchronization method, device, electronic equipment and storage medium. Background technique [0002] The blockchain can be regarded as a distributed ledger, which is used to record and store data. It has the advantages of decentralization, openness, security and non-tampering. The blockchain integrated with smart contracts can also automatically execute certain pre-defined rules and terms. Based on the advantages of blockchain technology, for some application software, such as shopping, social or service software, more and more users choose to upload the business data generated by the software to the blockchain. This process is called uploading. chain. The conventional on-chain process is: first store the business data in the relational database, and then the relational database will synchronize the business data to the ledger of the blockchain. [00...

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): G06F16/27G06F16/28G06Q40/04
Inventor 牛燕强
Owner BEIJING CHENGSHI WANGLIN INFORMATION TECH CO LTD