Application publishing method, device and electronic device

During the application release process by load balancing devices, using a consistent deployment environment to gradually import traffic and calculate verification time, solving the problem of inconsistency between application release version and verification version and insufficient verification capabilities in the existing technology, and realizing the implementation of A safe and controllable application release process.

CN114416151BActive Publication Date: 2024-12-17MULTIPOINT (SHENZHEN) DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210061578.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-19
Publication Date
2024-12-17
Estimated Expiration
2042-01-19

AI Technical Summary

Technical Problem

The existing application publishing method is released directly before the new version is fully verified, resulting in user services being affected or system downtime, and the grayscale publishing method cannot provide high-traffic verification capabilities, and cannot ensure the deployment of application publishing versions and verification versions. Environmental consistency.

Method used

Control the application release process through load balancing devices, and gradually import specified traffic between the first and second servers using a consistent deployment environment, calculate verification time based on traffic increments and initial traffic, ensuring that the application runs within the preset time Release after normal, providing large traffic verification capabilities.

Benefits of technology

Ensure the deployment environment consistency of the application release version and verification version, provide high-traffic verification capabilities, reduce release risks, avoid system downtime, and improve the controllability and security of the release process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114416151B_ABST
    Figure CN114416151B_ABST
Patent Text Reader

Abstract

The present invention provides an application publishing method, device and electronic device, the method comprising: if an upgrade request initiated by an application is received, the specified traffic is imported into the first version application running on the first server; if the first version application runs normally within a preset time, the initial traffic and the preset traffic increment are imported into the first version application; if the first version application runs normally within a preset verification time, the second version application running in the second server is upgraded and published. The method uses a server with a consistent deployment environment to perform precise verification and large-traffic verification on the upgraded application, thereby ensuring the consistency of the deployment environment of the verification version and the release version of the application, and providing large-traffic verification capabilities.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field, and in particular to an application publishing method, device and electronic device. Background Art

[0002] During the release of the application, it is necessary to redeploy, which will bring risks to the originally normal system and affect the user's use. Traditional application release methods mostly adopt the form of blue-green release. This method generally divides the project into two groups, the blue group and the green group; among them, the green group is the verification group of the application, and the blue group is the release group of the application. When the blue group and the green group are operating normally, each group carries 50% of the traffic. When preparing to release the program, the traffic of the blue group is set to 100%, and the green group is idle. At this time, the green group has no business traffic, and the application of the green group will not affect the user when it is deployed. After the deployment is completed, the load balancing is used to switch the traffic from the blue group to the green group, and the green group is allowed to run the business. When there is no problem with the green group, the traffic is completely directed to the green group, and finally the blue group is released. However, in the above blue-green release process, since there is no sufficient verification of the application to be released before release, if there are serious bugs in the newly released version, it will affect the normal service of users, and in serious cases, cause system downtime.

[0003] Furthermore, in order to adopt the grayscale release method, the existing technology verifies the upgraded application by importing specific traffic into the grayscale application. However, due to the limitation of the number of grayscale applications and the difference in the deployment environment between the grayscale application and the upgraded application, the grayscale release method cannot provide large traffic verification capabilities and has no reference value for the deployment environment. Summary of the invention

[0004] The purpose of the present invention is to provide an application publishing method, device and electronic device to ensure the consistency of the deployment environment of the application publishing version and the verification version, and to provide large-flow verification capabilities.

[0005] In a first aspect, an embodiment of the present invention provides an application publishing method, which is applied to a load balancing device, the load balancing device is connected to a first server and a second server; the load balancing device is used to control the load of the first server and the second server during the publishing process of the application; the first server is deployed with a first version application; the second server is deployed with a second version application; wherein the deployment environment of the first version application and the second version application is the same; the method comprises: if an upgrade request initiated by an application is received, importing a specified flow into a first version application running on the first server; wherein the first version application is an upgraded verified version of the application; the specified flow is used to indicate the flow of a preset specified service in the application; if the first version application runs normally within a preset time, importing an initial flow and a preset flow increment into the first version application; the initial flow is used to indicate a preset part of the flow undertaken by the application; the preset flow increment is used to indicate incremental import with the flow increment according to a preset incremental time; if the first version application runs normally within a preset verification time, the second version application running in the second server is upgraded and published; the preset verification time is used to indicate the preset time required for the first version application to carry all the flow.

[0006] In combination with the first aspect, an embodiment of the present invention provides a first possible implementation method of the first aspect, wherein, if the first version application runs normally within a preset time, after the initial traffic and the preset traffic increment are imported into the first version application, the method also includes: determining the verification time of the first version application based on the initial traffic and the preset traffic increment; the verification time is used to indicate the time for the first version application to take over all the traffic of the application; if the first version application runs normally within the preset verification time, the step of upgrading and publishing the second version application running in the second server includes: if the preset verification time is less than the theoretical verification time, the first version application runs normally within the verification time, and then upgrading and publishing the second version application running in the second server.

[0007] In combination with the first possible implementation of the first aspect, an embodiment of the present invention provides a second possible implementation of the first aspect, wherein the step of determining the verification time of the first version application based on the initial traffic and the preset traffic increment includes: determining the theoretical verification time of the first version application based on the initial traffic and the preset traffic increment; the theoretical verification time is used to refer to the time required for the first version application to handle all traffic obtained by theoretical calculation; and determining the verification time based on the theoretical verification time.

[0008] In combination with the second possible implementation of the first aspect, an embodiment of the present invention provides a third possible implementation of the first aspect, wherein the theoretical verification time of the first version application is calculated according to the initial flow and the preset flow increment by the following formula: E'=(100%-A)*D / C, wherein E' represents the theoretical verification time; A represents the initial flow; D represents the preset incremental time of the flow increment; and C represents the flow increment.

[0009] In combination with the third possible implementation of the first aspect, the embodiment of the present invention provides a fourth possible implementation of the first aspect, wherein the verification time is determined according to the theoretical verification time by the following algorithm: E1=(E!=null)?(E>E'?E:E'):E'; wherein E represents a preset verification time; E' represents the theoretical verification time, and E1 is a high verification time.

[0010] In combination with the fourth possible implementation of the first aspect, an embodiment of the present invention provides a fifth possible implementation of the first aspect, wherein the type of specified traffic includes: at least one of: the ID of the merchant within the application, the ID of the operating user, the number of the store in the internal call, and the traffic of a preset area in the system message.

[0011] In combination with the third possible implementation of the first aspect, an embodiment of the present invention provides a sixth possible implementation of the first aspect, wherein the method further includes: importing specified traffic into a second server where a second version application is deployed; if the second version application runs normally within a preset time, importing initial traffic and a preset traffic increment into the second version application; if the second version application runs normally within the preset verification time, publishing the first version application.

[0012] In a second aspect, an embodiment of the present invention provides an application publishing device, which is applied to a load balancing device, the load balancing device is connected to a first server and a second server; the load balancing device is used to control the load of the first server and the second server during the publishing process of the application; the first server is deployed with a first version application; the second server is deployed with a second version application; wherein the first version application and the second version application have the same deployment environment; the device includes: a precise verification module, which is used to import specified traffic into the first version application running on the first server if an upgrade request initiated by the application is received; wherein the first version application is an upgrade of the application the specified traffic is used to indicate the traffic of the preset specified business in the application; the random verification module is used to import the initial traffic and the preset traffic increment into the first version application if the first version application runs normally within the preset time; the initial traffic is used to indicate the preset part of the traffic undertaken by the application; the preset traffic increment is used to indicate that the traffic is incrementally imported according to the traffic increment according to the preset incremental time; the application publishing module is used to upgrade the second version application running in the second server and publish it if the first version application runs normally within the preset verification time; the preset verification time is used to indicate the preset time required for the first version application to complete the verification action.

[0013] In combination with the second aspect, an embodiment of the present invention provides a first possible implementation of the second aspect, wherein the device also includes: a verification time determination module, used to determine the verification time of the first version application based on the initial traffic and a preset traffic increment; the verification time is used to indicate the time for the first version application to take over all traffic of the application; the application publishing module is also used to upgrade the second version application running in the second server and publish it if the preset verification time is less than the theoretical verification time and the first version application runs normally within the verification time.

[0014] In a third aspect, an embodiment of the present invention provides an electronic device, wherein the electronic device includes a processor and a memory, the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement an application publishing method of any one of the first aspect to the seventh possible implementation manner of the first aspect.

[0015] The embodiments of the present invention bring the following beneficial effects:

[0016] The application publishing method, device and electronic device provided by the embodiment of the present invention are applied to a load balancing device, the load balancing device is connected to a first server and a second server; the load balancing device is used to control the load of the first server and the second server during the publishing process of the application; the first server is deployed with a first version application; the second server is deployed with a second version application; wherein the deployment environment of the first version application and the second version application is the same; the method comprises: if an upgrade request initiated by the application is received, the specified traffic is imported into the first version application running on the first server; wherein the first version application is an upgraded verified version of the application; the specified traffic is used to indicate the traffic of the preset specified business in the application; if the first version application runs normally within a preset time, the initial traffic and the preset traffic increment are imported into the first version application; the initial traffic is used to indicate the preset part of the traffic undertaken by the application; the preset traffic increment is used to indicate that the traffic is incremented by the traffic increment according to the preset increment time; if the first version application runs normally within the preset verification time, the second version application running in the second server is upgraded and published; the preset verification time is used to indicate the preset time required for the first version application to carry all the traffic. This method uses a server with a consistent deployment environment to perform precise verification and high-traffic verification on the upgraded application, thereby ensuring the consistency of the deployment environment of the verified version and the released version of the application, and providing high-traffic verification capabilities.

[0017] Other features and advantages disclosed in this embodiment will be described in the subsequent description, or some features and advantages can be inferred or determined without doubt from the description, or can be learned by implementing the above-mentioned technology of the present disclosure.

[0018] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0020] Figure 1 A schematic diagram of a process flow of an application publishing method provided by an embodiment of the present invention;

[0021] Figure 2A schematic diagram of another application publishing method provided by an embodiment of the present invention;

[0022] Figure 3 A schematic diagram of the structure of an application publishing device provided by an embodiment of the present invention;

[0023] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.

[0024] Icons: 31 - precise verification module; 32 - random verification module; 33 - application release module; 41 - memory; 42 - processor; 43 - bus; 44 - communication interface. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0026] Traditional blue-green releases usually introduce grayscale releases before blue-green releases. Grayscale releases are generally used in the verification phase. A small number of applications are started with the new version, and then the load balancing is adjusted to import specific traffic into the grayscale application for verification. However, due to the limited number of grayscale applications, the system cannot provide large-volume verification capabilities, resulting in the existing application release method still being dangerous.

[0027] Based on this, the embodiment of the present invention provides an application publishing method, device and electronic device to ensure the consistency of the deployment environment of the verification version and the release version of the application, and can provide large-volume verification capabilities. To facilitate understanding of this embodiment, first, a method for publishing an application disclosed in an embodiment of the present invention is described in detail.

[0028] Example 1

[0029] Figure 1 A schematic flow chart of an application publishing method provided in an embodiment of the present invention is applied to a load balancing device, the load balancing device is connected to a first server and a second server; the load balancing device is used to control the load of the first server and the second server during the publishing process of the application; the first server is deployed with a first version application; the second server is deployed with a second version application; wherein the first version application and the second version application are deployed in the same environment. Figure 1 As can be seen, the method comprises the following steps:

[0030] Step S101: If an upgrade request initiated by an application is received, the specified traffic is imported into the first version application running on the first server; wherein the first version application is an upgraded verified version of the application; the specified traffic is used to indicate the traffic of the preset specified service in the application.

[0031] In this embodiment, the service scope of the designated flow is pre-set to ensure the controllability of the verification link. For example, taking Taobao application as an example, the designated service may be a shopping transaction service for a designated merchant.

[0032] Step S102: If the first version application runs normally within the preset time, the initial traffic and the preset traffic increment are imported into the first version application; the initial traffic is used to indicate the preset portion of traffic undertaken by the application; the preset traffic increment is used to indicate incremental import with the traffic increment according to the preset incremental time.

[0033] In this embodiment, if the first version of the application runs normally within the preset time after step S101, the traffic increment that is increased by a preset portion of the accepted traffic (for example, 10% of the total accepted traffic of the application is determined as the initial traffic) and the traffic increment according to the preset incremental time is imported into the first version of the application (for example, 5% of the total accepted traffic of the application per hour is used as the traffic increment for incremental import).

[0034] Step S103: If the first version application runs normally within the preset verification time, the second version application running in the second server is upgraded and released; the preset verification time is used to indicate the preset time required for the first version application to carry all traffic.

[0035] In this embodiment, a verification time may be preset, and the verification time indicates the preset time required for the first version application to carry all traffic. For example, if the first version application requires 5 hours to carry all traffic, the preset time may be any time of 5 hours or more.

[0036] The application publishing method, device and electronic device provided in the present embodiment are applied to a load balancing device, the load balancing device is connected to a first server and a second server; the load balancing device is used to control the load of the first server and the second server during the publishing process of the application; the first server is deployed with a first version application; the second server is deployed with a second version application; wherein the deployment environment of the first version application and the second version application is the same; the method comprises: if an upgrade request initiated by the application is received, importing the specified traffic into the first version application running on the first server; wherein the first version application is an upgraded verified version of the application; the specified traffic is used to indicate the traffic of the preset specified business in the application; if the first version application runs normally within a preset time, importing the initial traffic and the preset traffic increment into the first version application; the initial traffic is used to indicate the preset part of the traffic undertaken by the application; the preset traffic increment is used to indicate that the traffic is incremented by the traffic increment according to the preset increment time; if the first version application runs normally within the preset verification time, the second version application running in the second server is upgraded and published; the preset verification time is used to indicate the preset time required for the first version application to carry all the traffic. This method uses a server with a consistent deployment environment to perform precise verification and high-traffic verification on the upgraded application, thereby ensuring the consistency of the deployment environment of the verified version and the released version of the application, and providing high-traffic verification capabilities.

[0037] Example 2

[0038] exist Figure 1 Based on the schematic flow chart of an application publishing method shown, this embodiment also provides another application publishing method. Figure 2 A flow chart of another application publishing method provided by an embodiment of the present invention. Applied to a load balancing device, the load balancing device is connected to a first server and a second server; the load balancing device is used to control the load of the first server and the second server during the publishing process of the application; the first server is deployed with a first version application; the second server is deployed with a second version application; wherein the first version application and the second version application are deployed in the same environment. Figure 2 As can be seen, the method comprises the following steps:

[0039] Step S201: If an upgrade request initiated by an application is received, the specified traffic is imported into the first version application running on the first server; wherein the first version application is an upgraded verified version of the application; the specified traffic is used to indicate the traffic of the preset specified service in the application.

[0040] Among them, the type of the specified traffic includes: at least one of: the ID of the merchant in the application, the ID of the operating user, the number of the store in the internal call, and the traffic of the preset area in the system message.

[0041] Step S202: If the first version application runs normally within the preset time, the initial traffic and the preset traffic increment are imported into the first version application; the initial traffic is used to indicate the preset portion of traffic undertaken by the application; the preset traffic increment is used to indicate incremental import with the traffic increment according to the preset incremental time.

[0042] Step S203: Determine the verification time of the first version application according to the initial traffic and the preset traffic increment; the verification time is used to indicate the time for the first version application to take over all the traffic of the application.

[0043] In this embodiment, the step of determining the verification time of the first version application according to the initial traffic and the preset traffic increment includes: first, determining the theoretical verification time of the first version application according to the initial traffic and the preset traffic increment. The theoretical verification time is used to refer to the time required for the first version application to handle all traffic obtained by theoretical calculation; the verification time is determined according to the theoretical verification time.

[0044] Furthermore, the theoretical verification time of the first version application is calculated according to the initial flow and the preset flow increment by the following formula: E'=(100%-A)*D / C, wherein E' represents the theoretical verification time; A represents the initial flow; D represents the preset incremental time of the flow increment; and C represents the flow increment.

[0045] Here, the verification time is determined according to the theoretical verification time by the following algorithm:

[0046] E1=(E!=null)? (E>E'?E:E'):E';

[0047] Wherein, E represents the preset verification time; E' represents the theoretical verification time, and E1 is the verification time.

[0048] Step S204: If the preset verification time is less than the theoretical verification time and the first version application runs normally within the verification time, the second version application running in the second server is upgraded and released.

[0049] In this embodiment, if the preset verification time is less than the theoretical verification time, and the first version application runs normally within the verification time, the second version application running in the second server is upgraded and released. For example, if the theoretical verification time is 5 hours, and the preset verification time is 3 hours, the first version application is verified within the verification time of 3 hours, and if the first version application runs normally within the theoretical verification time, the second version application running in the second server is upgraded and released.

[0050] Furthermore, the method also includes: importing the specified traffic into a second server where a second version application is deployed; if the second version application runs normally within a preset time, importing the initial traffic and a preset traffic increment into the second version application; if the second version application runs normally within the preset verification time, publishing the first version application.

[0051] In this embodiment, improvements are made to the prior art in which it takes a long time to publish an application and it is difficult to intuitively determine whether the application has been published. This embodiment determines the verification time of the first version of the application based on the initial traffic and the preset traffic increment.

[0052] The application publishing method, device and electronic device provided by the embodiment of the present invention are applied to a load balancing device, the load balancing device is connected to a first server and a second server; the load balancing device is used to control the load of the first server and the second server during the publishing process of the application; the first server is deployed with a first version application; the second server is deployed with a second version application; wherein the deployment environment of the first version application and the second version application is the same; the method comprises: if an upgrade request initiated by the application is received, importing the specified traffic into the first version application running on the first server; wherein the first version application is an upgraded verification version of the application; the specified traffic is used to indicate the traffic of the preset specified business in the application; if the first version application runs normally within the preset time, importing the initial traffic and the preset traffic increment into the first version application; the initial traffic is used to indicate the preset part of the traffic undertaken by the application; the preset traffic increment is used to indicate that the traffic is incremented by the traffic increment according to the preset increment time; according to the initial traffic and the preset traffic increment, determining the verification time of the first version application; if the preset verification time is less than the theoretical verification time, the first version application runs normally within the verification time, and then the second version application running in the second server is upgraded and published. This method uses servers with consistent deployment environments to perform precise and high-traffic verification of upgraded applications, and can strictly control the verification time.

[0053] Example 3

[0054] The embodiment of the present invention also provides an application publishing device, which is applied to a load balancing device, the load balancing device is connected to a first server and a second server; the load balancing device is used to control the load of the first server and the second server during the application publishing process; the first server is deployed with a first version application; the second server is deployed with a second version application; wherein the first version application and the second version application are deployed in the same environment. Figure 3 What I see, Figure 3 A schematic diagram of the structure of an application publishing device provided in an embodiment of the present invention, the device comprising:

[0055] The precise verification module 31 is used to import the specified traffic into the first version application running on the first server if an upgrade request initiated by the application is received; wherein the first version application is the upgraded verified version of the application; the specified traffic is used to indicate the traffic of the preset specified business in the application. The type of the specified traffic includes at least one of: the ID of the merchant in the application, the ID of the operating user, the number of the store in the internal call, and the traffic of the preset area in the system message.

[0056] The random verification module 32 is used to import the initial traffic and the preset traffic increment into the first version application if the first version application runs normally within the preset time; the initial traffic is used to indicate the preset part of the traffic undertaken by the application; the preset traffic increment is used to indicate the incremental import with the traffic increment according to the preset incremental time.

[0057] The application publishing module 33 is used to upgrade and publish the second version application running in the second server if the first version application runs normally within the preset verification time; the preset verification time is used to indicate the preset time required for the first version application to carry all traffic.

[0058] The precise verification module 31, the random verification module 32 and the application publishing module 33 are connected in sequence.

[0059] In one embodiment, the device also includes: a verification time determination module, which is used to determine the verification time of the first version application based on the initial traffic and the preset traffic increment; the verification time is used to indicate the time for the first version application to take over all the traffic of the application; the application publishing module 33 is also used to upgrade the second version application running in the second server and publish it if the preset verification time is less than the theoretical verification time and the first version application runs normally within the verification time.

[0060] In one embodiment, the verification time determination module is also used to determine the theoretical verification time of the first version application based on the initial traffic and the preset traffic increment; the theoretical verification time is used to refer to the time required for the first version application to handle all traffic obtained by theoretical calculation; the verification time is determined based on the theoretical verification time.

[0061] In one embodiment, the verification time determination module is also used to calculate the theoretical verification time of the first version application based on the initial flow and the preset flow increment by the following formula: E'=(100%-A)*D / C, wherein E' represents the theoretical verification time; A represents the initial flow; D represents the preset incremental time of the flow increment; and C represents the flow increment.

[0062] In one embodiment, the verification time determination module is further used to determine the verification time according to the theoretical verification time: E1=(E!=null)?(E>E'?E:E'):E'; wherein E represents a preset verification time; E' represents the theoretical verification time, and E1 is the verification time.

[0063] The application publishing device provided in the embodiment of the present invention has the same technical features as the application publishing method provided in the above embodiment, so it can also solve the same technical problems and achieve the same technical effects. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the device described above can refer to the corresponding process in the above method embodiment, and will not be repeated here.

[0064] Example 4

[0065] This embodiment provides an electronic device, including a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the steps of the application publishing method.

[0066] See also Figure 4 The structure diagram of an electronic device shown in the figure includes: a memory 41 and a processor 42. The memory stores a computer program that can be run on the processor 42. When the processor executes the computer program, the steps provided by the above-mentioned application publishing method are implemented.

[0067] like Figure 4 As shown, the device further includes: a bus 43 and a communication interface 44, a processor 42, a communication interface 44 and a memory 41 are connected via the bus 43; the processor 42 is used to execute executable modules stored in the memory 41, such as computer programs.

[0068] The memory 41 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 44 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0069] The bus 43 may be an ISA bus, a PCI bus, or an EISA bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0070] Among them, the memory 41 is used to store the program, and the processor 42 executes the program after receiving the execution instruction. The method performed by the application publishing device disclosed in any embodiment of the present invention can be applied to the processor 42, or implemented by the processor 42. The processor 42 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 42 or the instruction in the form of software. The above processor 42 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 41, and the processor 42 reads the information in the memory 41 and completes the steps of the above method in combination with its hardware.

[0071] Furthermore, an embodiment of the present invention also provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by the processor 42, the machine-executable instructions prompt the processor 42 to implement the above-mentioned application publishing method.

[0072] The application publishing method and application publishing device provided in the embodiment of the present invention have the same technical features, and therefore can solve the same technical problems and achieve the same technical effects.

[0073] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0074] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

Claims

1. An application publishing method, characterized in that: Applied to a load balancing device, the load balancing device is connected to a first server and a second server; the load balancing device is used to control the load of the first server and the second server during the release of an application; the first server is deployed with a first version application; the second server is deployed with a second version application; wherein the first version application and the second version application are deployed in the same environment; the method comprises: If an upgrade request initiated by an application is received, the specified traffic is imported into a first version application running on the first server; wherein the first version application is an upgraded verified version of the application; the specified traffic is used to indicate the traffic of a preset specified service in the application; If the first version of the application runs normally within the preset time, the initial traffic and the preset traffic increment are imported into the first version of the application; based on the initial traffic and the preset traffic increment, the theoretical verification time of the first version of the application is determined; the theoretical verification time is used to refer to the time required for the first version of the application to undertake all traffic obtained by theoretical calculation; based on the theoretical verification time, the verification time is determined; the verification time is used to indicate the time for the first version of the application to undertake all traffic of the application; the initial traffic is used to indicate the preset part of the traffic undertaken by the application; the preset traffic increment is used to indicate the incremental import with the traffic increment according to the preset incremental time; If the preset verification time is less than the theoretical verification time, and the first version application runs normally within the verification time, the second version application running in the second server is upgraded and released; the preset verification time is used to indicate the preset time required for the first version application to carry all traffic; wherein the theoretical verification time of the first version application is calculated according to the initial traffic and the preset traffic increment by the following formula: E'=(100%-A)*D / C Wherein, E' represents the theoretical verification time; A represents the initial flow rate; D represents the preset increment time of the flow rate increment; C represents the flow rate increment; The verification time is determined according to the theoretical verification time by the following algorithm: E1=(E!=null)? (E>E'?E:E'):E'; Wherein, E represents the preset verification time; E' represents the theoretical verification time; and E1 is the verification time.

2. The application publishing method according to claim 1, characterized in that: The type of the designated traffic includes at least one of: an ID of a merchant in the application, an ID of an operating user, a store number in an internal call, and traffic in a preset area in a system message.

3. The application publishing method according to claim 1, characterized in that: The method further comprises: Importing the designated traffic into the second server where the second version of the application is deployed; If the second version of the application runs normally within a preset time, importing the initial traffic and the preset traffic increment into the second version of the application; If the second version of the application runs normally within the preset verification time, the first version of the application is released.

4. An application publishing device, characterized in that: Applied to a load balancing device, the load balancing device is connected to a first server and a second server; the load balancing device is used to control the load of the first server and the second server during the release of an application; the first server is deployed with a first version of the application; The second server is deployed with a second version of the application; wherein the first version of the application and the second version of the application are deployed in the same environment; the device comprises: A precise verification module, configured to import the specified traffic into the first version of the application running on the first server if an upgrade request initiated by the application is received; wherein the first version of the application is an upgraded verified version of the application; and the specified traffic is used to indicate the traffic of the preset specified service in the application; A random verification module, used for importing the initial traffic and the preset traffic increment into the first version application if the first version application runs normally within a preset time; determining the theoretical verification time of the first version application based on the initial traffic and the preset traffic increment; the theoretical verification time is used to refer to the time required for the first version application to undertake all traffic obtained by theoretical calculation; determining the verification time based on the theoretical verification time; the verification time is used to indicate the time for the first version application to undertake all traffic of the application; the initial traffic is used to indicate the preset part of the traffic undertaken by the application; the preset traffic increment is used to indicate the incremental import with the traffic increment according to the preset incremental time; The application publishing module is used for upgrading and publishing the second version of the application running in the second server if the preset verification time is less than the theoretical verification time and the first version of the application runs normally within the verification time; the preset verification time is used to indicate the preset time required for the first version of the application to carry all traffic; wherein the theoretical verification time of the first version of the application is calculated according to the initial traffic and the preset traffic increment by the following formula: E'=(100%-A)*D / C Wherein, E' represents the theoretical verification time; A represents the initial flow rate; D represents the preset increment time of the flow rate increment; C represents the flow rate increment; The verification time is determined according to the theoretical verification time by the following algorithm: E1=(E!=null)? (E>E'?E:E'):E'; Wherein, E represents the preset verification time; E' represents the theoretical verification time; and E1 is the verification time.

5. An electronic device, characterized in that: The electronic device includes a processor and a memory, the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the application publishing method according to any one of claims 1 to 3.