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

A data synchronization method and system based on socket communication

A data synchronization and data table technology, applied in the server field, can solve problems such as data synchronization, achieve the effect of easy maintenance and management, and solve information islands

Active Publication Date: 2020-12-29
武汉元鼎创天信息科技有限公司
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In view of this, the embodiment of the present invention provides a data synchronization method and system based on socket communication to solve the problem of data synchronization between different databases

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 system based on socket communication
  • A data synchronization method and system based on socket communication

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] In order to make the purpose, technical solution and advantages of the present invention clearer, the embodiments of the present invention will be further described below in conjunction with the accompanying drawings.

[0034] Please refer to figure 1 , the embodiment of the present invention provides a data synchronization system based on socket communication, which is used to keep data synchronization between different databases and overcome "information islands", including data synchronization system 3, slave database 2 and multiple master databases 1. Described from the IP of database 2 is fixed IP, and the IP of described main database 1 is non-fixed IP, opens described Socket network service end from database 2, utilizes described Socket network service end to monitor described IP from database 2 , opening the Socket client of the master database 1, so that the Socket client connects to the IP of the slave database through the data synchronization system 3. The ...

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 provides a data synchronization method and a data synchronization system based on socket communication. The method comprises the following steps: retrieving a slave database and a masterdatabase which need data synchronization, and respectively generating a slave database information set and a master database information set; Initializing the slave database information set and the master database information set respectively, and obtaining a data table which can synchronize data; Selecting data tables to be synchronized from the data tables that can be synchronized; Comparing data tables which require data synchronization from the slave database information set and the master database information set to generate an output data set, wherein the output data set comprises a plurality of data fields and flag bits corresponding to each data field in one-to-one manner, and the flag bits are used for indicating the operation of the data field corresponding to the output data set; inputting The output data set into the master database to replace the data table which needs data synchronization in the master database, and executing the operation instructions of flag bits to update the master database.

Description

technical field [0001] The invention relates to the technical field of servers, in particular to a data synchronization method and system based on socket communication. Background technique [0002] At present, many isolated information systems are deployed in some enterprises or units. Due to the lack of consideration of data sharing and information fusion in the early stage of implementation, these systems have become "information islands", which will bring great harm to future system maintenance, management and use. Come a lot of trouble. Contents of the invention [0003] In view of this, the embodiments of the present invention provide a data synchronization method and system based on socket communication to solve the problem of data synchronization between different databases. [0004] Embodiments of the present invention provide a data synchronization method based on socket communication, comprising the following steps, [0005] S1: Retrieve a slave database and a...

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): G06F16/27H04L29/06H04L29/08
CPCH04L67/1095H04L69/162
Inventor 张隆显
Owner 武汉元鼎创天信息科技有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More