Data transmission method, device, computer equipment and computer readable storage medium
By managing data synchronization through the cloud platform, the source system parses and sends data packets, solving the security risks and low efficiency problems of existing data transmission methods and achieving safe and efficient data transmission.
Patent Information
- Application Number
- CN202211553662.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-06
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2042-12-06
AI Technical Summary
Existing data transmission methods have security risks and low efficiency, especially when the target system directly accesses the source system database or forwards data through the cloud platform.
Data synchronization is managed through the cloud platform, and the synchronization data and target system are determined. The source system parses the data synchronization instructions to generate data packets and sends them to achieve secure and efficient data transmission.
It improves the security and efficiency of data transmission and enables timely understanding of data synchronization progress.
Smart Images

Figure CN116248692B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data transmission, and in particular to a data transmission method, apparatus, computer device, and computer-readable storage medium. Background Art
[0002] During data transmission, the target system can directly access the source system to obtain the data shared by the source system, and the source system can also transmit the shared data to the target system through the cloud platform.
[0003] The former data transmission method, in which the target system directly connects to the source system's database to obtain shared data, presents significant security risks and is inefficient when operating the database directly. The latter data transmission method, in which shared data is forwarded to the target system via the cloud platform, presents the security risk of data leakage. Summary of the Invention
[0004] Based on this, it is necessary to provide a data transmission method, apparatus, computer equipment and computer-readable storage medium that can safely and efficiently transmit data in response to the above technical problems.
[0005] In a first aspect, the present application provides a data transmission method, applied to a source system, the method comprising:
[0006] Get the data synchronization instructions sent by the cloud platform;
[0007] Parsing the data synchronization instruction to determine the first data and the target system; the first data is the data that the cloud platform determines needs to be synchronized to the target system from the data that can be synchronized with the source system;
[0008] generating a first data packet including the first data;
[0009] The first data packet is sent to the target system.
[0010] In one embodiment, a first message sent by the target system is obtained, where the first message includes execution status information of data synchronization performed by the target system after obtaining the first data packet.
[0011] In one embodiment, the method further comprises:
[0012] A second message is sent to the cloud platform, where the second message includes execution status information of the source system and the target system after the source system obtains the data synchronization instruction.
[0013] In one embodiment, before sending the second message to the cloud platform, the method further includes:
[0014] A third message sent by the cloud platform is obtained, where the third message is used to trigger the source system to send the second message to the cloud platform.
[0015] In a second aspect, the present application further provides a data transmission method, which is applied to a cloud platform, and the method comprises:
[0016] Generate a data synchronization instruction, wherein the data synchronization instruction instructs the source system to synchronize first data to the target system; the first data is data that needs to be synchronized to the target system determined from the data that can be synchronized by the source system;
[0017] Send the data synchronization instruction to the source system.
[0018] In one embodiment, a second message sent by the source system is obtained, where the second message includes execution status information of the source system and the target system after the source system obtains the data synchronization instruction.
[0019] In one embodiment, before obtaining the second message sent by the source system, the method further includes:
[0020] A third message is sent to the source system, where the third message is used to trigger the source system to send the second message to the cloud platform.
[0021] In a third aspect, the present application further provides a data transmission device, which is applied to a source system. The device includes: an acquisition module, a parsing module, a processing module, and a sending module, wherein:
[0022] The acquisition module is configured to acquire a data synchronization instruction sent by the cloud platform; the parsing module is configured to parse the data synchronization instruction to determine the first data and the target system; the first data is the data that the cloud platform determines needs to be synchronized to the target system from the data that can be synchronized with the source system;
[0023] The processing module is configured to generate a first data packet including the first data;
[0024] The sending module is configured to send the first data packet to the target system.
[0025] In one embodiment, the acquisition module is further configured to acquire a first message sent by the target system, where the first message includes execution status information of data synchronization performed by the target system after acquiring the first data packet.
[0026] In one embodiment, the sending module is further configured to send a second message to the cloud platform, where the second message includes execution status information of the source system and the target system after the source system obtains the data synchronization instruction.
[0027] In one embodiment, the acquisition module is further used to acquire a third message sent by the cloud platform before the sending module sends the second message to the cloud platform, and the third message is used to trigger the source system to send the second message to the cloud platform.
[0028] In a fourth aspect, the present application further provides a data transmission device, which is applied to a cloud platform. The device includes: a processing module and a sending module, wherein:
[0029] The processing module is configured to generate a data synchronization instruction, wherein the data synchronization instruction instructs the source system to synchronize first data to the target system; the first data is data that needs to be synchronized to the target system determined from the data that can be synchronized by the source system;
[0030] The sending module is used to send the data synchronization instruction to the source system.
[0031] In one embodiment, the method further includes: an acquisition module configured to acquire a second message sent by the source system, wherein the second message includes execution status information of the source system and the target system after the source system acquires the data synchronization instruction.
[0032] In one embodiment, the sending module is further used to send a third message to the source system before the obtaining module obtains the second message sent by the source system, and the third message is used to trigger the source system to send the second message to the cloud platform.
[0033] In a fifth aspect, the present application further provides a computer device, as a source system, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0034] Obtaining a data synchronization instruction sent by the cloud platform; parsing the data synchronization instruction to determine the first data and the target system; the first data is the data that the cloud platform determines needs to be synchronized to the target system from the data that can be synchronized in the source system;
[0035] generating a first data packet including the first data;
[0036] The first data packet is sent to the target system.
[0037] In a sixth aspect, the present application further provides a computer device, serving as a cloud platform, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0038] Generate a data synchronization instruction, wherein the data synchronization instruction instructs the source system to synchronize first data to the target system; the first data is data that needs to be synchronized to the target system determined from the data that can be synchronized by the source system;
[0039] Send the data synchronization instruction to the source system.
[0040] In a seventh aspect, the present application further provides a computer-readable storage medium, applied to a source system, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0041] Obtaining a data synchronization instruction sent by the cloud platform; parsing the data synchronization instruction to determine the first data and the target system; the first data is the data that the cloud platform determines needs to be synchronized to the target system from the data that can be synchronized in the source system;
[0042] generating a first data packet including the first data;
[0043] The first data packet is sent to the target system.
[0044] In an eighth aspect, the present application further provides a computer-readable storage medium, applied to a cloud platform, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0045] Generate a data synchronization instruction, wherein the data synchronization instruction instructs the source system to synchronize first data to the target system; the first data is data that needs to be synchronized to the target system determined from the data that can be synchronized by the source system;
[0046] Send the data synchronization instruction to the source system.
[0047] In a ninth aspect, the present application further provides a computer program product, applied to a source system. The computer program product includes a computer program, which, when executed by a processor, implements the following steps:
[0048] Obtaining a data synchronization instruction sent by the cloud platform; parsing the data synchronization instruction to determine the first data and the target system; the first data is the data that the cloud platform determines needs to be synchronized to the target system from the data that can be synchronized in the source system;
[0049] generating a first data packet including the first data;
[0050] The first data packet is sent to the target system.
[0051] In a tenth aspect, the present application further provides a computer program product for use on a cloud platform. The computer program product includes a computer program that, when executed by a processor, implements the following steps:
[0052] Generate a data synchronization instruction, wherein the data synchronization instruction instructs the source system to synchronize first data to the target system; the first data is data that needs to be synchronized to the target system determined from the data that can be synchronized by the source system;
[0053] Send the data synchronization instruction to the source system.
[0054] In the aforementioned data transmission method, apparatus, computer device, and computer-readable storage medium, during data transmission, the cloud platform determines synchronization data from the syncable data in the source system and also determines a target system to receive the synchronization data. The source system parses the data synchronization instruction to determine the first data and the target system, generates a first data packet including the first data, and sends the first data packet to the target system. In this technical solution, the cloud platform manages data synchronization, determines the synchronization data and the target system to receive the synchronization data. The synchronization data is sent from the source system to the target system, resulting in secure and efficient data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 A diagram showing an application environment of a data transmission method in one embodiment;
[0056] Figure 2A 1 is a flow chart of a data transmission method according to an embodiment;
[0057] Figure 2B A schematic flow chart of a data transmission method in another embodiment;
[0058] Figure 2C A schematic flow chart of a data transmission method in another embodiment;
[0059] Figure 3 A schematic flow chart of a data transmission method in another embodiment;
[0060] Figure 4A 1 is a flow chart of a data transmission method according to an embodiment;
[0061] Figure 4B A schematic flow chart of a data transmission method in another embodiment;
[0062] Figure 5 A schematic flow chart of a data transmission method in another embodiment;
[0063] Figure 6 Schematic diagram of an interactive process of a data transmission method in one embodiment;
[0064] Figure 7 is a schematic structural diagram of a data transmission device in one embodiment;
[0065] Figure 8A is a schematic structural diagram of a data transmission device in one embodiment;
[0066] Figure 8B is a structural diagram of a data transmission device in another embodiment;
[0067] Figure 9 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0068] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0069] The data transmission method provided in the embodiment of the present application can be applied to Figure 1The illustrated application environment includes: a source system 101, a cloud platform 102, and a target system 103. Source system 101 communicates with cloud platform 102 and target system 103 via a network. During data transmission, source system 101 receives a data synchronization instruction sent by cloud platform 102; the data synchronization instruction instructs source system 101 to synchronize first data to the target system; the first data is data that cloud platform 102 determines from the syncable data of the source system to be synchronized to target system 103; source system 101 parses the data synchronization instruction to determine the first data and target system 103; source system 101 generates a first data packet including the first data; and source system 101 sends the first data packet to the target system. Source system 101, cloud platform 102, and target system 103 may be, but are not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices may include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, and the like. Portable wearable devices may include smart watches, smart bracelets, head-mounted devices, and the like. For example, source system 101 corresponds to a test environment, and target system 103 corresponds to a production environment. When developing an application system, some functions or data need to be tested in the test environment first. After passing the test, the relevant data is synchronized to the production environment. Cloud platform 102 can manage data synchronization, determine data synchronization strategies, and generate data synchronization instructions. Specifically, the data types that can be synchronized by source system 101 can be displayed on cloud platform 102. The data types that can be synchronized can include, for example, programs, data, or table structures. Cloud platform 102 determines the data types that need to be synchronized from the data types that can be synchronized by source system 101. Cloud platform 102 also determines the source system 101 that sends the synchronized data and the target system 103 that receives the synchronized data. Then, it generates a data synchronization instruction. The data synchronization instruction can include the address information of target system 103. Cloud platform 102 sends the data synchronization instruction to source system 101. After receiving the data synchronization instruction, source system 101 parses the data synchronization instruction and packages the data of the synchronization data type determined by cloud platform 102. For security reasons, the data can be encrypted before packaging or during packaging. The source system 101 then sends the packaged synchronization data to the target system 103 based on the address information of the target system 103 carried in the data synchronization instruction. The target system 103 parses the received synchronization data and imports the parsed synchronization data to obtain the synchronization data. The target system 103 can further feedback the execution status of the data synchronization to the source system 101, and the source system 101 can further feedback the execution status of the data synchronization between the source system 101 and the target system 103 to the cloud platform. It should be noted that the synchronization data can be determined not only by data type, but also by time interval, and can also be determined in other possible ways, which are not limited here.The source system 101 may also provide an execution status reading interface. When the cloud platform 102 calls the execution status reading interface, the cloud platform 102 obtains the execution status of the source system 101 and the execution status of the target system 103 obtained by the source system 101. The cloud platform 102 may then display the obtained execution status. It should be noted that the cloud platform 102, as a cloud platform, can set up and manage data synchronization from multiple source terminals to target terminals. In the embodiment of this application, the source system 101 is the source terminal and the target system 103 is the target terminal. It should be noted that one source terminal can correspond to one or more target terminals. For simplicity, the embodiment of this application is described with one source terminal and one target terminal. This application does not limit the number and data of source terminals and target terminals. It is understood that in some embodiments, the source system 101 is the source terminal and the target system 103 is the target terminal. In other possible embodiments, the source system 101 can be the target terminal and the target system 103 can be the source terminal. This application does not limit this.
[0070] In one embodiment, Figure 2A As shown, a data transmission method is provided, which is applied to Figure 1 The source system 101 in the example is used for illustration, and the following steps are included: Steps 201 to 204.
[0071] 201. Get the data synchronization instructions sent by the cloud platform
[0072] 202 parses the data synchronization instruction to determine the first data and the target system. The first data is the data that the cloud platform determines needs to be synchronized to the target system from the data that can be synchronized in the source system.
[0073] For example, the first data could be a user list input from a source system to a target system. This user list is synchronized with the target system to reduce input operations on the target system. The cloud platform can specify the source and target terminals for data synchronization. The source system can be the source terminal, and the target system can be the target terminal. The data synchronization instructions can include the target system's address information.
[0074] 203. Generate a first data packet including first data;
[0075] For example, the user list may be packaged into a first data packet. It is understandable that, in order to improve security, the data may be packaged after decryption or encrypted during packaging. Both are feasible and are not limited here.
[0076] 204. Send a first data packet to the target system.
[0077] A first data packet is sent to the target system according to the address information of the target system carried in the data synchronization instruction.
[0078] In this embodiment, during data transmission, the cloud platform determines synchronization data from the syncable data in the source system and also determines the target system to receive the synchronization data. The source system parses the data synchronization instruction to determine the first data and the target system, generates a first data packet containing the first data, and sends the first data packet to the target system. In this technical solution, the cloud platform manages data synchronization, determines the synchronization data and the target system to receive the synchronization data. The synchronization data is sent from the source system to the target system, making this data transmission method secure and efficient.
[0079] See Figure 2B , Figure 2B 201 to 205. Figure 2A Steps 201 to 204 in the corresponding embodiment are the same and will not be described here for simplicity. Detailed descriptions are provided above. Step 205: Obtain a first message sent by the target system. The first message includes execution status information of data synchronization after the target system obtains the first data packet.
[0080] By adopting this embodiment, the source system can obtain the execution status of the target system after obtaining the synchronization data.
[0081] Furthermore, the source system can feed back the execution status of data synchronization to the cloud platform. Figure 2C , Figure 2C 201 to 206. Figure 2B Steps 201 to 205 in the corresponding embodiment are the same and will not be described here for simplicity. For details, please refer to the previous description. Step 206: Send a second message to the cloud platform. The second message includes the execution status information of the source system and the target system after the source system obtains the data synchronization instruction.
[0082] In one embodiment, Figure 3 As shown, a data transmission method is provided, which is applied to Figure 1 The source system 101 in the example is used as an example to illustrate the method, which includes the following steps: Steps 301 to 307.
[0083] 301. Obtain a data synchronization instruction sent by the cloud platform; the data synchronization instruction is used to instruct the source system to synchronize first data to the target system; the first data is data that the cloud platform determines needs to be synchronized to the target system from the data that can be synchronized by the source system.
[0084] For example, the first data could be a user list input from a source system to a target system. This user list is synchronized with the target system to reduce input operations on the target system. The cloud platform can specify the source and target terminals for data synchronization. The source system can be the source terminal, and the target system can be the target terminal. The data synchronization instructions can include the target system's address information.
[0085] 302 parses the data synchronization instruction to determine the first data and the target system.
[0086] 303. Generate a first data packet including first data;
[0087] For example, the user list may be packaged into a first data packet. It is understandable that, in order to improve security, the data may be packaged after decryption or encrypted during packaging. Both are feasible and are not limited here.
[0088] 304. Send a first data packet to the target system.
[0089] A first data packet is sent to the target system according to the address information of the target system carried in the data synchronization instruction.
[0090] 305. Obtain a first message sent by the target system, where the first message includes execution status information of data synchronization performed after the target system obtains the first data packet.
[0091] 306. Obtain a third message sent by the cloud platform. The third message is used to trigger the source system to send a second message to the cloud platform. The second message includes execution status information of the source system and the target system after the source system obtains the data synchronization instruction.
[0092] 307. Send a second message to the cloud platform.
[0093] In this embodiment, during data transmission, the cloud platform determines the synchronization data from the syncable data in the source system and also determines the target system to which the synchronization data will be sent. The source system parses the data synchronization instruction to determine the first data and the target system, generates a first data packet containing the first data, and sends the first data packet to the target system. The cloud platform then triggers the source system to send the execution status information of the source system and the cloud platform to the cloud platform by sending a third message to the source system. This data transmission method is secure and efficient, and provides timely information on the progress of data synchronization.
[0094] In one embodiment, Figure 4A As shown, a data transmission method is provided, which is applied to Figure 1 Taking the cloud platform 102 in the example as an example, the following steps are included: Steps 401 to 402.
[0095] 401. Generate a data synchronization instruction, where the data synchronization instruction instructs a source system to synchronize first data to a target system; the first data is data that needs to be synchronized to the target system, determined from data that can be synchronized by the source system.
[0096] 402. Send a data synchronization instruction to the source system.
[0097] In this embodiment, the cloud platform can manage data synchronization, determine data synchronization strategies, and generate data synchronization instructions. Specifically, the data types that can be synchronized by the source system can be displayed on the cloud platform. The data types that can be synchronized may include, for example, programs, data, or table structures, etc. The cloud platform determines the data types that need to be synchronized from the data types that can be synchronized by the source system, and also determines the source system that sends the synchronized data and the target system that receives the synchronized data, and then generates a data synchronization instruction. The data synchronization instruction may include the address information of the target system. The cloud platform sends the data synchronization instruction to the source system so that the source system sends the synchronized data to the target system.
[0098] See Figure 4B , Figure 4B 401 to 403. Figure 4A Steps 401 to 402 in the corresponding embodiment are the same and will not be described here for simplicity. Detailed description is provided above. Step 403: Obtain a second message sent by the source system. The second message includes execution status information of the source system and the target system after the source system obtains the data synchronization instruction.
[0099] By adopting this embodiment, the cloud platform can obtain the execution status of data synchronization between the source system and the target system.
[0100] In one embodiment, Figure 5 As shown, a data transmission method is provided, which is applied to Figure 1 Taking the cloud platform 102 in the example as an example, the following steps are included: Steps 401 to 402.
[0101] 501. Generate a data synchronization instruction, where the data synchronization instruction instructs a source system to synchronize first data to a target system; the first data is data that needs to be synchronized to the target system and is determined from data that can be synchronized by the source system.
[0102] 502. Send a data synchronization instruction to the source system.
[0103] 503. A third message is sent to the source system. The third message is used to trigger the source system to send a second message to the cloud platform. The second message includes execution status information of the source system and the target system after the source system obtains the data synchronization instruction.
[0104] 504. Obtain a second message sent by the source system.
[0105] In this embodiment, the cloud platform sends a third message to the source system, triggering the source system to send execution status information of the source system and the target system to the cloud platform.
[0106] In one embodiment, Figure 6 As shown, a schematic diagram of an interactive process of a data transmission method is provided, and the data transmission method includes the following steps: Steps 601 to 610.
[0107] 601. The cloud platform generates a data synchronization instruction, which instructs the source system to synchronize first data to the target system; the first data is data that needs to be synchronized to the target system, determined from the data that can be synchronized by the source system.
[0108] 602. The cloud platform sends a data synchronization instruction to the source system.
[0109] 603. The source system obtains the data synchronization instruction sent by the cloud platform.
[0110] 604. The source system parses the data synchronization instruction to determine the first data and the target system.
[0111] 605. The source system generates a first data packet including first data.
[0112] 606. The source system sends a first data packet to the target system.
[0113] 6061. The target system parses the first data packet and imports the synchronization data.
[0114] 607. The cloud platform sends a third message to the source system. The third message is used to trigger the source system to send a second message to the cloud platform. The second message includes execution status information of the source system and the target system after the source system obtains the data synchronization instruction.
[0115] 608. The target system obtains execution status information of the first data packet.
[0116] 609. The source system sends a second message to the cloud platform, the second message including the source system obtaining data synchronization instructions and the execution status information of the source system and the target system.
[0117] 610. The cloud platform displays the execution status information of the source system and the target system.
[0118] In this embodiment, during data transmission, the cloud platform determines synchronization data from the syncable data in the source system and also determines the target system to receive the synchronization data. The source system parses the data synchronization instruction to determine the first data and the target system, generates a first data packet containing the first data, and sends the first data packet to the target system. In this technical solution, the cloud platform manages data synchronization, determines the synchronization data and the target system to receive the synchronization data. The synchronization data is sent from the source system to the target system, making this data transmission method secure and efficient.
[0119] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0120] Based on the same inventive concept, embodiments of the present application further provide a data transmission device for implementing the aforementioned data transmission method. The implementation solution provided by this device is similar to the implementation solution described in the aforementioned method. Therefore, the specific limitations of one or more data transmission device embodiments provided below can be found in the above-mentioned limitations of the data transmission method and will not be further elaborated here.
[0121] In one embodiment, Figure 7 As shown, a data transmission device 700 is provided, which is applied to a source system. The data transmission device 700 includes: an acquisition module 701, a parsing module 702, a processing module 703 and a sending module 704, wherein:
[0122] The acquisition module 701 is used to acquire the data synchronization instruction sent by the cloud platform.
[0123] The parsing module 702 is configured to parse the data synchronization instruction to determine first data and a target system. The first data is data that the cloud platform determines needs to be synchronized to the target system from the data that can be synchronized in the source system.
[0124] The processing module 703 is configured to generate a first data packet including first data;
[0125] The sending module 704 is configured to send a first data packet to a target system.
[0126] In one embodiment, the acquisition module is further configured to acquire a first message sent by the target system, where the first message includes execution status information of data synchronization performed by the target system after acquiring the first data packet.
[0127] In one embodiment, the sending module is further used to send a second message to the cloud platform, where the second message includes execution status information of the source system and the target system after the source system obtains the data synchronization instruction.
[0128] In one embodiment, the acquisition module is further used to acquire a third message sent by the cloud platform before the sending module sends the second message to the cloud platform, and the third information is used to trigger the source system to send the second message to the cloud platform.
[0129] In one embodiment, as shown in FIG8 , a data transmission device 800 is provided, characterized in that it is applied to a cloud platform, and the device includes: a processing module 801 and a sending module 802, wherein:
[0130] Processing module 801 is configured to generate a data synchronization instruction, wherein the data synchronization instruction instructs the source system to synchronize first data to the target system; the first data is data that needs to be synchronized to the target system determined from the data that can be synchronized by the source system;
[0131] The sending module 802 is configured to send a data synchronization instruction to the source system.
[0132] like Figure 8B As shown, in one embodiment, the data transmission device 800 further includes: an acquisition module 803, configured to acquire a second message sent by the source system, the second message including execution status information of the source system and the target system after the source system acquires the data synchronization instruction.
[0133] In one embodiment, the sending module is further used to send a third message to the source system before the obtaining module obtains the second message sent by the source system, and the third message is used to trigger the source system to send the second message to the cloud platform.
[0134] In one embodiment, a data transmission device is provided, which is applied to a cloud platform. The device includes: a processing module and a sending module, wherein the processing module is used to generate a data synchronization instruction, the data synchronization instruction instructs a source system to synchronize first data to a target system; the first data is data that needs to be synchronized to the target system determined from the data that can be synchronized by the source system; and the sending module is used to send the data synchronization instruction to the source system.
[0135] In one embodiment, the system further includes: an acquisition module configured to acquire a second message sent by the source system, wherein the second message includes execution status information of the source system and the target system after the source system acquires the data synchronization instruction.
[0136] In one embodiment, the sending module is further used to send a third message to the source system before the obtaining module obtains the second message sent by the source system, and the third message is used to trigger the source system to send the second message to the cloud platform.
[0137] Each module in the above-mentioned data transmission device can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0138] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 9 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a data transmission method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse.
[0139] Those skilled in the art will understand that Figure 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0140] In one embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the data transmission method described in any of the previous method embodiments is implemented. It will not be repeated here. For detailed steps, please refer to the previous description.
[0141] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the data transmission method described in any of the previous method embodiments are implemented. They are not repeated here. For detailed steps, please refer to the previous description.
[0142] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the steps of the data transmission method described in any of the previous method embodiments are implemented. They are not repeated here. For detailed steps, please refer to the previous description.
[0143] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions.
[0144] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, and the like.
[0145] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0146] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A data transmission method, characterized in that: Applied to the source system, the method includes: Obtaining a data synchronization instruction sent by a cloud platform; the cloud platform manages data synchronization, the data synchronization instruction including the data type to be synchronized and the target system determined by the cloud platform from the data type that can be synchronized by the source system; parsing the data synchronization instruction, determining data of a data type to be synchronized in the data synchronization instruction as first data, and acquiring a target system from the data synchronization instruction; generating a first data packet including the first data; The first data packet is sent to the target system; the target system is used to parse the first data packet and import synchronization data.
2. The method according to claim 1, characterized in that The method further comprises: A first message sent by the target system is obtained, where the first message includes execution status information of data synchronization performed by the target system after obtaining the first data packet.
3. The method according to claim 2, characterized in that The method further comprises: A second message is sent to the cloud platform, where the second message includes execution status information of the source system and the target system after the source system obtains the data synchronization instruction.
4. The method according to claim 3, characterized in that Before sending the second message to the cloud platform, the method further includes: A third message sent by the cloud platform is obtained, where the third message is used to trigger the source system to send the second message to the cloud platform.
5. A data transmission method, characterized in that: Applied to a cloud platform that manages data synchronization, the method includes: Determining a data type that needs to be synchronized from data types that can be synchronized by the source system, determining a target system to receive the synchronized data, and generating a data synchronization instruction, wherein the data synchronization instruction instructs the source system to synchronize first data of the data type that needs to be synchronized to the target system; Send the data synchronization instruction to the source system.
6. The method according to claim 5, characterized in that The method further comprises: A second message sent by the source system is obtained, where the second message includes execution status information of the source system and the target system after the source system obtains the data synchronization instruction.
7. The method according to claim 6, characterized in that Before obtaining the second message sent by the source system, the method further includes: A third message is sent to the source system, where the third message is used to trigger the source system to send the second message to the cloud platform.
8. A data transmission device, characterized in that: Applied to a source system, the device includes: an acquisition module, a parsing module, a processing module, and a sending module, wherein: The acquisition module is configured to acquire a data synchronization instruction sent by the cloud platform; the cloud platform manages data synchronization, and the data synchronization instruction includes the data type to be synchronized and the target system determined by the cloud platform from the data type that can be synchronized by the source system; The parsing module is configured to parse the data synchronization instruction, determine the data of the data type to be synchronized in the data synchronization instruction as the first data, and obtain the target system from the data synchronization instruction; The processing module is configured to generate a first data packet including the first data; The sending module is used to send the first data packet to the target system. The target system is used to parse the first data packet and import synchronization data.
9. A data transmission device, characterized in that: Applied to a cloud platform, the cloud platform manages data synchronization, the device includes: a processing module and a sending module, wherein, The processing module is configured to determine a data type that needs to be synchronized from data types that can be synchronized by the source system, determine a target system to receive the synchronized data, and generate a data synchronization instruction, wherein the data synchronization instruction instructs the source system to synchronize first data of the data type that needs to be synchronized to the target system; The sending module is used to send the data synchronization instruction to the source system.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Data synchronization method and device, electronic equipment and storage medium
CN114297306A