Multi-lane isolation test environment construction method and device
By building a multi-lane isolation test environment, using isolation marks to distinguish and forward request packets, the problems of environmental use conflicts, imbalances and limited resources during parallel testing in traditional test environments are solved, and resource utilization and allocation flexibility are improved.
Patent Information
- Application Number
- CN202510148895.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-11
- Publication Date
- 2025-05-30
AI Technical Summary
When traditional testing environments support multi-version parallel testing, there are problems such as environmental conflicts, unbalanced environmental usage and limited environmental resources, resulting in low resource utilization, frequent conflicts and poor resource allocation flexibility.
By building a multi-lane isolation test environment, using isolation marks to distinguish and forward requests in request messages, ensuring that request messages are tested in an isolated environment and avoid conflicts with the backbone environment.
It improves the utilization rate of environmental resources, reduces environmental conflicts and unbalanced environmental use problems, and ensures flexible allocation and efficient use of resources.
Smart Images

Figure CN120075110A_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of computer technology, and in particular, to a method and device for constructing a multi-lane isolated test environment. Background Art
[0002] The traditional test environment adopts an operation mode that uses different sets to support different usage requirements. It is a bit inadequate in supporting parallel testing of multiple versions, mainly manifested in:
[0003] 1) Environmental usage conflicts: The ideal joint debugging test environment for different versions is to have a separate test environment for each version without being affected by other requirements. However, currently, multiple versions of multiple systems may conduct joint debugging tests in the same test environment at the same time, and conflicts in the usage of the environment set by different versions need to be continuously coordinated during the test process.
[0004] 2) Unbalanced environmental usage: Due to different positioning of the environment sets, when the test environment serves as the main front for joint debugging tests, there are more test requirements and environmental usage conflicts, and the environmental usage is overly saturated. At the same time, some test environments also serve as auxiliary fronts for joint debugging tests, and there may be a tidal phenomenon in the usage of these test environments at this time; resulting in unbalanced usage of different environment sets.
[0005] 3) Limited environmental resources: Sufficient environmental resources are the most direct means to alleviate environmental usage conflicts or environmental usage imbalances. However, in actual situations, environmental resources are often limited. Cost reduction and efficiency improvement are the key goals of cost control in the test environment operation mode, and environmental operators need to flexibly allocate limited resources to support a wider range of environmental usage requirements.
[0006] Therefore, there is an urgent need for a method for constructing a multi-lane isolated test environment to change the operation mode of the traditional test environment for joint debugging tests in the same environment, so as to improve the utilization rate of environmental resources and reduce the problems of environmental usage conflicts and unbalanced environmental usage. Summary of the Invention
[0007] In view of the current test environment adopting an operation mode that uses different sets to support different usage requirements, and there are problems such as environmental usage conflicts, unbalanced environmental usage, and limited environmental resources in supporting parallel testing of multiple versions, this solution is proposed to overcome the above problems or at least partially solve the above problems.
[0008] On the one hand, the purpose of some embodiments of this specification is to provide a method for constructing a multi-lane isolated test environment, and the method includes:
[0009] Obtain a request message initiated by the first system;
[0010] Add a first isolation mark to the request message;
[0011] Route a request message with a first isolation mark from a first system to a second system;
[0012] The second system receives and processes the request message to output an outbound message, and adds a second isolation mark to the outbound message of a specified type;
[0013] Route the outbound message with the second isolation mark from the second system to a third system so that the request message is tested in an isolated environment;
[0014] Wherein, the isolated environment at least includes a first system and a second system, and the isolated environment processes the request message to be processed in parallel with the backbone environment.
[0015] Further, adding the first isolation mark to the request message includes:
[0016] Detect whether there is an isolation environment variable in the first system;
[0017] If it exists, add a first isolation mark to the request header of the request message.
[0018] Further, the value of the isolation environment variable is configured as a preset separate deployment isolation environment number.
[0019] Further, the second system receives and processes the request message to output an outbound message, and adds a second isolation mark to the outbound message of a specified type, including:
[0020] The second system receives the request message;
[0021] Process the request message to obtain a corresponding outbound message;
[0022] Judge whether the request message has the first isolation mark;
[0023] If it has the first isolation mark, determine the target outbound message corresponding to the request message with the first isolation mark in the outbound message, and add a second isolation mark to the target outbound message.
[0024] Further, judging whether the request message has the first isolation mark further includes:
[0025] The second system judges whether both the first isolation mark and the global trace code in the request message exist and have valid values;
[0026] If both exist and have valid values, determine the separate deployment isolation environment number corresponding to the first isolation mark, and record the corresponding separate deployment isolation environment number and the global trace code in the isolation mark log.
[0027] Further, if there is the first isolation mark, determine a target outbound message corresponding to a request message with the first isolation mark in the outbound message, and add a second isolation mark to the target outbound message. Further comprising:
[0028] Before the target outbound message obtained by processing through the second system goes out, obtain the separately deployed isolation environment number and the global tracking code corresponding to the target outbound message by reading the isolation mark log;
[0029] Encapsulate the second isolation mark and the global tracking code into the target outbound message.
[0030] Further, both the first system and the second system belong to separately deployed isolation environments, and the third system reuses the backbone environment.
[0031] Further, further comprising:
[0032] Use a preset routing mechanism to perform label-based routing on the request message with the first isolation mark and / or the outbound message with the second isolation mark.
[0033] On the other hand, some embodiments of this specification also provide a multi-lane isolation test environment construction device, and the device includes:
[0034] A receiving module, configured to obtain a request message initiated by the first system;
[0035] A first isolation module, configured to add a first isolation mark to the request message;
[0036] A first routing module, configured to route the request message with the first isolation mark from the first system to the second system;
[0037] A second isolation module, configured to receive and process the request message by the second system to output an outbound message, and add a second isolation mark to the outbound message of a specified type;
[0038] A second routing module, configured to route the outbound message with the second isolation mark from the second system to the third system, so that the request message is tested in an isolation environment;
[0039] Wherein, the isolation environment at least includes the first system and the second system, and the isolation environment and the backbone environment process the request messages to be processed in parallel.
[0040] On the other hand, some embodiments of this specification also provide a computer device, including a memory, a processor, and a computer program stored on the memory. When the computer program is run by the processor, it executes the instructions of the above method.
[0041] On the other hand, some embodiments of this specification also provide a computer storage medium, on which a computer program is stored. When the computer program is run by a processor of a computer device, it executes the instructions of the above method.
[0042] On the other hand, some embodiments of this specification also provide a computer program product, which includes a computer program. When the computer program is run by a processor of a computer device, it executes the instructions of the above method.
[0043] One or more technical solutions provided by some embodiments of this specification have at least the following technical effects:
[0044] The embodiments of this specification construct an isolated environment different from the backbone environment, enabling the isolated environment and the backbone environment to process the request messages to be processed in parallel. When the request message is processed through the transaction link, the first system in the isolated environment first obtains the request message initiated by the first system and adds a first isolation mark to the request message so that the request message can be distinguished and forwarded to the second system. The second system processes the received request message, outputs an outbound message, and adds a second isolation mark to the outbound message of a specified type, thereby routing the outbound message with the second isolation mark from the second system to the third system, enabling the request message to be tested in the isolated environment as needed and without affecting the normal operation of the backbone environment, thus avoiding the problem of usage environment conflicts. Allocating the request message to the isolated environment as needed can also reduce the problems of uneven usage of the environment and poor flexibility in allocating environmental resources.
[0045] The above description is only an overview of the technical solutions of some embodiments of this specification. In order to be able to more clearly understand the technical means of some embodiments of this specification, it can be implemented in accordance with the content of the specification. And in order to make the above and other purposes, features, and advantages of some embodiments of this specification more obvious and understandable, the following specifically presents the specific implementation manners of some embodiments of this specification. Description of the Drawings
[0046] In order to more clearly illustrate some embodiments of this specification or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings described below are only some embodiments recorded in this specification. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings. In the drawings:
[0047] Figure 1 Shows a schematic diagram of an implementation system of a method for constructing a multi-lane isolation test environment in some embodiments of this specification;
[0048] Figure 2 The flowchart of a method for constructing a multi-lane isolation test environment in some embodiments of this specification is shown;
[0049] Figure 3 The schematic diagram of the operation mode of the traditional test environment in some embodiments of this specification;
[0050] Figure 4 The schematic diagram of the steps for adding the first isolation mark in some embodiments of this specification;
[0051] Figure 5 The schematic diagram of the process for adding the first isolation mark in some embodiments of this specification;
[0052] Figure 6 The schematic diagram of the steps for adding the second isolation mark in some embodiments of this specification;
[0053] Figure 7 The schematic diagram of the steps for determining whether the request message has the first isolation mark in some embodiments of this specification;
[0054] Figure 8 The schematic diagram of the steps for adding the second isolation mark to the target outbound message in some embodiments of this specification;
[0055] Figure 9 The schematic diagram of the structure of a multi-lane isolation test environment construction device in some embodiments of this specification;
[0056] Figure 10 The schematic diagram of the computer device structure provided in some embodiments of this specification.
[0057]
Explanation of the attached drawing reference numerals
[0058] 1. Isolation environment;
[0059] 2. Backbone environment;
[0060] 101. First system;
[0061] 102. Second system;
[0062] 103. Third system;
[0063] 901. Receiving module;
[0064] 902. First isolation module;
[0065] 903. First routing module;
[0066] 904. Second isolation module;
[0067] 905. Second routing module;
[0068] 1002, Computer device;
[0069] 1004, Processor;
[0070] 1006, Memory;
[0071] 1008, Driving mechanism;
[0072] 1010, Input / output interface;
[0073] 1012, Input device;
[0074] 1014, Output device;
[0075] 1016, Rendering device;
[0076] 1018, Graphical user interface;
[0077] 1020, Network interface;
[0078] 1022, Communication link;
[0079] 1024, Communication bus. Detailed implementation manners
[0080] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the accompanying drawings in some embodiments of this specification. Obviously, the described embodiments are only a part of the embodiments of this specification, rather than all the embodiments. Based on some embodiments in this specification, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of this specification.
[0081] It should be noted that the terms "first", "second", etc. in the specification and claims of this article and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of this article described here can be implemented in an order other than those illustrated or described here.
[0082] In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, device, product or equipment that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or equipment.
[0083] It should be noted that the acquisition, storage, use, processing, etc. of data in the technical solutions of this application all comply with the relevant regulations of relevant laws and regulations.
[0084] It should be noted that in the embodiments of this specification, some existing industry solutions such as certain software, components, models, etc. may be mentioned. They should be regarded as exemplary. The purpose is only to illustrate the feasibility in the implementation of the technical solution of this application, but it does not mean that the applicant has already or necessarily used this solution.
[0085] As Figure 1 shown in the figure is a schematic diagram of an implementation system of a method for constructing a multi-lane isolation test environment according to an embodiment of the present invention, which may include: a first system 101, a second system 102, and a third system 103. The first system 101 and the second system 102 are located in an isolation environment 1, and the third system 103 is located in a backbone environment 2. The first system 101, the second system 102, and the third system 103 communicate with each other through a network. The network may include a local area network (LAN for short), a wide area network (WAN for short), the Internet, or a combination thereof, and is connected to a website, a user device (such as a computing device), and a backend system. After the first system 101 initiates a request message, it processes the request message and forwards it to the second system 102. The second system 102 processes the request message and forwards it to the third system 103, so that the request message in the isolation environment 1 is isolated from the messages in the backbone environment 1 for synchronous processing.
[0086] In the embodiments of this specification, the first system 101, the second system 102, or the third system 103 may be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers. It may also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery network (CDN), and big data and artificial intelligence platforms.
[0087] Figure 2 is a flowchart of a method for constructing a multi-lane isolation test environment provided by an embodiment of the present invention. This specification provides the method operation steps as described in the embodiments or the flowchart, but based on routine or non-creative labor, it may include more or fewer operation steps. The step order listed in the embodiments is only one way among the execution orders of numerous steps and does not represent the only execution order. When the actual system or device product executes, it may execute in the method order shown in the embodiments or the drawings, or execute in parallel. Specifically, as Figure 2 shown, applied to the server side as described above, the method may include:
[0088] S201: Obtain the request message initiated by the first system;
[0089] S202: Add a first isolation mark to the request message;
[0090] S203: Route the request message with the first isolation mark from the first system to the second system;
[0091] S204: The second system receives and processes the request message to output an outbound message, and adds a second isolation mark to the outbound message of the specified type;
[0092] S205: Route the outbound message with the second isolation mark from the second system to the third system, so that the request message is tested in an isolated environment;
[0093] Wherein, the isolated environment at least includes the first system and the second system, and the isolated environment processes the request message to be processed in parallel with the backbone environment.
[0094] The embodiments of this specification construct an isolated environment different from the backbone environment, so that the isolated environment processes the request message to be processed in parallel with the backbone environment. When the request message is processed through the transaction link, the first system in the isolated environment first obtains the request message initiated by the first system, and adds a first isolation mark to the request message, so that the request message can be distinguished and forwarded to the second system. The second system processes the received request message, outputs an outbound message, and adds a second isolation mark to the outbound message of the specified type, so as to route the outbound message with the second isolation mark from the second system to the third system, so that the request message can be tested in the isolated environment as needed, and can work without affecting the normal operation of the backbone environment, thus avoiding the problem of environmental conflict. Allocating the request message to the isolated environment as needed can also reduce the problems of uneven environmental use and poor flexibility in environmental resource allocation.
[0095] It can be understood that in some embodiments, the traditional test environment adopts an operation mode that uses different sets of systems to support different usage requirements, such as Figure 3Schematic diagram of the operation mode of the traditional test environment shown. For different joint debugging test environments, different systems need to be used, such as System A, System B, System C, and System D, etc. Multiple parallel joint debugging tests are achieved through different versions of different systems, such as v2.0, v1.0, and v3.0, etc. This leads to problems in the parallel joint debugging test, such as conflicts in environment usage, unbalanced environment usage, and poor flexibility in environment resource allocation. In the embodiments of this specification, the concept of lanes is introduced into the test environment. By borrowing the concepts of "lane sharing" and "lane isolation", a test environment of "basic service sharing + independent service isolation" is provided for conflicting environment usage requirements, allowing different requirements to "swim" (test) in their respective lanes. The multi-lane environment belongs to soft isolation, and its ultimate form is Testing IN Production (TIP). Relying on a perfect isolation mechanism, the resources and services of the production environment are directly reused to build the test environment.
[0096] Specifically, in some embodiments, the isolated environment at least includes a first system and a second system, that is, both the first system and the second system belong to the separately deployed isolated environment. The third system reuses the backbone environment, and the isolated environment and the backbone environment process the request messages to be processed in parallel. Taking the request message being processed and forwarded along the transaction link of the first system → the second system → the third system as an example, the third system is in the backbone environment, and the first system and the second system are both isolated systems. The first system and the second system located in the isolated environment are used to process a part of the request messages that need to be isolated, thus sharing a part of the test work of the backbone environment. It should be noted that in some embodiments, the transaction link may also include a transfer in other systems, which is not limited herein.
[0097] It should be noted that in some embodiments, in the actual transaction link, the association relationships between the systems involved in the test requirements are intricate. For some transaction links, it is not necessary to forward them through the isolated environment. For some transaction links with isolation requirements, it is necessary to process one or more specified nodes in the transaction link through the isolated environment.
[0098] The first system can be understood as the starting node in the isolated environment, and the second system can be understood as the intermediate node in the isolated environment. After the second system, a fourth system, a fifth system, etc. can be connected according to business needs, which is not limited herein. Further, in some embodiments, the end node of the transaction link may belong to the isolated environment or the backbone environment, which is not limited herein.
[0099] Further, in some embodiments, a trading link may also be isolated by multiple isolated environments for different nodes in the trading link, and this is not limited herein. For the convenience of those skilled in the art, taking multiple trading links as an example, Table 1, the schematic table of isolation test scenarios, gives some possible isolation test scenarios.
[0100] Table 1 Schematic Table of Isolation Test Scenarios
[0101]
[0102]
[0103] In Table 1, different scenario examples are given for single isolated environment and multiple isolated environments respectively. Among them, 7 scenarios S1 - S7 are given for the single isolated environment, and 3 scenarios M1 - M3 are given for the multiple isolated environments. The initiator is the initiator of the trading link. The service provider can be an intermediate node or an end node in the trading link. One node corresponds to one system, and the number of nodes in the trading link can be several, which is not limited herein. Further, for the convenience of those skilled in the art, taking Scenario S3 as an example, the backbone environment originally needed to complete the trading link of A - B - C. In order to implement the decoupling test of the trading link, a single isolated environment 1 undertakes the trading link transfer work of two nodes A1 - B1 (i.e., the two nodes A - B that the backbone environment originally needed to complete), so that the request message can be tested in the isolated environment as required, and it can work without affecting the normal operation of the backbone environment, thus avoiding the problem of environmental conflict. Distributing the request message to the isolated environment as required can also reduce the problems of uneven environmental use and poor flexibility in environmental resource allocation.
[0104] Refer to the appendix Figure 4 , in some embodiments, adding a first isolation mark to the request message may include:
[0105] S401: Detect whether there is an isolation environment variable in the first system;
[0106] S402: If it exists, add a first isolation mark to the request header of the request message.
[0107] It can be understood that in some embodiments, after obtaining the request message initiated by the first system, in order to ensure that the second system can obtain the request message output by the first system, a first isolation mark needs to be added to the request message. Refer to the appendix Figure 5Schematic diagram of the process of adding the first isolation mark. Before the request message P0 initiated by the first system arrives at the second system, first detect whether the isolation environment variable ISOLATE_TAG exists at the proxy node of the first system. If it exists, add the first isolation mark ceb-tech-testenv-label to the request header of the request message, and configure the value of the isolation environment variable as the preset separate deployment isolation environment number, so as to complete the encapsulation of the request message and obtain the request message P1 with the first isolation mark.
[0108] Referring to the appendix Figure 6 , in some embodiments, the second system receives and processes the request message to output an outbound message, and adds a second isolation mark to the outbound message of a specified type, which may include:
[0109] S601: The second system receives the request message;
[0110] S602: Process the request message to obtain the corresponding outbound message;
[0111] S603: Determine whether the first isolation mark exists in the request message;
[0112] S604: If the first isolation mark exists, determine the target outbound message corresponding to the request message with the first isolation mark in the outbound message, and add the second isolation mark to the target outbound message.
[0113] It can be understood that in some embodiments, after the second system receives the request message, it processes the request message to obtain the corresponding outbound message. Since the second system is in an isolation environment, in order to ensure that the request message can be normally transmitted downward after passing through the second system, it is also necessary to add a second isolation mark to the outbound message corresponding to the request message sent by the first system. It can be understood that this article does not limit whether the second system also receives request messages sent by other systems. When the second system receives the request message transmitted by the first system, in order to identify the request message transmitted by the first system, it is necessary to determine whether the first isolation mark exists in the request message. If the first isolation mark exists, determine the target outbound message corresponding to the request message with the first isolation mark in the outbound message, and add the second isolation mark to the target outbound message, so as to ensure the normal and efficient downward transmission of the request message with the first isolation mark.
[0114] Referring to the appendix Figure 7 , in some embodiments, determining whether the first isolation mark exists in the request message may further include:
[0115] S701: The second system determines whether both the first isolation mark and the global trace code in the request message exist and have valid values;
[0116] S702: If both exist and have valid values, determine the separate deployment isolation environment number corresponding to the first isolation mark, and record the corresponding separate deployment isolation environment number and the global tracking code in the isolation mark log.
[0117] It can be understood that in some embodiments, as an intermediate node, the second system needs to determine whether there is a first isolation mark in the request to perform subsequent request forwarding work according to the judgment result. Specifically, in some embodiments, the second system needs to determine whether both the first isolation mark and the global tracking code in the request message exist and have valid values to verify whether the current request message comes from the first system. Among them, the global tracking code is the unique identifier for tracking requests in the transaction link, used to track the request process and call link, facilitating problem troubleshooting and system performance monitoring. If both the first isolation mark and the global tracking code exist in the request message and both have valid values, in order to facilitate subsequent verification of whether the request message comes from the first system, the separate deployment isolation environment number corresponding to the first isolation mark can be determined, and the corresponding separate deployment isolation environment number and the global tracking code are recorded in the isolation mark log.
[0118] Refer to the appendix Figure 8 , in some embodiments, if there is the first isolation mark, determine the target outbound message corresponding to the request message with the first isolation mark in the outbound message, and add a second isolation mark to the target outbound message. Further, it may include:
[0119] S801: Before the target outbound message processed by the second system goes out, obtain the separate deployment isolation environment number and the global tracking code corresponding to the target outbound message by reading the isolation mark log;
[0120] S802: Encapsulate the second isolation mark and the global tracking code into the target outbound message.
[0121] It can be understood that in some embodiments, in order to ensure the identifiability of the target outbound message, a second isolation mark needs to be added to the target outbound message. Specifically, the separate deployment isolation environment number and the global tracking code corresponding to the target outbound message can be quickly obtained through the pre-stored isolation mark log, so as to quickly and accurately encapsulate the second isolation mark and the global tracking code into the target outbound message.
[0122] Furthermore, in some embodiments, use a preset routing mechanism to perform routing by label on the request message with the first isolation mark and / or the outbound message with the second isolation mark.
[0123] It can be understood that in some embodiments, since the first system and the second system are located in an isolated environment and the third system reuses the backbone environment, the preset routing mechanism needs to ensure that the packets output by the first system and the second system can be smoothly transmitted to the next node. Specifically, routing by label means routing to the target server according to the isolation label in the request packet. In some embodiments, routing by label can be implemented through preset configuration rules.
[0124] It should be noted that although the operations of the method of the present invention are described in a specific order in the above embodiments and the accompanying drawings, this does not require or imply that these operations must be performed in that specific order, or that all the operations shown must be performed to achieve the desired result. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step for execution, and / or one step may be decomposed into multiple steps for execution.
[0125] Corresponding to the above method for constructing a multi-lane isolation test environment, some embodiments of this specification also provide a device for constructing a multi-lane isolation test environment. Refer to Figure 9 As shown, in some embodiments, the device may include:
[0126] A receiving module 901, configured to obtain a request packet initiated by the first system;
[0127] A first isolation module 902, configured to add a first isolation label to the request packet;
[0128] A first routing module 903, configured to route the request packet with the first isolation label from the first system to the second system;
[0129] A second isolation module 904, configured to receive and process the request packet by the second system to output an outbound packet, and add a second isolation label to the outbound packet of a specified type;
[0130] A second routing module 905, configured to route the outbound packet with the second isolation label from the second system to the third system, so that the request packet is tested in an isolated environment;
[0131] Wherein, the isolated environment at least includes the first system and the second system, and the isolated environment and the backbone environment process the request packets to be processed in parallel.
[0132] For the convenience of description, when describing the above device, various units are described separately according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0133] It should be noted that in the embodiments of this specification, the user information involved (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) are all information and data that have been authorized and consented to by the user and fully authorized by all parties.
[0134] It should be noted that the computer program product described in this specification is a software product that mainly implements the methods described in this specification through computer programs.
[0135] The embodiments of this specification also provide a computer device. As Figure 10 shown, in some embodiments of this specification, the computer device 1002 may include one or more processors 1004, such as one or more central processing units (CPUs) or graphics processing units (GPUs), and each processing unit may implement one or more hardware threads. The computer device 1002 may also include any memory 1006, which is used to store any kind of information such as code, settings, data, etc. In a specific embodiment, a computer program stored on the memory 1006 and executable on the processor 1004, when the computer program is run by the processor 1004, can execute the instructions of the method described in any of the above embodiments.
[0136] Non-limiting, for example, the memory 1006 may include any one or more combinations of the following: any type of RAM, any type of ROM, flash memory devices, hard disks, optical discs, etc. More generally, any memory can use any technology to store information. Further, any memory can provide volatile or non-volatile retention of information. Further, any memory can represent a fixed or removable component of the computer device 1002. In one case, when the processor 1004 executes the associated instructions stored in any memory or combination of memories, the computer device 1002 can perform any operation of the associated instructions. The computer device 1002 also includes one or more drive mechanisms 1008 for interacting with any memory, such as a hard disk drive mechanism, an optical disc drive mechanism, etc.
[0137] The computer device 1002 may also include an input / output interface 1010 (I / O) for receiving various inputs (via the input device 1012) and for providing various outputs (via the output device 1014). A specific output mechanism may include a presentation device 1016 and an associated graphical user interface 1018 (GUI). In other embodiments, the input / output interface 1010 (I / O), the input device 1012, and the output device 1014 may not be included, and it may only be a computer device in a network. The computer device 1002 may also include one or more network interfaces 1020 for exchanging data with other devices via one or more communication links 1022. One or more communication buses 1024 couple the components described above together.
[0138] The communication link 1022 may be implemented in any manner, for example, through a local area network, a wide area network (e.g., the Internet), a point-to-point connection, etc., or any combination thereof. The communication link 1022 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc. governed by any protocol or combination of protocols.
[0139] This application is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), computer-readable storage media, and computer program products according to some embodiments of this specification. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processors to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processors generate means for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0140] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processors to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including instruction means, and the instruction means implements the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0141] These computer program instructions can also be loaded onto a computer or other programmable data processors, so that a series of operation steps are executed on the computer or other programmable devices to generate computer-implemented processing, and thus the instructions executed on the computer or other programmable devices provide means for implementing the functions specified in Figure 1One or more processes and / or blocks Figure 1 Steps of functions specified in one or more blocks
[0142] In a typical configuration, a computer device includes one or more processors (CPUs), an input / output interface, a network interface, and memory.
[0143] Memory may include non-permanent memory in the form of computer-readable media, random access memory (RAM) and / or non-volatile memory such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
[0144] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can store information by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information that can be accessed by a computer device. As defined in this specification, computer-readable media does not include transitory media such as modulated data signals and carrier waves.
[0145] Those skilled in the art should understand that the embodiments of this specification can be provided as methods, systems, or computer program products. Therefore, the embodiments of this specification can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects.
[0146] Moreover, the embodiments of this specification can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0147] Embodiments of this specification can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. Embodiments of this specification can also be practiced in a distributed computing environment where tasks are performed by remote processors connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0148] It should also be understood that in the embodiments of this specification, the term "and / or" is merely a description of the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent three situations: A exists alone, both A and B exist simultaneously, and B exists alone. Additionally, the character " / " in this text generally indicates that the associated objects before and after are in an "or" relationship.
[0149] Each embodiment in this specification is described in a progressive manner. For the same or similar parts among the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments. In particular, for system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and reference can be made to the corresponding parts of the method embodiments for relevant details.
[0150] In the description of this specification, the description with reference to terms such as "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the embodiments of this specification. In this specification, the schematic expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. In addition, without contradiction, those skilled in the art can combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples.
[0151] The above description is only for the embodiments of this application and is not intended to limit this application. For those skilled in the art, various changes and modifications can be made to this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included within the scope of the claims of this application.
Claims
1. A method for constructing a multi-lane isolation test environment, characterized in that: The method comprises: Obtaining a request message initiated by the first system; Adding a first isolation mark to the request message; Routing the request message with the first isolation mark from the first system to the second system; The second system receives and processes the request message to output an outbound message and adds a second isolation mark to the outbound message of a specified type; Routing the outbound message with the second isolation mark from the second system to the third system so that the request message is tested in an isolated environment; The isolation environment includes at least a first system and a second system, and the isolation environment and the backbone environment process the request message to be processed in parallel.
2. The method according to claim 1, characterized in that Adding a first isolation mark to the request message includes: Detecting whether isolated environment variables exist in the first system; If it exists, a first isolation mark is added to the request header of the request message.
3. The method according to claim 2, characterized in that The value of the isolation environment variable is configured as a preset separately deployed isolation environment number.
4. The method according to claim 1, characterized in that: The second system receives and processes the request message to output an outbound message and adds a second isolation mark to the outbound message of a specified type, including: The second system receives the request message; Processing the request message to obtain a corresponding outbound message; Determining whether the request message contains the first isolation mark; If the first isolation mark is present, a target outbound message corresponding to the request message having the first isolation mark is determined in the outbound message, and a second isolation mark is added to the target outbound message.
5. The method according to claim 4, characterized in that Determining whether the request message has the first isolation mark further includes: The second system determines whether the first isolation mark and the global tracking code in the request message both exist and have valid values; If both exist and have valid values, the separately deployed isolation environment number corresponding to the first isolation mark is determined, and the corresponding separately deployed isolation environment number and global tracking code are recorded in the isolation mark log.
6. The method according to claim 5, characterized in that If the first isolation mark is present, determining in the outbound message a target outbound message corresponding to the request message having the first isolation mark, and adding a second isolation mark to the target outbound message, further comprising: Before the target outbound message processed by the second system goes out, the separate deployment isolation environment number and the global tracking code corresponding to the target outbound message are obtained by reading the isolation mark log; The second isolation mark and the global tracking code are encapsulated into the target outbound message.
7. The method according to claim 1, characterized in that The first system and the second system are both deployed in separate isolated environments, and the third system reuses the backbone environment.
8. The method according to claim 1, characterized in that Further including: The request message with the first isolation mark and / or the outbound message with the second neighbor mark are routed according to the mark by using the preset routing mechanism.
9. A device for constructing a multi-lane isolation test environment, characterized in that: The device comprises: A receiving module, used for obtaining a request message initiated by the first system; A first isolation module, used for adding a first isolation mark to the request message; A first routing module, used for routing the request message with the first isolation mark from the first system to the second system; A second isolation module, used for the second system to receive and process the request message to output an outbound message and add a second isolation mark to the outbound message of a specified type; A second routing module, used for routing the outbound message with the second isolation mark from the second system to the third system, so that the request message is tested in an isolated environment; The isolation environment includes at least a first system and a second system, and the isolation environment and the backbone environment process the request message to be processed in parallel.
10. A computer device comprising a memory, a processor, and a computer program stored in the memory, characterized in that: When the computer program is executed by the processor, the computer program executes the instructions of the method according to any one of claims 1 to 8.
11. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor of a computer device, the computer program executes the instructions of the method according to any one of claims 1 to 8.
12. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the instructions of the method according to any one of claims 1 to 8 are executed.