CN117149264A - Multi-lane research and development environment construction method, device, equipment and storage medium - Google Patents

Multi-lane research and development environment construction method, device, equipment and storage medium Download PDF

Info

Publication number
CN117149264A
CN117149264A CN202311424769.1A CN202311424769A CN117149264A CN 117149264 A CN117149264 A CN 117149264A CN 202311424769 A CN202311424769 A CN 202311424769A CN 117149264 A CN117149264 A CN 117149264A
Authority
CN
China
Prior art keywords
service
preset
target
flow
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311424769.1A
Other languages
Chinese (zh)
Other versions
CN117149264B (en
Inventor
魏子重
刘益民
李锐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Inspur Science Research Institute Co Ltd
Original Assignee
Shandong Inspur Science Research Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Inspur Science Research Institute Co Ltd filed Critical Shandong Inspur Science Research Institute Co Ltd
Priority to CN202311424769.1A priority Critical patent/CN117149264B/en
Publication of CN117149264A publication Critical patent/CN117149264A/en
Application granted granted Critical
Publication of CN117149264B publication Critical patent/CN117149264B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a method, a device, equipment and a storage medium for constructing a multi-lane research and development environment, which relate to the field of software development and comprise the following steps: determining a plurality of target versions of preset service, and registering basic information and corresponding version information of the preset service to a preset service center based on the plurality of target versions when a preset service side is started; determining a request to be responded and the flow of the request to be responded, and carrying out flow dyeing on the flow based on a preset label to obtain a target flow; and determining a target service corresponding to the request to be responded from the preset services of the target versions, and forwarding the target flow to the target service to realize the construction of the multi-lane research and development environment. The method adopts a logic isolation mode, expands multi-version service in links such as service registration, service discovery and the like, and performs flow dyeing, so that the stability of a test environment is enhanced, and the development, joint debugging and test efficiency is improved.

Description

Multi-lane research and development environment construction method, device, equipment and storage medium
Technical Field
The application relates to the field of software development, in particular to a method, a device, equipment and a storage medium for constructing a multi-lane research and development environment.
Background
At present, with the development of the Internet, the development period of the software is shorter, the iteration speed of the software is faster, and the version of the software is more and more; and with the popularity of micro-services, the more and more the services are disassembled, the more and more the inter-service dependence is, and the more and more the versions among the services are; meanwhile, the branch management model represented by the Git Flow enables a plurality of functional versions (feature branch) to be developed in parallel, and the development, joint debugging and testing life cycle of the functional versions are overlapped, so that the stability of a testing environment is influenced, and the efficiency of development and testing personnel is influenced. Under such circumstances, the existing test environment management generally adopts a physical isolation manner, i.e. multiple sets of environments are physically deployed, and there are problems of difficult environmental maintenance, high cost and the like, so that the conventional test environment management manner cannot meet the requirements, and the following problems may be caused, and the environment is preempted: the test environment does not support multiple versions, and the situation that multiple testers test the same version at the same time possibly exists, so that the test environment is unstable and the test result is inaccurate; the test environment is unstable: a certain unstable functional version is deployed in a test environment, which may cause the whole test environment to be unavailable, so that all testers are affected; local debug difficulties: when a developer locally debugs, because the local instance will be registered with the service registry, traffic of the non-debugs scenario may also be requested to the local instance, affecting the local debugs. Therefore, there is a need for an environment building method that enhances the stability of the test environment.
Disclosure of Invention
In view of the above, the present application aims to provide a method, a device, and a storage medium for constructing a multi-lane research and development environment, which adopts a logic isolation manner to expand multi-version services in links such as service registration, service discovery, etc., and to perform flow dyeing, thereby enhancing stability of a test environment and improving efficiency of development, joint debugging and testing. The specific scheme is as follows:
in a first aspect, the present application provides a method for constructing a multi-lane development environment, comprising:
determining a plurality of target versions of preset service, and registering basic information and corresponding version information of the preset service to a preset service center based on the plurality of target versions when a preset service side is started;
determining a request to be responded and the flow of the request to be responded, and carrying out flow dyeing on the flow based on a preset label to obtain a target flow;
and determining a target service corresponding to the request to be responded from the preset services of the target versions, and forwarding the target flow to the target service to realize the construction of the multi-lane research and development environment.
Optionally, the registering the basic information and the corresponding version information of the preset service to the preset service center based on the target versions includes:
and determining basic information and service node metadata information of the preset services of the target versions, and registering the basic information and the service node metadata information to the preset service center.
Optionally, the determining the basic information and service node metadata information of the preset services of the target versions includes:
and configuring the service node metadata information corresponding to the preset services of a plurality of target versions based on a preset configuration file or a preset code by using a preset service management platform.
Optionally, the performing flow dyeing on the flow based on the preset label to obtain a target flow includes:
and storing the version information of the preset service into a request head of the request to be responded based on a preset label so as to dye the flow to obtain the target flow.
Optionally, in the determining, from the preset services of the target versions, a target service corresponding to the request to be responded, further includes:
and acquiring a service list and a service instance list of the preset service through an application program interface of a preset service management platform by utilizing a browser plug-in, and switching the version of the target service based on the service list and the service instance list.
Optionally, the switching the version of the target service includes:
intercepting the request to be responded by utilizing the browser plug-in, and acquiring the preset tag from a local memory;
and determining a target label from the preset labels, and adding the target label into the request head of the request to be responded.
Optionally, after forwarding the target traffic to the target service, the method further includes:
and determining a version to be called corresponding to the preset service through the preset tag in the request to be responded, acquiring an instance list and a server address of the preset server based on the version to be called, and calling the preset service.
In a second aspect, the present application provides a multi-lane development environment building apparatus comprising:
the service registration module is used for determining a plurality of target versions of preset service and registering basic information and corresponding version information of the preset service to a preset service center based on the plurality of target versions when a preset service side is started;
the flow dyeing module is used for determining a request to be responded and the flow of the request to be responded, and carrying out flow dyeing on the flow based on a preset label to obtain a target flow;
and the flow forwarding module is used for determining a target service corresponding to the request to be responded from the preset services of the target versions, and forwarding the target flow to the target service so as to realize the construction of the multi-lane research and development environment.
In a third aspect, the present application provides an electronic device comprising a processor and a memory; the memory is used for storing a computer program, and the computer program is loaded and executed by the processor to realize the multi-lane research and development environment construction method.
In a fourth aspect, the present application provides a computer readable storage medium storing a computer program which, when executed by a processor, implements the aforementioned multi-lane development environment building method.
According to the method, a plurality of target versions of the preset service are determined, and when a preset service side is started, basic information and corresponding version information of the preset service are registered to a preset service center based on the plurality of target versions; determining a request to be responded and the flow of the request to be responded, and carrying out flow dyeing on the flow based on a preset label to obtain a target flow; and determining a target service corresponding to the request to be responded from the preset services of the target versions, and forwarding the target flow to the target service to realize the construction of the multi-lane research and development environment. Compared with physical isolation, the method adopts a logical isolation mode to expand multi-version service in links such as service registration, service discovery and the like, and performs flow dyeing, so that the development, joint debugging and testing efficiency is improved, the method can be applied to the field of environmental management with research and development efficiency, and particularly in the case of multi-functional version parallel development, and the stability of a testing environment is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for constructing a multi-lane research and development environment;
FIG. 2 is a basic flow chart of service invocation provided by the present application;
FIG. 3 is a timing diagram of a request implementation provided by the present application;
FIG. 4 is a flowchart of a specific multi-lane development environment construction method provided by the present application;
FIG. 5 is a schematic diagram of a browser plug-in provided by the present application;
FIG. 6 is a timing diagram of service version switching according to the present application;
FIG. 7 is a schematic diagram of a multi-lane development environment construction device according to the present application;
fig. 8 is a block diagram of an electronic device according to the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The existing test environment management generally adopts a physical isolation mode, namely a plurality of sets of environments are physically deployed, so that the problems of difficult environmental maintenance, high cost and the like exist, and the requirements cannot be met, so that the test environment is unstable. The application relates to multi-version management of micro-service, which belongs to a part of full-link gray level release, and adopts a logic isolation mode to expand multi-version service in links such as service registration, service discovery and the like, and performs flow dyeing, thereby improving the efficiency of development, joint debugging and testing, and ensuring the stability of a testing environment under the condition of parallel development of multi-functional versions.
Referring to fig. 1, the embodiment of the application discloses a multi-lane research and development environment construction method, which comprises the following steps:
step S11, determining a plurality of target versions of a preset service, and registering basic information and corresponding version information of the preset service to a preset service center based on the plurality of target versions when a preset service side is started.
The embodiment is mainly used for supporting the parallel development of the multifunctional version of the service, and the development and testing efficiency is improved in the life cycle of development, joint debugging and testing. Therefore, the present embodiment first sets forth the following for the call flow of the service described above: as shown in fig. 2, after the front end requests the micro service gateway, the micro service gateway routes and forwards the request to the corresponding micro service, and the call between the micro services obtains the service address for call through service discovery. The processing timing diagram of the front-end initiated request is shown in fig. 3. It is to be appreciated that service discovery is the basis of service invocation, and that implementations of service discovery include, but are not limited to Nacos, consul, eureka, zookeeper, and the like. In this embodiment, a method for constructing a multi-lane development environment will be described by taking Spring Cloud and Nacos, which are commonly used in Java development, as an example.
In this embodiment, service registration is first required, after a plurality of target versions of a preset service are determined, when a preset service side starts, basic information and corresponding version information of the preset service are registered to a preset service center based on the plurality of target versions. When the information is registered, firstly, the basic information and the service node metadata information of the preset services of a plurality of target versions are determined, and then the basic information and the service node metadata information are registered in a preset service center. It is understood that service registration refers to registering basic information, such as service name, monitored address information (internet protocol address, port), etc., to a service center when a service party is started. In order to implement the multi-lane development environment, the embodiment can distinguish multiple versions of the same service when the service is discovered, and the version information of the service needs to be registered in the service registration center when the service is registered. At the time of service registration, the service party may specify service node metadata information, which is a set of key-value pairs for describing information of the service node, in addition to service node, IP (Internet Protocol Address ), port information, for example: service version, service group, service tag, etc. In addition, the embodiment can utilize the preset service management platform to configure service node metadata information corresponding to the preset services of a plurality of target versions based on the preset configuration file or the preset code. Specifically, in this embodiment, a service registration process is described by taking a Nacos as an example, and it can be understood that the metadata function of the Nacos may be configured by a configuration file manner or may be configured by a code manner. Configuration is performed as an example in the form of a configuration file, which is as follows:
spring:
cloud:
nacos:
discovery:
metadata:
tags: default,feature-1。
the configuration file represents that the service node has two labels of default and feature-1, wherein the default represents a default version, the feature-1 represents a functional version, and the request with the default or feature-1 label in the request is forwarded to the service node.
Compared with the physical isolation mode of the traditional multiple sets of environments, the embodiment adopts the logical isolation mode to deploy multiple versions of the same service in the same set of physical environments. Compared with physical isolation, the method can reduce the maintenance cost of multiple sets of environments, save hardware resources, improve the utilization rate of the resources and reduce the cost.
And step S12, determining a request to be responded and the flow of the request to be responded, and carrying out flow dyeing on the flow based on a preset label to obtain a target flow.
In this embodiment, after determining the request to be responded and the flow of the request to be responded, the flow may be dyed based on the preset label to obtain the target flow. It can be understood that the traffic dyeing is to label the requested traffic for dyeing, and then the request carries the label information in the whole link, and the traffic scheduling function can be performed through the label. The traffic dyeing is the core of the multi-lane research and development environment, and requests are forwarded to the service of the appointed version through the traffic dyeing, so that the multi-lane research and development environment is constructed. After the flow dyeing is carried out, each link of the request link needs to carry out the transparent transmission of the dyeing so as to realize the effect of the dyeing on the whole calling link. By carrying out flow dyeing, the stability of the test environment can be greatly enhanced, and the development, joint debugging and test efficiency can be improved.
And step S13, determining a target service corresponding to the request to be responded from the preset services of the target versions, and forwarding the target flow to the target service to realize the construction of the multi-lane research and development environment.
In this embodiment, after determining a target service of a version corresponding to a request to be responded from a plurality of preset services of a target version, the target flow is forwarded to the target service, so that the multi-lane research and development environment can be constructed. After the target flow is forwarded to the target service, a version to be called corresponding to the preset service can be determined through a preset tag in the request to be responded, so that an instance list of the preset service party and a service party address are obtained based on the version to be called, and the preset service is called. It should be noted that service discovery refers to that before a caller requests a service party, the caller obtains an instance list of the service party through a service discovery center to determine a service party address, and then makes a call. The basic service discovery can only acquire a service node list through a service name, and cannot distinguish multiple versions of the same service, and the multi-lane research and development environment realized by the embodiment can expand a service discovery mechanism to realize that a specific version of the service is selected according to a service label in a request. Next, this embodiment will take the Spring Cloud commonly used in Java development as an example, to describe the service discovery process. In this embodiment, the Spring Cloud realizes service discovery through the servicelnstaancelistsupplier interface, and when obtaining the service list, the Spring Cloud can filter according to the service tag in the request header, and only returns the service instance list containing the service tag in the request to perform the subsequent service calling process.
In this embodiment, a plurality of target versions of the preset service are determined, and when the preset service side is started, the basic information and the corresponding version information of the preset service are registered in the preset service center based on the plurality of target versions. When the information is registered, firstly, the basic information and the service node metadata information of the preset services of a plurality of target versions are determined, and then the basic information and the service node metadata information are registered in a preset service center. And then determining the request to be responded and the flow of the request to be responded, and carrying out flow dyeing on the flow based on a preset label to obtain the target flow. And determining a target service corresponding to the request to be responded from the preset services of the target versions, and forwarding the target flow to the target service to realize the construction of the multi-lane research and development environment. The multi-lane research and development environment constructed by the embodiment can be used for supporting parallel development of a multifunctional version, improving the stability and flexibility of the environment in the life cycle of development, joint debugging and testing, and finally improving the development and testing efficiency.
Based on the above embodiment, the present application can use a logic isolation manner to implement traffic dyeing based on multi-version service to construct a multi-lane research and development environment, and the process of traffic dyeing will be described in detail in this embodiment. Referring to fig. 4, the embodiment of the application discloses a specific multi-lane development environment construction method, which comprises the following steps:
step S21, a plurality of target versions of preset service are determined, and when a preset service side is started, basic information and corresponding version information of the preset service are registered in a preset service center based on the plurality of target versions.
Step S22, determining a request to be responded and the flow of the request to be responded, and storing the version information of the preset service into a request header of the request to be responded based on a preset label so as to dye the flow to obtain the target flow.
In this embodiment, by determining the request to be responded and the flow of the request to be responded, version information of the preset service may be stored in the request header of the request to be responded based on the preset tag, so as to dye the flow to obtain the target flow.
This embodiment will take Spring Cloud Gateway as an example to describe the flow dyeing process. It can be appreciated that the HTTP request (Hypertext Transfer Protocol Request) is divided into a request header, a request line and a request body, wherein the request line can carry data and is stored in a request parameter in a URL (Uniform Resource Locator, uniform resource location system) and is generally used for GET requests; the request body is used as request data and is generally used for POST requests; the request header can give consideration to all HTTP request methods such as GET, POST and the like. Therefore, the present embodiment can implement the coloring of traffic by depositing version information of a request service in the HTTP request header. The flow dyeing is carried out by adopting a logic isolation mode and matching with the browser plug-in, so that the stability of the testing environment is greatly enhanced, and the efficiency of development, joint debugging and testing is improved.
Step S23, determining a target service corresponding to the request to be responded from a plurality of preset services of the target versions, acquiring a service list and a service instance list of the preset service through an application program interface of a preset service management platform by utilizing a browser plug-in, switching the versions of the target service based on the service list and the service instance list, and forwarding the target flow to the target service after the version switching, so as to realize construction of the multi-lane research and development environment.
In this embodiment, after determining a target service corresponding to a request to be responded from a plurality of preset services of a target version, a browser plug-in may be used to obtain a service list and a service instance list of the preset service through an application program interface of a preset service management platform, and switch the version of the target service based on the service list and the service instance list, so as to forward the target traffic to the target service after switching the version. It can be appreciated that, in order to facilitate the developer to switch the service version in the browser, the present embodiment may be used in conjunction with a browser plug-in to switch the service version in the browser. When the version of the target service is switched, firstly, a request to be responded is intercepted by utilizing a browser plug-in, a preset label is obtained from a local memory, then, the target label is determined from the preset label, and the target label is added into a request head of the request to be responded.
In this embodiment, a Chrome browser is taken as an example, and a using process of the browser plug-in is described. The browser plug-in as shown in fig. 5 may obtain a list of services and a list of service instances, including metadata information for the instances, through an API (Application Programming Interface ) provided by the Nacos. As shown in fig. 6, the browser plug-in may obtain the service list and the instance list through an API provided by the service discovery center. The plug-in can be used for a developer to select a label corresponding to the service, the selected label is stored in the Local Storage, when a request is initiated in the browser, the browser plug-in intercepts the request, acquires the service label from the Local Storage, adds the service label into a request header, and then forwards the request to the gateway.
For more specific processing in step S21, reference may be made to the corresponding content disclosed in the foregoing embodiment, and no further description is given here.
In this embodiment, after registering basic information and corresponding version information of a plurality of target versions of a preset service to a preset service center, determining a request to be responded and a flow of the request to be responded, and storing the version information of the preset service to a request header of the request to be responded based on a preset tag, so as to dye the flow to obtain the target flow. And then determining target services corresponding to the request to be responded from the preset services of the target versions, acquiring a service list and a service instance list of the preset services through an application program interface of a preset service management platform by utilizing a browser plug-in, and switching the versions of the target services based on the service list and the service instance list so as to forward the target flow to the target services after the versions are switched. The flow dyeing is realized by storing the version information of the request service in the HTTP request header, the flow dyeing of the browser plug-in can be matched in a logic isolation mode, the stability of the test environment is greatly enhanced, and a developer can switch the service version in the browser, so that the development, joint debugging and test efficiency is improved.
Referring to fig. 7, the embodiment of the application further discloses a multi-lane development environment construction device, which comprises:
the service registration module 11 is configured to determine a plurality of target versions of a preset service, and register basic information and corresponding version information of the preset service to a preset service center based on the plurality of target versions when a preset service party is started;
the flow dyeing module 12 is used for determining a request to be responded and the flow of the request to be responded, and carrying out flow dyeing on the flow based on a preset label to obtain a target flow;
and the flow forwarding module 13 is configured to determine a target service corresponding to the request to be responded from the preset services of the target versions, and forward the target flow to the target service, so as to implement construction of the multi-lane research and development environment.
In the embodiment, a plurality of target versions of a preset service are determined, and when a preset service side is started, basic information and corresponding version information of the preset service are registered to a preset service center based on the plurality of target versions; determining a request to be responded and the flow of the request to be responded, and carrying out flow dyeing on the flow based on a preset label to obtain a target flow; and determining a target service corresponding to the request to be responded from the preset services of the target versions, and forwarding the target flow to the target service to realize the construction of the multi-lane research and development environment. Compared with physical isolation, the method adopts a logical isolation mode to expand multi-version service in links such as service registration, service discovery and the like, and performs flow dyeing, so that the development, joint debugging and testing efficiency is improved, the method can be applied to the field of environmental management with research and development efficiency, and particularly in the case of multi-functional version parallel development, and the stability of a testing environment is ensured.
In some embodiments, the service registration module 11 specifically includes:
the information determination submodule is used for determining basic information and service node metadata information of the preset services of a plurality of target versions;
and the service registration unit is used for registering the basic information and the service node metadata information to the preset service center.
In some embodiments, the information determining submodule specifically includes:
the information configuration unit is used for configuring the service node metadata information corresponding to the preset services of the target versions based on preset configuration files or preset codes by utilizing a preset service management platform.
In some embodiments, the flow staining module 12 specifically includes:
and the information storage unit is used for storing the version information of the preset service into the request head of the request to be responded based on a preset label so as to dye the flow to obtain the target flow.
In some embodiments, the traffic forwarding module 13 further includes:
and the version switching sub-module is used for acquiring a service list and a service instance list of the preset service through an application program interface of a preset service management platform by utilizing a browser plug-in, and switching the version of the target service based on the service list and the service instance list.
In some specific embodiments, the version switch submodule specifically includes:
the tag obtaining unit is used for intercepting the request to be responded by utilizing the browser plug-in, and obtaining the preset tag from a local memory;
the tag adding unit is used for determining a target tag from the preset tags and adding the target tag into the request head of the request to be responded.
In some embodiments, the multi-lane development environment building apparatus further comprises:
and the service calling module is used for determining a version to be called corresponding to the preset service through the preset tag in the request to be responded, acquiring an instance list and a service party address of the preset service party based on the version to be called, and calling the preset service.
Further, the embodiment of the present application further discloses an electronic device, and fig. 8 is a block diagram of an electronic device 20 according to an exemplary embodiment, where the content of the diagram is not to be considered as any limitation on the scope of use of the present application.
Fig. 8 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. The memory 22 is used for storing a computer program, and the computer program is loaded and executed by the processor 21 to implement relevant steps in the multi-lane development environment construction method disclosed in any one of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be specifically an electronic computer.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input/output interface 25 is used for acquiring external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application requirement, which is not limited herein.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the resources stored thereon may include an operating system 221, a computer program 222, and the like, and the storage may be temporary storage or permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and computer programs 222, which may be Windows Server, netware, unix, linux, etc. The computer program 222 may further include a computer program capable of performing other specific tasks in addition to the computer program capable of performing the multi-lane development environment building method performed by the electronic device 20 as disclosed in any of the foregoing embodiments.
Further, the application also discloses a computer readable storage medium for storing a computer program; wherein the computer program, when executed by the processor, implements the previously disclosed multi-lane development environment building method. For specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing has outlined rather broadly the more detailed description of the application in order that the detailed description of the application that follows may be better understood, and in order that the present principles and embodiments may be better understood; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. A method of constructing a multi-lane development environment, comprising:
determining a plurality of target versions of preset service, and registering basic information and corresponding version information of the preset service to a preset service center based on the plurality of target versions when a preset service side is started;
determining a request to be responded and the flow of the request to be responded, and carrying out flow dyeing on the flow based on a preset label to obtain a target flow;
and determining a target service corresponding to the request to be responded from the preset services of the target versions, and forwarding the target flow to the target service to realize the construction of the multi-lane research and development environment.
2. The multi-lane development environment construction method according to claim 1, wherein registering basic information and corresponding version information of the preset service to a preset service center based on a plurality of the target versions, comprises:
and determining basic information and service node metadata information of the preset services of the target versions, and registering the basic information and the service node metadata information to the preset service center.
3. The multi-lane development environment construction method of claim 2 wherein said determining basic information and service node metadata information of said preset services for a number of said target versions comprises:
and configuring the service node metadata information corresponding to the preset services of a plurality of target versions based on a preset configuration file or a preset code by using a preset service management platform.
4. The method for constructing a multi-lane development environment according to claim 1, wherein the performing flow staining on the flow based on a preset label to obtain a target flow comprises:
and storing the version information of the preset service into a request head of the request to be responded based on a preset label so as to dye the flow to obtain the target flow.
5. The method for constructing a multi-lane development environment according to claim 4, wherein in the process of determining the target service corresponding to the request to be responded from the preset services of the target versions, the method further comprises:
and acquiring a service list and a service instance list of the preset service through an application program interface of a preset service management platform by utilizing a browser plug-in, and switching the version of the target service based on the service list and the service instance list.
6. The multi-lane development environment construction method of claim 5 wherein the switching the version of the target service comprises:
intercepting the request to be responded by utilizing the browser plug-in, and acquiring the preset tag from a local memory;
and determining a target label from the preset labels, and adding the target label into the request head of the request to be responded.
7. The multi-lane development environment construction method according to any one of claims 1 to 6, wherein after forwarding the target traffic to the target service, further comprising:
and determining a version to be called corresponding to the preset service through the preset tag in the request to be responded, acquiring an instance list and a server address of the preset server based on the version to be called, and calling the preset service.
8. A multi-lane development environment building apparatus, comprising:
the service registration module is used for determining a plurality of target versions of preset service and registering basic information and corresponding version information of the preset service to a preset service center based on the plurality of target versions when a preset service side is started;
the flow dyeing module is used for determining a request to be responded and the flow of the request to be responded, and carrying out flow dyeing on the flow based on a preset label to obtain a target flow;
and the flow forwarding module is used for determining a target service corresponding to the request to be responded from the preset services of the target versions, and forwarding the target flow to the target service so as to realize the construction of the multi-lane research and development environment.
9. An electronic device comprising a processor and a memory; wherein the memory is for storing a computer program that is loaded and executed by the processor to implement the multi-lane development environment construction method of any one of claims 1 to 7.
10. A computer readable storage medium for storing a computer program which when executed by a processor implements a multi-lane development environment building method according to any one of claims 1 to 7.
CN202311424769.1A 2023-10-31 2023-10-31 Multi-lane research and development environment construction method, device, equipment and storage medium Active CN117149264B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311424769.1A CN117149264B (en) 2023-10-31 2023-10-31 Multi-lane research and development environment construction method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311424769.1A CN117149264B (en) 2023-10-31 2023-10-31 Multi-lane research and development environment construction method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN117149264A true CN117149264A (en) 2023-12-01
CN117149264B CN117149264B (en) 2024-01-30

Family

ID=88906569

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311424769.1A Active CN117149264B (en) 2023-10-31 2023-10-31 Multi-lane research and development environment construction method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117149264B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112199218A (en) * 2020-10-26 2021-01-08 北京百家科技集团有限公司 Pressure measurement method and device, electronic equipment and storage medium
CN112988572A (en) * 2021-02-09 2021-06-18 中国工商银行股份有限公司 Multi-environment multi-channel multi-version simulation test method and device
CN114095564A (en) * 2021-11-16 2022-02-25 百度在线网络技术(北京)有限公司 Data processing method and device, equipment and medium
CN114880018A (en) * 2022-04-26 2022-08-09 青岛海尔科技有限公司 Request processing method and device, storage medium and electronic equipment
CN114979247A (en) * 2022-05-31 2022-08-30 浪潮软件科技有限公司 Publishing system and method based on multi-version flow dyeing
CN115525533A (en) * 2021-06-24 2022-12-27 腾讯云计算(北京)有限责任公司 Information processing method, information processing device, computer equipment and storage medium
WO2023016415A1 (en) * 2021-08-09 2023-02-16 华为云计算技术有限公司 Node for running container group, and management system and method of container group
CN116112403A (en) * 2022-12-30 2023-05-12 中国电信股份有限公司 Cloud service management system and method for application service, electronic equipment and storage medium
CN116361172A (en) * 2023-03-29 2023-06-30 众阳健康科技集团有限公司 Development joint debugging method and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112199218A (en) * 2020-10-26 2021-01-08 北京百家科技集团有限公司 Pressure measurement method and device, electronic equipment and storage medium
CN112988572A (en) * 2021-02-09 2021-06-18 中国工商银行股份有限公司 Multi-environment multi-channel multi-version simulation test method and device
CN115525533A (en) * 2021-06-24 2022-12-27 腾讯云计算(北京)有限责任公司 Information processing method, information processing device, computer equipment and storage medium
WO2023016415A1 (en) * 2021-08-09 2023-02-16 华为云计算技术有限公司 Node for running container group, and management system and method of container group
CN114095564A (en) * 2021-11-16 2022-02-25 百度在线网络技术(北京)有限公司 Data processing method and device, equipment and medium
CN114880018A (en) * 2022-04-26 2022-08-09 青岛海尔科技有限公司 Request processing method and device, storage medium and electronic equipment
CN114979247A (en) * 2022-05-31 2022-08-30 浪潮软件科技有限公司 Publishing system and method based on multi-version flow dyeing
CN116112403A (en) * 2022-12-30 2023-05-12 中国电信股份有限公司 Cloud service management system and method for application service, electronic equipment and storage medium
CN116361172A (en) * 2023-03-29 2023-06-30 众阳健康科技集团有限公司 Development joint debugging method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SONG HUANG: "Runtime-Environment Testing Method for Android Applications", 《2019 IEEE 19TH INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY COMPANION (QRS-C)》 *
刘军: "面向云原生全链路灰度发布技术研究与实践", 《 电子技术应用》, no. 4 *

Also Published As

Publication number Publication date
CN117149264B (en) 2024-01-30

Similar Documents

Publication Publication Date Title
US11716264B2 (en) In situ triggered function as a service within a service mesh
US7571208B2 (en) Creating proxies from service description metadata at runtime
CN106888233B (en) Data updating system and method
CN111078504A (en) Distributed call chain tracking method and device, computer equipment and storage medium
CN112565443A (en) Internet of things data analysis method, device, equipment and storage medium
CN101120575A (en) Process configuration in a network
CN111355622A (en) Container traffic monitoring method, system and computer readable storage medium
CN111090587A (en) Method, device and equipment for testing production point service and storage medium
CN113973129B (en) Gateway supporting multiple registry micro services
CN101853152A (en) Method and system for generating graphical user interface
CN112765030A (en) Test method, test device, electronic equipment and computer storage medium
CN109857391A (en) Processing method and processing device, storage medium and the electronic device of data
CN110109766A (en) Data request method, device, system, data forwarding device and storage medium
CN111367685B (en) Interface calling method and device, computer equipment and storage medium
CN110581893A (en) data transmission method and device, routing equipment, server and storage medium
CN113900925A (en) Test environment building and utilizing method, device, equipment and storage medium
CN116708266A (en) Cloud service topological graph real-time updating method, device, equipment and medium
US8224933B2 (en) Method and apparatus for case-based service composition
CN112702441B (en) Container-based access data processing method, device, system and storage medium
CN117472741A (en) Full-link environment isolation method, device and equipment
CN116204239A (en) Service processing method, device and computer readable storage medium
CN117149264B (en) Multi-lane research and development environment construction method, device, equipment and storage medium
CN111008015B (en) Micro front-end application framework based on front-end technology
CN116820958A (en) Agent-based multi-environment automation test method and system
CN113068216B (en) Network dial testing method, network dial testing system and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant