Data synchronization methods, apparatus, systems, readable storage media and electronic devices
By introducing an intermediate platform between platforms and using Kafka for data transmission, the problem of poor data synchronization stability between platforms is solved, and secure data synchronization and stable transmission are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-22
- Publication Date
- 2026-03-13
AI Technical Summary
In existing technologies, the stability of data synchronization between platforms is poor, which can easily lead to data loss.
An intermediary platform is introduced between platforms to synchronize business data and audit results, reducing the coupling between platforms. Kafka is used for data transmission to achieve multiple verification and feedback mechanisms for platform data and audit results.
It improves the stability and security of data synchronization, avoids data loss in the event of platform failure, and enhances the reliability of data synchronization.
Smart Images

Figure CN115511433B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of data processing, and more specifically to data synchronization methods, apparatus, systems, readable storage media, and electronic devices. Background Technology
[0002] With the rapid development of technologies such as the internet and cloud computing, platforms are no longer deployed and developed independently; data synchronization between platforms has become increasingly inseparable. Currently, the high degree of coupling between different platforms during data synchronization leads to poor data synchronization stability and a high risk of data loss. Summary of the Invention
[0003] This disclosure provides data synchronization methods, apparatus, systems, readable storage media, and electronic devices to address the technical problem of poor stability in data synchronization in the prior art, which easily leads to data loss.
[0004] According to a first aspect of this disclosure, a data synchronization method is provided, applied to a first platform, the method comprising:
[0005] Receive business data sent from the second platform, and determine the first review result based on the business data;
[0006] The first review result is sent to the second platform, so that the second platform can modify its platform data based on the first review result; and if the first review result shows that the review is passed, the second platform sends the business data to the third platform; and the second platform receives the second review result sent by the third platform based on the business data, and modifies its platform data based on the second review result.
[0007] Receive the second review result sent by the second platform, and modify the platform data of the first platform based on the second review result.
[0008] Optionally, based on business data, the first review result is determined, including:
[0009] Determine the business identifier carried by the business data;
[0010] If the business identifier indicates that the business data is exempt from review, then the first review result indicating that the review has been passed is determined.
[0011] If the business identifier indicates that the business data is not exempt from review, the business data will be reviewed. If the business data passes the review, the first review result indicating that the review has passed will be determined.
[0012] Optionally, if the business identifier indicates that the business data is not exempt from review, the method may further include the following steps after reviewing the business data:
[0013] If the business data fails the review, a first prompt message indicating that the review has failed is sent to the terminal corresponding to the business data, and the execution of subsequent steps is terminated.
[0014] Optionally, after modifying the platform data of the first platform based on the second audit result, the method further includes:
[0015] If the second review result indicates that the review has failed, a second notification message indicating that the review has failed will be sent to the terminal.
[0016] Optionally, after sending the first review result to the second platform, the method further includes:
[0017] Receive feedback information sent by the second platform. The feedback information is used to indicate whether the second platform has received the first review result.
[0018] If the feedback received indicates that the first review result has not been received, and the number of times the second platform has not received the first review result is less than the set value, the first review result will be sent to the second platform.
[0019] According to a second aspect of this disclosure, a data synchronization method is provided, applied to a second platform, the method comprising:
[0020] Send business data to the first platform and receive the first review result from the first platform based on the business data;
[0021] Based on the first review result, the platform data of the second platform is modified; if the first review result shows that the review is passed, the business data is sent to the third platform, and the second review result sent by the third platform based on the business data is received.
[0022] Based on the second review result, the platform data of the second platform is modified; and the second review result is sent to the first platform so that the first platform can modify the platform data of the first platform based on the second review result.
[0023] Optionally, after the step of sending business data to the first platform, the method further includes: if a first review result is received within a first preset time period, sending a first reception feedback message to the first platform.
[0024] Optionally, after the step of sending business data to the first platform, the method further includes: if the first review result is not received within a first preset time period, sending second reception feedback information to the first platform, so that the first platform sends the first review result to the second platform based on the second reception feedback information.
[0025] Optionally, after the step of sending business data to the third platform, the method further includes: if the second review result is received within the second preset time period, sending third reception feedback information to the third platform.
[0026] Optionally, after the step of sending business data to the third platform, the method further includes: if the second review result is not received within the second preset time period, sending a fourth reception feedback information to the third platform, so that the third platform sends the second review result to the second platform based on the fourth reception feedback information.
[0027] According to a third aspect of this disclosure, a data synchronization method is provided, applied to a data synchronization system, the data synchronization system including a first platform, a second platform, and a third platform, the method comprising:
[0028] The second platform sends business data to the first platform;
[0029] The first platform determines the initial review result based on business data and then sends the initial review result to the second platform.
[0030] The second platform modifies its platform data based on the first review result; if the first review result indicates that the review has passed, the business data is sent to the third platform.
[0031] The third platform determines the second review result based on business data and then sends the second review result to the second platform.
[0032] Based on the second review result, the second platform modifies the platform data of the second platform and sends the second review result to the first platform;
[0033] Based on the second review results, the first platform modified its platform data.
[0034] Optionally, data can be sent between the first platform and the second platform, and between the second platform and the third platform, via Kafka.
[0035] Optionally, the third platform determines the second review result based on business data, including:
[0036] The third platform determines the business identifier carried by the business data;
[0037] When the business identifier indicates that the business data is exempt from review, the third platform determines a second review result indicating that the review has been passed.
[0038] When the business identifier indicates that the business data is not exempt from review, the third platform reviews the business data. If the business data passes the review, it determines a second review result indicating that the review has passed; if the business data fails the review, it determines a second review result indicating that the review has failed.
[0039] According to a fourth aspect of this disclosure, a data synchronization device is provided, disposed on a first platform, the device comprising:
[0040] The first data receiving module is used to receive business data sent by the second platform and determine the first review result based on the business data.
[0041] The first data sending module is used to send the first review result to the second platform, so that the second platform can modify the platform data based on the first review result; and to send the business data to the third platform if the first review result shows that the review has passed; and to receive the second review result sent by the third platform based on the business data, and modify the platform data based on the second review result.
[0042] The first data modification module is used to receive the second review result sent by the second platform and modify the platform data of the first platform based on the second review result.
[0043] According to a fifth aspect of this disclosure, a data synchronization device is provided, disposed on a second platform, the device comprising:
[0044] The second data receiving module is used to send business data to the first platform and receive the first audit result sent by the first platform based on the business data;
[0045] The second data modification module is used to modify the platform data of the second platform based on the first review result; if the first review result shows that the review is passed, the business data is sent to the third platform, and the second review result sent by the third platform based on the business data is received.
[0046] The second data sending module is used to modify the platform data of the second platform based on the second review result; and to send the second review result to the first platform so that the first platform can modify the platform data of the first platform based on the second review result.
[0047] According to a sixth aspect of this disclosure, a data synchronization system is provided, comprising a first platform, a second platform, and a third platform;
[0048] The second platform is used to send business data to the first platform;
[0049] The first platform is used to determine the first review result based on business data; and then send the first review result to the second platform.
[0050] The second platform is also used to modify the platform data on the second platform based on the first review result; and to send the business data to the third platform if the first review result shows that the review has passed.
[0051] The third platform is used to determine the second review result based on business data; and to send the second review result to the second platform.
[0052] The second platform is also used to modify the platform data of the second platform based on the second review result, and send the second review result to the first platform;
[0053] The first platform is also used to modify the platform data of the first platform based on the results of the second review.
[0054] According to a seventh aspect of this disclosure, a computer-readable storage medium is provided, the storage medium storing a computer program for performing the above-described data synchronization method.
[0055] According to an eighth aspect of this disclosure, an electronic device is provided, the electronic device comprising:
[0056] processor;
[0057] Memory used to store the processor's executable instructions;
[0058] The processor is configured to read the executable instructions from the memory and execute the instructions to implement the data synchronization method described above.
[0059] Compared with the prior art, the data synchronization method, apparatus, computer-readable storage medium, and electronic device provided in this disclosure have at least the following advantages:
[0060] In this disclosed technical solution, the second platform sends business data to the first platform. The first platform receives the business data, determines a first review result based on the business data, and sends the first review result to the second platform. At this time, the platform data of the first platform includes the business data and the corresponding first review result. Based on the first review result, the second platform modifies its platform data. The modified platform data includes the business data and the corresponding first review result. If the first review result indicates that the review is passed, the second platform sends the business data to the third platform. The third platform receives the business data, determines a second review result based on the business data, and sends the second review result to the second platform. At this time, the platform data of the third platform includes the business data and the corresponding second review result. Based on the second review result, the second platform modifies its platform data again. The modified platform data includes the business data and the corresponding second review result, and sends the second review result to the first platform. Based on the second review result, the first platform modifies its platform data. The modified platform data includes the business data and the corresponding second review result. In the technical solution provided in this disclosure, the first platform and the third platform are review platforms. An intermediate platform, namely the second platform, is added between the first platform and the third platform to avoid direct interaction between the business data and review results of the first platform and the third platform, reduce the coupling between the first platform and the third platform, and realize the synchronization of review results and business data of the first platform, the second platform and the third platform. Even if a problem occurs on a certain platform, data loss can be avoided, effectively improving the stability and security of data synchronization. Attached Figure Description
[0061] To more clearly illustrate the technical solution of this invention, the accompanying drawings used in the description of this disclosure will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.
[0062] Figure 1 This is a schematic diagram illustrating the application environment of the data synchronization method provided in an exemplary embodiment of this disclosure;
[0063] Figure 2 This is a flowchart illustrating a data synchronization method provided in an exemplary embodiment of this disclosure. Figure 1 ;
[0064] Figure 3 This is a flowchart illustrating a data synchronization method provided in an exemplary embodiment of this disclosure. Figure 2 ;
[0065] Figure 4This is a flowchart illustrating a data synchronization method provided in an exemplary embodiment of this disclosure. Figure 3 ;
[0066] Figure 5 This is a flowchart illustrating a data synchronization method provided in an exemplary embodiment of this disclosure. Figure 4 ;
[0067] Figure 6 This is a schematic diagram of the structure of a data synchronization device provided in an exemplary embodiment of the present disclosure. Figure 1 ;
[0068] Figure 7 This is a schematic diagram of the structure of a data synchronization device provided in an exemplary embodiment of the present disclosure. Figure 2 ;
[0069] Figure 8 This is a structural diagram of an electronic device provided in an exemplary embodiment of this disclosure. Detailed Implementation
[0070] The technical solutions of this disclosure will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this disclosure. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.
[0071] In today's society, driven by the rapid development of technologies such as the internet and cloud computing, systems are no longer deployed and developed independently. Interactions and synchronization between systems are becoming increasingly intertwined. Examples include information verification between management and business systems, data synchronization between business systems, and data transfer between multiple banking systems. In related technologies, business data often needs to be reviewed by both a preliminary review platform and a management platform, and data synchronization between these platforms is crucial. When a customer submits business data on a terminal, the data enters the preliminary review platform for review. After review, the data and review results are sent to the management platform, which then reviews it and sends the results back to the preliminary review platform for data synchronization. During this synchronization process, the preliminary review platform and management platform are highly coupled and interdependent. If either the preliminary review platform or the management platform fails, data loss can easily occur, resulting in poor data synchronization stability.
[0072] Please see Figure 1The diagram illustrates an application environment for data synchronization according to an exemplary embodiment. This environment may include a first platform 11, a second platform 12, and a third platform 13. The first platform 11 and the third platform 13 are two review platforms. The first platform 11 can be a preliminary review platform (lower-level platform), and the third platform 13 can be a management platform (upper-level platform). The second platform 12 is an intermediate platform used to receive business data and notify the first platform 11 and the third platform 13 of business data and review results, and to associate the first platform 11 and the third platform 13. The access of the second platform 12 reduces the coupling between the first platform 11 and the third platform 13, improving the stability and security of data synchronization.
[0073] Figure 2 This is a flowchart illustrating a data synchronization method provided in an exemplary embodiment of this disclosure, applicable to, for example... Figure 1 The first platform shown includes at least the following steps:
[0074] Step 21: Receive business data sent by the second platform, and determine the first review result based on the business data.
[0075] Among them, business data can be any relevant data obtained from the second platform that requires review by the first and third platforms.
[0076] Specifically, business data refers to data submitted by users on the terminal that requires review. For example, if a user needs to handle a certain business, they fill in the relevant information on the terminal and submit it for review. The business data submitted by the terminal enters the second platform, and the second platform synchronizes the business data to the first platform. The first platform receives the business data sent by the second platform and determines the first review result based on the business data.
[0077] In one embodiment, step 21 includes:
[0078] Step 211: Determine the business identifier carried by the business data.
[0079] The business data carries a business identifier, which indicates whether the business data is exempt from review. Exempt data is data that does not require review, while non-exempt data is data that requires review.
[0080] Step 212: If the business identifier indicates that the business data is exempt from review, determine the first review result indicating that the review has passed.
[0081] Step 213: If the business identifier indicates that the business data is not exempt from review, review the business data. If the business data passes the review, determine the first review result indicating that the review has passed.
[0082] Specifically, if a piece of business data is determined to be exempt from review, no review is required, and a first review result indicating approval is determined, such as an exemption result. If a piece of business data is determined to be non-exempt from review, the business data is reviewed, and if the business data passes the review, a first review result indicating approval is determined, such as an approval result. In this embodiment, exempt and non-exempt data are accurately identified through business identifiers, and different processing is applied to business data with different business identifiers, which conforms to actual business scenarios and improves the efficiency of determining the first review result.
[0083] In one embodiment, after the step of reviewing the business data when the business identifier indicates that the business data is not exempt from review, the method further includes: if the business data fails the review, sending a first prompt message to the terminal corresponding to the business data to indicate that the review has failed, and ending the execution of subsequent steps.
[0084] In this embodiment, the first platform reviews the business data. If the business data fails the review, meaning it does not meet the preliminary review criteria, the first platform sends a first notification message to the terminal corresponding to the business data—that is, the terminal that submitted the business data for review—and terminates the subsequent process. The first notification message is used to inform the user that the review failed and can provide the specific reason for the failure, allowing the user to make effective modifications based on the first notification message.
[0085] In one possible implementation, the first platform reviews the business data. If the business data fails the review, the first platform does not need to notify the second platform and can directly end the subsequent process. At this time, the first review result includes two situations: exemption from review and approval.
[0086] In another possible implementation, the first platform reviews the business data. If the business data fails the review, the first platform notifies the second platform to end the subsequent process. At this time, the first review result includes three situations: exemption from review, approval, and failure.
[0087] Step 22: Send the first review result to the second platform so that the second platform can modify its platform data based on the first review result; and send the business data to the third platform if the first review result shows that the review has passed; and receive the second review result sent by the third platform based on the business data, and modify the platform data of the second platform based on the second review result.
[0088] Specifically, the first platform notifies the second platform of the first review result via Kafka, a high-throughput distributed publish-subscribe messaging system that helps reduce coupling between platforms. At this point, the first platform's data includes business data and the corresponding first review result. The second platform receives the first review result and modifies its own data accordingly. The modified second platform's data then includes the business data and the corresponding first review result, thus synchronizing the business data and the first review result between the first and second platforms. Further, if the first review result indicates approval, the second platform sends the business data to the third platform. The third platform receives the business data, determines the second review result based on it, and sends the second review result back to the second platform. At this point, the third platform's data includes the business data and the corresponding second review result. The second platform then modifies its own data again based on the second review result. The modified second platform's data then includes the business data and the corresponding second review result, thus synchronizing the business data and the second review result between the second and third platforms.
[0089] In one embodiment, after the step of sending the first review result to the second platform, the method further includes:
[0090] Step 24: Receive the reception feedback information sent by the second platform. The reception feedback information is used to indicate whether the second platform has received the first review result.
[0091] Specifically, the second platform provides feedback on the receipt of the first review result. If the second platform receives the first review result within a first preset time period, it sends a reception feedback message indicating successful receipt of the first review result. If the second platform does not receive the first review result within the first preset time period, it sends a reception feedback message indicating that the first review result was not received.
[0092] Step 25: If the feedback information indicates that the first review result has not been received and the number of times the second platform has not received the first review result is less than the set value, the first review result is sent to the second platform.
[0093] Specifically, the first platform parses the reception feedback information sent by the second platform. If the second platform does not receive the first review result, it further determines the number of times the second platform has failed to receive the first review result. If the number of times the second platform has failed to receive the first review result is less than a set value, the first platform resends the first review result to the second platform. This increases the probability that the second platform will successfully receive the first review result, improves the stability of data synchronization, and avoids sending anomalies caused by temporary factors.
[0094] It should be noted that if the received feedback indicates successful reception, i.e., the first review result has been received, the first platform will not take any further action; if the received feedback indicates that the first review result has not been received, and the number of times the second platform has not received the first review result is higher than or equal to the set value, the first platform will not take any further action. In this case, equipment failure may occur, in order to prevent the first platform from continuously sending the first review result to the second platform and to ensure the effectiveness of resource utilization.
[0095] Step 23: Receive the second review result sent by the second platform, and modify the platform data of the first platform based on the second review result.
[0096] Specifically, after receiving the second review result, the second platform synchronizes it to the first platform. The first platform receives the second review result from the second platform and modifies its platform data based on it. The modified platform data includes business data and the corresponding second review result. This achieves synchronization of business data and review data across the first, second, and third platforms. Even if the first or third platform fails, business data will not be lost, ensuring data security and the stability of data synchronization.
[0097] It should be noted that if the first, second, and third platforms require synchronization of both the second and first review results, then when the second platform synchronizes business data with the third platform, it can also send the first review result to the third platform. After the third platform determines the second review result corresponding to the business data, its platform data includes the business data, the first review result, and the second review result. Based on the second review result, the second platform modifies its platform data, and the modified second platform data includes the business data, the first review result, and the second review result. Similarly, based on the second review result, the first platform modifies its platform data, and the modified first platform data includes the business data, the first review result, and the second review result. Alternatively, the second platform can also avoid synchronizing the first review result with the third platform. Since the second platform sends business data to the third platform only when the first review result indicates approval, the third platform can confirm the first review result as approved upon receiving the business data.
[0098] In one embodiment, after step 23, which modifies the platform data of the first platform based on the second audit result, the method further includes:
[0099] Step 26: If the second audit result indicates that the audit has failed, send a second prompt message to the terminal to indicate that the audit has failed.
[0100] Specifically, business data needs to undergo two reviews: one on the first platform and one on the third platform. During the third platform's review, some data may fail. Therefore, after receiving the second review result, if the first platform indicates a failure, it sends a second notification message to the terminal indicating the failure. This second notification message informs the user of the failure and explains the reason for the failure, allowing the user to effectively modify the business data. The first and second notification messages can be the same, or they can differ, such as including both the failure message and the reason for the failure.
[0101] In the above embodiments, the first platform and the third platform are review platforms. An intermediate platform, namely the second platform, is added between the first platform and the third platform to avoid direct interaction between the business data and review results of the first platform and the third platform, reduce the coupling between the first platform and the third platform, and realize the synchronization of review results and business data of the first platform, the second platform and the third platform. Even if a problem occurs on a certain platform, data loss can be avoided, thus effectively improving the stability and security of data synchronization.
[0102] Figure 3 This is a flowchart illustrating a data synchronization method provided in an exemplary embodiment of this disclosure, applicable to, for example... Figure 1 The second platform shown includes at least the following steps:
[0103] Step 31: Send the business data to the first platform and receive the first review result sent by the first platform based on the business data.
[0104] Specifically, the second platform synchronizes business data to the first platform via Kafka. The first platform then notifies the second platform of the business data via Kafka.
[0105] In one embodiment, after sending business data to the first platform, the method further includes: if a first review result is received within a first preset time period, sending first reception feedback information to the first platform. The second platform provides feedback to the first platform regarding the receipt of the first review result, and sends the first reception feedback information to the first platform. After receiving the first reception feedback information, the first platform confirms that the second platform has successfully received the first review result. The first preset time period can be any pre-set time length.
[0106] In one embodiment, after sending business data to the first platform, the method further includes: if no first review result is received within a first preset time period, sending second reception feedback information to the first platform, so that the first platform sends the first review result to the second platform based on the second reception feedback information. After receiving the second reception feedback information, the first platform confirms that the second platform has not received the first review result, and therefore resends the first review result. If the first platform receives the second reception feedback information multiple times, the number of times the second reception feedback information is received is determined. If the number is lower than a set value, the first review result is sent to the second platform. If the number is higher than or equal to the set value, the first review result is no longer sent to the second platform. Specifically, the set value can be 3, 4, or 5, and the user can set the set value according to the actual situation.
[0107] It should be noted that the second platform can send a first receipt feedback message to the first platform after receiving the first review result, and send a second receipt feedback message to the first platform if it does not receive the first review result. If the second platform only sends the first receipt feedback message after receiving the first review result, the first platform confirms that the second platform has successfully received the first review result upon receiving the first receipt feedback message; if the first platform does not receive the first receipt feedback message, it confirms that the second platform has not received the first review result and resends the first review result to the second platform. Similarly, if the second platform only sends the second receipt feedback message after not receiving the first review result, the first platform confirms that the second platform has not received the first review result upon receiving the second receipt feedback message and resends the first review result to the second platform; if the first platform does not receive the second receipt feedback message, it confirms that the second platform has successfully received the first review result. Users can configure the receiving feedback logic from the second platform to the first platform according to the actual scenario; this embodiment does not impose specific limitations on this.
[0108] Step 32: Based on the first review result, modify the platform data of the second platform; if the first review result indicates that the review is passed, send the business data to the third platform and receive the second review result sent by the third platform based on the business data.
[0109] Specifically, the second platform sends business data to the third platform via Kafka.
[0110] In one embodiment, after sending the business data to the third platform, the method further includes: if a second review result is received within a second preset time period, sending third reception feedback information to the third platform. The second platform provides feedback to the third platform regarding the receipt of the second review result, sends the third reception feedback information to the third platform, and the third platform confirms that the second platform has successfully received the second review result after receiving the third reception feedback information. The second preset time period can be any pre-set time length, and can be the same as or different from the first preset time period.
[0111] In one embodiment, after sending business data to the third platform, the method further includes: if no second review result is received within a second preset time period, sending a fourth reception feedback message to the third platform, so that the third platform sends the second review result to the second platform based on the fourth reception feedback message. After receiving the fourth reception feedback message, the third platform confirms that the second platform has not received the second review result, and therefore resends the second review result. If the third platform receives the fourth reception feedback message multiple times, the number of times the fourth reception feedback message is received is determined. If the number is lower than a set value, the second review result is sent to the second platform. If the number is equal to or higher than the set value, the second review result is no longer sent to the second platform.
[0112] It should be noted that the second platform can send a third receipt feedback message to the first platform after receiving the second review result, and send a fourth receipt feedback message to the third platform if it does not receive the second review result. If the second platform only sends the third receipt feedback message after receiving the second review result, the third platform confirms that the second platform has successfully received the second review result upon receiving the third receipt feedback message; if the third platform does not receive the third receipt feedback message, it confirms that the second platform has not received the second review result and resends the second review result to the second platform. Similarly, if the second platform only sends a fourth receipt feedback message after not receiving the second review result, the third platform confirms that the second platform has not received the second review result upon receiving the fourth receipt feedback message and resends the second review result to the second platform; if the third platform does not receive the fourth receipt feedback message, it confirms that the second platform has successfully received the second review result. Users can configure the receipt feedback logic from the second platform to the third platform according to their actual scenarios; this embodiment does not impose specific limitations on this.
[0113] Step 33: Based on the second review result, modify the platform data of the second platform; and send the second review result to the first platform so that the first platform can modify the platform data of the first platform based on the second review result.
[0114] In the above embodiments, the first platform and the third platform are review platforms. An intermediate platform, namely the second platform, is added between the first platform and the third platform to avoid direct interaction between the business data and review results of the first platform and the third platform, reduce the coupling between the first platform and the third platform, and realize the synchronization of review results and business data of the first platform, the second platform and the third platform. Even if a problem occurs on a certain platform, data loss can be avoided, thus effectively improving the stability and security of data synchronization.
[0115] Figure 4 This is a flowchart illustrating a data synchronization method provided in an exemplary embodiment of this disclosure, applicable to, for example... Figure 1 The data synchronization system shown includes a first platform, a second platform, and a third platform, and includes at least the following steps:
[0116] Step 41: The second platform sends the business data to the first platform.
[0117] Step 42: The first platform determines the first review result based on the business data and sends the first review result to the second platform.
[0118] Step 43: Based on the first review result, the second platform modifies the platform data of the second platform; if the first review result shows that the review is passed, the business data is sent to the third platform.
[0119] Step 44: The third platform determines the second review result based on the business data and sends the second review result to the second platform.
[0120] Specifically, the third platform identifies the business identifier carried by the business data. If the business identifier indicates that the business data is exempt from review, the third platform determines a second review result indicating that the review has been passed. If the business identifier indicates that the business data is not exempt from review, the third platform reviews the business data. If the business data passes the review, the third platform determines a second review result indicating that the review has been passed. If the business data fails the review, the third platform determines a second review result indicating that the review has failed. Therefore, the second review result includes three scenarios: exempt from review, passed review, and failed review. Accurately classifying business data using the business identifier facilitates the third platform's rapid determination of the second review result.
[0121] Step 45: Based on the second review result, the second platform modifies the platform data of the second platform and sends the second review result to the first platform.
[0122] Step 46: Based on the second review result, the first platform modifies the platform data of the first platform.
[0123] Specifically, such as Figure 5As shown, the second platform receives a piece of business data and synchronizes it to the first platform via Kafka. The first platform determines the business identifier of the data to decide whether it is exempt from review. If it is exempt, the first platform notifies the second platform of the exemption result (corresponding to the first review result) via Kafka. If it is not exempt, the first platform reviews the business data to determine whether it passes the review. If it passes the review, the first platform notifies the second platform of the approval result (corresponding to the first review result) via Kafka. If it fails the review, the first platform notifies the customer that the business data has failed the review, and the process ends.
[0124] The second platform receives the first review result, which may be either an exemption from review or a pass review. It then modifies the platform data on the second platform, primarily altering the review results corresponding to the business data. The second platform reports back to the first platform regarding the receipt of the first review result. If the first platform confirms that the second platform has not received the first review result, it resends it. Specifically, the first platform has three opportunities to resend if the second platform has not received the first review result, increasing the probability of the second platform receiving it and ensuring synchronization between the two platforms. If the second platform still has not received the first review result after three resends, it issues an alarm to prompt relevant personnel to handle the issue promptly. After modifying the platform data, the second platform synchronizes the business data to the third platform.
[0125] The third platform determines the business identifier of the business data and determines whether the data is exempt from review. If the data is exempt from review, the exemption result (corresponding to the second review result) is notified to the second platform via Kafka. If the data is not exempt from review, the third platform reviews the business data, determines the review pass result (corresponding to the second review result) or review fail result (corresponding to the second review result), and notifies the second platform of the review pass result or review fail result in Kafka form.
[0126] Based on the received second review result (which may be an exemption from review, a pass review, or a fail review), the second platform modifies its platform data, primarily altering the review results corresponding to the business data. The second platform then notifies the first platform of the second review result via Kafka.
[0127] The first platform receives the second review result, modifies its platform data, primarily changing the review result corresponding to the business data. It then determines whether the second review result is approved. If the second review result is approved, the process ends. If the second review result is not approved, the first platform notifies the customer that this business data item has not passed review, and the process ends.
[0128] In the above embodiments, the first platform and the third platform are review platforms. An intermediate platform, namely the second platform, is added between the first platform and the third platform to avoid direct interaction between the business data and review results of the first platform and the third platform, reduce the coupling between the first platform and the third platform, and realize the synchronization of review results and business data of the first platform, the second platform and the third platform. Even if a problem occurs on a certain platform, data loss can be avoided, thus effectively improving the stability and security of data synchronization.
[0129] This disclosure provides a flowchart illustrating an exemplary embodiment of a data synchronization method, applicable to, for example... Figure 1 The third platform shown includes at least the following steps:
[0130] The system receives business data sent by the second platform; upon receiving a first review result indicating that the review has been passed, the second platform modifies its platform data and then sends the business data to the third platform; the first review result is determined by the first platform based on the business data sent by the second platform.
[0131] Based on business data, a second review result is determined and sent to a second platform so that the second platform can modify its platform data based on the second review result. The second review result is then sent to a first platform so that the first platform can modify its platform data based on the second review result.
[0132] In the above embodiments, the first platform and the third platform are review platforms. An intermediate platform, namely the second platform, is added between the first platform and the third platform to avoid direct interaction between the business data and review results of the first platform and the third platform, reduce the coupling between the first platform and the third platform, and realize the synchronization of review results and business data of the first platform, the second platform and the third platform. Even if a problem occurs on a certain platform, data loss can be avoided, thus effectively improving the stability and security of data synchronization.
[0133] It should be noted that the above exemplary embodiments are described from the perspectives of the first platform, the second platform, the data synchronization system, and the third platform, respectively, but their substantive content is similar. Therefore, the content of each exemplary embodiment is related and mutually supportive.
[0134] Based on the same concept as the embodiments of the method disclosed herein Figure 6 This is a schematic diagram of the structure of a data synchronization device provided in an exemplary embodiment of the present disclosure, disposed on a first platform, the device including:
[0135] The first data receiving module 61 is used to receive business data sent by the second platform and determine the first review result based on the business data;
[0136] The first data sending module 62 is used to send the first review result to the second platform, so that the second platform can modify the platform data based on the first review result; and to send the business data to the third platform if the first review result shows that the review is passed; and to receive the second review result sent by the third platform based on the business data, and modify the platform data based on the second review result.
[0137] The first data modification module 63 is used to receive the second review result sent by the second platform and modify the platform data of the first platform based on the second review result.
[0138] In one embodiment, the first data receiving module is specifically used to determine the business identifier carried by the business data; if the business identifier indicates that the business data is exempt from review, determine a first review result indicating that the review has been passed; if the business identifier indicates that the business data is not exempt from review, review the business data; and if the business data passes the review, determine a first review result indicating that the review has been passed.
[0139] In one embodiment, the first data receiving module is further configured to send a first prompt message indicating that the review has failed to pass the review to the terminal corresponding to the business data if the business data fails to pass the review, and then terminate the execution of subsequent steps.
[0140] In one embodiment, the first data receiving module is further configured to send a second prompt message to the terminal indicating that the review has failed if the second review result shows that the review has failed.
[0141] In one embodiment, the device further includes: a first feedback processing module, configured to receive reception feedback information sent by a second platform, wherein the reception feedback information indicates whether the second platform has received the first review result; and if the reception feedback information indicates that the first review result has not been received, and the number of times the second platform has not received the first review result is less than a set value, the first review result is sent to the second platform.
[0142] Figure 7 This is a schematic diagram of the structure of a data synchronization device provided in an exemplary embodiment of the present disclosure, disposed on a second platform, the device including:
[0143] The second data receiving module 71 is used to send business data to the first platform and receive the first audit result sent by the first platform based on the business data;
[0144] The second data modification module 72 is used to modify the platform data of the second platform based on the first review result; if the first review result shows that the review is passed, the business data is sent to the third platform, and the second review result sent by the third platform based on the business data is received.
[0145] The second data sending module 73 is used to modify the platform data of the second platform based on the second review result; and send the second review result to the first platform so that the first platform can modify the platform data of the first platform based on the second review result.
[0146] In one embodiment, the apparatus further includes: a second feedback processing module;
[0147] The second feedback processing module is used to send the first receipt feedback information to the first platform when the first review result is received within the first preset time period.
[0148] In one embodiment, the second feedback processing module is further configured to send second receiving feedback information to the first platform if the first review result is not received within a first preset time period, so that the first platform sends the first review result to the second platform based on the second receiving feedback information.
[0149] In one embodiment, the second feedback processing module is further configured to send third reception feedback information to the third platform if the second review result is received within a second preset time period.
[0150] In one embodiment, the second feedback processing module is further configured to send a fourth receiving feedback information to the third platform if the second review result is not received within a second preset time period, so that the third platform sends the second review result to the second platform based on the fourth receiving feedback information.
[0151] Figure 1 This is a schematic diagram of the structure of a data synchronization system provided in an exemplary embodiment of the present disclosure, including a first platform 11, a second platform 12 and a third platform 13;
[0152] The second platform 12 is used to send business data to the first platform 11;
[0153] The first platform 11 is used to determine the first review result based on business data and send the first review result to the second platform 12.
[0154] The second platform 12 is also used to modify the platform data of the second platform 12 based on the first review result; and to send the business data to the third platform 13 if the first review result shows that the review has passed.
[0155] The third platform 13 is used to determine the second review result based on business data and send the second review result to the second platform 12.
[0156] The second platform 12 is also used to modify the platform data of the second platform 12 based on the second review result, and send the second review result to the first platform 11;
[0157] The first platform 11 is also used to modify the platform data of the first platform 11 based on the second audit result.
[0158] In one embodiment, data is sent between the first platform and the second platform, and between the second platform and the third platform, via Kafka.
[0159] In one embodiment, the third platform is specifically used to determine the business identifier carried by the business data; if the business identifier indicates that the business data is exempt from review, determine a second review result indicating that the review has been passed; if the business identifier indicates that the business data is not exempt from review, review the business data; if the business data passes the review, determine a second review result indicating that the review has been passed; if the business data fails the review, determine a second review result indicating that the review has failed.
[0160] This disclosure also provides a data synchronization device, configured on a third platform, the device comprising:
[0161] The third data receiving module is used to receive business data sent by the second platform; wherein, after receiving the first review result indicating that the review has been passed, the second platform modifies its platform data and then sends the business data to the third platform; the first review result is determined by the first platform based on the business data synchronized by the second platform;
[0162] The third data sending module is used to determine the second review result based on business data, send the second review result to the second platform so that the second platform can modify the platform data based on the second review result, and send the second review result to the first platform so that the first platform can modify the platform data based on the second review result.
[0163] Exemplary electronic devices
[0164] Figure 8 A block diagram of an electronic device according to an embodiment of the present disclosure is shown.
[0165] like Figure 8 As shown, the electronic device 80 includes one or more processors 81 and memory 82.
[0166] The processor 81 may be a central processing unit (CPU) or other form of processing unit with data synchronization capability and / or instruction execution capability, and may control other components in the electronic device 80 to perform the desired function.
[0167] The memory 82 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 81 may execute the program instructions to implement the data synchronization methods of the various embodiments of this disclosure described above and / or other desired functions.
[0168] In one example, the electronic device 80 may also include an input device 83 and an output device 84, which are interconnected via a bus system and / or other forms of connection mechanism (not shown).
[0169] Of course, for the sake of simplicity, Figure 8 Only some of the components of the electronic device 80 relevant to this disclosure are shown, omitting components such as buses, input / output interfaces, etc. In addition, the electronic device 80 may include any other suitable components depending on the specific application.
[0170] Exemplary computer program products and computer-readable storage media
[0171] In addition to the methods and apparatus described above, embodiments of this disclosure may also be computer program products comprising computer program instructions that, when executed by a processor, cause the processor to perform the steps in the data synchronization methods according to various embodiments of this disclosure as described in the "Exemplary Methods" section of this specification.
[0172] The computer program product can be written in any combination of one or more programming languages to perform the operations of the embodiments of this disclosure. The programming languages include object-oriented programming languages such as Java and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on a user's computing device, partially on a user's computing device, as a standalone software package, partially on a user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0173] Furthermore, embodiments of this disclosure may also be computer-readable storage media storing computer program instructions thereon, which, when executed by a processor, cause the processor to perform the steps in the data synchronization methods according to various embodiments of this disclosure described in the "Exemplary Methods" section above.
[0174] The computer-readable storage medium may be any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may, for example, include, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0175] The basic principles of this disclosure have been described above with reference to specific embodiments. However, it should be noted that the advantages, benefits, and effects mentioned in this disclosure are merely examples and not limitations, and should not be considered as essential features of each embodiment of this disclosure. Furthermore, the specific details of the invention described above are for illustrative and facilitative purposes only, and are not limitations. These details do not limit the scope of this disclosure to the necessity of employing the aforementioned specific details.
[0176] The block diagrams of devices, apparatuses, devices, and systems disclosed herein are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, devices, and systems can be connected, arranged, and configured in any manner. Words such as “comprising,” “including,” “having,” etc., are open-ended terms meaning “including but not limited to,” and are used interchangeably with them. The terms “or” and “and” as used herein refer to the terms “and / or,” and are used interchangeably with them unless the context clearly indicates otherwise. The term “such as” as used herein refers to the phrase “such as but not limited to,” and is used interchangeably with it.
[0177] It should also be noted that in the apparatus, devices, and methods of this disclosure, the components or steps can be disassembled and / or recombined. These disassemblies and / or recombinations should be considered as equivalent solutions to this disclosure.
[0178] The above description of aspects of the invention is provided to enable any person skilled in the art to make or use this disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein can be applied to other aspects without departing from the scope of this disclosure. Therefore, this disclosure is not intended to be limited to the aspects shown herein, but rather to be carried out within the widest scope consistent with the principles and novel features of the invention herein.
[0179] The above description has been given for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of this disclosure to the forms of the invention herein. Although numerous exemplary aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations thereof.
Claims
1. A data synchronization method, characterized by, Applied to a first platform, the method comprises: receiving service data sent by a second platform, determining a first audit result based on the service data; sending the first audit result to the second platform, so that the second platform modifies platform data of the second platform based on the first audit result; and so that the second platform sends the service data to a third platform if the first audit result indicates that the audit is passed; and so that the second platform receives a second audit result sent by the third platform based on the service data, and modifies the platform data of the second platform based on the second audit result; receiving the second audit result sent by the second platform, and modifying platform data of the first platform based on the second audit result; wherein the step of determining a first audit result based on the service data comprises: determining a service identifier carried by the service data; if the service identifier indicates that the service data is exempt data, determining the first audit result indicating that the audit is passed; if the service identifier indicates that the service data is non-exempt data, auditing the service data, and determining the first audit result indicating that the audit is passed if the service data passes the audit.
2. The method of claim 1, wherein, After the step of auditing the service data if the service identifier indicates that the service data is non-exempt data, the method further comprises: if the service data fails the audit, sending first prompt information indicating that the audit is failed to a terminal corresponding to the service data, and ending the execution of subsequent steps; and / or, after the step of modifying the platform data of the first platform based on the second audit result, the method further comprises: if the second audit result indicates that the audit is failed, sending second prompt information indicating that the audit is failed to the terminal.
3. The method of claim 1, wherein, After the step of sending the first audit result to the second platform, the method further comprises: receiving receiving feedback information sent by the second platform, the receiving feedback information being used to indicate whether the second platform receives the first audit result; if the receiving feedback information indicates that the first audit result is not received, and the number of times that the second platform does not receive the first audit result is lower than a set value, sending the first audit result to the second platform.
4. A data synchronization method, characterized by, Applied to a second platform, the method comprises: sending service data to a first platform, and receiving a first audit result sent by the first platform based on the service data; modifying platform data of the second platform based on the first audit result; if the first audit result indicates that the audit is passed, sending the service data to a third platform, and receiving a second audit result sent by the third platform based on the service data; modify platform data of the second platform based on the second audit result; and send the second audit result to the first platform, so that the first platform modifies platform data of the first platform based on the second audit result; The first audit result is determined by the first platform receiving service data sent by the second platform, and determining the first audit result based on the service data. The first audit result is determined based on the service data, including: determining a service identifier carried by the service data; in the case where the service identifier indicates that the service data is exempt from review data, determining a first audit result indicating that the review is passed; in the case where the service identifier indicates that the service data is non-exempt review data, reviewing the service data, and in the case where the service data passes the review, determining a first audit result indicating that the review is passed.
5. The method of claim 4, wherein, After the step of sending the service data to the first platform, the method further includes: in the case where the first audit result is received within a first preset time period, sending first receiving feedback information to the first platform; and / or, after the step of sending the service data to the first platform, the method further includes: in the case where the first audit result is not received within the first preset time period, sending second receiving feedback information to the first platform, so that the first platform sends the first audit result to the second platform based on the second receiving feedback information; and / or, after the step of sending the service data to the third platform, the method further includes: in the case where the second audit result is received within a second preset time period, sending third receiving feedback information to the third platform; and / or, after the step of sending the service data to the third platform, the method further includes: in the case where the second audit result is not received within the second preset time period, sending fourth receiving feedback information to the third platform, so that the third platform sends the second audit result to the second platform based on the fourth receiving feedback information.
6. A data synchronization method, characterized by, The method is applied to a data synchronization system, and the data synchronization system includes a first platform, a second platform and a third platform, and the method includes: The second platform sends service data to the first platform; The first platform determines a first audit result based on the service data; and sends the first audit result to the second platform; The second platform modifies platform data of the second platform based on the first audit result; in the case where the first audit result indicates that the review is passed, the second platform sends the service data to the third platform; The third platform determines a second audit result based on the service data; and sends the second audit result to the second platform; The second platform modifies platform data of the second platform based on the second audit result, and sends the second audit result to the first platform; The first platform modifies platform data of the first platform based on the second audit result; The first audit result is determined based on the service data, including: determining a service identifier carried by the service data; In a case where the business identifier indicates that the business data is exempt data, a first audit result indicating that the audit is passed is determined. In a case where the business identifier indicates that the business data is non-exempt data, the business data is audited, and in a case where the business data passes the audit, a first audit result indicating that the audit is passed is determined.
7. The method of claim 6, wherein, The first platform and the second platform and the second platform and the third platform are connected through a kafka mode for data transmission.
8. The method of claim 6, wherein, The third platform determines a second audit result based on the business data, including: The third platform determines the business identifier carried by the business data; In a case where the business identifier indicates that the business data is exempt data, the third platform determines the second audit result indicating that the audit is passed; In a case where the business identifier indicates that the business data is non-exempt data, the third platform audits the business data, and in a case where the business data passes the audit, the second audit result indicating that the audit is passed is determined; in a case where the business data fails the audit, the second audit result indicating that the audit is failed is determined.
9. A data synchronization apparatus, characterized by comprising: The device is arranged in the first platform, and includes: The first data receiving module is configured to receive the business data sent by the second platform, determine a first audit result based on the business data, and determine a business identifier carried by the business data. The first data sending module is configured to send the first audit result to the second platform, so that the second platform modifies platform data of the second platform based on the first audit result, and so that the second platform sends the business data to the third platform in a case where the first audit result indicates that the audit is passed, and so that the second platform receives a second audit result sent by the third platform based on the business data, and modifies platform data of the second platform based on the second audit result. The first data modification module is configured to receive the second audit result sent by the second platform, and modify platform data of the first platform based on the second audit result. The first data receiving module is configured to determine a business identifier carried by the business data, determine a first audit result indicating that the audit is passed in a case where the business identifier indicates that the business data is exempt data, and determine a first audit result indicating that the audit is passed in a case where the business identifier indicates that the business data is non-exempt data.
10. A data synchronization apparatus, characterized by comprising: The device is arranged in the second platform, and includes: The second data receiving module is configured to send the business data to the first platform, and receive a first audit result sent by the first platform based on the business data. The second data modification module is configured to modify platform data of the second platform based on the first audit result, send the business data to the third platform in a case where the first audit result indicates that the audit is passed, and receive a second audit result sent by the third platform based on the business data. The second data sending module is configured to modify platform data of the second platform based on the second audit result, and send the second audit result to the first platform, so that the first platform modifies platform data of the first platform based on the second audit result. The first audit result is determined by the first platform receiving business data sent by the second platform, and determining the first audit result based on the business data. The method comprises the following steps: Determining a business identifier carried by the business data; In a case where the business identifier indicates that the business data is exempted from audit data, determining the first audit result indicating that the audit is passed; In a case where the business identifier indicates that the business data is non-exempted from audit data, auditing the business data, and in a case where the business data passes the audit, determining the first audit result indicating that the audit is passed.
11. A data synchronization system, characterized by The system comprises a first platform, a second platform and a third platform. The second platform is configured to send business data to the first platform. The first platform is configured to determine a first audit result based on the business data. The first platform is configured to send the first audit result to the second platform. The second platform is further configured to modify platform data of the second platform based on the first audit result, and in a case where the first audit result indicates that the audit is passed, send the business data to the third platform. The third platform is configured to determine a second audit result based on the business data. The third platform is configured to send the second audit result to the second platform. The second platform is further configured to modify platform data of the second platform based on the second audit result, and send the second audit result to the first platform. The first platform is further configured to modify platform data of the first platform based on the second audit result. The method comprises the following steps: Determining a business identifier carried by the business data; In a case where the business identifier indicates that the business data is exempted from audit data, determining the first audit result indicating that the audit is passed; In a case where the business identifier indicates that the business data is non-exempted from audit data, auditing the business data, and in a case where the business data passes the audit, determining the first audit result indicating that the audit is passed.
12. A computer readable storage medium, the storage medium storing a computer program, the computer program being configured to execute the data synchronization method of any one of claims 1-8.
13. An electronic device, the electronic device comprising: a processor; a memory for storing executable instructions of the processor; the processor is configured to read the executable instructions from the memory and execute the instructions to implement the data synchronization method of any one of claims 1-8.
Citation Information
Patent Citations
User data synchronizing method and device
CN103841167A
Method and system for user data transaction in communication system
CN1825797A