A truly unattended data timing synchronization method
By combining single clock mode and timing clock triggering in large batch data synchronization, the problem of manual intervention dependence in the existing technology is solved, efficient and flexible unattended data synchronization is achieved, and data users are ensured to obtain data. timeliness and stability of the synchronization process.
Patent Information
- Application Number
- CN202110419122.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-19
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-04-19
AI Technical Summary
The existing technology relies on manual intervention in the process of synchronizing large batches of data, resulting in high communication costs, low execution efficiency, and poor continuity, making it impossible to achieve unattended data synchronization.
Using a combination of single clock mode and timing clock triggering, the data reception process is triggered in time through communication command feedback, ensuring that data users obtain data, reducing manual intervention, and allowing identity switching between data providers and users to achieve flexible data synchronization.
It improves the execution efficiency of data synchronization, reduces problems caused by manual operation errors, realizes unattended data synchronization, and the data synchronization process is flexible and easy to expand.
Smart Images

Figure CN113176806B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a truly unattended data timing synchronization method. Background Art
[0002] In the process of actual project implementation, data sharing and synchronization between different systems are often involved. There are two common scenarios: one is the transaction-oriented data synchronization scenario with high real-time requirements for small amounts of data; the other is the application scenario with relatively low real-time requirements for large amounts of data.
[0003] For the latter, the main implementation method is through offline text agreement, and then both parties set a fixed clock. The provider is only responsible for providing uploaded data; the receiver is only responsible for obtaining, parsing, and loading data.
[0004] This approach requires that the data provider must complete data preparation and upload on time, otherwise the synchronization work will be terminated and manual intervention must be required; and the two parties' programs cannot communicate directly. Once a problem occurs, repeated offline communication and confirmation are required, and then the online program must be adjusted. The communication cost is high, the execution efficiency is low, and the continuity is poor. Summary of the invention
[0005] In view of the above problems, the present invention provides a truly unattended data timing synchronization method, which changes the dual clock mode of the prior art into a single clock by combining the timing clock trigger with the timely synchronization mode, and timely triggers the data receiving process by means of communication instruction feedback, thereby ensuring that the data user can obtain the data, reducing manual intervention, facilitating control, and having high execution efficiency, and can avoid other problems caused by manual operation errors. In addition, the services of the data provider and the data user can switch identities as needed, and data synchronization is flexible and easy to expand.
[0006] To achieve the above-mentioned purpose, the present invention provides a truly unattended data timing synchronization method, comprising: starting a clock preset at a data user; the data user sends a data synchronization request to the data provider; when the data provider receives the data synchronization request, it feeds back a data receiving instruction to the data user and starts to prepare data corresponding to the data synchronization request; after the data provider completes the data preparation, it sends a data extraction request to the data user; when the data user receives the data extraction request, it feeds back a data receiving instruction to the data provider and starts to download the data; the data user performs subsequent processing on the downloaded data.
[0007] In the above technical solution, preferably, the data user and the data provider exchange identities according to the preparation status of the data.
[0008] In the above technical solution, preferably, both the data user and the data provider are preset with clocks, and the party identifying as the data user starts the clock of the current party before sending a data synchronization request.
[0009] In the above technical solution, preferably, after the data user completes downloading the data, the data file is parsed, verified and loaded for use to complete data synchronization.
[0010] In the above technical solution, preferably, the truly unattended data timing synchronization method also includes: when the data provider prepares data according to the data synchronization request sent by the data user, it sends a new data synchronization request to the other party as a new data user as needed; the data provider and the data user use different processes to handle existing data synchronization requests and new data synchronization requests, and the data provider and the data user can have different identities under the existing data synchronization requests and the new data synchronization requests.
[0011] Compared with the prior art, the beneficial effects of the present invention are as follows: by combining the timing clock trigger with the timely synchronization mode, the dual clock mode of the prior art is changed to a single clock, and the data receiving process is triggered in time by the communication instruction feedback, which can ensure that the data user can obtain the data, reduce human intervention, facilitate control, and have high execution efficiency, and avoid other problems caused by human operation errors. The services of the data provider and the data user can switch identities as needed, and data synchronization is flexible and easy to expand. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 The present invention is a schematic diagram of the execution flow of a truly unattended data timing synchronization method disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0013] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0014] The present invention is further described in detail below in conjunction with the accompanying drawings:
[0015] like Figure 1As shown, a truly unattended data timing synchronization method provided by the present invention includes: starting a clock preset in a data user; the data user sends a data synchronization request to a data provider; when the data provider receives the data synchronization request, it feeds back a data receiving instruction to the data user and starts to prepare data corresponding to the data synchronization request; after the data provider completes the data preparation, it sends a data extraction request to the data user; when the data user receives the data extraction request, it feeds back a data receiving instruction to the data provider and starts to download data; the data user performs subsequent processing on the downloaded data.
[0016] In this embodiment, the dual clock mode of the prior art is changed to a single clock by combining the timing clock trigger with the timely synchronization mode, and the data receiving process is triggered in time by means of communication instruction feedback, which can ensure that the data user can obtain the data, reduce human intervention, facilitate control, have high execution efficiency, and avoid other problems caused by human operational errors.
[0017] Among them, the clock only needs to be set on one of the parties, generally on the data user. After the data provider receives the data synchronization request, it starts to prepare the data, extract the data and generate files, and upload the data files. Once the data is prepared, it sends a data extraction request to the data user to trigger the data user to extract data from the data provider. The data user feeds back a data receiving instruction to the data provider to inform the data provider that it has started downloading the data, thereby realizing the download and use of the data. During the entire process, the data user and the data provider realize the real-time processing of data and timely connection through the feedback of communication instructions, which greatly improves the execution efficiency of the data synchronization process.
[0018] During the specific implementation process, the implementation steps are as follows:
[0019] (1) Clock start: you only need to set the clock on one of the two parties, usually the party using the data;
[0020] (2) The data user sends a data synchronization request to the data provider;
[0021] (3) The data provider receives the request and responds with a "received" data receiving instruction, and then begins to prepare the data;
[0022] (4) After the data provider prepares the data, it sends a data extraction request to the data user;
[0023] (5) The data user receives the request and responds with a data receiving instruction of “received” to start downloading the data file;
[0024] (6) The data user will perform subsequent processing such as parsing, verification, and loading of the acquired data files.
[0025] In the above embodiment, preferably, the data user and the data provider exchange identities according to the data preparation status, that is, the original data provider serves as the data user, and the original data user serves as the data provider.
[0026] In the above embodiment, preferably, both the data user and the data provider are preset with clocks, so that the party with the identity of the data user starts the clock of the current party to start the current data synchronization process before sending a data synchronization request.
[0027] In the above embodiment, preferably, after the data user completes downloading the data, the data file is parsed, verified and loaded for use to complete data synchronization.
[0028] In the above embodiment, preferably, when the data provider prepares data according to the data synchronization request sent by the data user, the data provider can also send a new data synchronization request to the other party as a new data user as needed;
[0029] For existing data synchronization requests and new data synchronization requests, the data provider and the data user use different processes to handle them, that is, the new data synchronization process and the existing data synchronization process do not interfere with or affect each other.
[0030] In existing data synchronization requests and new data synchronization requests, the data provider and the data user may have different identities.
[0031] In addition, during the process of the data user sending a data synchronization request to the data provider for data preparation or data download, the data user may also send a new data synchronization request to the data provider as needed. The new data synchronization request and the existing data synchronization request are processed by different processes, that is, the new data synchronization process and the existing data synchronization process do not interfere with or affect each other.
[0032] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A truly unattended data timing synchronization method, characterized in that: include: Starting a clock preset at the data user, wherein the clock only needs to be set at the data user; The data user sends a data synchronization request to the data provider by combining a timing clock trigger with a timely synchronization mode; When receiving the data synchronization request, the data provider feeds back a data receiving instruction to the data user and starts preparing data corresponding to the data synchronization request; After the data provider has completed the data preparation, it sends a data extraction request to the data user; When receiving the data extraction request, the data user feeds back a data receiving instruction to the data provider and starts downloading the data; The data user performs subsequent processing on the downloaded data; When the data provider prepares data according to the data synchronization request sent by the data user, the data provider also sends a new data synchronization request to the other party as a new data user as needed; The data provider and the data user use different processes to handle existing data synchronization requests and new data synchronization requests. The new data synchronization process and the existing data synchronization process do not interfere with or affect each other. The data provider and the data user can have different identities under the existing data synchronization request and the new data synchronization request.
2. The truly unattended data timing synchronization method according to claim 1, characterized in that: The data user and the data provider exchange identities according to the preparation of the data.
3. The truly unattended data timing synchronization method according to claim 1 or 2, characterized in that: The data user and the data provider are both preset with clocks, and the party that is the data user starts the clock of the current party before sending a data synchronization request.
4. The truly unattended data timing synchronization method according to claim 1, characterized in that: After the data user finishes downloading the data, the data file is parsed, verified and loaded for use to complete data synchronization.
