A system interface migration method and device, computer equipment and storage medium

By receiving interface update requests from downstream systems, sending different types of information call requests, comparing feedback fields, and using middleware to analyze the cause of anomalies and control traffic migration, the problem of slow migration speed during interface updates is solved, and efficient interface migration is achieved.

CN116149696BActive Publication Date: 2026-07-07PING AN BANK CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
PING AN BANK CO LTD
Filing Date
2022-09-07
Publication Date
2026-07-07

AI Technical Summary

Technical Problem

In microservice systems, when downstream system interfaces are updated, existing technologies require the separate development of comparison mechanisms and database table models, resulting in slow interface migration speeds and significant manpower costs.

Method used

By receiving interface update requests from downstream systems, sending different types of information call requests, comparing feedback fields before and after the update, using middleware to analyze the reasons for local field anomalies, and sending migration control signals to the state machine when the preset specifications are met, the traffic is migrated to the corrected interface.

Benefits of technology

It improves the migration speed from the old interface to the new interface during interface updates, reduces labor costs, and increases migration efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116149696B_ABST
    Figure CN116149696B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a system interface migration method and device, computer equipment and a storage medium. When an interface update request sent by a downstream system is received, an information calling request is sent to the downstream system in response to the interface update request; feedback fields sent by the downstream system through the updated interface and the interface before the update are received; local fields with different field values are obtained by comparing the feedback fields; an abnormal reason corresponding to the local fields is determined through a middleware, and the abnormal reason is sent to the downstream system, so that the downstream system corrects the updated interface according to the abnormal reason; when the corrected interface meets a preset specification, a first migration control signal is sent to a state machine, so that the state machine migrates traffic located on the interface before the update in an upstream system to the corrected interface, thereby improving the migration speed of migrating the traffic from the interface before the update to the updated interface when the interface is updated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of system interface migration technology, specifically to a system interface migration method, apparatus, computer equipment, and storage medium. Background Technology

[0002] With the rapid development of computer software technology, microservice technology has been widely used in various business areas. Microservice technology modularizes the systems corresponding to various business areas, thereby realizing the interaction between various businesses through system calls. Typically, microservices realize the upstream system's call to the downstream system through interfaces.

[0003] However, when the interfaces provided by the downstream system are updated, in order to ensure that the updated interfaces do not affect the original business, it is necessary to maintain the consistency of the data obtained by the interfaces before and after the update. Therefore, relevant personnel need to develop a separate comparison mechanism for the updated interfaces and configure a database table model to record the comparison results, so that relevant personnel can analyze the recorded comparison results. This will undoubtedly cost a lot of manpower, resulting in a slow migration speed when migrating traffic from the interface before the update to the interface after the update. Summary of the Invention

[0004] This application provides a system interface migration method, apparatus, computer device, and storage medium, which can improve the migration speed of traffic from the interface before the update to the interface after the update when the interface is updated.

[0005] This application provides a system interface migration method, including:

[0006] When an interface update request is received from a downstream system, at least one information call request of a different type is sent to the downstream system in response to the interface update request.

[0007] Receive the information call request from the downstream system and send the feedback fields through the updated interface and the interface before the update respectively;

[0008] By comparing the feedback fields sent by the updated interface and the interface before the update, we can obtain the local fields with different values.

[0009] The middleware analyzes the aforementioned local fields to determine the cause of the anomaly, and sends the cause of the anomaly to the downstream system so that the downstream system can correct the updated interface based on the cause of the anomaly and obtain the corrected interface.

[0010] When the modified interface meets the preset specifications, a first migration control signal is sent to the state machine so that the state machine responds to the first migration control signal to migrate the traffic on the interface before the update in the upstream system to the modified interface.

[0011] Accordingly, embodiments of this application also provide a system interface migration apparatus, including:

[0012] The request sending module is used to send at least one information call request of different types to the downstream system when it receives an interface update request from the downstream system.

[0013] The receiving module is used to receive the feedback fields sent by the downstream system in response to the information call request, through the updated interface and the interface before the update, respectively.

[0014] The comparison module is used to compare the feedback fields sent by the updated interface and the interface before the update to obtain the local fields with different field values;

[0015] The analysis module is used to analyze the aforementioned local fields through middleware, determine the cause of the anomaly corresponding to the aforementioned local fields, and send the cause of the anomaly to the aforementioned downstream system, so that the aforementioned downstream system can correct the aforementioned updated interface according to the cause of the anomaly and obtain the corrected interface.

[0016] The signal sending module is used to send a first migration control signal to the state machine when the modified interface meets the preset specifications, so that the state machine responds to the first migration control signal to migrate the traffic on the interface before the update in the upstream system to the modified interface.

[0017] In some embodiments, the information retrieval request includes the first user order number in the user list, and the system interface migration device further includes a correction module;

[0018] The aforementioned request sending module is also used to, when the aforementioned corrected interface does not conform to the preset specifications, continue to send at least one latest information call request of a different type to the aforementioned downstream system based on the second user order number in the aforementioned user list, wherein the aforementioned second user order number is a user order number that is not in the aforementioned information call request;

[0019] The aforementioned correction module is used to obtain the latest exception reason of the updated interface based on the latest information call request, and send the latest exception reason to the downstream system so that the downstream system can continue to correct the updated interface according to the latest exception reason.

[0020] In some embodiments, the signal sending module is further configured to send a second migration control signal corresponding to the first user order number to the state machine, so that the state machine responds to the second migration control signal to migrate the traffic corresponding to the first user order number on the interface before the update in the upstream system to the corrected interface.

[0021] In some embodiments, the request sending module is further configured to, if a request for a first user order number is received, call the updated interface to send an information call request corresponding to the request information to the downstream system.

[0022] In some embodiments, the comparison module is specifically used for

[0023] The feedback fields sent by the updated interface and the interface before the update are divided into fields according to the field values ​​of the preset dimensions to obtain the local fields corresponding to the updated interface and the local fields corresponding to the interface before the update.

[0024] By comparing each local field corresponding to the updated interface with each local field corresponding to the interface before the update, the local fields whose field values ​​differ between the updated and the interface before the update are obtained.

[0025] In some embodiments, the analysis module described above is specifically used for

[0026] Using the aforementioned middleware, the aforementioned local fields are analyzed asynchronously to obtain the degree of impact of the aforementioned local fields on the interface before the update.

[0027] If the degree of influence is less than the preset standard, then the aforementioned local fields will be excluded.

[0028] In some embodiments, the system interface migration apparatus further includes:

[0029] The acquisition module is used to acquire the number of anomalies corresponding to the aforementioned local fields, generate an anomaly information graph based on the number of anomalies corresponding to the aforementioned local fields, and display the aforementioned anomaly information graph.

[0030] Accordingly, this application also provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes any of the system interface migration methods provided in this application.

[0031] Accordingly, embodiments of this application also provide a storage medium storing multiple instructions adapted for loading by a processor to execute the system interface migration method described above.

[0032] In this embodiment, when an interface update request is received from a downstream system, at least one information call request of a different type is sent to the downstream system in response to the interface update request; feedback fields sent by the downstream system in response to the information call request through the updated interface and the interface before the update are received; the feedback fields sent by the updated interface and the interface before the update are compared to obtain local fields with different values; the local fields are analyzed by middleware to determine the anomaly cause corresponding to the local fields, and the anomaly cause is sent to the downstream system so that the downstream system can correct the updated interface according to the anomaly cause to obtain the corrected interface; when the corrected interface meets the preset specifications, a first migration control signal is sent to the state machine so that the state machine responds to the first migration control signal to migrate the traffic on the interface before the update in the upstream system to the corrected interface. Thus, when the interface is updated, the system automatically compares the feedback fields sent by the updated interface and the interface before the update to obtain local fields with different fields, and then analyzes them through preset middleware to improve the migration speed of traffic from the interface before the update to the interface after the update. Attached Figure Description

[0033] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0034] Figure 1 This is a flowchart illustrating a system interface migration method provided in an embodiment of this application.

[0035] Figure 2 A schematic diagram of the state machine provided in an embodiment of this application.

[0036] Figure 3 This is a structural block diagram of a system interface migration device provided in an embodiment of this application.

[0037] Figure 4 A schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0038] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0039] This application provides a system interface migration method, apparatus, storage medium, and computer device. Specifically, the system interface migration method of this application can be executed by a computer device, which can be a server or a terminal, etc. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal can be a smartphone, desktop computer, laptop, tablet computer, etc., but is not limited to these. The terminal and server can be directly or indirectly connected via wired or wireless communication, which is not limited herein.

[0040] For example, the computer device can be a terminal that, upon receiving an interface update request from a downstream system, responds by sending at least one information call request of a different type to the downstream system; receives feedback fields sent by the downstream system in response to the information call request through both the updated and unupdated interfaces; compares the feedback fields sent by the updated and unupdated interfaces to obtain local fields with different values; analyzes these local fields through middleware to determine the cause of any anomalies, and sends the cause of the anomalies to the downstream system so that the downstream system can correct the updated interface based on the cause of the anomalies, resulting in a corrected interface; when the corrected interface meets a preset specification, sends a first migration control signal to the state machine so that the state machine responds by migrating traffic from the unupdated interface in the upstream system to the corrected interface.

[0041] Based on the above problems, this application provides a first system interface migration method, apparatus, computer equipment, and storage medium, which can improve the migration speed of traffic from the interface before the update to the interface after the update when the interface is updated.

[0042] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the preferred order of the embodiments.

[0043] This application provides a system interface migration method, which can be executed by a terminal or a server. This application example illustrates the system interface migration method executed by a terminal, where the terminal is the upstream system in the system interface migration method.

[0044] Please see Figure 1 , Figure 1 This is a flowchart illustrating a system interface migration method provided in an embodiment of this application. The specific flow of this system interface migration method can be as follows:

[0045] 101. When receiving an interface update request from a downstream system, respond to the interface update request by sending at least one information call request of a different type to the downstream system.

[0046] In this embodiment, the terminal can learn that the interface of the downstream system has been updated by receiving an interface update request sent by the downstream system. The terminal then responds to the interface update request to verify the updated interface of the downstream system. That is, by sending an information call request to the downstream system, the terminal can determine whether there is an error in the calling logic of the updated interface of the downstream system.

[0047] The information retrieval request refers to the information that the terminal currently wants to access, located in a downstream system. The terminal retrieves information from the downstream system through an interface.

[0048] The above types represent different types of information acquisition needs, such as the need to acquire user information or the need to acquire business information for a particular business.

[0049] Understandably, since different comparison results may exist between the feedback fields corresponding to the same request—meaning that not every request will produce the same problem—in this embodiment, the terminal not only sends different types of information retrieval requests, but also sends the same type of information retrieval request multiple times to the downstream system. For example, if the information request is to retrieve user information, the terminal's first information retrieval request can retrieve user information for users A, B, and C, and the terminal's second information retrieval request can retrieve user information for users D, E, and F.

[0050] 102. Receive response information call requests from downstream systems and send feedback fields through the updated interface and the interface before the update, respectively.

[0051] In this embodiment, the downstream system can obtain the feedback field corresponding to the information call request from the downstream system through the logic of the updated interface based on the information call request, and send the feedback field to the terminal; and obtain the feedback field corresponding to the information call request from the downstream system through the logic of the interface before the update, and send the feedback field to the terminal.

[0052] 103. Compare the feedback fields sent by the updated interface and the interface before the update to obtain the local fields with different values.

[0053] In this embodiment, the terminal compares the feedback fields sent by the updated interface and the interface before the update to obtain a comparison result, thereby determining whether the logic of the updated interface and the interface before the update is consistent. By obtaining the local fields with different field values, the terminal analyzes the logical problems of the updated interface.

[0054] Understandably, since the information retrieval request is consistent, the feedback fields of the updated interface should be consistent with those of the interface before the update under standard circumstances. If there are local fields with different values, it indicates that there may be a problem with the logic of the updated interface.

[0055] Specifically, a comparison tool can be created using Java to compare the feedback fields sent by the updated interface and the interface before the update. For example, the Field reflection technology in Java can be used to create the NFTGUtil.compare(Object source, Object target) tool to compare the source object fields and the target object fields, where the source object fields and the target object fields correspond to the feedback fields sent by the updated interface and the interface before the update, respectively.

[0056] In some embodiments, to facilitate data comparison and avoid data omissions, the process of comparing the feedback fields sent by the updated and unupdated interfaces to obtain local fields with different values ​​may include: dividing the feedback fields sent by the updated and unupdated interfaces into fields based on a preset dimension, thus obtaining local fields corresponding to the updated interface and the unupdated interface. Then, each local field corresponding to the updated interface and each local field corresponding to the unupdated interface is compared sequentially to obtain the local fields with different values ​​between the updated and unupdated interfaces. The preset dimension can be set as the minimum dimension of the field, and comparison is performed based on the minimum dimension to prevent data omissions.

[0057] In some embodiments, since there are at least one information retrieval request of different types, and the feedback fields corresponding to the requests may contain multiple local fields with different values, after obtaining the local fields with different values, in order to achieve visualization and data monitoring so that relevant personnel can view or analyze certain data later, this embodiment may further include: obtaining the number of anomalies corresponding to the aforementioned local fields, generating an anomaly information graph based on the number of anomalies corresponding to the aforementioned local fields, and displaying the aforementioned anomaly information graph. Specifically, the number of anomalies corresponding to the aforementioned local fields can be obtained through CAT middleware, and the anomaly information graph generated based on the number of anomalies corresponding to the local fields can be stored accordingly.

[0058] For example, the exception information graph can be a pie chart to clearly show the proportion of local fields with different field values. The exception information graph can also be displayed in the form of a list. When displayed in the form of a list, the list also shows the number of exceptions for each local field with different field values, as well as the field details. The field details include the information call request, that is, which information call request was used to obtain the local field with different field values. The field details also include standard local field information, that is, the information of the corresponding position of the local field in the feedback field of the interface before the update.

[0059] It is understandable that, since there may be different comparison results between the feedback fields corresponding to the same request, that is, not every request will have the same problem, in this embodiment, the terminal will send the same type of information call request to the downstream system multiple times. Therefore, the number of anomalies corresponding to the above local fields is the number of local fields with different values ​​in the comparison results corresponding to each information call request.

[0060] In some embodiments, after a local field with a different field value, a pre-created tracking tool can be used to track and record the local field with the different field value, that is, to put the local field with the different field value into the middleware in real time. The tracking tool mentioned above can be created using the NFTGUtil.printEventContent() method.

[0061] 104. Analyze local fields through middleware, determine the cause of the anomaly corresponding to the local field, and send the cause of the anomaly to the downstream system so that the downstream system can correct the updated interface according to the cause of the anomaly and obtain the corrected interface.

[0062] In this embodiment, the terminal can receive partial fields in real time through preset middleware and analyze these fields. The downstream system can correct the updated interface based on the anomaly reason sent by the terminal to ensure compatibility with problematic areas and prevent the problem from recurring in subsequent response information requests.

[0063] Specifically, the aforementioned middleware can be a CAT middleware, which can perform statistical analysis on local fields asynchronously and record the results using tracking points. The middleware can record the statistical analysis results in HDFS or MySQL. The CAT middleware is independent of the microservice system and features an efficient asynchronous approach, reducing the resource consumption of the microservice system. By inputting the comparison results into the CAT middleware, the CPU, I / O, JVM, memory, and database resources required are significantly less than developing a separate comparison mechanism within the microservice system.

[0064] In some embodiments, an exception cause set can be pre-set in the middleware. The exception cause set includes exception causes and exception fields corresponding to the exception causes. When the middleware analyzes a local field, it can determine the exception field that is similar to the local field from the exception cause set, thereby determining the exception cause corresponding to the exception field as the exception cause corresponding to the local field.

[0065] In some embodiments, the analysis of local fields through middleware includes: analyzing local fields asynchronously through middleware to obtain the degree of influence of local fields on the interface before the update; if the degree of influence is less than a preset standard degree, it means that the local field does not affect the substantive content required for the information call request of the feedback field, and the local field is excluded, that is, there is no need to analyze and correct the local field with a small influence.

[0066] 105. When the corrected interface meets the preset specifications, a first migration control signal is sent to the state machine so that the state machine responds to the first migration control signal to migrate the traffic on the interface before the update in the upstream system to the corrected interface.

[0067] The aforementioned preset specifications can be set according to requirements. For example, it can be set that the number of local fields with different field values ​​corresponding to the information call request is less than a preset threshold, or that the impact of local fields with different field values ​​corresponding to the information call request on the interface before the update is less than a preset level.

[0068] In this embodiment, to facilitate control, a state machine can be integrated into the terminal to control the traffic migration between the interface before and after the update. Different states can be set in the state machine to control the overall traffic migration process. Specifically, when the corrected interface meets the preset specifications, it indicates that the updated and corrected interface of the downstream system can meet the processing logic required by the business. Therefore, a first migration control signal can be sent to the state machine. This first migration control signal is equivalent to migrating all traffic to the updated and corrected interface, causing the state machine to enter the full traffic switching stage. This stage indicates that there is no need to obtain feedback fields for comparison, thereby migrating the traffic on the interface before the update in the upstream system to the corrected interface.

[0069] In some embodiments, the state machine can be further configured with other states to gradually migrate traffic from the upstream system located on the interface before the update to the corrected interface. Specifically, this may include: before responding to the first migration signal, the state machine sets a shutdown phase, a comparison phase, and a partial traffic-cutting phase. The shutdown phase corresponds to the current state being in the original state, i.e., before the interface update or before receiving the interface update request. In this phase, traffic in the upstream system is located on the interface before the update. The comparison phase corresponds to the current state being in the state before the updated interface is corrected. In this phase, traffic in the upstream system is still located on the interface before the update. The partial traffic-cutting phase corresponds to the current state being in the state after the updated interface is corrected, but the corrected interface does not conform to a preset specification. In this phase, some traffic in the upstream system is located on the updated interface, while other traffic remains on the interface before the update. Figure 2 As shown, by sequentially going through the shutdown phase, comparison phase, partial traffic cut-off phase, and full traffic cut-off phase, the traffic on the interface in the upstream system before the update is finally migrated to the corrected interface.

[0070] In some embodiments, the comparison can be performed by obtaining the corresponding fields based on the user order number. For example, the information retrieval request mentioned above includes the first user order number in the user list. Before sending the first migration control signal to the state machine, the corrected interface needs to be judged. If the corrected interface does not meet the preset specifications, the updated interface needs to be corrected.

[0071] The above-mentioned further modification of the updated interface may specifically include: based on the second user order number in the user list, continuing to send at least one latest information call request of different types to the downstream system. The second user order number is a user order number that is not in the information call request, that is, continuing to send the latest information call request based on the user order number in the user list that has not been used by the information call request; thereby, based on the latest information call request, obtaining the local fields whose field values ​​are different between the updated interface and the interface before the update, and then obtaining the latest exception reason of the updated interface, and sending the latest exception reason to the downstream system so that the downstream system can continue to modify the updated interface according to the latest exception reason.

[0072] In this embodiment of the invention, "first" and "second" are merely used to distinguish user order numbers and have no other special meaning.

[0073] Specifically, the aforementioned user list can be set according to the needs of relevant staff. For example, it can be a list composed of user order numbers selected from a list containing all user order numbers or a user whitelist according to preset rules. User order numbers can be selected from this list using a regular expression algorithm. The rules can be set according to the needs of relevant staff, for example, selecting user order numbers whose last digit is 1 or 2.

[0074] In some embodiments, during the process of continuing to correct the updated interface, the state machine in the upstream system may be in a partial traffic transfer phase. That is, after obtaining the corrected interface, it may further include: sending a second migration control signal corresponding to the first user order number to the state machine. The second migration control signal is equivalent to migrating part of the traffic to the updated and corrected interface. This part of the traffic is the traffic corresponding to the first user order number, that is, the user order number that has been verified, so that the state machine responds to the second migration control signal to migrate the traffic corresponding to the first user order number on the interface before the update in the upstream system to the corrected interface.

[0075] In this embodiment of the invention, "first" and "second" are merely used to distinguish migration control signals and have no other special meaning.

[0076] In some embodiments, after sending the second migration control signal corresponding to the first user order number to the state machine, the method further includes: if a request information about the first user order number is received, it indicates that the upstream system needs to call the corresponding information about the first user order number to the downstream system. Since the traffic corresponding to the first user order number has been migrated from the state machine to the updated interface, the updated interface is called to send the information call request corresponding to the request information to the downstream system.

[0077] This application discloses a system interface migration method, which includes: when receiving an interface update request sent by a downstream system, responding to the interface update request by sending at least one information call request of different types to the downstream system; receiving feedback fields sent by the downstream system in response to the information call request through the updated interface and the interface before the update; comparing the feedback fields sent by the updated interface and the interface before the update to obtain local fields with different values; analyzing the local fields through middleware to determine the anomaly cause corresponding to the local fields, and sending the anomaly cause to the downstream system so that the downstream system can correct the updated interface according to the anomaly cause to obtain the corrected interface; when the corrected interface meets the preset specifications, sending a first migration control signal to the state machine so that the state machine responds to the first migration control signal to migrate the traffic on the interface before the update in the upstream system to the corrected interface. In this way, the migration speed of traffic from the interface before the update to the interface after the update can be improved when the interface is updated.

[0078] To facilitate better implementation of the system interface migration method provided in this application, this application also provides a system interface migration apparatus based on the above-described system interface migration method. The meanings of the terms used are the same as in the above-described system interface migration method, and specific implementation details can be found in the descriptions within the method embodiments.

[0079] Please see Figure 3 , Figure 3 A structural block diagram of a system interface migration device provided in this application embodiment, the device comprising:

[0080] The request sending module 301 is used to send at least one information call request of different types to the downstream system when it receives an interface update request sent by the downstream system.

[0081] The receiving module 302 is used to receive the feedback fields sent by the downstream system in response to the information call request through the updated interface and the interface before the update, respectively.

[0082] The comparison module 303 is used to compare the feedback fields sent by the updated interface and the interface before the update to obtain the local fields with different field values.

[0083] Analysis module 304 is used to analyze the above-mentioned local fields through middleware, determine the abnormal reasons corresponding to the above-mentioned local fields, and send the above-mentioned abnormal reasons to the downstream system so that the downstream system can correct the above-mentioned updated interface according to the above-mentioned abnormal reasons and obtain the corrected interface.

[0084] The signal sending module 305 is used to send a first migration control signal to the state machine when the modified interface meets the preset specifications, so that the state machine responds to the first migration control signal to migrate the traffic on the interface before the update in the upstream system to the modified interface.

[0085] In some embodiments, the information retrieval request includes the first user order number in the user list, and the system interface migration device further includes a correction module;

[0086] The aforementioned request sending module 301 is further configured to, when the aforementioned corrected interface does not conform to the preset specifications, continue to send at least one latest information call request of a different type to the aforementioned downstream system based on the second user order number in the aforementioned user list, wherein the aforementioned second user order number is a user order number not in the aforementioned information call request;

[0087] The aforementioned correction module is used to obtain the latest exception reason of the updated interface based on the latest information call request, and send the latest exception reason to the downstream system so that the downstream system can continue to correct the updated interface according to the latest exception reason.

[0088] In some embodiments, the signal sending module 305 is further configured to send a second migration control signal corresponding to the first user order number to the state machine, so that the state machine responds to the second migration control signal to migrate the traffic corresponding to the first user order number on the interface before the update in the upstream system to the corrected interface.

[0089] In some embodiments, the request sending module 301 is further configured to, if a request for a first user order number is received, call the updated interface to send an information call request corresponding to the request information to the downstream system.

[0090] In some embodiments, the comparison module 303 is specifically used for

[0091] The feedback fields sent by the updated interface and the interface before the update are divided into fields according to the field values ​​of the preset dimensions to obtain the local fields corresponding to the updated interface and the local fields corresponding to the interface before the update.

[0092] By comparing each local field corresponding to the updated interface with each local field corresponding to the interface before the update, the local fields whose field values ​​differ between the updated and the interface before the update are obtained.

[0093] In some embodiments, the analysis module 304 is specifically used for

[0094] Using the aforementioned middleware, the aforementioned local fields are analyzed asynchronously to obtain the degree of impact of the aforementioned local fields on the interface before the update.

[0095] If the degree of influence is less than the preset standard, then the aforementioned local fields will be excluded.

[0096] In some embodiments, the system interface migration apparatus further includes:

[0097] The acquisition module is used to acquire the number of anomalies corresponding to the aforementioned local fields, generate an anomaly information graph based on the number of anomalies corresponding to the aforementioned local fields, and display the aforementioned anomaly information graph.

[0098] This application discloses a system interface migration device. A request sending module 301, upon receiving an interface update request from a downstream system, sends at least one information call request of a different type to the downstream system in response to the interface update request. A receiving module 302 receives feedback fields sent by the downstream system in response to the information call request, using both the updated and unupdated interfaces. A comparison module 303 compares the feedback fields sent by the updated and unupdated interfaces to obtain local fields with different values. An analysis module 304 analyzes the local fields using middleware to determine the corresponding anomaly causes and sends these anomaly causes to the downstream system, enabling the downstream system to correct the updated interface based on the anomaly causes, resulting in a corrected interface. A signal sending module 305 sends a first migration control signal to a state machine when the corrected interface meets preset specifications, causing the state machine to migrate traffic from the unupdated interface in the upstream system to the corrected interface in response to the first migration control signal. This improves the migration speed of traffic from the unupdated interface to the updated interface when an interface update occurs.

[0099] Accordingly, embodiments of this application also provide a computer device, which can be a terminal. For example... Figure 4 As shown, Figure 4 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. The computer device 400 includes a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, and a computer program stored on the memory 402 and executable on the processor. The processor 401 and the memory 402 are electrically connected. Those skilled in the art will understand that the computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0100] The processor 401 is the control center of the computer device 400. It connects various parts of the computer device 400 through various interfaces and lines. By running or loading software programs and / or modules stored in the memory 402, and calling data stored in the memory 402, it performs various functions of the computer device 400 and processes data, thereby monitoring the computer device 400 as a whole.

[0101] In this embodiment, the processor 401 in the computer device 400 loads the instructions corresponding to the processes of one or more applications into the memory 402 according to the following steps, and the processor 401 runs the applications stored in the memory 402 to achieve various functions:

[0102] When an interface update request is received from a downstream system, at least one information call request of a different type is sent to the downstream system in response to the interface update request.

[0103] Receive the information call request from the downstream system and send the feedback fields through the updated interface and the interface before the update respectively;

[0104] By comparing the feedback fields sent by the updated interface and the interface before the update, we can obtain the local fields with different values.

[0105] The middleware analyzes the aforementioned local fields to determine the cause of the anomaly, and sends the cause of the anomaly to the downstream system so that the downstream system can correct the updated interface based on the cause of the anomaly and obtain the corrected interface.

[0106] When the modified interface meets the preset specifications, a first migration control signal is sent to the state machine so that the state machine responds to the first migration control signal to migrate the traffic on the interface before the update in the upstream system to the modified interface.

[0107] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0108] Optional, such as Figure 4 As shown, the computer device 400 also includes: a touch screen display 403, a radio frequency circuit 404, an audio circuit 405, an input unit 406, and a power supply 407. The processor 401 is electrically connected to the touch screen display 403, the radio frequency circuit 404, the audio circuit 405, the input unit 406, and the power supply 407. Those skilled in the art will understand that... Figure 4 The computer device structure shown does not constitute a limitation on the computer device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0109] The touch display screen 403 can be used to display a graphical user interface (GUI) and receive operation commands generated by the user interacting with the GUI. The touch display screen 403 may include a display panel and a touch panel. The display panel can be used to display messages input by the user or messages provided to the user, as well as various graphical user interfaces of the computer device. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. Optionally, the display panel can be configured using a liquid crystal display (LCD), organic light-emitting diode (OLED), or other similar devices. The touch panel can be used to collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel), generate corresponding operation commands, and execute the corresponding program according to the operation commands. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch location and the signal generated by the touch operation, transmitting the signal to the touch controller. The touch controller receives the touch message from the touch detection device, converts it into touch point coordinates, and sends it to the processor 401. It can also receive and execute commands from the processor 401. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it transmits the information to the processor 401 to determine the type of touch event. Subsequently, the processor 401 provides corresponding visual output on the display panel based on the type of touch event. In this embodiment, the touch panel and the display panel can be integrated into the touch display screen 403 to achieve input and output functions. However, in some embodiments, the touch panel and the touch display screen 403 can be implemented as two independent components to achieve input and output functions. That is, the touch display screen 403 can also be used as part of the input unit 406 to achieve input functions.

[0110] The radio frequency circuit 404 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other computer devices, and to transmit and receive signals with network devices or other computer devices.

[0111] Audio circuitry 405 can be used to provide an audio interface between a user and a computer device via a speaker and a microphone. Audio circuitry 405 can convert received audio data into electrical signals and transmit them to the speaker, where the speaker converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuitry 405, converted back into audio data, and then processed by processor 401 before being transmitted via radio frequency circuitry 404 to, for example, another computer device, or output to memory 402 for further processing. Audio circuitry 405 may also include an earphone jack to facilitate communication between peripheral headphones and the computer device.

[0112] The input unit 406 can be used to receive input numbers, character messages or user characteristic messages (such as fingerprints, iris, facial messages, etc.), and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0113] Power supply 407 is used to supply power to various components of computer device 400. Optionally, power supply 407 can be logically connected to processor 401 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. Power supply 407 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0114] although Figure 4 As not shown in the diagram, computer equipment 400 may also include a camera, sensor, wireless fidelity module, Bluetooth module, etc., which will not be described in detail here.

[0115] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0116] As can be seen from the above, the computer device provided in this embodiment, when receiving an interface update request sent by a downstream system, responds to the interface update request by sending at least one information call request of different types to the downstream system; receives feedback fields sent by the downstream system in response to the information call request through the updated interface and the interface before the update; compares the feedback fields sent by the updated interface and the interface before the update through middleware to obtain local fields with different field values; analyzes the local fields through middleware to determine the anomaly cause corresponding to the local fields, and sends the anomaly cause to the downstream system so that the downstream system can correct the updated interface according to the anomaly cause to obtain the corrected interface; when the corrected interface meets the preset specifications, sends a first migration control signal to the state machine so that the state machine responds to the first migration control signal to migrate the traffic in the upstream system located on the interface before the update to the corrected interface.

[0117] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0118] Therefore, embodiments of this application provide a computer-readable storage medium storing a plurality of computer programs that can be loaded by a processor to execute steps in any of the system interface migration methods provided in embodiments of this application. For example, the computer program can execute the following steps:

[0119] When an interface update request is received from a downstream system, at least one information call request of a different type is sent to the downstream system in response to the interface update request.

[0120] Receive the information call request from the downstream system and send the feedback fields through the updated interface and the interface before the update respectively;

[0121] By comparing the feedback fields sent by the updated interface and the interface before the update using middleware, the local fields with different field values ​​are obtained.

[0122] The middleware analyzes the aforementioned local fields to determine the cause of the anomaly, and sends the cause of the anomaly to the downstream system so that the downstream system can correct the updated interface based on the cause of the anomaly and obtain the corrected interface.

[0123] When the modified interface meets the preset specifications, a first migration control signal is sent to the state machine so that the state machine responds to the first migration control signal to migrate the traffic on the interface before the update in the upstream system to the modified interface.

[0124] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0125] The storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0126] Since the computer program stored in the storage medium can execute the steps in any of the system interface migration methods provided in the embodiments of this application, the beneficial effects that any of the system interface migration methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.

[0127] The above provides a detailed description of a system interface migration method, apparatus, computer device, and storage medium provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A system interface migration method, characterized in that, The method includes: When an interface update request is received from a downstream system, at least one information call request of a different type is sent to the downstream system in response to the interface update request. Receive the feedback fields sent by the downstream system in response to the information call request, through the updated interface and the interface before the update, respectively; By comparing the feedback fields sent by the updated interface and the interface before the update, the local fields with different field values ​​are obtained; The middleware analyzes the local field, determines the abnormal reason corresponding to the local field from the abnormal reason set set in the middleware, and sends the abnormal reason to the downstream system so that the downstream system can correct the updated interface according to the abnormal reason and obtain the corrected interface. When the corrected interface meets the preset specifications, a first migration control signal is sent to the state machine so that the state machine responds to the first migration control signal to migrate the traffic on the interface before the update in the upstream system to the corrected interface. The set of abnormal causes includes abnormal causes and abnormal fields corresponding to the abnormal causes. Determining the abnormal cause corresponding to the local field includes: determining the abnormal cause corresponding to an abnormal field that is similar to the local field. The analysis of the local fields via middleware includes: The middleware is used to analyze the local fields asynchronously to obtain the degree of influence of the local fields on the interface before the update. If the degree of influence is less than the preset standard degree, then the local field will be excluded.

2. The method according to claim 1, characterized in that, The information retrieval request includes the first user's order number from the user list, and before sending the first transition control signal to the state machine, it also includes: When the corrected interface does not meet the preset specifications, based on the second user order number in the user list, at least one latest information call request of different types is sent to the downstream system. The second user order number is a user order number that is not in the information call request. Based on the latest information call request, the latest exception reason of the updated interface is obtained, and the latest exception reason is sent to the downstream system so that the downstream system can continue to correct the updated interface according to the latest exception reason.

3. The method according to claim 2, characterized in that, After obtaining the revised interface, it also includes: Send a second migration control signal corresponding to the first user order number to the state machine, so that the state machine responds to the second migration control signal to migrate the traffic corresponding to the first user order number on the interface before the update in the upstream system to the corrected interface.

4. The method according to claim 3, characterized in that, After sending the second migration control signal corresponding to the first user order number to the state machine, the method further includes: If a request for the first user's order number is received, the updated interface is invoked to send the information retrieval request corresponding to the request to the downstream system.

5. The method according to claim 1, characterized in that, The comparison of the feedback fields sent by the updated interface and the interface before the update yields local fields with different values, including: The feedback fields sent by the updated interface and the interface before the update are divided into fields according to the field values ​​of the preset dimensions to obtain the local fields corresponding to the updated interface and the local fields corresponding to the interface before the update. The local fields corresponding to the updated interface are compared with the local fields corresponding to the interface before the update in turn to obtain the local fields whose field values ​​are different between the updated interface and the interface before the update.

6. The method according to any one of claims 1 to 5, characterized in that, After obtaining the local fields with different field values, it also includes: Obtain the number of anomalies corresponding to the local field, generate an anomaly information graph based on the number of anomalies corresponding to the local field, and display the anomaly information graph.

7. A system interface migration device, characterized in that, The device includes: The request sending module is used to send at least one information call request of different types to the downstream system in response to the interface update request when it receives an interface update request sent by the downstream system. The receiving module is used to receive the feedback fields sent by the downstream system in response to the information call request, through the updated interface and the interface before the update, respectively. The comparison module is used to compare the feedback fields sent by the updated interface and the interface before the update to obtain the local fields with different field values; The analysis module is used to analyze the local field through middleware, determine the abnormal reason corresponding to the local field from the abnormal reason set set in the middleware, and send the abnormal reason to the downstream system so that the downstream system can correct the updated interface according to the abnormal reason to obtain the corrected interface. The signal sending module is used to send a first migration control signal to the state machine when the corrected interface meets the preset specifications, so that the state machine responds to the first migration control signal to migrate the traffic on the interface before the update in the upstream system to the corrected interface. The set of abnormal causes includes abnormal causes and abnormal fields corresponding to the abnormal causes. Determining the abnormal cause corresponding to the local field includes: determining the abnormal cause corresponding to an abnormal field that is similar to the local field. The analysis of the local fields via middleware includes: The middleware is used to analyze the local fields asynchronously to obtain the degree of influence of the local fields on the interface before the update. If the degree of influence is less than the preset standard degree, then the local field will be excluded.

8. A computer device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor, when executing the program, implements the system interface migration method as described in any one of claims 1 to 6.

9. A storage medium, characterized in that, The storage medium stores multiple instructions adapted for loading by a processor to execute the system interface migration method according to any one of claims 1 to 6.