Data synchronization and exchange method, system, device and medium based on cross-platform
By obtaining and verifying the data to be exchanged, and importing data into the target platform according to data specifications and constraints, the problem of cross-platform data synchronization and exchange between different systems is solved, and efficient data sharing and real-time synchronization exchange is achieved.
Patent Information
- Application Number
- CN202210057212.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-18
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2042-01-18
AI Technical Summary
It is difficult for the prior art to realize cross-platform data synchronization and exchange between different program systems without developing docking interfaces.
By obtaining the data to be exchanged, marking and verifying, data is imported into the target platform according to data specifications and constraints, and cross-platform data synchronization and exchange are achieved.
Without developing docking interfaces, the problem of independence between different systems is solved, cross-platform data synchronization and exchange is realized, and the efficiency of data sharing and real-time synchronous exchange is improved.
Smart Images

Figure CN114443765B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data synchronization and exchange, and in particular relates to a cross-platform based data synchronization and exchange method, system, device and medium. Background Art
[0002] In the information age, almost all operating systems are controlled by computers, and the most popular PC operating system in the information age is Windows. Nowadays, many Internet software integrators will encounter such a problem: how to read the data of the application (software) on the PC, send it to different terminals or servers, and perform automatic operations on the PC according to the return of the terminal or server without changing the existing PC software and spending energy on developing docking interfaces. Summary of the invention
[0003] In order to overcome the above technical defects, the first aspect of the present invention provides a cross-platform data synchronization and exchange method to achieve cross-platform data synchronization and exchange without developing a docking interface or without a docking interface.
[0004] In order to solve the above problems, the present invention is implemented according to the following technical solutions:
[0005] A cross-platform data synchronization and exchange method, the method comprising the following steps:
[0006] Get the data to be exchanged;
[0007] Mark the data to be exchanged;
[0008] Verify the data to be exchanged according to data specifications and data constraints;
[0009] Confirm the parameters of the data to be exchanged;
[0010] Label the data to be exchanged and the target platform;
[0011] Import the data to be exchanged into the target platform according to the label.
[0012] Furthermore, before the step of obtaining the data to be exchanged, the following steps are also included:
[0013] Develop data specifications and data constraints.
[0014] Furthermore, before the step of formulating data specification description and data constraints, the following steps are also included:
[0015] Perform identity authentication and control access rights.
[0016] Furthermore, the step of formulating data specification description and data constraints includes the following steps:
[0017] Formulate data specifications for the scope of data exchange, data format, exchange framework, exchange management requirements, etc.;
[0018] Develop data security standards;
[0019] Develop data constraints based on the target platform.
[0020] Furthermore, the step of formulating data security standards includes the following steps:
[0021] Define resource directories and levels based on data source content, divide security levels based on data importance, and implement different levels of data protection;
[0022] Review the release of the resource catalog, and check the standardization and accuracy of the resource catalog and content in combination with the data constraints and the data specification description;
[0023] Formulate corresponding security management strategies, data backup strategies and data recovery strategies.
[0024] Furthermore, the steps of authenticating the visitor and controlling access rights include the following steps:
[0025] Authentication of administrators accessing data processing systems, server operating systems, database systems, and backup systems;
[0026] Set up user access control policies for important systems;
[0027] Securely manage access authorizations.
[0028] Furthermore, before the step of formulating data specification descriptions and data constraints, the following step is also included: creating an exchange task.
[0029] Compared with the prior art, the present invention has the following beneficial effects:
[0030] The cross-platform data synchronization and exchange method disclosed in the present invention can solve the problem of mutual independence between different program systems without developing a docking interface, and realize cross-platform data synchronization and exchange.
[0031] A second aspect of the present invention provides a cross-platform data synchronization and exchange system, comprising:
[0032] User verification module, which authenticates visitors and controls access rights;
[0033] Task creation module, used to create exchange tasks;
[0034] Data specification specification module, used to formulate data specification descriptions and data constraints;
[0035] A data acquisition module is used to acquire the data to be exchanged from the corresponding platform;
[0036] A data validation module is used to validate the data to be exchanged according to data specification descriptions and data constraints;
[0037] A parameter confirmation module, used to confirm the parameters of the data to be exchanged;
[0038] The label module is used to label the data to be exchanged and the target platform;
[0039] The data synchronization exchange module is used to import the data to be exchanged into the target platform according to the label.
[0040] A third aspect of the present invention provides a computer device, comprising:
[0041] processor;
[0042] a memory for storing instructions executable by the processor;
[0043] The processor is configured to execute the instructions to implement the above-mentioned data synchronization and exchange method.
[0044] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, which is a computer-readable storage medium having a computer program stored thereon, and the computer program implements the above-mentioned data synchronization and exchange method when executed. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The specific embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings, wherein:
[0046] Figure 1 This is a flow diagram of the cross-platform data synchronization and exchange method described in Example 1;
[0047] Figure 2 Schematic diagram of the cross-platform data synchronization and exchange system described in Example 2 Figure 1 ;
[0048] Figure 3 Schematic diagram of the cross-platform data synchronization and exchange system described in Example 2 Figure 2 ;
[0049] Figure 4 This is a schematic diagram of the structure of the computer device described in Example 3. DETAILED DESCRIPTION
[0050] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0051] Example 1
[0052] like Figure 1 This embodiment discloses a cross-platform data synchronization and exchange method, which includes the following steps:
[0053] S1. Authentication of visitors and control of access rights;
[0054] S2, create an exchange task;
[0055] S3. Develop data specifications and data constraints;
[0056] S4, obtaining the data to be exchanged;
[0057] S5. Verify the data to be exchanged according to the data specification and data constraints;
[0058] S6. Confirm the parameters of the data to be exchanged;
[0059] S7, label the data to be exchanged and the target platform;
[0060] S8. Import the data to be exchanged into the target platform according to the label.
[0061] Specifically, step S1 includes the following steps:
[0062] S110, authenticating the administrators who access the data processing system, server operating system, database system, and backup system;
[0063] S120. Set up user access control policies for important systems such as server systems and database systems to block any unauthorized access to data, applications, systems, etc., issue warnings, and record audit logs;
[0064] S130. Clarify the purpose and scope of authorization, keep authorization records, execute according to authorization, use technical means to prevent unauthorized use of data, and the use of sensitive data must be authorized twice.
[0065] In the above embodiment, step S2 further includes:
[0066] S210, creating an exchange task;
[0067] S220: Manage the task process.
[0068] Manage the life cycle of tasks and control the progress status of tasks, such as execution, stop, resume, cancel, terminate, update, etc.; manage the continuity of tasks, restart unfinished tasks, and continue to complete tasks within the allowed time; manage task monitoring, record the progress of tasks when adding, deleting, and in progress, for secondary inspection; manage groups, manage data in groups, and implement multiple groups of processes running together.
[0069] Specifically, step S3 also includes the following steps:
[0070] S310. Develop standardized descriptions of the scope, data format, exchange framework, and exchange management requirements of data exchange;
[0071] S320. Develop data security standards;
[0072] S330: Formulate the data constraints according to the data requirements of the target platform.
[0073] In the above embodiment, step S310 is used to explain the source and destination of data, so that data can be added or updated to the target database according to actual needs. Before data exchange, standardized mapping instructions are made according to different platform requirements, so that data on different platforms can match in format and content and be successfully exchanged.
[0074] The scope of data exchange in step S310 refers to one data source to multiple target databases or multiple data sources to one target database; the data format means, for example, when the data is an ID card number, the 1st to 6th digits are specified as the local code, the 7th to 14th digits are the birthday, the 15th to 17th digits are the sequential codes for people born in the same address area and on the same day of the same month of the same year, the 18th digit is the check code, etc., so as to proofread and verify the data; the exchange framework refers to the data model, structure model and event model for data synchronization and exchange; the exchange management requirements refer to the management of specific data under the data model, structure model and event model, including task reading, asynchronous processing time management, time association management of business processing, etc.
[0075] In the above embodiment, step S320 also includes the following steps:
[0076] S3201, defining resource directories and levels according to data source content, for example, dividing images and text into two directories, and then dividing the next level of directories according to the source or category of the images; the user performs security classification according to the importance of the data and performs different levels of data protection, such as whether encryption is required;
[0077] S3202. Review the release of the resource directory. The review standard is data security, such as whether it contains viruses. If the review is passed, the resource directory is allowed to be released, otherwise it will not be allowed. Check the standardization and accuracy of the resource directory and content in combination with data constraints and data specification descriptions. The inspection standard is whether the resource directory and content comply with data constraints and data specification descriptions. If the inspection is passed, the data is allowed to be saved, otherwise it will not be allowed.
[0078] S3203. Develop corresponding security management strategies for sharable resources, such as deciding whether to encrypt data or whether to perform encrypted transmission based on needs, so as to ensure the confidentiality and integrity of data during the exchange process; develop data backup strategies, such as choosing simple deletion or complete deletion at the time of data deletion, and choosing whether to back up data before saving it; develop data recovery strategies, such as recovering data after data loss, so as to protect data. The above strategies are developed to ensure the secure exchange of data.
[0079] In the above embodiment, step S330 formulates different data constraints according to different data requirements of each platform, so that the data meets the data requirements of each platform after data constraint verification, and data exchange is performed safely.
[0080] Specifically, the parameters of step S6 include: the transmission target, time, and data volume of the data to be exchanged.
[0081] Specifically, the tags include exchange tags and conversion tags. Step S7 uses the exchange tags to mark the objects and data volumes to be exchanged, so that the data that needs to be shared or synchronized can be accurately identified during data exchange to ensure smooth data exchange. The conversion tags describe the correspondence between source data and target data, the source of source data, trigger conditions, triggered pages, etc.; data can be obtained from the data source in a loop according to the conversion tags, and then the corresponding data can be updated or added to the target database according to the conversion tags.
[0082] This embodiment discloses a cross-platform data synchronization and exchange method, which can solve the problem of mutual independence between different systems without developing a docking interface, and realize cross-platform data sharing and real-time synchronous data exchange.
[0083] Example 2
[0084] like Figure 2 This embodiment discloses a cross-platform data synchronization and exchange system, which can be used to execute the cross-platform data synchronization and exchange method described in Example 1. For details not disclosed in this system embodiment, please refer to Example 1.
[0085] The cross-platform data synchronization and exchange system includes:
[0086] User verification module 101, for authenticating visitors and controlling access rights;
[0087] A task creation module 102, used to create an exchange task;
[0088] A data specification formulation module 103 is used to formulate data specification descriptions and data constraints;
[0089] The data acquisition module 104 is used to acquire the data to be exchanged from the corresponding platform;
[0090] A data verification module 105, for verifying the data to be exchanged according to data specification descriptions and data constraints;
[0091] A parameter confirmation module 106, used to confirm the parameters of the data to be exchanged;
[0092] The label module 107 is used to label the data to be exchanged and the target platform;
[0093] The data synchronization exchange module 108 is used to import the data to be exchanged into the target platform according to the label.
[0094] The above modules can execute the cross-platform data synchronization and exchange method described in Example 1. For details not disclosed in this example, please refer to Example 1.
[0095] like Figure 3 When the corresponding platform to be exchanged is application 1 whose programming language is PHP, and the target platform is application 2 whose programming language is JAVA, the user verification module 101 authenticates the visitor who requires data synchronization exchange, the task creation module 102 creates a data synchronization exchange task between application 1 and application 2, and the data specification formulation module 103 formulates the corresponding data specification, data security standard and data constraint of JAVA language according to the content of the exchange task; the data acquisition module 104 obtains the data to be exchanged whose language is PHP from application 1; the data verification module 105 verifies the data to be exchanged whose language is PHP according to the pre-formulated corresponding data specification, data security standard and data constraint of JAVA language; the parameter confirmation module 106 is used to confirm the transmission target, time and data volume of the data to be exchanged whose language is PHP; the label module 107 marks the exchange label and conversion label of the data to be exchanged whose language is PHP; the data synchronization exchange module 108 adds the data to be exchanged to the database of application 2 whose language is JAVA according to the conversion label.
[0096] When the corresponding platform to be exchanged is application 1 whose programming language is PHP, and the target platform is application 2 whose programming language is JAVA and application 3 whose programming language is ASP, the user verification module 101 authenticates the visitor who requires data synchronization exchange, and the task creation module 102 creates data synchronization exchange tasks between application 1 and application 2 and between application 1 and application 3; the data specification formulation module 103 formulates data specifications, data security standards and data constraints corresponding to JAVA language according to the content of the exchange task, and formulates data specifications, data security standards and data constraints corresponding to ASP; the data acquisition module 104 obtains the data to be exchanged whose language is PHP from application 1; The verification module 105 verifies the data to be exchanged in PHP according to the pre-established data specifications, data security standards and data constraints corresponding to JAVA language, and the data specifications, data security standards and data constraints corresponding to ASP; the parameter confirmation module 106 is used to confirm the transmission target, time and data volume of the data to be exchanged in PHP; the label module 107 marks the exchange label 1 and conversion label 1, and marks the exchange label 2 and conversion label 2 for the data to be exchanged in PHP; the data synchronization exchange module 108 adds the data to be exchanged to the database of the application program 2 in JAVA language according to the conversion label 1, and adds the data to be exchanged to the database of the application program 3 in ASP according to the conversion label 2.
[0097] When the corresponding platform to be exchanged is application 1 whose programming language is PHP, and the target platform is application 2 whose programming language is JAVA, application 3 whose programming language is ASP, and application 4 whose programming language is Python, the user verification module 101 authenticates the visitor who requires data synchronization exchange, and the task creation module 102 creates data synchronization exchange tasks between application 1 and application 2, data synchronization exchange tasks between application 1 and application 3, and data synchronization exchange tasks between application 1 and application 4; the data specification formulation module 103 formulates data specifications, data security standards, and data constraints corresponding to JAVA language, formulates data specifications, data security standards, and data constraints corresponding to ASP, and formulates data specifications, data security standards, and data constraints corresponding to Python language according to the content of the exchange tasks; the data acquisition module 104 obtains the data to be exchanged whose language is PHP from application 1; the data verification module 101 05 The data to be exchanged in PHP are verified according to the pre-established data specifications, data security standards and data constraints corresponding to JAVA language, the data specifications, data security standards and data constraints corresponding to ASP, and the data specifications, data security standards and data constraints corresponding to Python language; the parameter confirmation module 106 is used to confirm the transmission target, time, data volume and other parameters of the data to be exchanged in PHP language; the label module 107 marks the exchange label 1 and conversion label 1, marks the exchange label 2 and conversion label 2, and marks the exchange label 3 and conversion label 3 for the data to be exchanged in PHP language; the data synchronization exchange module 108 adds the data to be exchanged to the database of application program 2 in JAVA language according to conversion label 1, adds the data to be exchanged to the database of application program 3 in ASP according to conversion label 2, and adds the data to be exchanged to the database of application program 4 in Python language according to conversion label 3.
[0098] This embodiment discloses a cross-platform data synchronization and exchange system, which can solve the problem of independence between different systems without developing a docking interface, realize cross-platform data sharing and real-time synchronous data exchange, and realize multiple clients to quickly receive messages and quickly synchronize data without the need for each client to read or update data from the data source.
[0099] Example 3
[0100] like Figure 4 This embodiment discloses a computer device, including:
[0101] processor;
[0102] a memory for storing processor-executable instructions;
[0103] The processor is configured to execute instructions to implement the cross-platform data synchronization and exchange method in Example 1.
[0104] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0105] Example 4
[0106] This embodiment discloses a computer-readable storage medium, which is a computer-readable storage medium and stores a computer program. When the computer program is executed, the cross-platform data synchronization and exchange method in Embodiment 1 is implemented.
[0107] Optionally, the computer readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a solid state drive (SSD) or an optical disk, etc. Among them, the random access memory may include a resistance random access memory (ReRAM) and a dynamic random access memory (DRAM).
[0108] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Therefore, any modification, equivalent change and modification made to the above embodiment based on the technical essence of the present invention without departing from the technical solution of the present invention shall still fall within the scope of the technical solution of the present invention.
Claims
1. A cross-platform data synchronization and exchange method, characterized in that: The method comprises the following steps: Get the data to be exchanged; Verify the data to be exchanged according to data specifications and data constraints; Confirm the parameters of the data to be exchanged; Label the data to be exchanged and the target platform. The labels include exchange labels and conversion labels. Through exchange labels, the objects and data volumes to be exchanged are marked so that the data to be shared or synchronized can be accurately identified during data exchange to ensure smooth data exchange. The conversion label description includes the corresponding relationship between source data and target data, the source of source data, trigger conditions, and triggered pages. It can obtain data from the data source according to the conversion label cycle, and then update or add the corresponding data to the target database according to the conversion label. Import the data to be exchanged into the target platform according to the label; Before the step of obtaining the data to be exchanged, the following steps are also included: Develop data specifications and data constraints; The steps of formulating data specification description and data constraints include the following steps: Formulate standardized descriptions of the scope, data format, exchange framework, and exchange management requirements of data exchange; Develop data security standards; The data constraints are formulated according to the data requirements of the target platform.
2. The cross-platform data synchronization and exchange method according to claim 1, characterized in that: Before the step of formulating data specification description and data constraints, the following steps are also included: Authenticate visitors and control access rights.
3. The cross-platform data synchronization and exchange method according to claim 1, characterized in that: The steps of formulating data security standards include the following steps: Define resource directories and levels based on data source content, divide security levels based on data importance, and implement different levels of data protection; Review the release of the resource catalog, and check the standardization and accuracy of the resource catalog and content in combination with the data constraints and the data specification description; Formulate corresponding security management strategies, data backup strategies and data recovery strategies.
4. The cross-platform data synchronization and exchange method according to claim 2, characterized in that: The steps of authenticating the visitor and controlling access rights include the following steps: Authentication of the administrator who accesses the site; Set up user access control policies for important systems; Securely manage access authorizations.
5. The cross-platform data synchronization and exchange method according to claim 1, characterized in that: Before the step of formulating data specification description and data constraints, the following steps are also included: Create an exchange task.
6. A cross-platform data synchronization and exchange system, used to implement the method described in any one of claims 1 to 5, characterized in that: include: User verification module, which authenticates visitors and controls access rights; Task creation module, used to create exchange tasks; Data specification specification module, used to formulate data specification descriptions and data constraints; A data acquisition module is used to acquire the data to be exchanged from the corresponding platform; A data validation module is used to validate the data to be exchanged according to data specification descriptions and data constraints; A parameter confirmation module, used to confirm the parameters of the data to be exchanged; The label module is used to label the data to be exchanged and the target platform; The data synchronization exchange module is used to import the data to be exchanged into the target platform according to the label.
7. A computer device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the cross-platform data synchronization and exchange method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: It is a computer-readable storage medium on which a computer program is stored. When the computer program is executed, the cross-platform data synchronization and exchange method as described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Enterprise heterogeneous data exchange platform
CN105447176A
Novel cross-network data exchange method
CN110519185A