CN112346777A - Smooth application program publishing method and device - Google Patents

Smooth application program publishing method and device Download PDF

Info

Publication number
CN112346777A
CN112346777A CN202011313025.9A CN202011313025A CN112346777A CN 112346777 A CN112346777 A CN 112346777A CN 202011313025 A CN202011313025 A CN 202011313025A CN 112346777 A CN112346777 A CN 112346777A
Authority
CN
China
Prior art keywords
application program
application
interface
parameter
reset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011313025.9A
Other languages
Chinese (zh)
Inventor
王盼盼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Baiying Technology Co Ltd
Original Assignee
Zhejiang Baiying Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Baiying Technology Co Ltd filed Critical Zhejiang Baiying Technology Co Ltd
Priority to CN202011313025.9A priority Critical patent/CN112346777A/en
Publication of CN112346777A publication Critical patent/CN112346777A/en
Pending legal-status Critical Current

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
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a smooth issuing method of an application program, which is applied before the application program is issued and comprises the following steps: the issuing system sends a reset request to a state code reset interface of the application program; after the state code resetting interface of the application program receives the resetting request, the application program changes the state code of the health check interface into any second parameter except the first parameter; a user requests to release an application program through a proxy server; the application program returns the state code of the health check interface to the proxy server; the proxy server removes the application from the load balancer in response to the second parameter.

Description

Smooth application program publishing method and device
Technical Field
The invention relates to the field of application release, in particular to a smooth release method and device for an application program.
Background
With the development of agile software development, the project is required to support release in any time period, guarantee service quality and not affect normal use of clients.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a method and a device for smoothly releasing an application program, so that a front-end user does not sense the application program in the application release process and can release the application program quickly in 24 hours.
In order to achieve the purpose, the invention adopts the following technical scheme:
in a first aspect, the present invention provides a smooth publishing method for an application, which is applied before publishing the application, and the method includes:
the issuing system sends a reset request to a state code reset interface of the application program;
after the state code resetting interface of the application program receives the resetting request, the application program changes the state code of the health check interface into any second parameter except the first parameter;
a user requests to publish the application program through a proxy server;
the application program returns the status code of the health check interface to the proxy server;
the proxy server removes the application from the load balancer in response to the second parameter.
Preferably, the method further comprises:
and after the preset waiting time of the application program starting script, starting the application program.
Preferably, after the application program is started, the state code of the health state interface of the application program is reset as the first parameter.
Preferably, the method further comprises:
the proxy server adds the application to a load balancer in response to the first parameter.
Preferably, the first parameter is 200.
In a second aspect, the present invention provides an apparatus for smoothly issuing an application, the apparatus comprising:
the release system is used for sending a reset request to a state code reset interface of the application program;
the application program comprises a state code resetting interface and a health check interface, the state code resetting interface is used for receiving the resetting request, and the health check interface is used for changing the state code of the health check interface into any second parameter except the first parameter according to the resetting request;
a proxy server for publishing the application upon a user request and removing the application from the load balancer in response to the second parameter.
In a third aspect, the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the application smooth distribution method according to any one of the above first aspects when executing the program.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the application smooth distribution method according to any one of the first aspect.
The invention has the beneficial effects that:
the invention relates to a smooth release method and a device of an application program, which enable a front-end user to have no perception in the application release process, and the real application program can be released quickly within 7 x 24 hours, and a health check interface can also be used for application monitoring.
Drawings
Fig. 1 is a schematic flowchart of a smooth publishing method of an application according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an example of an application rejoining a load balancer according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an application smooth publishing device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention are further described in detail below with reference to specific embodiments, and it is obvious that the described embodiments are only a part of embodiments of the present invention, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
With the development of agile software development, the project is required to support release in any time period, guarantee service quality and not affect normal use of clients.
In order to enable a front-end user to have no perception and to be capable of releasing quickly in 24 hours in the application releasing process, the embodiment of the invention provides a method and a device for smoothly releasing an application program.
The technical solutions provided by the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
In a first aspect, an embodiment of the present invention provides a smooth publishing method for an application, as shown in fig. 1, before being applied to publishing an application, the method includes:
s101, sending a reset request to a state code reset interface of an application program by a release system;
s102, after the state code resetting interface of the application program receives the resetting request, the application program changes the state code of the health check interface into any second parameter except the first parameter;
s103, a user requests to release the application program through a proxy server;
s104, the application program returns the status code of the health check interface to the proxy server;
s105, the proxy server responds to the second parameter and removes the application program from the load balancer.
In one example, as shown in fig. 2, after the proxy server removes the application from the load balancer in response to the second parameter, the method further comprises:
s201, after the preset waiting time of the application program starting script, starting the application program;
s202, resetting a state code of a health state interface of the application program as a first parameter;
s203, the proxy server responds to the first parameter and adds the application program into a load balancer.
In one example, the first parameter is 200.
In a second aspect, an embodiment of the present invention further provides an apparatus for smoothly issuing an application, as shown in fig. 3, where the apparatus includes:
the issuing system 301 is used for sending a reset request to a status code reset interface of the application program 302;
an application program 302, the application program 302 comprising a status code reset interface 3021 and a health check interface 3022, the status code reset interface 3021 being configured to receive the reset request, the health check interface 3022 being configured to change the status code of the health check interface 3022 to any second parameter other than the first parameter according to the reset request;
a proxy server 303, said proxy server 303 for publishing said application 302 upon a user request and, in response to said second parameter, removing said application 302 from the load balancer.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, as shown in fig. 4, which illustrates a specific hardware structure of an electronic device 40 provided in an embodiment of the present invention, and may include: at least one network interface 402, memory 403, and at least one processor 401. The various components in electronic device 40 are coupled together by a bus system 404. It will be appreciated that the bus system 404 is used to enable communications among the components for connection. The bus system 404 includes a power bus, a control bus, and a status signal bus in addition to a data bus, but for clarity of illustration, the various buses are labeled as bus system 404 in FIG. 4.
It is to be understood that the memory 403 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read-Only Memory (R0M), a Programmable Read-Only Memory (PROM), an erasable Programmable Read-Only Memory (erasaber pr0M, EPR0M), an Electrically erasable Programmable Read-Only Memory (Electrically EPR0M, EEPR0M), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (ddr Data Rate SDRAM, ddr SDRAM), Enhanced Synchronous SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 403 of the systems and methods described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
And processor 401 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 401. The Processor 401 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 403, and the processor 401 reads the information in the memory 403 and completes the steps of the method in combination with the hardware.
In some embodiments, memory 403 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof: an operating system 4031 and application programs 4032.
The operating system 4031 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used to implement various outgoing services and process hardware-based tasks. The application 4032 includes various applications, such as a Media Player (Media Player), a Browser (Browser), and the like, and is used to implement various application services. The program for implementing the method of the embodiment of the present invention may be included in the application program.
In the embodiment of the present invention, the electronic device 40 further includes: a computer program stored on the memory 403 and executable on the processor 401, the computer program being executable by the processor to perform steps for:
the issuing system sends a reset request to a state code reset interface of the application program;
after the state code resetting interface of the application program receives the resetting request, the application program changes the state code of the health check interface into any second parameter except the first parameter;
a user requests to publish the application program through a proxy server;
the application program returns the status code of the health check interface to the proxy server;
the proxy server removes the application from the load balancer in response to the second parameter.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which an application smooth distribution program is stored, where the program is executed by at least one processor to implement the steps of the application smooth distribution method according to the first aspect of the foregoing embodiment:
the issuing system sends a reset request to a state code reset interface of the application program;
after the state code resetting interface of the application program receives the resetting request, the application program changes the state code of the health check interface into any second parameter except the first parameter;
a user requests to publish the application program through a proxy server;
the application program returns the status code of the health check interface to the proxy server;
the proxy server removes the application from the load balancer in response to the second parameter.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, which are within the protection scope of the present invention.

Claims (8)

1. The smooth application program publishing method is applied before the application program is published, and is characterized in that the method is used for smoothly publishing the application program
The method comprises the following steps:
the issuing system sends a reset request to a state code reset interface of the application program;
after the state code reset interface of the application program receives the reset request, the application program is healthy
Checking the state code of the interface to be changed into any second parameter except the first parameter;
a user requests to publish the application program through a proxy server;
the application program returns the status code of the health check interface to the proxy server;
the proxy server removes the application from the load balancer in response to the second parameter.
2. The method of claim 1, wherein the method further comprises:
and after the preset waiting time of the application program starting script, starting the application program.
3. The smooth application publishing method of claim 2, wherein the application program is started
And after that, resetting the state code of the health state interface of the application program as a first parameter.
4. A method as claimed in claim 3, wherein said method further comprises:
the proxy server adds the application to a load balancer in response to the first parameter.
5. The method as claimed in claim 4, wherein the first parameter is 200.
6. An apparatus for smoothly issuing an application, the apparatus comprising:
the release system is used for sending a reset request to a state code reset interface of the application program;
an application program comprising a status code reset interface and a health check interface, the status code
The reset interface is used for receiving the reset request, and the health check interface is used for changing the state code of the health check interface into any second parameter except the first parameter according to the reset request;
a proxy server for publishing the application upon a user request, and,
removing the application from the load balancer in response to the second parameter.
7. An electronic device comprises a memory, a processor and a memory and a processor
Computer program according to any of claims 1 to 5, characterized in that the processor, when executing said program, performs the steps of the application smooth distribution method according to any of claims 1 to 5.
8. A computer-readable storage medium having stored thereon a computer program, characterized in that: the calculation
The computer program when being executed by a processor performs the steps of the method for smooth distribution of an application as claimed in any one of claims 1 to 5.
CN202011313025.9A 2020-11-20 2020-11-20 Smooth application program publishing method and device Pending CN112346777A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011313025.9A CN112346777A (en) 2020-11-20 2020-11-20 Smooth application program publishing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011313025.9A CN112346777A (en) 2020-11-20 2020-11-20 Smooth application program publishing method and device

Publications (1)

Publication Number Publication Date
CN112346777A true CN112346777A (en) 2021-02-09

Family

ID=74364445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011313025.9A Pending CN112346777A (en) 2020-11-20 2020-11-20 Smooth application program publishing method and device

Country Status (1)

Country Link
CN (1) CN112346777A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109729136A (en) * 2018-05-14 2019-05-07 网联清算有限公司 Proxy server dissemination method and publisher server
CN109726099A (en) * 2018-04-12 2019-05-07 平安普惠企业管理有限公司 A kind of application gray scale dissemination method, device and equipment
CN110071960A (en) * 2019-03-12 2019-07-30 平安科技(深圳)有限公司 Manage method, system, equipment and the storage medium of gray scale publication
CN110581855A (en) * 2019-09-12 2019-12-17 中国工商银行股份有限公司 Application control method and device, electronic equipment and computer readable storage medium
CN111209032A (en) * 2020-01-06 2020-05-29 中国银联股份有限公司 Gray scale publishing method, configuration center server, user terminal, system and medium
CN111585805A (en) * 2020-04-30 2020-08-25 中国平安财产保险股份有限公司 Smooth release upgrading method and device, computer system and readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109726099A (en) * 2018-04-12 2019-05-07 平安普惠企业管理有限公司 A kind of application gray scale dissemination method, device and equipment
CN109729136A (en) * 2018-05-14 2019-05-07 网联清算有限公司 Proxy server dissemination method and publisher server
CN110071960A (en) * 2019-03-12 2019-07-30 平安科技(深圳)有限公司 Manage method, system, equipment and the storage medium of gray scale publication
CN110581855A (en) * 2019-09-12 2019-12-17 中国工商银行股份有限公司 Application control method and device, electronic equipment and computer readable storage medium
CN111209032A (en) * 2020-01-06 2020-05-29 中国银联股份有限公司 Gray scale publishing method, configuration center server, user terminal, system and medium
CN111585805A (en) * 2020-04-30 2020-08-25 中国平安财产保险股份有限公司 Smooth release upgrading method and device, computer system and readable storage medium

Similar Documents

Publication Publication Date Title
CN110058873B (en) Application page updating method, device, equipment and storage medium
CN111444015A (en) Server control method and device, computer equipment and storage medium
CN105069163A (en) Network request processing method and apparatus
CN109254904B (en) Database pressure measurement method and device and electronic equipment
CN112346777A (en) Smooth application program publishing method and device
CN112818270A (en) Data cross-domain transfer method and device and computer equipment
CN107229655B (en) Updating method, device and system of page static file
CN109815083B (en) Application crash monitoring method and device, electronic equipment and medium
CN116450165A (en) Method, system, terminal and storage medium for quickly building environment and deploying program
CN112783635A (en) Resource limit adjusting method and device
WO2016176045A1 (en) System, method, and apparatus for updating data in a distributed storage system
CN116095064A (en) File downloading method, computer equipment and storage medium
CN113126982B (en) Application program generation and operation method and device
CN110321133B (en) H5 application deployment method and device
CN109561123B (en) Token caching method and device
CN115022174B (en) Request processing method and device, readable storage medium and electronic equipment
CN113254449A (en) ID generation method, device, equipment and storage medium
CN110874238A (en) Online service updating method and device
CN115484162B (en) Component adaptation method, device, server side and storage medium of software system
CN115242874B (en) Network request agent optimization method, system, equipment and storage medium in application development stage
CN104750728A (en) Method and device for controlling web page request mode
CN111563099B (en) CRM (customer relationship management) client duplicate checking method based on voiceprint recognition and electronic equipment thereof
CN114817166B (en) Method, device and medium for canceling file operation
CN113641512B (en) Method, system, equipment and storage medium for processing Ajax requests in merging mode
CN114416766A (en) Practical computing power certification consensus method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210209