Intelligent middle station system switching method and related device thereof

By using an intelligent middleware system switching method, which intelligently selects time nodes and compares data based on traffic, the old system is automatically switched to the new system. This solves the problems of time-consuming, labor-intensive, and error-prone manual switching, and achieves efficient and reliable system switching.

CN115344407BActive Publication Date: 2026-02-13PING AN TECH (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210981928.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-16
Publication Date
2026-02-13
Estimated Expiration
2042-08-16

AI Technical Summary

Technical Problem

In a distributed system environment, when transforming an old system into a new one, manually switching the underlying interfaces one by one is time-consuming, labor-intensive, and prone to errors, which reduces the reliability and stability of the system switchover.

Method used

By acquiring multiple traffic flows from the first system to the second system and determining the time points, the target server of the third system is automatically selected, and the target packet data is compared with the source packet data to verify the integrity of the system switch and achieve intelligent switching.

Benefits of technology

It improved the efficiency of system switching, reduced manual operation costs, and enhanced the reliability and stability of system switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115344407B_ABST
    Figure CN115344407B_ABST
Patent Text Reader

Abstract

The application relates to an intelligent middle station system switching method and a related device thereof, which comprises the following steps: acquiring a plurality of first traffics of a first system accessing a second system; determining first time nodes corresponding to the plurality of first traffics according to the plurality of first traffics; automatically selecting a target server of a third system based on the first time nodes, the target server of the third system being correspondingly arranged with a source server of the second system; comparing target message data returned by the target server with source message data returned by the source server to obtain a verification result corresponding to the target server; and determining a switching operation of the first system according to the verification result. The application can improve the switching efficiency between different systems and reduce the labor cost by intelligently selecting the time node of switching the second system to the third system and verifying the integrity of the third system rewriting the second system by comparing the target message data with the source message data.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, in particular to an intelligent middle platform system switching method and related equipment thereof. BACKGROUND

[0002] In related technologies, before developers modify an existing old system, they usually rewrite a set of functions similar to the old system in the background to evaluate the old system and simulate the new system, so as to modify the old system into the new system without affecting the existing production and transaction.

[0003] However, in the process of rewriting the old system, there are multiple implemented underlying interfaces in the old system. Since the old system exposes an interface to the outside world, when accessing the internal part of the old system, a switch is needed to control each underlying interface, and then manual observation is needed, followed by manual configuration of each underlying interface switch, so that the old underlying interface is switched to the new interface.

[0004] In actual application, due to the integration of many system businesses, there may be hundreds of interfaces exposed, which is a huge number. If manual observation is relied on to switch one by one, it not only consumes time and effort, increases development time and cost, but also is prone to errors, which reduces the reliability and stability of system switching. SUMMARY

[0005] Therefore, the present application provides an intelligent middle platform system switching method and related equipment thereof, which can intelligently select a time node for switching the second system to the third system based on traffic, and verify the integrity of the second system rewritten by the third system by comparing target message data with source message data, thereby improving the efficiency of switching between different systems and reducing the cost of manual operation.

[0006] According to an aspect of the present application, an intelligent middle platform system switching method is provided, the middle platform system comprising a first system, a second system and a third system, the second system and the third system each comprising a plurality of servers, the intelligent middle platform system switching method comprising: obtaining a plurality of first traffics of the first system accessing the second system; determining a first time node corresponding to the plurality of first traffics according to the plurality of first traffics; automatically selecting a target server of the third system based on the first time node, the target server of the third system being correspondingly arranged with a source server of the second system; comparing target message data returned by the target server with source message data returned by the source server to obtain a verification result corresponding to the target server; and determining a switching operation of the first system according to the verification result.

[0007] Further, the first system accesses the second system to obtain a plurality of first traffics, comprising: obtaining a preset first time range; dividing a plurality of time nodes corresponding to the first time range according to the first time range; monitoring the access of the first system to the second system in real time at the plurality of time nodes to obtain a plurality of first traffics corresponding to different time nodes.

[0008] Further, the first system accesses the second system to obtain a plurality of first traffics, comprising: obtaining a preset first time range; dividing a plurality of time nodes corresponding to the first time range according to the first time range; monitoring the access of the first system to the second system in real time at the plurality of time nodes to obtain a plurality of first traffics corresponding to different time nodes.

[0009] Further, the first system accesses the second system to obtain a plurality of first traffics, comprising: obtaining a preset first time range; dividing a plurality of time nodes corresponding to the first time range according to the first time range; monitoring the access of the first system to the second system in real time at the plurality of time nodes to obtain a plurality of first traffics corresponding to different time nodes.

[0010] Further, the first system accesses the second system to obtain a plurality of first traffics, comprising: obtaining a preset first time range; dividing a plurality of time nodes corresponding to the first time range according to the first time range; monitoring the access of the first system to the second system in real time at the plurality of time nodes to obtain a plurality of first traffics corresponding to different time nodes.

[0011] Further, the first system accesses the second system to obtain a plurality of first traffics, comprising: obtaining a preset first time range; dividing a plurality of time nodes corresponding to the first time range according to the first time range; monitoring the access of the first system to the second system in real time at the plurality of time nodes to obtain a plurality of first traffics corresponding to different time nodes.

[0012] Further, the first system accesses the second system to obtain a plurality of first traffics, comprising: obtaining a preset first time range; dividing a plurality of time nodes corresponding to the first time range according to the first time range; monitoring the access of the first system to the second system in real time at the plurality of time nodes to obtain a plurality of first traffics corresponding to different time nodes.

[0013] According to another aspect of the present application, a smart middle platform system switching device is provided, which comprises: a first traffic acquisition module, configured to acquire a plurality of first traffics of the first system accessing the second system; a first time node determination module, configured to determine first time nodes corresponding to the plurality of first traffics according to the plurality of first traffics; a server selection module, configured to automatically select a target server of the third system based on the first time nodes, the target server of the third system being arranged correspondingly with a source server of the second system; a comparison module, configured to compare target message data returned by the target server with source message data returned by the source server to obtain a verification result corresponding to the target server; and a system switching module, configured to determine a switching operation of the first system according to the verification result.

[0014] According to another aspect of the present application, a computer readable medium is provided, which stores a computer program, the computer program being executed by a processor to implement the smart middle platform system switching method.

[0015] According to another aspect of the present application, an electronic device is provided, which comprises: one or more processors; and a storage device configured to store one or more programs, the one or more programs being executed by the one or more processors to cause the one or more processors to implement the smart middle platform system switching method.

[0016] By determining first time nodes corresponding to a plurality of first traffics according to the plurality of first traffics, then automatically selecting a target server of the third system based on the first time nodes, then comparing target message data returned by the target server with source message data returned by the source server to obtain a verification result corresponding to the target server, and finally determining a switching operation of the first system according to the verification result, according to aspects of the present application, the time node of switching the second system to the third system is intelligently selected based on traffic, and the integrity of the second system overwritten by the third system is verified by comparing the target message data with the source message data, thereby improving the efficiency of switching between different systems and reducing the cost of manual operation. BRIEF DESCRIPTION OF DRAWINGS

[0017] The technical solutions and other beneficial effects of the present application will become apparent through the following detailed description of the specific embodiments of the present application, combined with the accompanying drawings.

[0018] Figure 1 A flow chart of the smart middle platform system switching method of the embodiments of the present application is shown.

[0019] Figure 2 A block diagram of the smart middle platform system switching device of the embodiments of the present application is shown.

[0020] Figure 3 A structural schematic diagram of an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0021] The technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the scope of protection of the present application.

[0022] In the description of the present application, it should be understood that the terms “center”, “longitudinal”, “lateral”, “length”, “width”, “thickness”, “upper”, “lower”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inner”, “outer”, “clockwise”, “counterclockwise” and the like indicate the orientation or positional relationship shown in the drawings, and are only for the purpose of facilitating the description of the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms “first” and “second” are only for the purpose of description, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the technical features indicated. Therefore, the features defined with “first” and “second” can explicitly or implicitly include one or more of the features. In the description of the present application, the meaning of “a plurality of” is two or more, unless otherwise explicitly specified and limited.

[0023] In the description of the present application, it should be noted that, unless otherwise explicitly specified and limited, the terms “mounting”, “connection”, “connecting” should be understood broadly, for example, can be fixed connection, can also be detachable connection, or integrally connected; can be mechanical connection, can also be electrical connection or can communicate with each other; can be direct connection, or indirect connection through intermediate medium, can be the internal communication of two elements or the interaction relationship between two elements. For a person of ordinary skill in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.

[0024] The following disclosure provides many different embodiments, or examples, for implementing different structures of the present application. For the purpose of simplifying the present application, the components and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present application. In addition, the present application can repeatedly refer to numbers and / or letters in different examples, and such repetition is for the purpose of simplification and clarity, which does not indicate the relationship between the various embodiments and / or settings discussed. In addition, the present application provides examples of various specific processes and materials, but those skilled in the art can realize the application of other processes and / or the use of other materials. In some examples, methods, means, elements and circuits well known to those skilled in the art are not described in detail in order to highlight the main ideas of the present application.

[0025] The present application mainly provides an intelligent middle platform system switching method, the middle platform system includes a first system, a second system and a third system, the second system and the third system both include multiple servers, the intelligent middle platform system switching method includes: obtaining multiple first flows of the first system accessing the second system; determining a first time node corresponding to the multiple first flows according to the multiple first flows; automatically selecting a target server of the third system based on the first time node, the target server of the third system is correspondingly arranged with a source server of the second system; comparing target message data returned by the target server with source message data returned by the source server to obtain a verification result corresponding to the target server; determining a switching operation of the first system according to the verification result.

[0026] By determining a first time node corresponding to the multiple first flows according to the multiple first flows, then automatically selecting a target server of the third system based on the first time node, then comparing target message data returned by the target server with source message data returned by the source server to obtain a verification result corresponding to the target server, and finally determining a switching operation of the first system according to the verification result, the present application can intelligently select the time node of switching the second system to the third system based on the flow, and verify the integrity of the third system overwriting the second system by comparing the target message data with the source message data, improve the efficiency of switching between different systems, and reduce the cost of manual operation.

[0027] Figure 1 A flowchart of the intelligent middle platform system switching method of the embodiment of the present application is shown.

[0028] As Figure 1 shown, the intelligent middle platform system switching method includes:

[0029] Step S1: obtaining multiple first flows of the first system accessing the second system;

[0030] The first system can be implemented as a central processing unit. In the hardware layer, the central processing unit can be a central processing unit in a device such as a mobile phone, a computer, a tablet, a cashier machine, a checkout counter, etc. Of course, the first system can also be implemented by software. In this application, the first system can be used as a global control system to control the process of switching the second system to the third system. It can be understood that the specific implementation of the first system is not limited in this application.

[0031] It is worth noting that the first system can also receive instructions sent by other systems. For example, the first system can receive instructions sent by a channel system. The channel system can access the first system and call the interface in the first system. That is, in this application, the middle platform system can be a flexible architecture that can include other system architectures in addition to the first system, the second system and the third system in order to quickly achieve the target demand. It can be understood that the specific architecture of the middle platform system is not limited in this application.

[0032] Further, the plurality of first traffics of the first system accessing the second system are obtained, comprising:

[0033] Step S11: obtaining a preset first time range;

[0034] The first time range can be set in advance according to the needs. For example, the first time range can be set as 0 to 24 hours. The first time range can also be calculated in other time units, such as minutes, seconds, etc. It can be understood that the first time range is not limited in this application.

[0035] Step S12: dividing a plurality of time nodes corresponding to the first time range according to the first time range;

[0036] In one example, the first time range is 0 to 24 hours. At this time, a time node can be set every hour, that is, the plurality of time nodes can be discrete values with equal intervals.

[0037] Step S13: monitoring the access of the first system to the second system in real time at the plurality of time nodes to obtain a plurality of first traffics corresponding to different time nodes.

[0038] For example, the first time range is 0 to 24 hours, and a time node can be set every hour. Therefore, in the range of 24 hours, 24 first traffics can be detected. Each first traffic can be the access traffic of the first system to the second system detected at the corresponding time node.

[0039] It should be noted that the first traffic can be total traffic of the first system accessing the second system. Since the second system can be a system cluster including multiple servers, when the first system accesses, all servers in the second system can be accessed or part of the servers in the second system can be accessed. Therefore, the first traffic can also be total traffic of the first system accessing part of the servers in the second system.

[0040] Step S2: determining a first time node corresponding to the plurality of first traffics according to the plurality of first traffics;

[0041] In the step S2, the first time node corresponding to the plurality of first traffics is determined according to the plurality of first traffics, including:

[0042] Step S21: sorting the plurality of first traffics to obtain a second traffic, the second traffic being the minimum traffic in the plurality of first traffics;

[0043] In the actual application, the plurality of first traffics can be sorted by using a sorting algorithm such as bubble sort, insertion sort or hill sort, so as to obtain the minimum traffic in the plurality of first traffics, and the minimum traffic is taken as the second traffic. It can be understood that the application does not limit how to sort the plurality of first traffics.

[0044] Step S22: determining a first time node corresponding to the second traffic according to the second traffic.

[0045] That is, the first time node is a time node corresponding to the minimum traffic in the process of the first system accessing the second system.

[0046] Further, the first time node corresponding to the plurality of first traffics is determined according to the plurality of first traffics, further including:

[0047] Step S23: detecting an interface call amount of each server of the second system;

[0048] The second system includes multiple servers, and each server includes at least one access interface. The first system can access each server in the second system through the access interface of the server in the second system. Since each server in the second system can have multiple access interfaces, the interface call amount can be the call amount of all access interfaces in the corresponding server, or the call amount of part of the access interfaces in the corresponding server.

[0049] In the present application, the access interface can be an internal interface of a corresponding server in the second system. The second system can also be provided with an external interface, which can serve as a unified interface of all internal interfaces in the second system. When the first system accesses a certain server in the second system, the external interface of the second system can be accessed first, and then the internal interface of the server. After the first system accesses the internal interface of the server, the first system can call the interface of the server.

[0050] It should be noted that, in the present application, in addition to selecting the preferred switching time node based on the traffic, the first system can also physically compare the interfaces of the second system and the interfaces of the third system. For example, the first system can automatically obtain the interface information of each interface of the second system and the third system at the same time, and the interface information includes URL, method, parameter pairing, and output parameter pairing, etc., and then determine whether the interfaces of the third system completely copy all functions or characteristics of the corresponding interfaces of the second system according to the physical comparison result.

[0051] Step S24: determining the interface call amount of the source server corresponding to the first time node according to the first time node;

[0052] For example, the first time node can be 12 o'clock. At this time node of 12 o'clock, the first traffic of the first system accessing the second system is the smallest. At this time, the calling condition of the first system for the servers in the second system at 12 o'clock can be determined by the first system. If the first system calls only one server at 12 o'clock, the server is taken as the source server; if there are multiple servers called by the first system at 12 o'clock, the calling amount of the multiple servers at 12 o'clock can be calculated respectively, and then the server with the smallest calling amount is taken as the source server.

[0053] Step S25: predicting the first target traffic corresponding to the source server according to the multiple first traffics and the interface call amount of the source server.

[0054] Since the multiple first traffics respectively match the corresponding time nodes, the change of the multiple first traffics reflects the trend or tendency of the access traffic of the first system to the second system. In the present application, the source server with the smallest interface call amount can be determined first, and then the first target traffic corresponding to the source server at a future target time node can be predicted according to the access tendency of the first system to the second system.

[0055] Step S3: automatically selecting a target server of the third system based on the first time node, the target server of the third system being correspondingly arranged with the source server of the second system;

[0056] In the present application, the target server and the source server can be in a one-to-one mapping relationship. The function and structure of the target server can be completely the same as those of the source server, so as to rewrite the source server as the target server, and verify the new system through the target server, thereby switching the second system as the old system to the third system as the new system.

[0057] Among them, automatically selecting a target server of the third system based on the first time node comprises:

[0058] Step S31: determining the target server of the third system corresponding to the first target flow according to the first target flow;

[0059] Among them, the first target flow is the first target flow corresponding to the source server.

[0060] Step S32: inputting a pre-set test flow to the target server of the third system.

[0061] Among them, the test flow can be pre-set and sent in the form of a data packet. The content of the data packet can be arbitrarily set, and the size and sending frequency of the data packet are associated with the size of the test flow. By inputting the pre-set test flow to the target server of the third system, the third system can be tested based on the test flow, facilitating the comparison with the second system in the next step.

[0062] Step S4: comparing the target message data returned by the target server with the source message data returned by the source server to obtain a verification result corresponding to the target server;

[0063] Specifically, the first system can automatically select a target server in the third system. The first system can first input a pre-set test traffic to the target server of the third system. The target server of the third system generates target message data corresponding to the test traffic after receiving the test traffic, and returns the target message data to the first system. Similarly, in the present application, the first system can also first input a pre-set test traffic to the source server of the second system. The source server of the second system generates source message data corresponding to the test traffic after receiving the test traffic, and returns the source message data to the first system. After receiving the target message data returned by the target server and the source message data returned by the source server, the first system can compare the target message data returned by the target server with the source message data returned by the source server to obtain a verification result corresponding to the target server.

[0064] The comparison of the target message data returned by the target server with the source message data returned by the source server to obtain a verification result corresponding to the target server comprises:

[0065] Step S41: cache the target message data returned by the target server and the source message data returned by the source server to a target database.

[0066] By caching the target message data returned by the target server and the source message data returned by the source server to a target database, the comparison speed of the target message data and the source message data can be further accelerated, and the verification efficiency of the third system and the second system can be improved.

[0067] Step S42: in the case that the target message data returned by the target server is consistent with the source message data returned by the source server, the verification result is that the second system and the third system are composite normal.

[0068] In one example, the target message data returned by the target server is in binary form 11, and the source message data returned by the source server is also in binary form 11. At this time, the target message data is consistent with the source message data, indicating that the corresponding interface of the third system is normal for the copy of the second system interface, and further indicating that the second system and the third system are composite normal.

[0069] Step S43: in the case that the target message data returned by the target server is inconsistent with the source message data returned by the source server, the verification result is that the second system and the third system are composite abnormal.

[0070] In one example, the target message data returned by the target server is in binary form 10, and the source message data returned by the source server is also in binary form 01. At this time, the target message data is inconsistent with the source message data, indicating that the corresponding interface of the third system has a rewriting exception for the interface of the second system, and further indicating that the second system and the third system have a composite exception.

[0071] Step S5: determining a switching operation of the first system according to the verification result.

[0072] In one example, the target message data returned by the target server is in binary form 10, and the source message data returned by the source server is also in binary form 01. At this time, the target message data is inconsistent with the source message data, indicating that the corresponding interface of the third system has a rewriting exception for the interface of the second system, and further indicating that the second system and the third system have a composite exception.

[0073] Step S51: determining, by the first system, to switch the second system to the third system in a case where the verification result is that the second system and the third system are composite normal.

[0074] In one example, in a case where the verification result is that the second system and the third system are composite normal, a time node with the least traffic can be determined as a second time node by a traffic selection algorithm, and the second time node can be used as a preferred switching time node. The first system determines to switch the second system to the third system at the second time node. The traffic selection algorithm can refer to steps S1 and S2, and will not be described again.

[0075] Step S52: switching, by the first system, the third system back to the second system in a case where the verification result is that the second system and the third system are composite abnormal.

[0076] In one example, the target message data returned by the target server is in binary form 10, and the source message data returned by the source server is also in binary form 01. At this time, the target message data is inconsistent with the source message data, indicating that the corresponding interface of the third system has a rewriting exception for the interface of the second system, and further indicating that the second system and the third system have a composite exception. At this time, the first system can quickly close the interface of the third system and open the corresponding interface of the second system, thereby switching the third system back to the second system, so as to reduce the risk of failure of the existing system when switching abnormally, and improve the stability and reliability of system switching.

[0077] In summary, the application can select the preferred time node for switching the second system to the third system based on the traffic, can verify the integrity of the third system rewriting the second system by comparing the target message data with the source message data, can improve the switching speed of the traffic interface, can improve the switching efficiency between different systems, and can reduce the labor operation cost.

[0078] Figure 2 A block diagram of the intelligent middle platform system switching device of the embodiment of the application is shown.

[0079] As shown in Figure 2 The intelligent middle platform system switching device 20 of the embodiment of the application can include:

[0080] The first traffic acquisition module 21 is configured to acquire a plurality of first traffics of the first system accessing the second system.

[0081] The first time node determination module 22 is configured to determine a first time node corresponding to the plurality of first traffics according to the plurality of first traffics.

[0082] The server selection module 23 is configured to automatically select a target server of the third system based on the first time node, the target server of the third system being correspondingly arranged with a source server of the second system.

[0083] The comparison module 24 is configured to compare target message data returned by the target server with source message data returned by the source server to obtain a verification result corresponding to the target server.

[0084] The system switching module 25 is configured to determine a switching operation of the first system according to the verification result.

[0085] Further, the first traffic acquisition module includes: a first time range acquisition module configured to acquire a preset first time range; a first time range division module configured to divide a plurality of time nodes corresponding to the first time range according to the first time range; and a first traffic acquisition sub-module configured to monitor the access of the first system to the second system in real time at the plurality of time nodes to obtain a plurality of first traffics corresponding to different time nodes.

[0086] Further, the first time node determination module comprises: a sorting module, configured to sort the plurality of first traffics to obtain a second traffic, the second traffic being the minimum traffic in the plurality of first traffics; and a first time node determination submodule, configured to determine a first time node corresponding to the second traffic according to the second traffic.

[0087] Further, the first time node determination module further comprises: an interface call amount detection module, configured to detect an interface call amount of each server of the second system; an interface call amount determination module, configured to determine an interface call amount of a source server corresponding to the first time node according to the first time node; and a traffic prediction module, configured to predict a first target traffic corresponding to the source server according to the plurality of first traffics and the interface call amount of the source server.

[0088] Further, the server selection module comprises: a target server determination module, configured to determine a target server of the third system corresponding to the first target traffic according to the first target traffic; and a test traffic input module, configured to input a pre-set test traffic to the target server of the third system.

[0089] Further, the comparison module comprises: a cache module, configured to cache target message data returned by the target server and source message data returned by the source server to a target database; a first comparison module, configured to determine that the verification result is that the second system and the third system are composite normal in a case where the target message data returned by the target server is consistent with the source message data returned by the source server; and a second comparison module, configured to determine that the verification result is that the second system and the third system are composite abnormal in a case where the target message data returned by the target server is inconsistent with the source message data returned by the source server.

[0090] Further, the system switching module comprises: a first switching module, configured to determine to switch the second system to the third system through the first system in a case where the verification result is that the second system and the third system are composite normal; and a second switching module, configured to switch the third system back to the second system through the first system in a case where the verification result is that the second system and the third system are composite abnormal.

[0091] In the embodiments of the present application, the intelligent middle platform system switching apparatus can further comprise other modules. It can be understood that the present application does not limit the specific composition of the intelligent middle platform system switching apparatus. For specific details of the intelligent middle platform system switching apparatus, reference can be made to the intelligent middle platform system switching method, and no longer be described in detail.

[0092] Further, the present application provides a computer readable medium, which stores a computer program, and the computer program is executed by a processor to implement the intelligent middle platform system switching method.

[0093] Further, the present application also provides an electronic device, which comprises: one or more processors; a storage device configured to store one or more programs, and the one or more programs, when executed by the one or more processors, enable the one or more processors to implement the intelligent middle platform system switching method.

[0094] Figure 3 A structural schematic diagram of an electronic device of an embodiment of the present application is shown.

[0095] As shown in Figure 3 , the electronic device can be used to implement the intelligent middle platform system switching method. Specifically, the electronic device can include a computer system. It should be noted that, Figure 3 The electronic device shown is only an example, and should not bring any limitation to the functions and use range of the embodiments of the present application.

[0096] As shown in Figure 3 , the computer system includes a central processing unit (CPU) 1801, which can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 1802 or programs loaded from a storage portion 1808 into a random access memory (RAM) 1803, such as the method described in the above embodiments. In the RAM 1803, various programs and data required for system operation are also stored. The CPU 1801, the ROM 1802, and the RAM 1803 are connected to each other through a bus 1804. An input / output (I / O) interface 1805 is also connected to the bus 1804.

[0097] The following components are connected to the I / O interface 1805: an input section 1806 including input devices such as a keyboard and mouse; an output section 1807 including output devices such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage section 1808 including a hard disk; and a communication section 1809 including a network interface card such as a LAN (Local Area Network) card, a modem, and the like. The communication section 1809 performs communication processing via a network such as the Internet. A drive 1810 is also connected to the I / O interface 1805 as necessary. A removable medium 1811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, and the like is attached to the drive 1810 as necessary, so that a computer program read therefrom is installed into the storage section 1808 as necessary.

[0098] In particular, the processes described above with reference to the flowcharts can be implemented as a computer software program according to embodiments of the present application. For example, embodiments of the present application include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing a computer program for executing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network by the communication section 1809, and / or installed from the removable medium 1811. When the computer program is executed by the Central Processing Unit (CPU) 1801, various functions defined in the system of the present application are executed.

[0099] It should be noted that the computer-readable medium in the embodiments of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination thereof. The computer-readable storage medium may, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any combination thereof. More specific examples of the computer-readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present application, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or apparatus. In the present application, the computer-readable signal medium can include a data signal carrying computer-readable computer programs in a baseband or as a part of a carrier wave. Such a propagated data signal can take various forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate or transmit programs for use by or in conjunction with an instruction execution system, device or apparatus. The computer programs contained in the computer-readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired, or the like, or any suitable combination thereof.

[0100] The flowcharts and block diagrams in the drawings illustrate the possible implementation architectures, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In the flowcharts or block diagrams, each block can represent a module, a program segment or a part of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur in different orders than that shown in the drawings. For example, two blocks represented in succession can actually be executed substantially in parallel, and sometimes in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams or flowcharts, and the combination of blocks in the block diagrams or flowcharts, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of special-purpose hardware and computer instructions.

[0101] The units described in the embodiments of the present application can be implemented by software, or can be implemented by hardware, and the units described can also be arranged in a processor. In some cases, the names of the units do not constitute a limitation on the units themselves.

[0102] As another aspect, the present application also provides a computer readable medium, which can be included in the electronic device described in the above embodiments, or can exist independently without being assembled into the electronic device. The computer readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to implement the method described in the above embodiments.

[0103] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, such division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into several modules or units.

[0104] From the above description of the embodiments, those skilled in the art can easily understand that the example embodiments described herein can be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solutions according to the embodiments of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a U disk, a mobile hard disk, etc.) or a network, and includes several instructions to make a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) execute the methods according to the embodiments of the present application.

[0105] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the relevant description of other embodiments.

[0106] The intelligent middle platform system switching method and related device provided by the embodiments of the present application are described in detail above, and the principles and implementation manners of the present application are described by applying specific examples. The above description of the embodiments is only used to help understand the technical solutions and core ideas of the present application; those skilled in the art should understand that they can modify the technical solutions recorded in the above embodiments, or make equivalent replacement for some technical features; and such modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for switching intelligent middle platform system, characterized in that, The middle platform system comprises a first system, a second system and a third system, the second system and the third system each comprise a plurality of servers, the intelligent middle platform system switching method comprises: Obtaining a plurality of first flows of the first system accessing the second system; According to the plurality of first flows, a first time node corresponding to the plurality of first flows is determined; Based on the first time node, a target server of the third system is automatically selected, the target server of the third system is correspondingly arranged with a source server of the second system; The target message data returned by the target server is compared with the source message data returned by the source server, and a verification result corresponding to the target server is obtained; According to the verification result, the switching operation of the first system is determined; Wherein, according to the verification result, the switching operation of the first system is determined, comprising: In the case that the verification result is that the second system and the third system are composite normal, the second system is switched to the third system through the first system; In the case that the verification result is that the second system and the third system are composite abnormal, the third system is switched back to the second system through the first system. 2.The intelligent middle platform system switching method according to claim 1, characterized in that, Obtaining a plurality of first flows of the first system accessing the second system, comprising: Obtaining a preset first time range; According to the first time range, a plurality of time nodes corresponding to the first time range are divided; Real-time monitoring of the access of the first system to the second system is obtained at the plurality of time nodes, and a plurality of first flows corresponding to different time nodes are obtained. 3.The intelligent middle platform system switching method according to claim 1, characterized in that, According to the plurality of first flows, a first time node corresponding to the plurality of first flows is determined, comprising: The plurality of first flows are sorted to obtain a second flow, the second flow is the minimum flow in the plurality of first flows; According to the second flow, a first time node corresponding to the second flow is determined. 4.The intelligent middle platform system switching method according to claim 1, characterized in that, According to the plurality of first flows, a first time node corresponding to the plurality of first flows is determined, further comprising: Detecting the interface call amount of each server of the second system; According to the first time node, the interface call amount of the source server corresponding to the first time node is determined; According to the plurality of first flows and the interface call amount of the source server, a first target flow corresponding to the source server is predicted. 5.The intelligent middle platform system switching method according to claim 4, characterized in that, Based on the first time node, the target server of the third system is automatically selected, comprising: According to the first target flow, a target server of the third system corresponding to the first target flow is determined; The pre-set test flow is input to the target server of the third system. 6.The intelligent middle platform system switching method according to claim 1, characterized in that, The target message data returned by the target server is compared with the source message data returned by the source server, and a verification result corresponding to the target server is obtained, comprising: The target message data returned by the target server and the source message data returned by the source server are cached to a target database; In the case that the target message data returned by the target server is consistent with the source message data returned by the source server, the verification result is that the second system and the third system are composite normal; In a case where the target message data returned by the target server is inconsistent with the source message data returned by the source server, the verification result is a composite abnormality of the second system and the third system.

7. An intelligent broker system switching apparatus, characterized by comprising: The intelligent middle platform system switching device comprises: a first traffic acquisition module configured to acquire a plurality of first traffics of the first system accessing the second system; a first time node determination module configured to determine first time nodes corresponding to the plurality of first traffics according to the plurality of first traffics; a server selection module configured to automatically select a target server of a third system based on the first time nodes, the target server of the third system being correspondingly arranged with a source server of the second system; a comparison module configured to compare target message data returned by the target server with source message data returned by the source server to obtain a verification result corresponding to the target server; a system switching module configured to determine a switching operation of the first system according to the verification result; wherein the system switching module comprises: a first switching module configured to, in a case where the verification result is a composite normality of the second system and the third system, determine, by the first system, to switch the second system to the third system; a second switching module configured to, in a case where the verification result is a composite abnormality of the second system and the third system, switch, by the first system, the third system back to the second system.

8. A computer readable medium having stored thereon a computer program, characterized in that The computer program, when executed by a processor, implements the intelligent middle platform system switching method of any one of claims 1 to 6.

9. An electronic device, comprising: comprises: one or more processors; a storage device configured to store one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement the intelligent middle platform system switching method of any one of claims 1 to 6.

Citation Information

Patent Citations

  • Program debugging method and device, client, storage medium and system

    CN111045918A

  • Middle station data verification notification method and device, computer equipment and storage medium

    CN113259154A