System switching method, apparatus, device, and computer-readable storage medium

By using a traffic system switcher in the banking system to process traffic information through synchronous and asynchronous communication mechanisms, and combining it with end-of-day data compensation, the business continuity and data consistency issues during the upgrade process of the core banking system were resolved. This enabled automated system switching in high-concurrency scenarios, reducing costs and risks.

CN116684495BActive Publication Date: 2026-04-17CHINA MERCHANTS BANK
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA MERCHANTS BANK
Filing Date
2023-06-26
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

The existing core banking system suffers from poor business continuity, poor user experience, and high costs during the upgrade and replacement process. In particular, the traditional downtime migration method under high concurrency traffic affects business continuity and data consistency.

Method used

A traffic system switcher is used to process traffic information through synchronous and asynchronous communication mechanisms, and data consistency is ensured through compensation operations. Combined with end-of-day data compensation, automated system switching is achieved in high-concurrency scenarios.

Benefits of technology

This ensured business continuity and consistency during the switchover, reduced manual intervention, minimized switchover risks, and improved the automation level and data quality of the system switchover.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116684495B_ABST
    Figure CN116684495B_ABST
Patent Text Reader

Abstract

This invention discloses a system switching method, apparatus, device, and computer-readable storage medium. The method includes: upon receiving a system switching request, performing a traffic switching operation on first traffic information corresponding to the old system through a traffic system switcher to switch the first traffic information to the new system; during the traffic switching process, processing second traffic information in the first traffic information based on a synchronous communication mechanism and processing third traffic information in the first traffic information based on an asynchronous communication mechanism through the traffic system switcher; obtaining traffic result information corresponding to the traffic data in the first traffic information, and performing a compensation operation based on the original traffic information and the traffic result information; and performing a day-end compensation operation based on the day-end data of the new system and the day-end data of the old system. This invention achieves automated switching control of the system in high-concurrency scenarios, ensuring business continuity and switching consistency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and in particular to a system switching method, apparatus, device, and computer-readable storage medium. Background Technology

[0002] Currently, the core banking systems of large banks are primarily based on mainframe technology, employing a centralized mainframe architecture. The mainframe system is the core platform responsible for processing business data, possessing powerful computing capabilities and high stability, capable of handling millions of transactions per minute, meeting the large-scale business processing needs of large banks. However, the mainframe system modules are too tightly coupled; upgrading one module requires simultaneous upgrades and deployments of other modules. Furthermore, the mainframe system performs all computations, which can slow down response times when there are many terminals. When end users have different needs, individual configuration of programs and resources is required for each user, resulting in low efficiency. Existing core banking systems are primarily built upon IBM mainframes, making the investment in mainframe systems extremely expensive.

[0003] With the development of IT technology, the continuous iteration of business processes, and the sustained growth of customer numbers, existing business systems and architectures can no longer meet the ever-changing demands, requiring synchronous upgrades and replacements with new systems. Because the old systems involve a large user base, high concurrent traffic, and are sensitive to data errors, traditional system upgrades typically involve shutting down the old system, migrating data to the new system, and then integrating the new system's traffic. However, this data migration method is the most drastic, requiring a write restriction on the old system. The duration of this write restriction depends on the data migration duration; the longer the migration, the longer the write restriction on the old system, thus impacting user write requests. This poses significant challenges to the continuity of business systems, customer experience, and the business verification risks of the new system.

[0004] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention

[0005] The main objective of this invention is to provide a system switching method, apparatus, device, and computer-readable storage medium, aiming to solve the technical problem of poor business system continuity caused by the shutdown of the old system during existing system switching.

[0006] To achieve the above objectives, the present invention provides a system switching method, the system switching method comprising the following steps:

[0007] When a system switching request is received, the traffic system switcher performs a traffic switching operation on the first traffic information corresponding to the old system to switch the first traffic information to the new system.

[0008] During the traffic switching process, the traffic system switcher processes the second traffic information in the first traffic information based on a synchronous communication mechanism, and processes the third traffic information in the first traffic information based on an asynchronous communication mechanism.

[0009] After obtaining the traffic result information corresponding to the traffic data in the first traffic information, a compensation operation is performed based on the original traffic information corresponding to the traffic result information and the traffic result information.

[0010] A daily compensation operation is performed based on the end-of-day data from the new system and the end-of-day data from the old system.

[0011] Furthermore, the step of switching the first traffic information to the new system by performing a traffic switching operation on the first traffic information corresponding to the old system through a traffic system switcher when a system switching request is received includes:

[0012] When a system switch request is received, the second traffic information corresponding to the old system is routed to obtain the first traffic information;

[0013] The first traffic information is switched to a new system by performing traffic load switching and routing load switching.

[0014] Furthermore, the step of switching the traffic load and routing load of the first traffic information to switch the first traffic information to the new system includes:

[0015] Perform traffic load switching on the first traffic information;

[0016] Perform route load balancing on the whitelist corresponding to the first traffic information;

[0017] Based on the percentage of traffic, all users corresponding to the first traffic information are sequentially subjected to routing load switching until the first traffic information is switched to the new system.

[0018] Furthermore, the step of processing the second traffic information in the first traffic information through the traffic system switch based on the synchronous communication mechanism includes:

[0019] The system corresponding to the actual routing load of the second traffic information is invoked through the traffic system switcher to obtain the first invocation result;

[0020] Call another system to obtain the result of the second call;

[0021] Return the result of the first call, and obtain traffic result information based on the result of the first call and the result of the second call.

[0022] Further, the step of obtaining the traffic result information corresponding to the traffic data in the first traffic information, and performing compensation operations based on the original traffic information corresponding to the traffic result information and the traffic result information includes:

[0023] Based on the traffic result information and the original traffic information, traffic profile data is generated, wherein the traffic result information includes the processing results of the old system and the processing results of the new system;

[0024] Data monitoring is performed based on the traffic profile data to obtain monitoring data, and compensation operations are performed based on the monitoring data.

[0025] Furthermore, the step of performing compensation based on the monitoring data includes:

[0026] Based on the monitoring data, obtain the information to be compensated, and the actual routing load corresponding to the information to be compensated;

[0027] Based on the actual routing load, determine the uncut traffic information and cut traffic information corresponding to the information to be compensated;

[0028] The new system is compensated based on the uncut traffic information, and the old system is compensated based on the cut traffic information.

[0029] Furthermore, the step of performing end-of-day compensation based on the end-of-day data of the new system and the end-of-day data of the old system includes:

[0030] Based on the end-of-day data of the new system and the end-of-day data of the old system, determine the end-of-day monitoring data;

[0031] Based on the end-of-day monitoring data and compensation configuration information, the end-of-day compensation information is determined;

[0032] Perform end-of-day compensation operations based on the aforementioned end-of-day compensation information.

[0033] Furthermore, to achieve the above objectives, this application also provides a system switching device, the system switching device comprising:

[0034] The switching module is used to perform a traffic switching operation on the first traffic information corresponding to the old system through the traffic system switcher when a system switching request is received, so as to switch the first traffic information to the new system;

[0035] The communication module is used to process the second traffic information in the first traffic information based on a synchronous communication mechanism and the third traffic information in the first traffic information based on an asynchronous communication mechanism during the traffic switching process.

[0036] The real-time compensation module is used to perform compensation operations based on the original traffic information corresponding to the traffic data in the first traffic information and the traffic result information.

[0037] The end-of-day compensation module is used to perform end-of-day compensation operations based on the end-of-day data of the new system and the end-of-day data of the old system.

[0038] In addition, to achieve the above objectives, this application also provides a system switching device, which includes: a memory, a processor, and a system switching program stored in the memory and executable on the processor. When the system switching program is executed by the processor, it implements the steps of the aforementioned system switching method.

[0039] In addition, to achieve the above objectives, this application also provides a computer-readable storage medium storing a system switching program, which, when executed by a processor, implements the steps of the aforementioned system switching method.

[0040] This invention, upon receiving a system switching request, performs a traffic switching operation on the first traffic information corresponding to the old system using a traffic system switcher to switch the first traffic information to the new system. Then, during the traffic switching process, the traffic system switcher processes the second traffic information within the first traffic information based on a synchronous communication mechanism and the third traffic information within the first traffic information based on an asynchronous communication mechanism. After obtaining the traffic result information corresponding to the traffic data in the first traffic information, a compensation operation is performed based on the original traffic information corresponding to the traffic result information and the traffic result information itself. Finally, based on the end-of-day data of the new system and the end-of-day data of the old system, an end-of-day compensation operation is performed. This achieves automated system switching control in high-concurrency scenarios, ensuring business continuity and switching consistency, and supporting thorough business comparison and verification before and after the switch. Attached Figure Description

[0041] Figure 1 This is a schematic diagram of the structure of the system switching device in the hardware operating environment involved in the embodiments of the present invention;

[0042] Figure 2 This is a flowchart illustrating the first embodiment of the system switching method of the present invention;

[0043] Figure 3 This is a schematic diagram of the functional modules of an embodiment of the system switching device of the present invention.

[0044] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0045] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0046] like Figure 1 As shown, Figure 1 This is a schematic diagram of the system switching device in the hardware operating environment involved in the embodiments of the present invention.

[0047] In this embodiment of the invention, the system switching device can be a PC, or a mobile terminal device with display function such as a tablet computer or a portable computer.

[0048] like Figure 1 As shown, the system switching device may include: a processor 1001, such as a CPU; a network interface 1004; a user interface 1003; a memory 1005; and a communication bus 1002. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen or an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be high-speed RAM or non-volatile memory, such as a disk drive. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0049] Optionally, the system switching device may also include a camera, RF (Radio Frequency) circuitry, sensors, audio circuitry, a WiFi module, and so on. Of course, the system switching device may also be equipped with other sensors such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, which will not be elaborated upon here.

[0050] Those skilled in the art will understand that Figure 1 The terminal structure shown does not constitute a limitation on the system switching equipment and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0051] like Figure 1 As shown, the memory 1005, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a system switching program.

[0052] exist Figure 1In the system switching device shown, the network interface 1004 is mainly used to connect to the backend server and communicate with the backend server; the user interface 1003 is mainly used to connect to the client (user terminal) and communicate with the client; and the processor 1001 can be used to call the system switching program stored in the memory 1005.

[0053] In this embodiment, the system switching device includes: a memory 1005, a processor 1001, and a system switching program stored in the memory 1005 and executable on the processor 1001. When the processor 1001 calls the system switching program stored in the memory 1005, it executes the steps of the system switching methods in the following embodiments.

[0054] This invention also provides a system switching method, referring to... Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of the system switching method of the present invention.

[0055] In this embodiment, the system switching method includes:

[0056] Step S101: When a system switching request is received, a traffic switching operation is performed on the first traffic information corresponding to the old system through a traffic system switcher to switch the first traffic information to the new system.

[0057] In this embodiment, the system switching device includes a data synchronization manager, a route adapter converter, a traffic system switcher, a traffic aspect manager, a data monitor, and a data correction and compensation unit.

[0058] The data synchronization manager batch maps, migrates, and synchronizes business data from the old system to the new system. It supports multiple full synchronizations initiated by the system for repeated comparisons and verifications between the old and new systems in production. Traffic switching is automatically controlled through the synchronization status of business-coupled data. Data synchronization supports both business-coupled and non-business-coupled data. Business-coupled data is the essential contextual base and critical path data for business operations, such as customer accounting data. Non-business-coupled data is derivative supporting data generated during business operations, such as customer transaction logs.

[0059] A system switching request can be triggered through the data synchronization manager. The routing adapter will clean and route the uplink messages from different channels corresponding to the system switching request to obtain the first traffic information corresponding to the old system. This is to ensure compatibility with the old uplink message interface field information of the channel while masking the design differences in the external interface field information of the new and old systems, so as to facilitate the downstream traffic system switcher to send traffic in pairs.

[0060] The traffic system switcher performs a traffic switching operation on the first traffic information corresponding to the old system to switch the first traffic information to the new system. The traffic system switcher includes a switching process status display module, which displays the switching process status as follows: before data synchronization, during data synchronization, data synchronization completed, transaction approval initiation during synchronization, transaction approval completed during synchronization, traffic switching in progress, and traffic switching completed. The switching process status display module can display the switching process status according to the current switching status. Before traffic switching, multiple data synchronization processes and dual traffic transmissions can be performed to compare and verify the operation of the old and new systems, expose business problems in the new system, and reduce the business risks of switching.

[0061] The traffic system switcher also includes a traffic load balancing module, which controls the dual-load traffic flow between the old and new systems, including both traffic load and routing load. The traffic load manages traffic according to the switching process: before the switch, the old system's traffic is 100% and the new system's traffic is 0%; during the switch, both systems have 100% traffic; and after the switch, the old system's traffic is 0% and the new system's traffic is 100%. The routing load determines whether the returned channel results actually originate from the new or old system, i.e., the system user switching result data. The routing load supports a traffic list + percentage policy, both using user ID as the key-value pair. When both are configured, the traffic list takes precedence. The system supports starting with routing switching for internal test users, then expanding to a low-risk batch list, and then gradually switching routes for all users based on a traffic percentage until finally all users are switched to the new system.

[0062] Step S102: During the traffic switching process, the traffic system switcher processes the second traffic information in the first traffic information based on a synchronous communication mechanism and processes the third traffic information in the first traffic information based on an asynchronous communication mechanism.

[0063] In this embodiment, the traffic system switcher also includes a traffic communication mechanism module. During traffic switching, the traffic communication mechanism module processes the second traffic information in the first traffic information based on a synchronous communication mechanism and processes the third traffic information in the first traffic information based on an asynchronous communication mechanism. The second traffic information consists of business traffic with a strong traffic order (e.g., accounting transaction traffic), and the third traffic information consists of business traffic with a weak traffic order (e.g., accounting query traffic). Therefore, the business types of the strongly related business traffic can be preset, and the second and third traffic information are determined from the first traffic information based on the business types of each traffic information in the first traffic information.

[0064] For each service traffic in the second traffic information, the traffic communication mechanism module processes the second traffic information based on the synchronous communication mechanism. According to the routing load, it first calls system 1 corresponding to the actual routing load, and then calls system 2 based on the result of system 1. After both are processed, the result of system 1 is finally returned.

[0065] For each business traffic in the third traffic information, the traffic communication mechanism module processes the third traffic information through an asynchronous communication mechanism. Specifically, it calls System 1, which is actually under the routing load, and then directly returns the call result of System 1. For System 2, it uses an asynchronous thread or an asynchronous queue to make the call.

[0066] Step S103: After obtaining the traffic result information corresponding to the traffic data in the first traffic information, perform a compensation operation based on the original traffic information corresponding to the traffic result information and the traffic result information.

[0067] In this embodiment, when the traffic system switcher obtains the traffic result information corresponding to the traffic data, a compensation operation is performed based on the original traffic information corresponding to the traffic result information and the traffic result information. Specifically, the traffic result information of the new system is compared with the traffic result information of the old system, and a compensation operation is performed based on the comparison result.

[0068] Step S104: Perform end-of-day compensation operation based on the end-of-day data of the new system and the end-of-day data of the old system.

[0069] In this embodiment, after the switch between the old and new systems, at the end of the day, the end-of-day data of the new system and the end-of-day data of the old system are obtained, and an end-of-day compensation operation is performed based on the end-of-day data of the new system and the end-of-day data of the old system.

[0070] The system switching method proposed in this embodiment, upon receiving a system switching request, performs a traffic switching operation on the first traffic information corresponding to the old system through a traffic system switcher to switch the first traffic information to the new system. Then, during the traffic switching process, the traffic system switcher processes the second traffic information in the first traffic information based on a synchronous communication mechanism and processes the third traffic information in the first traffic information based on an asynchronous communication mechanism. Next, it obtains the traffic result information corresponding to the traffic data in the first traffic information and performs a compensation operation based on the original traffic information corresponding to the traffic result information and the traffic result information. Finally, based on the end-of-day data of the new system and the end-of-day data of the old system, it performs an end-of-day compensation operation. This achieves automated system switching control in high-concurrency scenarios, ensuring business continuity and switching consistency, and supporting thorough business comparison and verification before and after the switch.

[0071] Based on the first embodiment, a second embodiment of the system switching method of the present invention is proposed. In this embodiment, step S101 includes:

[0072] Step S201: When a system switching request is received, the second traffic information corresponding to the old system is routed to obtain the first traffic information;

[0073] Step S202: Perform traffic load switching and routing load switching on the first traffic information to switch the first traffic information to the new system.

[0074] In this embodiment, a system switching request can be triggered by the data synchronization manager. The routing adapter performs routing conversion on the second traffic information corresponding to the old system according to the system switching request to obtain the first traffic information. That is, the uplink messages of different channels corresponding to the system switching request are cleaned and routed to obtain the first traffic information corresponding to the old system. This is to be compatible with the old uplink message interface field information of the channel while shielding the design differences of the external interface field information of the new and old systems, so as to facilitate the downstream traffic system switcher to send traffic in pairs.

[0075] Next, the traffic system switcher performs traffic load switching and routing load switching on the first traffic information to switch the first traffic information to the new system. Further, in one possible implementation, step S202 includes:

[0076] Step S2021: Perform traffic load switching on the first traffic information;

[0077] Step S2022: Perform route load balancing on the whitelist corresponding to the first traffic information;

[0078] Step S2022: Based on the traffic percentage, perform routing load switching on all users corresponding to the first traffic information in sequence until the first traffic information is switched to the new system.

[0079] In this embodiment, the traffic load switching module performs traffic load switching on the first traffic information. Specifically, the traffic load is managed according to the switching process: before the switch, the old system's traffic is 100% and the new system's traffic is 0%; during the switch, both systems have 100% traffic; after the switch, the old system's traffic is 0% and the new system's traffic is 100%.

[0080] Next, the traffic load balancing module performs routing load balancing on the whitelist corresponding to the first traffic information. Specifically, it first performs routing load balancing on the traffic information corresponding to the internal testing whitelist, and then performs routing load balancing on the traffic information corresponding to the internal testing batch list. Then, based on the traffic percentage, it sequentially performs routing load balancing on all users corresponding to the first traffic information until the first traffic information is switched to the new system. For example, if the traffic percentage is 1%, then each time 1% of the first traffic information (1% of all users) is switched to the new system.

[0081] The system switching method proposed in this embodiment performs routing conversion on the second traffic information corresponding to the old system to obtain the first traffic information when a system switching request is received; then, it performs traffic load switching and routing load switching on the first traffic information to switch the first traffic information to the new system. This achieves automated switching control of the system in high-concurrency scenarios, ensuring business continuity and switching consistency.

[0082] Based on the first embodiment, a third embodiment of the system switching method of the present invention is proposed. In this embodiment, step S102 includes:

[0083] Step S301: Call the system corresponding to the actual routing load of the second traffic information through the traffic system switch to obtain the first call result;

[0084] Step S302: Call another system to obtain the second call result;

[0085] Step S303: Return the first call result and obtain traffic result information based on the first call result and the second call result.

[0086] In this embodiment, the traffic system switcher also includes a traffic communication mechanism module. During traffic switching, the traffic communication mechanism module processes the second traffic information in the first traffic information based on a synchronous communication mechanism and processes the third traffic information in the first traffic information based on an asynchronous communication mechanism. The second traffic information consists of business traffic with a strong traffic order (e.g., accounting transaction traffic), and the third traffic information consists of business traffic with a weak traffic order (e.g., accounting query traffic). Therefore, the business types of the strongly related business traffic can be preset, and the second and third traffic information are determined from the first traffic information based on the business types of each traffic information in the first traffic information.

[0087] For each service traffic in the second traffic information, the system corresponding to the actual routing load of that second traffic information is called to obtain a first call result. Then, another system is called to obtain a second call result. In other words, the return result of that service traffic is the call result of the system corresponding to the actual routing load. For example, based on the routing load, system 1 corresponding to the actual routing load is called first. The call result of system 1 is then used to call system 2. After both are processed, the call result of system 1 is finally returned.

[0088] Then, based on the first call result and the second call result, traffic result information is obtained. Specifically, the traffic result information may include traffic result information of the new system and traffic result information of the old system.

[0089] The system switching method proposed in this embodiment calls the system corresponding to the actual routing load of the second traffic information through a traffic system switcher to obtain a first call result; then calls another system to obtain a second call result; then returns the first call result, and obtains traffic result information based on the first call result and the second call result, thereby realizing automated switching control of the system in high-concurrency scenarios and ensuring the continuity of services and the consistency of switching.

[0090] The automated traffic switching control strategy ensures automated switching control between old and new business systems through switching process status control, traffic load mechanism, and traffic communication mechanism. This reduces manual monitoring and intervention, lowers the risks of switching and transformation, and enhances the switching assurance.

[0091] The traffic aspect management mechanism manages switching data in a non-intrusive manner, which improves the automation of switching control and reduces the risk of business switching.

[0092] The switch data monitoring strategy improves the sensitivity of switch management, reduces complexity, identifies strong and weak business data, and enhances the efficiency of switch focus.

[0093] The data compensation strategy fully and completely solves the data inconsistency problem caused by design, network and system mechanism issues between the old and new systems, reduces data quality risks, and provides strong support for the switching of sensitive data business systems such as accounting.

[0094] The end-of-day data monitor compares and monitors the full daily operation results of the old and new systems by statically extracting data, thus compensating for the lack of self-limitation in traffic data monitoring. The end-of-day data monitor differentiates between unique ID and fuzzy ID data monitoring strategies based on the characteristics of the business data.

[0095] Batch compensation obtains raw records from the batch data monitor at the end of the day, then further filters and removes records based on traffic parameters and real-time verification. Compensation is then initiated for the affected list. During the compensation period, customers who trigger traffic transactions receive multiple compensations until complete consistency is achieved or the maximum number of rounds is reached. Due to unforeseen system factors, real-time compensation may not guarantee data consistency for some customer transactions; batch compensation serves as the final guarantee of data consistency, ensuring data consistency before and after the switchover.

[0096] Based on the third embodiment, a fourth embodiment of the system switching method of the present invention is proposed. In this embodiment, step S103 includes:

[0097] Step S401: Based on the traffic result information and the original traffic information, generate traffic profile data, wherein the traffic result information includes the processing results of the old system and the processing results of the new system;

[0098] Step S402: Perform data monitoring based on the traffic cross-section data to obtain monitoring data, and perform compensation operations based on the monitoring data.

[0099] In this embodiment, the traffic aspect manager performs aspect management on the traffic sent by both parties. Based on the traffic result information and the original traffic information, the traffic aspect manager generates traffic aspect data. The traffic result information includes the processing results of the old system and the processing results of the new system, and the traffic aspect data includes the traffic aspect data of the new system and the traffic aspect data of the old system. Specifically, the traffic aspect manager obtains the corresponding original traffic information and traffic result information, generates the same management ID for the same dual-transmission traffic, and obtains traffic aspect data. By using aspects, the intrusion into the original business processing flow is reduced, thereby reducing the business processing risk.

[0100] The data monitor includes a traffic data monitor, which monitors data based on the traffic profile data to obtain monitoring data. The traffic data monitor performs real-time comparison, anomaly recording, and display queries on the traffic profile data. Specifically, data monitoring is divided into strong business data monitoring and weak business data monitoring. For the traffic profile data corresponding to the second traffic information, asynchronous thread processing is used. That is, an asynchronous thread compares the traffic profile data of the new system and the traffic profile data of the old system in the traffic profile data. Based on the comparison results, a general message is assembled. Then, the comparison results are analyzed according to the strategy result analysis mechanism to obtain monitoring data, which is then stored in high-security business data storage to avoid traffic loss. For the traffic profile data corresponding to the third traffic information, an asynchronous queue and distributed caching mechanism are used for processing. First, the traffic profile data of the new system and the traffic profile data of the old system in the traffic profile data are distributed and cached respectively. The cached traffic profile data performs traffic information self-configuration and self-parsing to obtain monitoring data.

[0101] In the traffic profile data, the traffic profile data of the new system and the traffic profile data of the old system are matched by the management ID. The traffic profile data of the new system and the traffic profile data of the old system corresponding to the same management ID are the traffic profile data corresponding to the same traffic information.

[0102] After acquiring the monitoring data, the data correction compensator performs a compensation operation based on the monitoring data. Further, in one possible implementation, step S402 includes:

[0103] Step S4021: Obtain the information to be compensated and the actual routing load corresponding to the information to be compensated based on the monitoring data;

[0104] Step S4022: Based on the actual routing load, determine the uncut traffic information and cut traffic information corresponding to the information to be compensated;

[0105] Step S4023: Compensate the new system based on the uncut traffic information, and compensate the old system based on the cut traffic information.

[0106] In this embodiment, the data compensation of the data correction compensator includes real-time compensation and end-of-day compensation. After acquiring the monitoring data, the data correction compensator performs real-time compensation. Specifically, it acquires the information to be compensated and the actual routing load corresponding to the information to be compensated based on the monitoring data. That is, it acquires and analyzes the records to be compensated based on the monitoring data, and then further checks and judges whether the final state result needs compensation based on the business and system operation strategies to obtain the information to be compensated.

[0107] Next, the data correction compensator determines the uncut traffic information and cut traffic information corresponding to the information to be compensated based on the actual routing load. Then, the data correction compensator compensates the new system based on the uncut traffic information and the old system based on the cut traffic information. Through near real-time intelligent transaction compensation, it reduces data comparison errors, narrows the data comparison monitoring range, increases real-time switching sensitivity, and ensures the consistency of underlying data.

[0108] The system switching method proposed in this embodiment generates traffic profile data based on the traffic result information and the original traffic information. The traffic result information includes the processing results of the old system and the processing results of the new system. Then, data monitoring is performed based on the traffic profile data to obtain monitoring data, and compensation operations are performed based on the monitoring data. Switching data management is achieved in a non-intrusive manner, which improves the automation level of switching control and reduces the switching risk of business. Through near real-time intelligent transaction compensation, data comparison errors are reduced, the data comparison monitoring scope is narrowed, the real-time switching sensitivity is increased, the consistency of underlying data is ensured, and the data quality risk is reduced. This provides strong support for the switching of sensitive data business systems such as accounting.

[0109] Based on the above embodiments, a fifth embodiment of the system switching method of the present invention is proposed. In this embodiment, step S104 includes:

[0110] Step S501: Determine the end-of-day monitoring data based on the end-of-day data of the new system and the end-of-day data of the old system;

[0111] Step S502: Based on the end-of-day monitoring data and compensation configuration information, determine the end-of-day compensation information;

[0112] Step S503: Perform end-of-day compensation operation based on the end-of-day compensation information.

[0113] In this embodiment, the data monitor includes a day-end data monitor. Based on the day-end data of the new system and the day-end data of the old system, the day-end data monitor determines the day-end monitoring data. Specifically, at the end of the day, the day-end data monitor obtains the day-end monitoring data by statically extracting and comparing the full daily operation results data of the new and old systems, thus supplementing the lack of self-limitation in traffic data monitoring. The day-end data monitor distinguishes between unique ID and fuzzy ID data monitoring strategies based on the characteristics of the business data.

[0114] Next, the data compensation of the data correction compensator includes end-of-day compensation, which is a batch compensation of data. The data correction compensator acquires end-of-day monitoring data at the end of the day, and determines end-of-day compensation information based on the end-of-day monitoring data and compensation configuration information. That is, the end-of-day monitoring data is further recorded and filtered through flow parameters and real-time verification using the compensation configuration information to obtain end-of-day compensation information. Then, end-of-day compensation operations are performed based on the end-of-day compensation information, such as data compensation for new systems and / or end-of-day compensation for old systems.

[0115] It should be noted that when the end-of-day compensation operation is completed, the current end-of-day compensation count can also be updated. If the end-of-day compensation count is less than the preset count, the process returns to step S502. When the end-of-day compensation count reaches the preset count, the end-of-day compensation traffic ends, triggering customers of traffic transactions to perform multiple compensations until they are completely consistent or the round limit is reached. Batch compensation serves as the final data consistency guarantee, ensuring that the data is consistent before and after the switch.

[0116] The system switching method proposed in this embodiment determines daily monitoring data based on the daily end-of-day data of the new system and the daily end-of-day data of the old system; then, it determines daily compensation information based on the daily monitoring data and compensation configuration information; and finally, it performs daily compensation operations based on the daily compensation information. The data compensation strategy fully and completely solves the data inconsistency problem caused by design, network and system mechanism reasons between the new and old systems, reduces data quality risks, and provides strong support for the switching of sensitive data business systems such as accounting.

[0117] In addition, this application also proposes a system switching device, referring to Figure 3 The system switching device includes:

[0118] The switching module 10 is used to perform a traffic switching operation on the first traffic information corresponding to the old system through the traffic system switcher when a system switching request is received, so as to switch the first traffic information to the new system;

[0119] The communication module 20 is used to process the second traffic information in the first traffic information based on the synchronous communication mechanism and the third traffic information in the first traffic information based on the asynchronous communication mechanism during the traffic switching process.

[0120] The real-time compensation module 30 is used to perform compensation operations based on the original traffic information corresponding to the traffic data in the first traffic information and the traffic result information after obtaining the traffic result information.

[0121] End-of-day compensation module 40 is used to perform end-of-day compensation operations based on the end-of-day data of the new system and the end-of-day data of the old system.

[0122] The methods executed by the above-mentioned program units can be referred to in the various embodiments of the system switching method of this application, and will not be repeated here.

[0123] Furthermore, this application also proposes a computer-readable storage medium storing a system switching program, which, when executed by a processor, implements the steps of the system switching method described above.

[0124] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.

[0125] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0126] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0127] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.

Claims

1. A system switching method, characterized in that, The system switching method includes the following steps: When a system switching request is received, the traffic system switcher performs a traffic switching operation on the first traffic information corresponding to the old system to switch the first traffic information to the new system. During traffic switching, the traffic system switcher processes the second traffic information in the first traffic information based on a synchronous communication mechanism and processes the third traffic information in the first traffic information based on an asynchronous communication mechanism; the second traffic information includes service traffic with a strong traffic order correlation; the third traffic information includes service traffic with a weak traffic order correlation. After obtaining the traffic result information corresponding to the traffic data in the first traffic information, a compensation operation is performed based on the original traffic information corresponding to the traffic result information and the traffic result information. Based on the end-of-day data of the new system and the end-of-day data of the old system, perform end-of-day compensation operation. The step of obtaining the traffic result information corresponding to the traffic data in the first traffic information, and performing a compensation operation based on the original traffic information corresponding to the traffic result information and the traffic result information includes: Based on the traffic result information and the original traffic information, traffic profile data is generated, wherein the traffic result information includes the processing results of the old system and the processing results of the new system; Data monitoring is performed based on the traffic profile data to obtain monitoring data, and compensation operations are performed based on the monitoring data. In the traffic profile data, the traffic profile data of the new system and the traffic profile data of the old system are matched using the same management ID.

2. The system switching method as described in claim 1, characterized in that, When a system switching request is received, the step of switching the first traffic information corresponding to the old system to the new system through a traffic system switcher includes: When a system switch request is received, the second traffic information corresponding to the old system is routed to obtain the first traffic information; The first traffic information is switched to a new system by performing traffic load switching and routing load switching.

3. The system switching method as described in claim 2, characterized in that, The steps of switching the traffic load and routing load of the first traffic information to switch the first traffic information to the new system include: Perform traffic load switching on the first traffic information; Perform route load balancing on the whitelist corresponding to the first traffic information; Based on the percentage of traffic, all users corresponding to the first traffic information are sequentially subjected to routing load switching until the first traffic information is switched to the new system.

4. The system switching method as described in claim 1, characterized in that, The step of processing the second traffic information in the first traffic information through a traffic system switch based on a synchronous communication mechanism includes: The system corresponding to the actual routing load of the second traffic information is invoked through the traffic system switcher to obtain the first invocation result; Call another system to obtain the result of the second call; Return the result of the first call, and obtain traffic result information based on the result of the first call and the result of the second call.

5. The system switching method as described in claim 1, characterized in that, The steps for performing compensation based on the monitoring data include: Based on the monitoring data, obtain the information to be compensated, and the actual routing load corresponding to the information to be compensated; Based on the actual routing load, determine the uncut traffic information and cut traffic information corresponding to the information to be compensated; The new system is compensated based on the uncut traffic information, and the old system is compensated based on the cut traffic information.

6. The system switching method according to any one of claims 1 to 5, characterized in that, The steps for performing end-of-day compensation based on the end-of-day data of the new system and the end-of-day data of the old system include: Based on the end-of-day data of the new system and the end-of-day data of the old system, determine the end-of-day monitoring data; Based on the end-of-day monitoring data and compensation configuration information, the end-of-day compensation information is determined; Perform end-of-day compensation operations based on the aforementioned end-of-day compensation information.

7. A system switching device, characterized in that, The system switching device includes: The switching module is used to perform a traffic switching operation on the first traffic information corresponding to the old system through the traffic system switcher when a system switching request is received, so as to switch the first traffic information to the new system; The communication module is used to process the second traffic information in the first traffic information based on a synchronous communication mechanism and the third traffic information in the first traffic information based on an asynchronous communication mechanism during the traffic switching process; the second traffic information includes service traffic with strong traffic order correlation; the third traffic information includes service traffic with weak traffic order correlation. The real-time compensation module is used to perform compensation operations based on the original traffic information corresponding to the traffic data in the first traffic information and the traffic result information. The end-of-day compensation module is used to perform end-of-day compensation operations based on the end-of-day data of the new system and the end-of-day data of the old system. The step of obtaining the traffic result information corresponding to the traffic data in the first traffic information, and performing a compensation operation based on the original traffic information corresponding to the traffic result information and the traffic result information includes: Based on the traffic result information and the original traffic information, traffic profile data is generated, wherein the traffic result information includes the processing results of the old system and the processing results of the new system; Data monitoring is performed based on the traffic profile data to obtain monitoring data, and compensation operations are performed based on the monitoring data. In the traffic profile data, the traffic profile data of the new system and the traffic profile data of the old system are matched using the same management ID.

8. A system switching device, characterized in that, The system switching device includes: a memory, a processor, and a system switching program stored in the memory and executable on the processor, wherein when the system switching program is executed by the processor, it implements the steps of the system switching method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a system switching program, which, when executed by a processor, implements the steps of the system switching method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Flow processing method and device, computer equipment and storage medium

    CN111464602A

  • Information system switching method and device, storage medium and computer program product

    CN115495216A

  • Time sequence control method and device for flow playback

    CN116319462A