WO2023124366A1 - Shadow system-based feature comparison method and apparatus, and electronic device - Google Patents

Shadow system-based feature comparison method and apparatus, and electronic device Download PDF

Info

Publication number
WO2023124366A1
WO2023124366A1 PCT/CN2022/124464 CN2022124464W WO2023124366A1 WO 2023124366 A1 WO2023124366 A1 WO 2023124366A1 CN 2022124464 W CN2022124464 W CN 2022124464W WO 2023124366 A1 WO2023124366 A1 WO 2023124366A1
Authority
WO
WIPO (PCT)
Prior art keywords
production
business
version
shadow system
online
Prior art date
Application number
PCT/CN2022/124464
Other languages
French (fr)
Chinese (zh)
Inventor
周丰
宋荣鑫
黄建庭
雷柴卫
周斌
袁风帆
梁伟伦
Original Assignee
上海淇玥信息技术有限公司
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 上海淇玥信息技术有限公司 filed Critical 上海淇玥信息技术有限公司
Publication of WO2023124366A1 publication Critical patent/WO2023124366A1/en

Links

Images

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment

Definitions

  • the invention relates to the field of computer technology, in particular to a feature comparison method, device and electronic equipment based on a shadow system.
  • the production data will be affected due to reasons such as version stability and version anomalies.
  • the new software version is also launched, it is impossible to confirm in advance whether it will affect the production characteristics of the old software version, thereby affecting the user experience of the updated version. . Therefore need a kind of method that solves the above problem badly.
  • the present invention provides a shadow system-based feature comparison method, device and electronic equipment, which are used to verify the production effect of the pre-release business production version in advance, improve model verification and online use efficiency, and avoid production accidents.
  • the embodiment of this specification provides a feature comparison method based on the shadow system, including:
  • Comparing the first business result data with the second business result data comparing the production characteristics of the pre-release business production version with the production characteristics of the online business production system, and obtaining a first comparison result and a second comparison result respectively ;
  • a difference analysis is performed on the first comparison result and the second comparison result, and the pre-release service production version is processed according to the difference analysis result.
  • the shadow system before establishing the communication interface connection between the shadow system and the online business production version, it includes:
  • the establishment of a communication interface connection between the shadow system and the online business production version includes:
  • the shadow system When there is a strong dependency relationship between the online business production version and the interface of the shadow system, the shadow system establishes a communication interface connection with the online business production version through a grayscale association system;
  • the shadow system When there is no strong dependency relationship between the online service production version and the interface of the shadow system, the shadow system directly establishes a communication interface connection with the online service production version.
  • the acquisition of the production characteristics of the pre-release business production version, the business production data of the online business production version, and the production characteristics of the online business production version based on the communication interface includes:
  • the service production data of the online service production version is invoked through the communication interface.
  • the processing of the pre-release business production version according to the difference analysis results includes:
  • the processing of the pre-release business production version according to the difference analysis results further includes:
  • the production feature of the pre-release business production version is repaired according to the abnormality analysis result.
  • the embodiment of this specification also provides a feature comparison device based on the shadow system, including:
  • the interface connection module is used to establish the communication interface connection between the shadow system and the online business production version
  • An information acquisition module configured to acquire, based on the communication interface, the production characteristics of the pre-release business production version, the business production data of the online business production version, and the production characteristics of the online business production version;
  • a first running module configured to run an online business production version based on the business production data to obtain first business result data
  • a second running module configured to run the shadow system based on the production characteristics of the pre-release business production version and the business production data, to obtain second business result data
  • a comparison module configured to compare the first business result data with the second business result data, compare the production characteristics of the pre-release business production version with the production characteristics of the online business production system, and obtain first comparison results respectively and the second comparison result;
  • An analysis module configured to perform difference analysis on the first comparison result and the second comparison result, and process the pre-release service production version according to the difference analysis result.
  • the shadow system before establishing the communication interface connection between the shadow system and the online business production version, it includes:
  • the test module is used to perform functional verification and regression testing on the production features of the pre-release business production version
  • a release module configured to release the pre-release business production version that has passed functional verification and regression testing to the shadow system.
  • the interface connection module includes:
  • a judging unit configured to judge the interface relationship between the production version of the online business and the shadow system
  • a first interface connection unit configured to establish a communication interface connection between the shadow system and the online business production version through a grayscale correlation system when there is a strong dependency relationship between the online business production version and the interface of the shadow system;
  • the second interface connection unit is configured to directly establish a communication interface connection between the shadow system and the online service production version when there is no strong dependency relationship between the interface of the online service production version and the shadow system.
  • the information acquisition module includes:
  • a feature extraction unit configured to use the feature computing center to extract the production features of the pre-release business production version and the production features of the online business production version;
  • a data calling unit configured to call the business production data of the online business production version through the communication interface.
  • the analysis module includes:
  • the version replacement unit is configured to perform production release and production verification on the pre-release business production version, and replace the online business production version when the difference analysis result shows normal.
  • the analysis module also includes:
  • An abnormality analysis unit configured to analyze the abnormality to obtain an abnormality analysis result when the difference analysis result shows an abnormality
  • a version repairing unit configured to repair the production features of the pre-release business production version according to the abnormality analysis result.
  • An electronic device wherein the electronic device includes:
  • a processor and a memory storing a computer-executable program that, when executed, causes the processor to perform any of the methods described above.
  • a computer-readable storage medium wherein the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, implement the method described in any one of the above.
  • the present invention uses the shadow system to quickly discover the impact of the pre-release business production version on the production features in the historical version, avoiding the inability to cover the verification discovery caused by the impact on the production feature calculation in the historical version, and verify the production effect of the pre-release business production version in advance. Improve the efficiency of model verification and online use, so as to avoid production accidents.
  • FIG. 1 is a schematic diagram of the principle of a feature comparison method based on a shadow system provided by an embodiment of this specification;
  • Fig. 2 is a feature comparison flow chart based on a shadow system provided by the embodiment of this specification
  • Fig. 3 is a schematic structural diagram of a feature comparison device based on a shadow system provided by an embodiment of this specification
  • FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of this specification.
  • Fig. 5 is a schematic diagram of the principle of a computer-readable medium provided by the embodiment of this specification.
  • FIG. 1 it is a schematic diagram of the principle of a feature comparison method based on the shadow system provided by the embodiment of this specification, including:
  • the shadow system is a system that has all the functions and features of the pre-release business version. At the same time, it can realize the comparison of business result data, production characteristics, etc. between the shadow system and the online business production version, so that Quickly discover the impact of the production characteristics of the pre-release business version on the production characteristics of the online business production version, avoiding the impact of the production characteristics of the pre-release business version on the production characteristic calculation of the online business production version, which cannot cover the verification findings, thereby avoiding production accidents .
  • S102 Obtain the production characteristics of the pre-release business production version, the business production data of the online business production version, and the production characteristics of the online business production version based on the communication interface;
  • the online business production version runs according to the business production data to obtain the first business result data, and the first business result data is used for subsequent comparison with the result data generated during the operation of the shadow system to achieve two production verification of a version.
  • the shadow system is run, the business production data used by the shadow system is the business production data used by the online business production version, and the second business result data is obtained, and the same data is used for production verification, which can quickly Discover the impact of the production characteristics in the pre-release business production version on the production characteristics of the online production business version, and improve the verification efficiency and verification accuracy.
  • S105 Compare the first business result data with the second business result data, compare the production characteristics of the pre-release business production version with the production characteristics of the online business production system, and obtain the first comparison result and the second business result data respectively. compare results;
  • the shadow system automatically compares the first business result data with the second business result data, obtains the first comparison result of the business result data between the two versions, and compares the production characteristics of the pre-release business production version With the production characteristics of the online business production system, a second comparison result of the production characteristics between the two versions is obtained, and then the above comparison results are summarized for subsequent data analysis.
  • S106 Perform difference analysis on the first comparison result and the second comparison result, and process the pre-release service production version according to the difference analysis result.
  • the first comparison result and the second comparison result are analyzed to determine the difference in production characteristics and business result data between the pre-release business production version and the online production business version corresponding to the shadow system.
  • the difference between the production characteristics has no impact on the business result data or the impact is within the allowable error range, it means that the stability of the pre-release business production version corresponding to the shadow system at this time is suitable for online production, so the pre-release The release business production version goes online to replace the online production business version to optimize the function of the version.
  • the production features of the pre-release business production version are additionally added or updated production features on the basis of the production features of the online production business version, it is necessary to perform functional verification, Regression testing to ensure that additional or updated production features can be used online, using real business production data to perform regression verification on the pre-release business production version, making UAT (User Acceptance Test, User Acceptance Test) regression test verification scenarios more sufficient, The data is more real and rich, improving the efficiency of UAT regression verification, improving test regression efficiency, regression coverage, and regression accuracy.
  • UAT User Acceptance Test
  • the production environment verification can be carried out in advance, the effect can be verified in advance, and data calculation problems can be found in advance and repaired in time, thus greatly improving the verification and online use efficiency of the model in the production version.
  • the establishment of the communication interface connection between the shadow system and the online business production version includes:
  • the shadow system When there is a strong dependency relationship between the online business production version and the interface of the shadow system, the shadow system establishes a communication interface connection with the online business production version through a grayscale correlation system;
  • the shadow system When there is no strong dependency relationship between the online service production version and the interface of the shadow system, the shadow system directly establishes a communication interface connection with the online service production version.
  • the interface between the production version of the online business and the shadow system it is determined whether the interface between the production version of the online business and the shadow system can realize a communication connection.
  • the interface between the production version and the shadow system is associated to realize the communication connection between the production version of the online business and the shadow system; when there is no strong dependency relationship between the production version of the online business and the shadow system interface, the shadow system and the production
  • the interface between the versions can realize the communication connection, and the communication interface connection between the shadow system and the online business production version is established through the above method, which is convenient for the shadow system to call the business production data and production characteristics of the online production business version, which is a follow-up feature Comparison and business result data comparison provide data support.
  • the acquisition of the production characteristics of the pre-release business production version, the business production data of the online business production version, and the production characteristics of the online business production version based on the communication interface includes:
  • the service production data of the online service production version is invoked through the communication interface.
  • the feature computing center provides standard process logic for feature computing, core logic related to cache control, configuration loading, monitoring, and multiplexing, and differentiated shadow systems and online production service version call interfaces to realize Comparison between the shadow system and the online production business version.
  • processing of the pre-release business production version according to the difference analysis result includes:
  • processing of the pre-release service production version according to the difference analysis result also includes:
  • the production feature of the pre-release business production version is repaired according to the abnormality analysis result.
  • the pre-release business production version when the result of the difference analysis shows normal, it means that the stability of the pre-release business production version corresponding to the shadow system is suitable for online production, so the pre-release business production version can be put online to replace the online production Business version to optimize the function of the version; when the difference analysis results show abnormalities, it means that there is a big difference between the pre-release business production version corresponding to the shadow system and the online production business version. Repair the pre-release business production version, and then perform function verification and test regression on the repaired pre-release business production version again, until the comparison and analysis between the pre-release business production version released to the shadow system and the online production business version is normal .
  • the configuration management information of the shadow system and the online business production version are calculated independently of different cluster characteristics
  • the deployment service fep-online-app undertakes the online business production version and the business feature calculation service of the shadow system
  • the deployment service eep-app undertakes the online business production
  • the production feature calculation and scheduling of the version deploying the shadow service VRP-eep-app to undertake the production feature scheduling related services of the pre-release business corresponding to the shadow system, deploying the shadow system comparison service vrp-compare to undertake the pre-release business production corresponding to the shadow system
  • FIG. 2 it is a flow chart of feature comparison based on the shadow system provided by the embodiment of this specification.
  • the function verification and regression verification are normal, release to the shadow system , realize the comparison between the pre-release business production version and the online business production version through the shadow system.
  • the shadow system turns on the feature drainage switch, calls and runs the production data in the message queue in the online business production version, and extracts the production features of the online business production version, so as to realize the comparison between the pre-release business production version and the The message consumption results, production characteristics, etc. between the online business production versions, finally get a comparison result report, analyze the comparison result report, when the analysis shows that it is normal, release the pre-release business production version to replace the online business production version; when analyzing When an exception is displayed, analyze the cause of the exception, repair the pre-release business production version according to the abnormal reason, and then repeat the above process until the pre-release business production version can be launched.
  • Fig. 3 is a schematic structural diagram of a feature comparison device based on a shadow system provided by an embodiment of this specification, including:
  • An interface connection module 201 configured to establish a communication interface connection between the shadow system and the online business production version
  • An information acquisition module 202 configured to acquire, based on the communication interface, the production characteristics of the pre-release business production version, the business production data of the online business production version, and the production characteristics of the online business production version;
  • the first running module 203 is configured to run an online business production version based on the business production data to obtain first business result data;
  • the second running module 204 is configured to run the shadow system based on the production characteristics of the pre-release business production version and the business production data to obtain second business result data;
  • a comparison module 205 configured to compare the first business result data with the second business result data, compare the production characteristics of the pre-release business production version with the production characteristics of the online business production system, and obtain a first comparison result and second comparison result;
  • the analysis module 206 is configured to perform difference analysis on the first comparison result and the second comparison result, and process the pre-release service production version according to the difference analysis result.
  • the test module is used for functional verification and regression testing of the production features of the pre-release business production version
  • a release module configured to release the pre-release business production version that has passed functional verification and regression testing to the shadow system.
  • the interface connection module 201 includes:
  • a judging unit configured to judge the interface relationship between the production version of the online business and the shadow system
  • a first interface connection unit configured to establish a communication interface connection between the shadow system and the online business production version through a grayscale correlation system when there is a strong dependency relationship between the online business production version and the interface of the shadow system;
  • the second interface connection unit is configured to directly establish a communication interface connection between the shadow system and the online service production version when there is no strong dependency relationship between the interface of the online service production version and the shadow system.
  • the information acquisition module 202 includes:
  • a feature extraction unit configured to use the feature computing center to extract the production features of the pre-release business production version and the production features of the online business production version;
  • a data calling unit configured to call the business production data of the online business production version through the communication interface.
  • analysis module 206 includes:
  • the version replacement unit is configured to perform production release and production verification on the pre-release business production version, and replace the online business production version when the difference analysis result shows normal.
  • analysis module 206 also includes:
  • An abnormality analysis unit configured to analyze the abnormality to obtain an abnormality analysis result when the difference analysis result shows an abnormality
  • a version repairing unit configured to repair the production features of the pre-release business production version according to the abnormality analysis result.
  • the embodiment of this specification also provides an electronic device.
  • an electronic device embodiment of the present invention will be described below, and the electronic device can be regarded as a specific physical implementation of the above-mentioned method and device embodiments of the present invention.
  • the details described in the electronic device embodiments of the present invention should be regarded as supplements to the above-mentioned method or device embodiments; for the details not disclosed in the electronic device embodiments of the present invention, it can be implemented by referring to the above-mentioned method or device embodiments.
  • FIG. 4 it is a schematic structural diagram of an electronic device provided by an embodiment of this specification.
  • An electronic device 300 according to this embodiment of the present invention is described below with reference to FIG. 4 .
  • the electronic device 300 shown in FIG. 4 is only an example, and should not limit the functions and application scope of this embodiment of the present invention.
  • electronic device 300 takes the form of a general-purpose computing device.
  • the components of the electronic device 300 may include, but are not limited to: at least one processing unit 310, at least one storage unit 320, a bus 330 connecting different device components (including the storage unit 320 and the processing unit 310), a display unit 340, and the like.
  • the storage unit stores program codes, and the program codes can be executed by the processing unit 310, so that the processing unit 310 executes the processing methods according to various exemplary embodiments of the present invention described in the above processing method section of this specification. step.
  • the processing unit 310 may execute the steps shown in FIG. 1 .
  • the storage unit 320 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 3201 and/or a cache storage unit 3202 , and may further include a read-only storage unit (ROM) 3203 .
  • RAM random access storage unit
  • ROM read-only storage unit
  • the storage unit 320 may also include a program/utility tool 3204 having a set (at least one) of program modules 3205, such program modules 3205 including but not limited to: an operating device, one or more application programs, other program modules, and program data, each or some combination of these examples may include the realization of the network environment.
  • program modules 3205 including but not limited to: an operating device, one or more application programs, other program modules, and program data, each or some combination of these examples may include the realization of the network environment.
  • Bus 330 may represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local area using any of a variety of bus structures. bus.
  • the electronic device 300 can also communicate with one or more external devices 400 (such as keyboards, pointing devices, Bluetooth devices, etc.), and can also communicate with one or more devices that enable the user to interact with the electronic device 300, and/or communicate with Any device (eg, router, modem, etc.) that enables the electronic device 300 to communicate with one or more other computing devices. Such communication may occur through input/output (I/O) interface 350 .
  • the electronic device 300 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN) and/or a public network such as the Internet) through the network adapter 360 .
  • the network adapter 360 can communicate with other modules of the electronic device 300 through the bus 330 .
  • other hardware and/or software modules may be used in conjunction with electronic device 300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID devices, tape Drives and data backup storage devices, etc.
  • the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, and the software product can be stored in a computer-readable storage medium (which can be a CD-ROM, U disk, mobile hard disk, etc.) or on a network , including several instructions to make a computing device (which may be a personal computer, a server, or a network device, etc.) execute the above-mentioned method according to the present invention.
  • a computer-readable storage medium which can be a CD-ROM, U disk, mobile hard disk, etc.
  • the computer-readable medium can realize the above-mentioned method of the present invention, that is, the method as shown in FIG. 1 .
  • FIG. 5 it is a schematic schematic diagram of a computer readable medium provided by an embodiment of this specification.
  • the computer program implementing the method shown in Figure 1 can be stored on one or more computer readable media.
  • the computer readable medium may be a readable signal medium or a readable storage medium.
  • the readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor device, device, or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: electrical connection with one or more conductors, portable disk, hard disk, random access memory (RAM), read only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
  • the computer readable storage medium may include a data signal carrying readable program code in baseband or as part of a carrier wave traveling as a data signal. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the readable storage medium may also be any readable medium other than a readable storage medium that can send, propagate or transport a program for use by or in conjunction with an instruction execution device, apparatus or device.
  • the program code contained on the readable storage medium may be transmitted by any suitable medium, including but not limited to wireless, cable, optical cable, RF, etc., or any suitable combination of the above.
  • Program code for carrying out the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural programming languages. Programming language - such as "C" or a similar programming language.
  • the program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server to execute.
  • the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (for example, using an Internet service provider). business to connect via the Internet).
  • LAN local area network
  • WAN wide area network
  • Internet service provider for example, using an Internet service provider
  • the present invention can be realized by hardware, or by software modules running on one or more processors, or by a combination thereof.
  • general data processing devices such as microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all functions of some or all components in the embodiments of the present invention.
  • DSPs digital signal processors
  • the present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein.
  • Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals.
  • Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • General Factory Administration (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to the technical field of computers, in particular to a shadow system-based feature comparison method and apparatus, and an electronic device. The method comprises: acquiring production features of a pre-released service production version, service production data of an online service production version and production features of the online service production version; running the online service production version and the shadow system to obtain second service result data; comparing the first service result data with the second service result data, and comparing the production features of the pre-released service production version with the production features of the online service production system; and performing difference analysis on the comparison result, and processing the pre-released service production version according to a difference analysis result. The present invention uses the shadow system for quickly discovering the influence of the pre-released service production version on production features in a historical version, and avoids the situation that a verification finding cannot be covered due to the influence on calculation of the production features in the historical version, and therefore production accidents are avoided.

Description

一种基于影子系统的特征对比方法、装置和电子设备A feature comparison method, device and electronic equipment based on shadow system 技术领域technical field
本发明涉及计算机技术领域,尤其涉及一种基于影子系统的特征对比方法、装置和电子设备。The invention relates to the field of computer technology, in particular to a feature comparison method, device and electronic equipment based on a shadow system.
背景技术Background technique
目前,软件产品投入使用之后,经常会增加或修改一些功能,以保证软件提供更优质的服务。现有技术在软件版本更新时,需要通过技术人员手动提取相关的需改动的程序文件进行更新,由于需改动的程序文件数量庞大,且不同文件的更新方式不同,技术人员手动提取文件时不仅会耗费大量的精力导出需改动的程序文件,而且很容易出错,导致软件版本更新的效率和准确性较低。At present, after software products are put into use, some functions are often added or modified to ensure that the software provides better services. In the prior art, when the software version is updated, it is necessary for technicians to manually extract the relevant program files to be changed for updating. Due to the large number of program files to be changed, and the update methods of different files are different, when the technicians manually extract the files, not only will the It takes a lot of energy to export the program files that need to be changed, and it is easy to make mistakes, resulting in low efficiency and accuracy of software version updates.
软件版本更新后,会因为版本的稳定性、版本异常等原因对生产数据造成影响,新软件版本的也上线无法提前确认是否对旧软件版本的生产特征造成影响,从而影响用户对更新版本的体验。因此亟需一种解决上述问题的方法。After the software version is updated, the production data will be affected due to reasons such as version stability and version anomalies. When the new software version is also launched, it is impossible to confirm in advance whether it will affect the production characteristics of the old software version, thereby affecting the user experience of the updated version. . Therefore need a kind of method that solves the above problem badly.
发明内容Contents of the invention
本发明提供了一种基于影子系统的特征对比方法、装置和电子设备,用以提前验证预发布业务生产版本的生产效果,提升模型验证及上线使用效率,避免发生生产事故。The present invention provides a shadow system-based feature comparison method, device and electronic equipment, which are used to verify the production effect of the pre-release business production version in advance, improve model verification and online use efficiency, and avoid production accidents.
本说明书实施例提供一种基于影子系统的特征对比方法,包括:The embodiment of this specification provides a feature comparison method based on the shadow system, including:
建立影子系统与在线业务生产版本之间的通信接口连接;Establish a communication interface connection between the shadow system and the production version of the online business;
基于所述通信接口获取预发布业务生产版本的生产特征、在线业务生产版本的业务生产数据、所述在线业务生产版本的生产特征;Obtaining the production characteristics of the pre-release business production version, the business production data of the online business production version, and the production characteristics of the online business production version based on the communication interface;
基于所述业务生产数据运行在线业务生产版本,得到第一业务结果数据;Running an online business production version based on the business production data to obtain first business result data;
基于所述预发布业务生产版本的生产特征和所述业务生产数据运行所述影子系统,得到第二业务结果数据;Running the shadow system based on the production characteristics of the pre-release business production version and the business production data to obtain second business result data;
对比所述第一业务结果数据与所述第二业务结果数据,对比所述预发布业务生产版本的生产特征与所述在线业务生产系统的生产特征,分别得到第一对 比结果和第二对比结果;Comparing the first business result data with the second business result data, comparing the production characteristics of the pre-release business production version with the production characteristics of the online business production system, and obtaining a first comparison result and a second comparison result respectively ;
对所述第一对比结果和所述第二对比结果进行差异分析,根据差异分析结果对所述预发布业务生产版本进行处理。A difference analysis is performed on the first comparison result and the second comparison result, and the pre-release service production version is processed according to the difference analysis result.
优选的,在建立影子系统与所述在线业务生产版本之间的通信接口连接之前,包括:Preferably, before establishing the communication interface connection between the shadow system and the online business production version, it includes:
对所述预发布业务生产版本的生产特征进行功能验证、回归测试;Perform functional verification and regression testing on the production features of the pre-release business production version;
将通过功能验证、回归测试的所述预发布业务生产版本发布至所述影子系统。Publishing the pre-release business production version that has passed functional verification and regression testing to the shadow system.
优选的,所述建立影子系统与所述在线业务生产版本之间的通信接口连接,包括:Preferably, the establishment of a communication interface connection between the shadow system and the online business production version includes:
判断所述在线业务生产版本与所述影子系统的接口关联关系;Judging the interface relationship between the production version of the online business and the shadow system;
当所述在线业务生产版本与所述影子系统的接口存在强依赖关联时,所述影子系统通过灰度关联系统与所述在线业务生产版本建立通信接口连接;When there is a strong dependency relationship between the online business production version and the interface of the shadow system, the shadow system establishes a communication interface connection with the online business production version through a grayscale association system;
当所述在线业务生产版本与所述影子系统的接口不存在强依赖关联时,所述影子系统与所述在线业务生产版本直接建立通信接口连接。When there is no strong dependency relationship between the online service production version and the interface of the shadow system, the shadow system directly establishes a communication interface connection with the online service production version.
优选的,所述基于所述通信接口获取预发布业务生产版本的生产特征、在线业务生产版本的业务生产数据、所述在线业务生产版本的生产特征,包括:Preferably, the acquisition of the production characteristics of the pre-release business production version, the business production data of the online business production version, and the production characteristics of the online business production version based on the communication interface includes:
利用特征计算中心提取预发布业务生产版本的生产特征、所述在线业务生产版本的生产特征;Using the feature computing center to extract the production features of the pre-release business production version and the production features of the online business production version;
通过所述通信接口调用所述在线业务生产版本的业务生产数据。The service production data of the online service production version is invoked through the communication interface.
优选的,所述根据差异分析结果对所述预发布业务生产版本进行处理,包括:Preferably, the processing of the pre-release business production version according to the difference analysis results includes:
当所述差异分析结果显示正常时,对所述预发布业务生产版本进行生产发布、生产验证,替换所述在线业务生产版本。When the difference analysis result shows that it is normal, perform production release and production verification on the pre-release business production version, and replace the online business production version.
优选的,所述根据差异分析结果对所述预发布业务生产版本进行处理,还包括:Preferably, the processing of the pre-release business production version according to the difference analysis results further includes:
当所述差异分析结果显示异常时,对所述异常进行分析,得到异常分析结果;When the difference analysis result shows an abnormality, analyze the abnormality to obtain an abnormal analysis result;
根据所述异常分析结果对所述预发布业务生产版本的生产特征进行修复。The production feature of the pre-release business production version is repaired according to the abnormality analysis result.
本说明书实施例还提供一种基于影子系统的特征对比装置,包括:The embodiment of this specification also provides a feature comparison device based on the shadow system, including:
接口连接模块,用于建立影子系统与在线业务生产版本之间的通信接口连 接;The interface connection module is used to establish the communication interface connection between the shadow system and the online business production version;
信息获取模块,用于基于所述通信接口获取预发布业务生产版本的生产特征、在线业务生产版本的业务生产数据、所述在线业务生产版本的生产特征;An information acquisition module, configured to acquire, based on the communication interface, the production characteristics of the pre-release business production version, the business production data of the online business production version, and the production characteristics of the online business production version;
第一运行模块,用于基于所述业务生产数据运行在线业务生产版本,得到第一业务结果数据;A first running module, configured to run an online business production version based on the business production data to obtain first business result data;
第二运行模块,用于基于所述预发布业务生产版本的生产特征和所述业务生产数据运行所述影子系统,得到第二业务结果数据;A second running module, configured to run the shadow system based on the production characteristics of the pre-release business production version and the business production data, to obtain second business result data;
对比模块,用于对比所述第一业务结果数据与所述第二业务结果数据,对比所述预发布业务生产版本的生产特征与所述在线业务生产系统的生产特征,分别得到第一对比结果和第二对比结果;A comparison module, configured to compare the first business result data with the second business result data, compare the production characteristics of the pre-release business production version with the production characteristics of the online business production system, and obtain first comparison results respectively and the second comparison result;
分析模块,用于对所述第一对比结果和所述第二对比结果进行差异分析,根据差异分析结果对所述预发布业务生产版本进行处理。An analysis module, configured to perform difference analysis on the first comparison result and the second comparison result, and process the pre-release service production version according to the difference analysis result.
优选的,在建立影子系统与所述在线业务生产版本之间的通信接口连接之前,包括:Preferably, before establishing the communication interface connection between the shadow system and the online business production version, it includes:
测试模块,用于对所述预发布业务生产版本的生产特征进行功能验证、回归测试;The test module is used to perform functional verification and regression testing on the production features of the pre-release business production version;
发布模块,用于将通过功能验证、回归测试的所述预发布业务生产版本发布至所述影子系统。A release module, configured to release the pre-release business production version that has passed functional verification and regression testing to the shadow system.
优选的,所述接口连接模块包括:Preferably, the interface connection module includes:
判断单元,用于判断所述在线业务生产版本与所述影子系统的接口关联关系;A judging unit, configured to judge the interface relationship between the production version of the online business and the shadow system;
第一接口连接单元,用于当所述在线业务生产版本与所述影子系统的接口存在强依赖关联时,所述影子系统通过灰度关联系统与所述在线业务生产版本建立通信接口连接;A first interface connection unit, configured to establish a communication interface connection between the shadow system and the online business production version through a grayscale correlation system when there is a strong dependency relationship between the online business production version and the interface of the shadow system;
第二接口连接单元,用于当所述在线业务生产版本与所述影子系统的接口不存在强依赖关联时,所述影子系统与所述在线业务生产版本直接建立通信接口连接。The second interface connection unit is configured to directly establish a communication interface connection between the shadow system and the online service production version when there is no strong dependency relationship between the interface of the online service production version and the shadow system.
优选的,所述信息获取模块包括:Preferably, the information acquisition module includes:
特征提取单元,用于利用特征计算中心提取预发布业务生产版本的生产特征、所述在线业务生产版本的生产特征;A feature extraction unit, configured to use the feature computing center to extract the production features of the pre-release business production version and the production features of the online business production version;
数据调用单元,用于通过所述通信接口调用所述在线业务生产版本的业务 生产数据。A data calling unit, configured to call the business production data of the online business production version through the communication interface.
优选的,所述分析模块包括:Preferably, the analysis module includes:
版本替换单元,用于当所述差异分析结果显示正常时,对所述预发布业务生产版本进行生产发布、生产验证,替换所述在线业务生产版本。The version replacement unit is configured to perform production release and production verification on the pre-release business production version, and replace the online business production version when the difference analysis result shows normal.
优选的,所述分析模块还包括:Preferably, the analysis module also includes:
异常分析单元,用于当所述差异分析结果显示异常时,对所述异常进行分析,得到异常分析结果;An abnormality analysis unit, configured to analyze the abnormality to obtain an abnormality analysis result when the difference analysis result shows an abnormality;
版本修复单元,用于根据所述异常分析结果对所述预发布业务生产版本的生产特征进行修复。A version repairing unit, configured to repair the production features of the pre-release business production version according to the abnormality analysis result.
一种电子设备,其中,该电子设备包括:An electronic device, wherein the electronic device includes:
处理器以及存储计算机可执行程序的存储器,所述可执行程序在被执行时使所述处理器执行上述任一项所述的方法。A processor and a memory storing a computer-executable program that, when executed, causes the processor to perform any of the methods described above.
一种计算机可读存储介质,其中,所述计算机可读存储介质存储一个或多个程序,所述一个或多个程序当被处理器执行时,实现上述任一项所述的方法。A computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, implement the method described in any one of the above.
本发明利用影子系统快速发现预发布业务生产版本对历史版本中生产特征的影响,避免对历史版本中的生产特征计算产生影响造成的无法覆盖验证发现,提前验证预发布业务生产版本的生产效果,提升模型验证及上线使用效率,从而避免发生生产事故。The present invention uses the shadow system to quickly discover the impact of the pre-release business production version on the production features in the historical version, avoiding the inability to cover the verification discovery caused by the impact on the production feature calculation in the historical version, and verify the production effect of the pre-release business production version in advance. Improve the efficiency of model verification and online use, so as to avoid production accidents.
附图说明Description of drawings
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described here are used to provide a further understanding of the application and constitute a part of the application. The schematic embodiments and descriptions of the application are used to explain the application and do not constitute an improper limitation to the application. In the attached picture:
图1为本说明书实施例提供的一种基于影子系统的特征对比方法的原理示意图;FIG. 1 is a schematic diagram of the principle of a feature comparison method based on a shadow system provided by an embodiment of this specification;
图2为本说明书实施例提供的一种基于影子系统的特征对比流程图;Fig. 2 is a feature comparison flow chart based on a shadow system provided by the embodiment of this specification;
图3为本说明书实施例提供的一种基于影子系统的特征对比装置的结构示意图;Fig. 3 is a schematic structural diagram of a feature comparison device based on a shadow system provided by an embodiment of this specification;
图4为本说明书实施例提供的一种电子设备的结构示意图;FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of this specification;
图5为本说明书实施例提供的一种计算机可读介质的原理示意图。Fig. 5 is a schematic diagram of the principle of a computer-readable medium provided by the embodiment of this specification.
具体实施方式Detailed ways
现在将参考附图更全面地描述本发明的示例性实施例。然而,示例性实施例能够以多种形式实施,且不应被理解为本发明仅限于在此阐述的实施例。相反,提供这些示例性实施例能够使得本发明更加全面和完整,更加便于将发明构思全面地传达给本领域的技术人员。在图中相同的附图标记表示相同或类似的元件、组件或部分,因而将省略对它们的重复描述。Exemplary embodiments of the present invention will now be described more fully with reference to the accompanying drawings. However, example embodiments may be embodied in many forms, and this invention should not be construed as limited to the embodiments set forth herein. On the contrary, providing these exemplary embodiments can make the present invention more comprehensive and complete, and facilitate the full transfer of the inventive concept to those skilled in the art. The same reference numerals denote the same or similar elements, components or parts in the drawings, and thus their repeated descriptions will be omitted.
在符合本发明的技术构思的前提下,在某个特定的实施例中描述的特征、结构、特性或其他细节不排除可以以合适的方式结合在一个或更多其他的实施例中。On the premise of conforming to the technical concept of the present invention, the features, structures, characteristics or other details described in a specific embodiment do not exclude that they can be combined in one or more other embodiments in a suitable manner.
在对于具体实施例的描述中,本发明描述的特征、结构、特性或其他细节是为了使本领域的技术人员对实施例进行充分理解。但是,并不排除本领域技术人员可以实践本发明的技术方案而没有特定特征、结构、特性或其他细节的一个或更多。In the description of the specific embodiments, the features, structures, characteristics or other details described in the present invention are intended to enable those skilled in the art to fully understand the embodiments. However, it does not exclude that those skilled in the art can practice the technical solutions of the present invention without one or more of the specific features, structures, characteristics or other details.
附图中所示的图仅是示例性说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解,而有的操作/步骤可以合并或部分合并,因此实际执行的顺序有可能根据实际情况改变。The diagrams shown in the accompanying drawings are illustrative only, and do not necessarily include all contents and operations/steps, nor do they have to be performed in the order described. For example, some operations/steps can be decomposed, and some operations/steps can be combined or partly combined, so the actual order of execution may be changed according to the actual situation.
附图中所示的方框图仅仅是功能实体,不一定必须与物理上独立的实体相对应。即,可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。The block diagrams shown in the drawings are merely functional entities and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices entity.
术语“和/或”或者“及/或”包括相关联的列出项目中的任一个或多者的所有组合。The term "and/or" or "and/or" includes all combinations of any one or more of the associated listed items.
参照图1为本说明书实施例提供的一种基于影子系统的特征对比方法的原理示意图,包括:Referring to Figure 1, it is a schematic diagram of the principle of a feature comparison method based on the shadow system provided by the embodiment of this specification, including:
S101:建立影子系统与在线业务生产版本之间的通信接口连接;S101: Establish a communication interface connection between the shadow system and the production version of the online business;
在本发明较佳的实施例中,影子系统是一个具备预发布业务版本全部功能和特性的系统,同时,能够实现对比影子系统与在线业务生产版本之间的业务结果数据、生产特征等,从而快速发现预发布业务版本的生产特征对在线业务生产版本的生产特征的影响,避免预发布业务版本的生产特征对在线业务生产版本的生产特征计算产生影响而无法覆盖验证发现,从而避免发生生产事故。In a preferred embodiment of the present invention, the shadow system is a system that has all the functions and features of the pre-release business version. At the same time, it can realize the comparison of business result data, production characteristics, etc. between the shadow system and the online business production version, so that Quickly discover the impact of the production characteristics of the pre-release business version on the production characteristics of the online business production version, avoiding the impact of the production characteristics of the pre-release business version on the production characteristic calculation of the online business production version, which cannot cover the verification findings, thereby avoiding production accidents .
S102:基于所述通信接口获取预发布业务生产版本的生产特征、在线业务 生产版本的业务生产数据、所述在线业务生产版本的生产特征;S102: Obtain the production characteristics of the pre-release business production version, the business production data of the online business production version, and the production characteristics of the online business production version based on the communication interface;
S103:基于所述业务生产数据运行在线业务生产版本,得到第一业务结果数据;S103: Run an online business production version based on the business production data to obtain first business result data;
在本发明较佳的实施例中,在线业务生产版本根据业务生产数据运行,得到第一业务结果数据,第一业务结果数据用于后续与影子系统运行时产生的结果数据进行比对,实现两个版本的生产验证。In a preferred embodiment of the present invention, the online business production version runs according to the business production data to obtain the first business result data, and the first business result data is used for subsequent comparison with the result data generated during the operation of the shadow system to achieve two production verification of a version.
S104:基于所述预发布业务生产版本的生产特征和所述业务生产数据运行所述影子系统,得到第二业务结果数据;S104: Run the shadow system based on the production characteristics of the pre-release business production version and the business production data to obtain second business result data;
在本发明较佳的实施例中,运行影子系统,影子系统所使用的业务生产数据为在线业务生产版本使用的业务生产数据,得到第二业务结果数据,采用相同的数据进行生产验证,能够快速发现预发布业务生产版本中的生产特征对在线生产业务版本的生产特征的影响,提升验证效率及验证准确度。In a preferred embodiment of the present invention, the shadow system is run, the business production data used by the shadow system is the business production data used by the online business production version, and the second business result data is obtained, and the same data is used for production verification, which can quickly Discover the impact of the production characteristics in the pre-release business production version on the production characteristics of the online production business version, and improve the verification efficiency and verification accuracy.
S105:对比所述第一业务结果数据与所述第二业务结果数据,对比所述预发布业务生产版本的生产特征与所述在线业务生产系统的生产特征,分别得到第一对比结果和第二对比结果;S105: Compare the first business result data with the second business result data, compare the production characteristics of the pre-release business production version with the production characteristics of the online business production system, and obtain the first comparison result and the second business result data respectively. compare results;
在本发明较佳的实施例中,影子系统自动对比第一业务结果数据与第二业务结果数据,得到两个版本之间业务结果数据的第一对比结果,对比预发布业务生产版本的生产特征与所述在线业务生产系统的生产特征,得到两个版本之间生产特征的第二对比结果,然后将上述对比结果进行汇总,以便于后后续的数据分析。In a preferred embodiment of the present invention, the shadow system automatically compares the first business result data with the second business result data, obtains the first comparison result of the business result data between the two versions, and compares the production characteristics of the pre-release business production version With the production characteristics of the online business production system, a second comparison result of the production characteristics between the two versions is obtained, and then the above comparison results are summarized for subsequent data analysis.
S106:对所述第一对比结果和所述第二对比结果进行差异分析,根据差异分析结果对所述预发布业务生产版本进行处理。S106: Perform difference analysis on the first comparison result and the second comparison result, and process the pre-release service production version according to the difference analysis result.
在本发明较佳的实施例中,分析第一对比结果和第二对比结果,确定影子系统对应的预发布业务生产版本与在线生产业务版本之间的生产特征差异、业务结果数据差异,当分析发现生产特征之间的差异对业务结果数据不产生影响或产生的影响在允许的误差范围内时,说明此时影子系统对应的预发布业务生产版本稳定性适用于线上生产,因此可以将预发布业务生产版本上线替换掉在线生产业务版本,以优化版本的功能。In a preferred embodiment of the present invention, the first comparison result and the second comparison result are analyzed to determine the difference in production characteristics and business result data between the pre-release business production version and the online production business version corresponding to the shadow system. When it is found that the difference between the production characteristics has no impact on the business result data or the impact is within the allowable error range, it means that the stability of the pre-release business production version corresponding to the shadow system at this time is suitable for online production, so the pre-release The release business production version goes online to replace the online production business version to optimize the function of the version.
进一步地,在建立影子系统与所述在线业务生产版本之间的通信接口连接之前,包括:Further, before establishing the communication interface connection between the shadow system and the online business production version, it includes:
对所述预发布业务生产版本的生产特征进行功能验证、回归测试;Perform functional verification and regression testing on the production features of the pre-release business production version;
将通过功能验证、回归测试的所述预发布业务生产版本发布至所述影子系统。Publishing the pre-release business production version that has passed functional verification and regression testing to the shadow system.
在本发明较佳的实施例中,由于预发布业务生产版本的生产特征是在在线生产业务版本的生产特征基础上,额外增加或更新的生产特征,因此,需要对这些生产特征进行功能验证、回归测试,以确定额外增加或更新的生产特征能够上线使用,使用真实的业务生产数据对预发布业务生产版本进行回归验证,使得UAT(User Acceptance Test,用户验收测试)回归测试验证场景更充分,数据更真实丰富,提升UAT回归验证效率,提高测试回归效率、回归覆盖面、以及回归的准确性。在UAT过程中,可以提前进行生产环境验证,提前验证效果,提前发现数据计算问题并及时修复,从而大大提高生产版本中模型的验证及上线使用效率。In a preferred embodiment of the present invention, since the production features of the pre-release business production version are additionally added or updated production features on the basis of the production features of the online production business version, it is necessary to perform functional verification, Regression testing to ensure that additional or updated production features can be used online, using real business production data to perform regression verification on the pre-release business production version, making UAT (User Acceptance Test, User Acceptance Test) regression test verification scenarios more sufficient, The data is more real and rich, improving the efficiency of UAT regression verification, improving test regression efficiency, regression coverage, and regression accuracy. In the UAT process, the production environment verification can be carried out in advance, the effect can be verified in advance, and data calculation problems can be found in advance and repaired in time, thus greatly improving the verification and online use efficiency of the model in the production version.
进一步地,所述建立影子系统与所述在线业务生产版本之间的通信接口连接,包括:Further, the establishment of the communication interface connection between the shadow system and the online business production version includes:
判断所述在线业务生产版本与所述影子系统的接口关联关系;Judging the interface relationship between the production version of the online business and the shadow system;
当所述在线业务生产版本与所述影子系统的接口存在强依赖关联时,所述影子系统通过灰度关联系统与所述在线业务生产版本建立通信接口连接;When there is a strong dependency relationship between the online business production version and the interface of the shadow system, the shadow system establishes a communication interface connection with the online business production version through a grayscale correlation system;
当所述在线业务生产版本与所述影子系统的接口不存在强依赖关联时,所述影子系统与所述在线业务生产版本直接建立通信接口连接。When there is no strong dependency relationship between the online service production version and the interface of the shadow system, the shadow system directly establishes a communication interface connection with the online service production version.
在本发明较佳的实施例中,确定在线业务生产版本与影子系统的接口是否能实现通信连接,当在线业务生产版本与影子系统的接口存在强依赖关联时,利用灰度关联系统将在线业务生产版本与影子系统之间的接口进行关联,以实现线业务生产版本与影子系统之间的通信连接;当在线业务生产版本与影子系统的接口不存在强依赖关联时,影子系统与在线业务生产版本之间的接口可以实现通信连接,通过上述方式建立影子系统与所述在线业务生产版本之间的通信接口连接,便于影子系统调用在线生产业务版本的业务生产数据、生产特征等,为后续特征比对、业务结果数据比对提供数据支持。In a preferred embodiment of the present invention, it is determined whether the interface between the production version of the online business and the shadow system can realize a communication connection. The interface between the production version and the shadow system is associated to realize the communication connection between the production version of the online business and the shadow system; when there is no strong dependency relationship between the production version of the online business and the shadow system interface, the shadow system and the production The interface between the versions can realize the communication connection, and the communication interface connection between the shadow system and the online business production version is established through the above method, which is convenient for the shadow system to call the business production data and production characteristics of the online production business version, which is a follow-up feature Comparison and business result data comparison provide data support.
进一步地,所述基于所述通信接口获取预发布业务生产版本的生产特征、在线业务生产版本的业务生产数据、所述在线业务生产版本的生产特征,包括:Further, the acquisition of the production characteristics of the pre-release business production version, the business production data of the online business production version, and the production characteristics of the online business production version based on the communication interface includes:
利用特征计算中心提取预发布业务生产版本的生产特征、所述在线业务生产版本的生产特征;Using the feature computing center to extract the production features of the pre-release business production version and the production features of the online business production version;
通过所述通信接口调用所述在线业务生产版本的业务生产数据。The service production data of the online service production version is invoked through the communication interface.
在本发明较佳的实施例中,特征计算中心提供特征计算标准流程逻辑,提供缓存控制、配置加载、监控、复用相关核心逻辑,提供差异化的影子系统与在线生产业务版本调用接口,实现影子系统与在线生产业务版本之间的比对。In a preferred embodiment of the present invention, the feature computing center provides standard process logic for feature computing, core logic related to cache control, configuration loading, monitoring, and multiplexing, and differentiated shadow systems and online production service version call interfaces to realize Comparison between the shadow system and the online production business version.
进一步地,所述根据差异分析结果对所述预发布业务生产版本进行处理,包括:Further, the processing of the pre-release business production version according to the difference analysis result includes:
当所述差异分析结果显示正常时,对所述预发布业务生产版本进行生产发布、生产验证,替换所述在线业务生产版本。When the difference analysis result shows that it is normal, perform production release and production verification on the pre-release business production version, and replace the online business production version.
进一步地,所述根据差异分析结果对所述预发布业务生产版本进行处理,还包括:Further, the processing of the pre-release service production version according to the difference analysis result also includes:
当所述差异分析结果显示异常时,对所述异常进行分析,得到异常分析结果;When the difference analysis result shows an abnormality, analyze the abnormality to obtain an abnormal analysis result;
根据所述异常分析结果对所述预发布业务生产版本的生产特征进行修复。The production feature of the pre-release business production version is repaired according to the abnormality analysis result.
在本发明较佳的实施例中,差异分析结果显示正常时,说明此时影子系统对应的预发布业务生产版本稳定性适用于线上生产,因此可以将预发布业务生产版本上线替换掉在线生产业务版本,以优化版本的功能;差异分析结果显示异常时,说明影子系统对应的预发布业务生产版本与在线生产业务版本存在较大差异,此时需要分析产生差异的具体原因,然后针对原因进行预发布业务生产版本的修复,之后对修复好的预发布业务生产版本再次进行功能验证、测试回归,直至发布到影子系统的预发布业务生产版本与在线生产业务版本之间的比对分析为正常。In a preferred embodiment of the present invention, when the result of the difference analysis shows normal, it means that the stability of the pre-release business production version corresponding to the shadow system is suitable for online production, so the pre-release business production version can be put online to replace the online production Business version to optimize the function of the version; when the difference analysis results show abnormalities, it means that there is a big difference between the pre-release business production version corresponding to the shadow system and the online production business version. Repair the pre-release business production version, and then perform function verification and test regression on the repaired pre-release business production version again, until the comparison and analysis between the pre-release business production version released to the shadow system and the online production business version is normal .
进一步地,独立不同集群特征计算影子系统与在线业务生产版本的配置管理信息,部署服务fep-online-app承接在线业务生产版本以及影子系统的业务特征计算服务,部署服务eep-app承接在线业务生产版本的生产特征计算调度,部署影子服务VRP-eep-app承接影子系统对应的预发布业务生产版本的生产特征调度相关服务,部署影子系统比对服务vrp-compare承接影子系统对应的预发布业务生产版本的生产特征与在线业务生产版本的生产特征差异的比对。Further, the configuration management information of the shadow system and the online business production version are calculated independently of different cluster characteristics, the deployment service fep-online-app undertakes the online business production version and the business feature calculation service of the shadow system, and the deployment service eep-app undertakes the online business production The production feature calculation and scheduling of the version, deploying the shadow service VRP-eep-app to undertake the production feature scheduling related services of the pre-release business corresponding to the shadow system, deploying the shadow system comparison service vrp-compare to undertake the pre-release business production corresponding to the shadow system The comparison of the production characteristics of the version and the difference of the production characteristics of the production version of the online business.
参照图2为本说明书实施例提供的一种基于影子系统的特征对比流程图,先对预发布业务生产版本先进行功能验证、回归测试,当功能验证和回归验证均正常时,发布到影子系统,通过影子系统实现预发布业务生产版本与在线业务生产版本之间的比对。再进行比对之前,需要先建立影子系统与在线业务生产 版本之间的接口通信连接,以便于影子系统调用在线生产业务版本的在线数据、生产特征等,通过判断影子系统与在线业务生产版本之间的接口是否存在强依赖关系,确定是否使用灰度关联系统。建立通信连接后,影子系统打开特征引流开关,调用在线业务生产版本中消息队列里的生产数据并运行,同时提取在线业务生产版本的生产特征,从而在影子系统内实现对比预发布业务生产版本与在线业务生产版本之间的消息消费结果、生产特征等,最终得到一个比对结果报告,分析对比结果报告,当分析显示正常时,发布预发布业务生产版本,替换掉在线业务生产版本;当分析显示异常时,分析异常原因,针对异常原因对预发布业务生产版本进行修复,然后再循环上述流程,直至预发布业务生产版本能够上线。自动化跑件及比对验证,统计型及详情相结合,多比对策略定制及优化,从而大大提升预发布业务生产版本的验证效率;同时,在开发新特征上线时,快速发现对在线业务生产版本的生产特征影响,避免对在线业务生产版本的生产特征计算产生影响而无法覆盖验证发现,从而避免发生生产事故。Referring to Figure 2, it is a flow chart of feature comparison based on the shadow system provided by the embodiment of this specification. First, perform function verification and regression testing on the pre-release business production version. When the function verification and regression verification are normal, release to the shadow system , realize the comparison between the pre-release business production version and the online business production version through the shadow system. Before the comparison, it is necessary to establish an interface communication connection between the shadow system and the online business production version, so that the shadow system can call the online data and production characteristics of the online production business version, and judge the difference between the shadow system and the online business production version. Whether there is a strong dependency between the interfaces, determine whether to use the gray-scale association system. After the communication connection is established, the shadow system turns on the feature drainage switch, calls and runs the production data in the message queue in the online business production version, and extracts the production features of the online business production version, so as to realize the comparison between the pre-release business production version and the The message consumption results, production characteristics, etc. between the online business production versions, finally get a comparison result report, analyze the comparison result report, when the analysis shows that it is normal, release the pre-release business production version to replace the online business production version; when analyzing When an exception is displayed, analyze the cause of the exception, repair the pre-release business production version according to the abnormal reason, and then repeat the above process until the pre-release business production version can be launched. Automatic running and comparison verification, combination of statistics and details, multi-comparison strategy customization and optimization, thus greatly improving the verification efficiency of the pre-release business production version; at the same time, when developing new features and going online, quickly discover the impact of online business production The influence of the production characteristics of the version can avoid the influence on the production characteristic calculation of the production version of the online business and cannot cover the verification findings, thereby avoiding production accidents.
图3为本说明书实施例提供的一种基于影子系统的特征对比装置的结构示意图,包括:Fig. 3 is a schematic structural diagram of a feature comparison device based on a shadow system provided by an embodiment of this specification, including:
接口连接模块201,用于建立影子系统与在线业务生产版本之间的通信接口连接;An interface connection module 201, configured to establish a communication interface connection between the shadow system and the online business production version;
信息获取模块202,用于基于所述通信接口获取预发布业务生产版本的生产特征、在线业务生产版本的业务生产数据、所述在线业务生产版本的生产特征;An information acquisition module 202, configured to acquire, based on the communication interface, the production characteristics of the pre-release business production version, the business production data of the online business production version, and the production characteristics of the online business production version;
第一运行模块203,用于基于所述业务生产数据运行在线业务生产版本,得到第一业务结果数据;The first running module 203 is configured to run an online business production version based on the business production data to obtain first business result data;
第二运行模块204,用于基于所述预发布业务生产版本的生产特征和所述业务生产数据运行所述影子系统,得到第二业务结果数据;The second running module 204 is configured to run the shadow system based on the production characteristics of the pre-release business production version and the business production data to obtain second business result data;
对比模块205,用于对比所述第一业务结果数据与所述第二业务结果数据,对比所述预发布业务生产版本的生产特征与所述在线业务生产系统的生产特征,分别得到第一对比结果和第二对比结果;A comparison module 205, configured to compare the first business result data with the second business result data, compare the production characteristics of the pre-release business production version with the production characteristics of the online business production system, and obtain a first comparison result and second comparison result;
分析模块206,用于对所述第一对比结果和所述第二对比结果进行差异分析,根据差异分析结果对所述预发布业务生产版本进行处理。The analysis module 206 is configured to perform difference analysis on the first comparison result and the second comparison result, and process the pre-release service production version according to the difference analysis result.
进一步地,在建立影子系统与所述在线业务生产版本之间的通信接口连接之前,包括:Further, before establishing the communication interface connection between the shadow system and the online business production version, it includes:
测试模块,用于对所述预发布业务生产版本的生产特征进行功能验证、回 归测试;The test module is used for functional verification and regression testing of the production features of the pre-release business production version;
发布模块,用于将通过功能验证、回归测试的所述预发布业务生产版本发布至所述影子系统。A release module, configured to release the pre-release business production version that has passed functional verification and regression testing to the shadow system.
进一步地,所述接口连接模块201包括:Further, the interface connection module 201 includes:
判断单元,用于判断所述在线业务生产版本与所述影子系统的接口关联关系;A judging unit, configured to judge the interface relationship between the production version of the online business and the shadow system;
第一接口连接单元,用于当所述在线业务生产版本与所述影子系统的接口存在强依赖关联时,所述影子系统通过灰度关联系统与所述在线业务生产版本建立通信接口连接;A first interface connection unit, configured to establish a communication interface connection between the shadow system and the online business production version through a grayscale correlation system when there is a strong dependency relationship between the online business production version and the interface of the shadow system;
第二接口连接单元,用于当所述在线业务生产版本与所述影子系统的接口不存在强依赖关联时,所述影子系统与所述在线业务生产版本直接建立通信接口连接。The second interface connection unit is configured to directly establish a communication interface connection between the shadow system and the online service production version when there is no strong dependency relationship between the interface of the online service production version and the shadow system.
进一步地,所述信息获取模块202包括:Further, the information acquisition module 202 includes:
特征提取单元,用于利用特征计算中心提取预发布业务生产版本的生产特征、所述在线业务生产版本的生产特征;A feature extraction unit, configured to use the feature computing center to extract the production features of the pre-release business production version and the production features of the online business production version;
数据调用单元,用于通过所述通信接口调用所述在线业务生产版本的业务生产数据。A data calling unit, configured to call the business production data of the online business production version through the communication interface.
进一步地,所述分析模块206包括:Further, the analysis module 206 includes:
版本替换单元,用于当所述差异分析结果显示正常时,对所述预发布业务生产版本进行生产发布、生产验证,替换所述在线业务生产版本。The version replacement unit is configured to perform production release and production verification on the pre-release business production version, and replace the online business production version when the difference analysis result shows normal.
进一步地,所述分析模块206还包括:Further, the analysis module 206 also includes:
异常分析单元,用于当所述差异分析结果显示异常时,对所述异常进行分析,得到异常分析结果;An abnormality analysis unit, configured to analyze the abnormality to obtain an abnormality analysis result when the difference analysis result shows an abnormality;
版本修复单元,用于根据所述异常分析结果对所述预发布业务生产版本的生产特征进行修复。A version repairing unit, configured to repair the production features of the pre-release business production version according to the abnormality analysis result.
本发明实施例的装置的功能已经在上述的方法实施例中进行了描述,故本实施例的描述中未详尽之处,可以参见前述实施例中的相关说明,在此不做赘述。The functions of the device in the embodiment of the present invention have been described in the above-mentioned method embodiment, so for details not described in the description of this embodiment, you can refer to the relevant description in the foregoing embodiment, and details are not repeated here.
基于同一发明构思,本说明书实施例还提供一种电子设备。Based on the same inventive concept, the embodiment of this specification also provides an electronic device.
下面描述本发明的电子设备实施例,该电子设备可以视为对于上述本发明的方法和装置实施例的具体实体实施方式。对于本发明电子设备实施例中描述 的细节,应视为对于上述方法或装置实施例的补充;对于在本发明电子设备实施例中未披露的细节,可以参照上述方法或装置实施例来实现。An electronic device embodiment of the present invention will be described below, and the electronic device can be regarded as a specific physical implementation of the above-mentioned method and device embodiments of the present invention. The details described in the electronic device embodiments of the present invention should be regarded as supplements to the above-mentioned method or device embodiments; for the details not disclosed in the electronic device embodiments of the present invention, it can be implemented by referring to the above-mentioned method or device embodiments.
参照图4为本说明书实施例提供的一种电子设备的结构示意图。下面参照图4来描述根据本发明该实施例的电子设备300。图4显示的电子设备300仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。Referring to FIG. 4 , it is a schematic structural diagram of an electronic device provided by an embodiment of this specification. An electronic device 300 according to this embodiment of the present invention is described below with reference to FIG. 4 . The electronic device 300 shown in FIG. 4 is only an example, and should not limit the functions and application scope of this embodiment of the present invention.
如图4所示,电子设备300以通用计算设备的形式表现。电子设备300的组件可以包括但不限于:至少一个处理单元310、至少一个存储单元320、连接不同装置组件(包括存储单元320和处理单元310)的总线330、显示单元340等。As shown in FIG. 4, electronic device 300 takes the form of a general-purpose computing device. The components of the electronic device 300 may include, but are not limited to: at least one processing unit 310, at least one storage unit 320, a bus 330 connecting different device components (including the storage unit 320 and the processing unit 310), a display unit 340, and the like.
其中,所述存储单元存储有程序代码,所述程序代码可以被所述处理单元310执行,使得所述处理单元310执行本说明书上述处理方法部分中描述的根据本发明各种示例性实施方式的步骤。例如,所述处理单元310可以执行如图1所示的步骤。Wherein, the storage unit stores program codes, and the program codes can be executed by the processing unit 310, so that the processing unit 310 executes the processing methods according to various exemplary embodiments of the present invention described in the above processing method section of this specification. step. For example, the processing unit 310 may execute the steps shown in FIG. 1 .
所述存储单元320可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)3201和/或高速缓存存储单元3202,还可以进一步包括只读存储单元(ROM)3203。The storage unit 320 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 3201 and/or a cache storage unit 3202 , and may further include a read-only storage unit (ROM) 3203 .
所述存储单元320还可以包括具有一组(至少一个)程序模块3205的程序/实用工具3204,这样的程序模块3205包括但不限于:操作装置、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。The storage unit 320 may also include a program/utility tool 3204 having a set (at least one) of program modules 3205, such program modules 3205 including but not limited to: an operating device, one or more application programs, other program modules, and program data, each or some combination of these examples may include the realization of the network environment.
总线330可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。 Bus 330 may represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local area using any of a variety of bus structures. bus.
电子设备300也可以与一个或多个外部设备400(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备300交互的设备通信,和/或与使得该电子设备300能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口350进行。并且,电子设备300还可以通过网络适配器360与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。网络适配器360可以通过总线330与电子设备300的其它模块通信。应当明白,尽管图4中未示出,可以结合电子设备300使用其它硬 件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID装置、磁带驱动器以及数据备份存储装置等。The electronic device 300 can also communicate with one or more external devices 400 (such as keyboards, pointing devices, Bluetooth devices, etc.), and can also communicate with one or more devices that enable the user to interact with the electronic device 300, and/or communicate with Any device (eg, router, modem, etc.) that enables the electronic device 300 to communicate with one or more other computing devices. Such communication may occur through input/output (I/O) interface 350 . Moreover, the electronic device 300 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN) and/or a public network such as the Internet) through the network adapter 360 . The network adapter 360 can communicate with other modules of the electronic device 300 through the bus 330 . It should be appreciated that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction with electronic device 300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID devices, tape Drives and data backup storage devices, etc.
通过以上的实施方式的描述,本领域的技术人员易于理解,本发明描述的示例性实施例可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本发明实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个计算机可读的存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、或者网络设备等)执行根据本发明的上述方法。当所述计算机程序被一个数据处理设备执行时,使得该计算机可读介质能够实现本发明的上述方法,即:如图1所示的方法。Through the above description of the implementation manners, those skilled in the art can easily understand that the exemplary embodiments described in the present invention can be implemented by software, or by combining software with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, and the software product can be stored in a computer-readable storage medium (which can be a CD-ROM, U disk, mobile hard disk, etc.) or on a network , including several instructions to make a computing device (which may be a personal computer, a server, or a network device, etc.) execute the above-mentioned method according to the present invention. When the computer program is executed by a data processing device, the computer-readable medium can realize the above-mentioned method of the present invention, that is, the method as shown in FIG. 1 .
参照图5为本说明书实施例提供的一种计算机可读介质的原理示意图。Referring to FIG. 5 , it is a schematic schematic diagram of a computer readable medium provided by an embodiment of this specification.
实现图1所示方法的计算机程序可以存储于一个或多个计算机可读介质上。计算机可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的装置、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The computer program implementing the method shown in Figure 1 can be stored on one or more computer readable media. The computer readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor device, device, or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: electrical connection with one or more conductors, portable disk, hard disk, random access memory (RAM), read only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
所述计算机可读存储介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读存储介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行装置、装置或者器件使用或者与其结合使用的程序。可读存储介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。The computer readable storage medium may include a data signal carrying readable program code in baseband or as part of a carrier wave traveling as a data signal. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The readable storage medium may also be any readable medium other than a readable storage medium that can send, propagate or transport a program for use by or in conjunction with an instruction execution device, apparatus or device. The program code contained on the readable storage medium may be transmitted by any suitable medium, including but not limited to wireless, cable, optical cable, RF, etc., or any suitable combination of the above.
可以以一种或多种程序设计语言的任意组合来编写用于执行本发明操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执 行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。Program code for carrying out the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural programming languages. Programming language - such as "C" or a similar programming language. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server to execute. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (for example, using an Internet service provider). business to connect via the Internet).
综上所述,本发明可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)等通用数据处理设备来实现根据本发明实施例中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。To sum up, the present invention can be realized by hardware, or by software modules running on one or more processors, or by a combination thereof. Those skilled in the art should understand that general data processing devices such as microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all functions of some or all components in the embodiments of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
以上所述的具体实施例,对本发明的目的、技术方案和有益效果进行了进一步详细说明,应理解的是,本发明不与任何特定计算机、虚拟装置或者电子设备固有相关,各种通用装置也可以实现本发明。以上所述仅为本发明的具体实施例而已,并不用于限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the present invention is not inherently related to any specific computer, virtual device or electronic device, and various general devices are also The present invention can be realized. The above descriptions are only specific embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the scope of the present invention. within the scope of protection.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。Each embodiment in this specification is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above descriptions are only examples of the present application, and are not intended to limit the present application. For those skilled in the art, various modifications and changes may occur in this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.

Claims (14)

  1. 一种基于影子系统的特征对比方法,其特征在于,包括:A feature comparison method based on a shadow system, characterized in that it includes:
    建立影子系统与在线业务生产版本之间的通信接口连接;Establish a communication interface connection between the shadow system and the production version of the online business;
    基于所述通信接口获取预发布业务生产版本的生产特征、在线业务生产版本的业务生产数据、所述在线业务生产版本的生产特征;Obtaining the production characteristics of the pre-release business production version, the business production data of the online business production version, and the production characteristics of the online business production version based on the communication interface;
    基于所述业务生产数据运行在线业务生产版本,得到第一业务结果数据;Running an online business production version based on the business production data to obtain first business result data;
    基于所述预发布业务生产版本的生产特征和所述业务生产数据运行所述影子系统,得到第二业务结果数据;Running the shadow system based on the production characteristics of the pre-release business production version and the business production data to obtain second business result data;
    对比所述第一业务结果数据与所述第二业务结果数据,对比所述预发布业务生产版本的生产特征与所述在线业务生产系统的生产特征,分别得到第一对比结果和第二对比结果;Comparing the first business result data with the second business result data, comparing the production characteristics of the pre-release business production version with the production characteristics of the online business production system, and obtaining a first comparison result and a second comparison result respectively ;
    对所述第一对比结果和所述第二对比结果进行差异分析,根据差异分析结果对所述预发布业务生产版本进行处理。A difference analysis is performed on the first comparison result and the second comparison result, and the pre-release service production version is processed according to the difference analysis result.
  2. 如权利要求1所述的基于影子系统的特征对比方法,其特征在于,在建立影子系统与所述在线业务生产版本之间的通信接口连接之前,包括:The feature comparison method based on the shadow system according to claim 1, characterized in that, before establishing the communication interface connection between the shadow system and the online business production version, comprising:
    对所述预发布业务生产版本的生产特征进行功能验证、回归测试;Perform functional verification and regression testing on the production features of the pre-release business production version;
    将通过功能验证、回归测试的所述预发布业务生产版本发布至所述影子系统。Publishing the pre-release business production version that has passed functional verification and regression testing to the shadow system.
  3. 如权利要求1所述的基于影子系统的特征对比方法,其特征在于,所述建立影子系统与所述在线业务生产版本之间的通信接口连接,包括:The feature comparison method based on the shadow system according to claim 1, wherein said establishing a communication interface connection between the shadow system and the online business production version comprises:
    判断所述在线业务生产版本与所述影子系统的接口关联关系;Judging the interface relationship between the production version of the online business and the shadow system;
    当所述在线业务生产版本与所述影子系统的接口存在强依赖关联时,所述影子系统通过灰度关联系统与所述在线业务生产版本建立通信接口连接;When there is a strong dependency relationship between the online business production version and the interface of the shadow system, the shadow system establishes a communication interface connection with the online business production version through a grayscale association system;
    当所述在线业务生产版本与所述影子系统的接口不存在强依赖关联时,所述影子系统与所述在线业务生产版本直接建立通信接口连接。When there is no strong dependency relationship between the online service production version and the interface of the shadow system, the shadow system directly establishes a communication interface connection with the online service production version.
  4. 如权利要求1所述的基于影子系统的特征对比方法,其特征在于,所述基 于所述通信接口获取预发布业务生产版本的生产特征、在线业务生产版本的业务生产数据、所述在线业务生产版本的生产特征,包括:The feature comparison method based on the shadow system according to claim 1, wherein the acquisition of the production features of the pre-release business production version, the business production data of the online business production version, and the online business production version based on the communication interface Production characteristics of the release, including:
    利用特征计算中心提取预发布业务生产版本的生产特征、所述在线业务生产版本的生产特征;Using the feature computing center to extract the production features of the pre-release business production version and the production features of the online business production version;
    通过所述通信接口调用所述在线业务生产版本的业务生产数据。The service production data of the online service production version is invoked through the communication interface.
  5. 如权利要求1所述的基于影子系统的特征对比方法,其特征在于,所述根据差异分析结果对所述预发布业务生产版本进行处理,包括:The feature comparison method based on the shadow system according to claim 1, wherein the processing of the pre-release business production version according to the difference analysis results includes:
    当所述差异分析结果显示正常时,对所述预发布业务生产版本进行生产发布、生产验证,替换所述在线业务生产版本。When the difference analysis result shows that it is normal, perform production release and production verification on the pre-release business production version, and replace the online business production version.
  6. 如权利要求1所述的基于影子系统的特征对比方法,其特征在于,所述根据差异分析结果对所述预发布业务生产版本进行处理,还包括:The feature comparison method based on the shadow system according to claim 1, wherein the processing of the pre-release business production version according to the difference analysis results further includes:
    当所述差异分析结果显示异常时,对所述异常进行分析,得到异常分析结果;When the difference analysis result shows an abnormality, analyze the abnormality to obtain an abnormal analysis result;
    根据所述异常分析结果对所述预发布业务生产版本的生产特征进行修复。The production feature of the pre-release business production version is repaired according to the abnormality analysis result.
  7. 一种基于影子系统的特征对比装置,其特征在于,包括:A feature comparison device based on a shadow system, characterized in that it includes:
    接口连接模块,用于建立影子系统与在线业务生产版本之间的通信接口连接;The interface connection module is used to establish the communication interface connection between the shadow system and the online business production version;
    信息获取模块,用于基于所述通信接口获取预发布业务生产版本的生产特征、在线业务生产版本的业务生产数据、所述在线业务生产版本的生产特征;An information acquisition module, configured to acquire, based on the communication interface, the production characteristics of the pre-release business production version, the business production data of the online business production version, and the production characteristics of the online business production version;
    第一运行模块,用于基于所述业务生产数据运行在线业务生产版本,得到第一业务结果数据;A first running module, configured to run an online business production version based on the business production data to obtain first business result data;
    第二运行模块,用于基于所述预发布业务生产版本的生产特征和所述业务生产数据运行所述影子系统,得到第二业务结果数据;A second running module, configured to run the shadow system based on the production characteristics of the pre-release business production version and the business production data, to obtain second business result data;
    对比模块,用于对比所述第一业务结果数据与所述第二业务结果数据,对比所述预发布业务生产版本的生产特征与所述在线业务生产系统的生产特征,分别得到第一对比结果和第二对比结果;A comparison module, configured to compare the first business result data with the second business result data, compare the production characteristics of the pre-release business production version with the production characteristics of the online business production system, and obtain first comparison results respectively and the second comparison result;
    分析模块,用于对所述第一对比结果和所述第二对比结果进行差异分析,根据差异分析结果对所述预发布业务生产版本进行处理。An analysis module, configured to perform difference analysis on the first comparison result and the second comparison result, and process the pre-release service production version according to the difference analysis result.
  8. 如权利要求7所述的基于影子系统的特征对比装置,其特征在于,在建立影子系统与所述在线业务生产版本之间的通信接口连接之前,包括:The feature comparison device based on the shadow system according to claim 7, characterized in that, before establishing the communication interface connection between the shadow system and the online business production version, comprising:
    测试模块,用于对所述预发布业务生产版本的生产特征进行功能验证、回归测试;The test module is used to perform functional verification and regression testing on the production features of the pre-release business production version;
    发布模块,用于将通过功能验证、回归测试的所述预发布业务生产版本发布至所述影子系统。A release module, configured to release the pre-release business production version that has passed functional verification and regression testing to the shadow system.
  9. 如权利要求7所述的基于影子系统的特征对比装置,其特征在于,所述接口连接模块包括:The feature comparison device based on the shadow system according to claim 7, wherein the interface connection module comprises:
    判断单元,用于判断所述在线业务生产版本与所述影子系统的接口关联关系;A judging unit, configured to judge the interface relationship between the production version of the online business and the shadow system;
    第一接口连接单元,用于当所述在线业务生产版本与所述影子系统的接口存在强依赖关联时,所述影子系统通过灰度关联系统与所述在线业务生产版本建立通信接口连接;A first interface connection unit, configured to establish a communication interface connection between the shadow system and the online business production version through a grayscale correlation system when there is a strong dependency relationship between the online business production version and the interface of the shadow system;
    第二接口连接单元,用于当所述在线业务生产版本与所述影子系统的接口不存在强依赖关联时,所述影子系统与所述在线业务生产版本直接建立通信接口连接。The second interface connection unit is configured to directly establish a communication interface connection between the shadow system and the online service production version when there is no strong dependency relationship between the interface of the online service production version and the shadow system.
  10. 如权利要求7所述的基于影子系统的特征对比装置,其特征在于,所述信息获取模块包括:The feature comparison device based on the shadow system according to claim 7, wherein the information acquisition module comprises:
    特征提取单元,用于利用特征计算中心提取预发布业务生产版本的生产特征、所述在线业务生产版本的生产特征;A feature extraction unit, configured to use the feature computing center to extract the production features of the pre-release business production version and the production features of the online business production version;
    数据调用单元,用于通过所述通信接口调用所述在线业务生产版本的业务生产数据。A data calling unit, configured to call the business production data of the online business production version through the communication interface.
  11. 如权利要求7所述的基于影子系统的特征对比装置,其特征在于,所述分析模块包括:The feature comparison device based on the shadow system according to claim 7, wherein the analysis module comprises:
    版本替换单元,用于当所述差异分析结果显示正常时,对所述预发布业务生产版本进行生产发布、生产验证,替换所述在线业务生产版本。The version replacement unit is configured to perform production release and production verification on the pre-release business production version, and replace the online business production version when the difference analysis result shows normal.
  12. 如权利要求7所述的基于影子系统的特征对比装置,其特征在于,所述分析模块还包括:The feature comparison device based on the shadow system according to claim 7, wherein the analysis module further comprises:
    异常分析单元,用于当所述差异分析结果显示异常时,对所述异常进行分析,得到异常分析结果;An abnormality analysis unit, configured to analyze the abnormality to obtain an abnormality analysis result when the difference analysis result shows an abnormality;
    版本修复单元,用于根据所述异常分析结果对所述预发布业务生产版本的生产特征进行修复。A version repairing unit, configured to repair the production features of the pre-release business production version according to the abnormality analysis result.
  13. 一种电子设备,其中,该电子设备包括:An electronic device, wherein the electronic device includes:
    处理器以及存储计算机可执行程序的存储器,所述可执行程序在被执行时使所述处理器执行根据权利要求1-6中任一项所述的方法。A processor and a memory storing a computer executable program which, when executed, causes the processor to perform the method according to any one of claims 1-6.
  14. 一种计算机可读存储介质,其中,所述计算机可读存储介质存储一个或多个程序,所述一个或多个程序当被处理器执行时,实现权利要求1-6中任一项所述的方法。A computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, the implementation of any one of claims 1-6 Methods.
PCT/CN2022/124464 2021-12-28 2022-10-10 Shadow system-based feature comparison method and apparatus, and electronic device WO2023124366A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111621665.0A CN114253600B (en) 2021-12-28 2021-12-28 Feature comparison method and device based on shadow system and electronic equipment
CN202111621665.0 2021-12-28

Publications (1)

Publication Number Publication Date
WO2023124366A1 true WO2023124366A1 (en) 2023-07-06

Family

ID=80795420

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/124464 WO2023124366A1 (en) 2021-12-28 2022-10-10 Shadow system-based feature comparison method and apparatus, and electronic device

Country Status (2)

Country Link
CN (1) CN114253600B (en)
WO (1) WO2023124366A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114253600B (en) * 2021-12-28 2023-11-28 上海淇玥信息技术有限公司 Feature comparison method and device based on shadow system and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030130985A1 (en) * 2001-12-17 2003-07-10 Volker Driesen Systems, methods and articles of manufacture for upgrading a database with a shadow system
US8990778B1 (en) * 2012-09-14 2015-03-24 Amazon Technologies, Inc. Shadow test replay service
CN111580855A (en) * 2020-04-09 2020-08-25 上海淇毓信息科技有限公司 Strategy issuing method and system based on full-flow gray level issuing and electronic equipment
CN113553078A (en) * 2021-06-10 2021-10-26 交控科技股份有限公司 Trackside equipment system upgrading method and device, electronic equipment and readable storage medium
CN114253600A (en) * 2021-12-28 2022-03-29 上海淇玥信息技术有限公司 Feature comparison method and device based on shadow system and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10182128B1 (en) * 2013-02-07 2019-01-15 Amazon Technologies, Inc. Optimization of production systems

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030130985A1 (en) * 2001-12-17 2003-07-10 Volker Driesen Systems, methods and articles of manufacture for upgrading a database with a shadow system
US8990778B1 (en) * 2012-09-14 2015-03-24 Amazon Technologies, Inc. Shadow test replay service
CN111580855A (en) * 2020-04-09 2020-08-25 上海淇毓信息科技有限公司 Strategy issuing method and system based on full-flow gray level issuing and electronic equipment
CN113553078A (en) * 2021-06-10 2021-10-26 交控科技股份有限公司 Trackside equipment system upgrading method and device, electronic equipment and readable storage medium
CN114253600A (en) * 2021-12-28 2022-03-29 上海淇玥信息技术有限公司 Feature comparison method and device based on shadow system and electronic equipment

Also Published As

Publication number Publication date
CN114253600B (en) 2023-11-28
CN114253600A (en) 2022-03-29

Similar Documents

Publication Publication Date Title
CN106156186B (en) Data model management device, server and data processing method
KR20210040861A (en) Fault prediction method, apparatus, electronic device and storage medium
CN111580855B (en) Policy issuing method and system based on full-flow gray level issuing and electronic equipment
WO2023124366A1 (en) Shadow system-based feature comparison method and apparatus, and electronic device
CN112101803A (en) Business process monitoring method, device, system, equipment and medium
US20230185702A1 (en) Method and Apparatus for Generating and Applying Deep Learning Model based on Deep Learning Framework
CN113050929A (en) Intelligent contract development, operation and maintenance integrated platform based on HyperLegger Fabric
CN110688305B (en) Test environment synchronization method, device, medium and electronic equipment
CN114356785A (en) Data processing method and device, electronic equipment and storage medium
CN110865806A (en) Code processing method, device, server and storage medium
CN117370205A (en) Production environment switching method, device, equipment and storage medium
CN112015469A (en) System reconfiguration method and device and electronic equipment
WO2023125706A1 (en) Test method and system for mileage order generation of battery swapping vehicle, device and medium
CN112000738A (en) Database connection switching method, device, equipment and medium
CN116795701A (en) Method and device for generating universal test case of interface program
TWI795123B (en) Generation fixed/mobile convergence, method and computer readable medium thererof
CN111737130B (en) Public cloud multi-tenant authentication service testing method, device, equipment and storage medium
CN112579402A (en) Method and device for positioning faults of application system
CN105590377B (en) Pos terminal apparatus and its method for updating program
CN110795338B (en) Front-end and back-end interaction-based automatic testing method and device and electronic equipment
CN114356401A (en) Gray scale distribution method and device, electronic equipment and computer readable storage medium
CN113392002A (en) Test system construction method, device, equipment and storage medium
CN112948195A (en) Interface testing method and device, electronic equipment and storage medium
CN109814882A (en) A kind of virtual machine quick deployment method of customizable
CN116708135B (en) Network service fault monitoring method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22913630

Country of ref document: EP

Kind code of ref document: A1