[go: up one dir, main page]

CN119025257A - A method, device, equipment and medium for issuing application requests - Google Patents

A method, device, equipment and medium for issuing application requests Download PDF

Info

Publication number
CN119025257A
CN119025257A CN202410949412.3A CN202410949412A CN119025257A CN 119025257 A CN119025257 A CN 119025257A CN 202410949412 A CN202410949412 A CN 202410949412A CN 119025257 A CN119025257 A CN 119025257A
Authority
CN
China
Prior art keywords
request
application program
server
issuing
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202410949412.3A
Other languages
Chinese (zh)
Other versions
CN119025257B (en
Inventor
刘文玮
何琦
叶明亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Sanqi Jiyao Network Technology Co ltd
Original Assignee
Guangzhou Sanqi Jiyao Network 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 Guangzhou Sanqi Jiyao Network Technology Co ltd filed Critical Guangzhou Sanqi Jiyao Network Technology Co ltd
Priority to CN202410949412.3A priority Critical patent/CN119025257B/en
Publication of CN119025257A publication Critical patent/CN119025257A/en
Application granted granted Critical
Publication of CN119025257B publication Critical patent/CN119025257B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

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

Abstract

The application discloses a request issuing method, device, equipment and medium of an application program, and belongs to the technical field of Internet. The method comprises the following steps: the method comprises the steps of sending release information of an application program to a load balancing server, and determining a first elastic IP module of a first server and a second elastic IP module of a second server according to an analysis result of the load balancing server; generating a first IP address based on the first elastic IP module, and generating a second IP address based on the second elastic IP module; generating a first agent issuing request according to the first IP address, and generating a second agent issuing request according to the second IP address; the first agent issue request and the second agent issue request are sent to the target issue end. According to the technical scheme, the robustness of the transmission of the release request can be improved, the influence of repeated use of the historical IP on the normal auditing of the application program is avoided, and the auditing passing rate of the application program is improved.

Description

Request issuing method, device, equipment and medium of application program
Technical Field
The application belongs to the technical field of Internet, and particularly relates to a request issuing method, device, equipment and medium of an application program.
Background
Before the user can download and use the application program from the application store, the application store needs to carry out a strict auditing process on the application program, so that the application program can provide safe, reliable and high-quality user experience for the user. The verification of the IP address of the application issuing request is also an important item of auditing, so that potential network threats can be identified, and network security is protected.
However, the current application store has very strict requirement on the auditing of the IP address of the application program release request, if one or more release request records exist in the IP address of one application program release request, the probability that the application program release request passes the auditing will be greatly reduced, and the application program cannot release the application program. Therefore, how to ensure that the application program can be successfully released and improve the auditing passing rate is a problem that needs to be solved by the person skilled in the art.
Disclosure of Invention
The embodiment of the application provides a request issuing method, device, equipment and medium for an application program, and aims to improve the robustness of issuing request transmission, avoid the influence of repeated use of a historical IP on the normal auditing of the application program and improve the auditing passing rate of the application program.
In a first aspect, an embodiment of the present application provides a method for issuing a request of an application program, where the method includes:
responding to the release operation of the application program, and acquiring release information of the application program;
the release information of the application program is sent to a load balancing server, and the release information is used for determining a first elastic IP module of a first server and a second elastic IP module of a second server according to the analysis result of the load balancing server;
Generating a first IP address for the application program based on a first elastic IP module of the first server; generating a second IP address for the application program based on a second elastic IP module of the second server;
Generating a first proxy cloth request of the application program according to the first IP address; generating a second agent issuing request of the application program according to the second IP address;
And sending the first agent issuing request and the second agent issuing request to a target issuing end, so that the target issuing end performs issuing verification on the application program based on the first agent issuing request and the second agent issuing request.
In a second aspect, an embodiment of the present application provides a request issuing apparatus for an application, where the apparatus includes:
the release information acquisition module is used for responding to the release operation of the application program and acquiring release information of the application program;
The server determining module is used for sending the release information of the application program to the load balancing server and determining a first elastic IP module of the first server and a second elastic IP module of the second server according to the analysis result of the load balancing server;
the IP address determining module is used for generating a first IP address for the application program based on a first elastic IP module of the first server; generating a second IP address for the application program based on a second elastic IP module of the second server;
the agent issuing request generation module is used for generating a first agent issuing request of the application program according to the first IP address; generating a second agent issuing request of the application program according to the second IP address;
the agent issuing request sending module is used for sending the first agent issuing request and the second agent issuing request to a target issuing end, so that the target issuing end can issue and audit the application program based on the first agent issuing request and the second agent issuing request.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the method according to the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In the embodiment of the application, the issuing information of the application program is obtained in response to the issuing operation of the application program; the release information of the application program is sent to a load balancing server, and the release information is used for determining a first elastic IP module of a first server and a second elastic IP module of a second server according to the analysis result of the load balancing server; generating a first IP address for the application program based on a first elastic IP module of the first server; generating a second IP address for the application program based on a second elastic IP module of the second server; generating a first proxy cloth request of the application program according to the first IP address; generating a second agent issuing request of the application program according to the second IP address; and sending the first agent issuing request and the second agent issuing request to a target issuing end, so that the target issuing end performs issuing verification on the application program based on the first agent issuing request and the second agent issuing request. According to the request issuing method of the application program, by adopting the load balancing server, the two back-end servers with the best performance are determined to generate the two elastic IPs for the application program, so that the robustness of issuing request transmission can be improved, the influence of repeated use of the historical IPs on the normal auditing of the application program can be avoided, and the auditing passing rate of the application program can be improved.
Drawings
FIG. 1 is a flowchart of a request issuing method of an application program according to an embodiment of the present application;
FIG. 2 is an exemplary diagram of a request issuing method of an application program according to an embodiment of the present application;
fig. 3 is a flowchart of a request issuing method of an application program according to a second embodiment of the present application;
Fig. 4 is a flowchart of a request issuing method of an application program according to a third embodiment of the present application;
Fig. 5 is a schematic structural diagram of a request issuing device of an application program according to a fourth embodiment of the present application;
Fig. 6 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the following detailed description of specific embodiments of the present application is given with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the matters related to the present application are shown in the accompanying drawings. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The method, the device, the equipment and the medium for issuing the request of the application program provided by the embodiment of the application are described in detail through specific embodiments and application program scenes with reference to the accompanying drawings.
Example 1
Fig. 1 is a flowchart of a request issuing method of an application according to an embodiment of the present application. As shown in fig. 1, the method specifically comprises the following steps:
s101, responding to an application program release operation, and acquiring release information of the application program;
Firstly, the application is suitable for requesting to audit and issue the scene of the application program from the issuing end of the application program. Based on the above usage scenario, it can be understood that the execution subject of the present application may be an intelligent terminal device, such as a desktop computer, a notebook computer, a mobile phone, a tablet computer, and an interactive multimedia, which are not limited herein. Specifically, the acquiring of the application program release information, the acquiring of the first IP address and the second IP address, and the like may be performed by the intelligent terminal device, and the release terminal receives a release request of the application program from different IP addresses.
An application may be a collection of instructions and logical operations that are designed to perform a particular task, provide a particular function, or meet a particular need, and may be run on a smart terminal device.
The application publishing operation may be an operation in which a developer or provider of the application selects a target publisher of the application and determines a request for publishing, after which an application publishing request is issued through an IP (Internet Protocol ) address used by a user (developer or provider of the application). By receiving the application program release request, a response to the application program release operation can be realized.
The release information of the application program may be a request sent by an IP (Internet Protocol ) address used by the user to request to audit the release of the application program at the target release end, that is, the release request of the application program. For example, if there is currently one application app1 that needs to request an audit publication, app1.Com/pay may be used to represent the publication information of the application app1. And receiving the application program release request, namely acquiring release information of the application program.
The request may be a way of communication between the client and the server, and the components of the request include a request method, a request URL (Uniform Resource Locator ), a request header, a request body, and a request parameter. Specifically, relevant information about the application (such as domain name information, a target release address, and an application package) is stored in a request body of the application release request.
S102, sending the release information of the application program to a load balancing server, and determining a first elastic IP module of a first server and a second elastic IP module of a second server according to the analysis result of the load balancing server;
the load balancing server may refer to a server performing load distribution, where the load balancing server receives a request from a client, and distributes the request to a plurality of backend servers according to a preset load balancing algorithm. When an application program release request is constructed, a request URL of the application program release request is designated as a URL of the load balancing server, and the application program release request is sent out, so that release information of the application program can be sent to the load balancing server.
The analysis result of the load balancing server may be obtained by analyzing the release information of the application program, and the reference information used for determining the distributed back-end server may include the data size of the release information of the application program.
The first server and the second server may refer to two back-end servers that are selected from the candidate servers to have the most excellent performance for the process of generating the flexible IP address for the current application and transmitting the proxy issuing request. The first elastic IP module may refer to a module on the first server for generating an elastic IP address for an application, and the second elastic IP module may refer to a module on the second server for generating an elastic IP address for an application. The first IP address is an elastic IP address generated by the first elastic IP module, and the second IP address is an elastic IP address generated by the second elastic IP module.
The elastic IP address is a public network IP address which can be allocated to cloud resources such as a user virtual machine instance and a load balancer, and unlike the traditional fixed IP address, the elastic IP address can be easily unbound and bound with the cloud resources when needed, and cannot be influenced by network configuration or resource restarting.
The method for determining the first elastic IP module of the first server and the second elastic IP module of the second server according to the analysis result of the load balancing server may adopt a method for obtaining connection number information and response time information of each candidate server, and determining the first elastic IP module of the first server and the second elastic IP module of the second server from the candidate servers according to the data size, connection number information and response time information of the release information.
In this technical solution, optionally, before sending the release information of the application program to a load balancing server, to determine, according to an analysis result of the load balancing server, a first elastic IP module of a first server and a second elastic IP module of a second server, the method further includes:
analyzing the release information of the application program to obtain domain name information of the application program;
Sending a query request to a DNS server according to the domain name information;
receiving a load balancing server address returned by the DNS server to determine a target load balancing server;
correspondingly, sending the release information of the application program to a load balancing server comprises the following steps:
And sending the release information of the application program to a target load balancing server.
The domain name information may be a human readable string on the internet for identifying and locating network resources, i.e. the domain name information of an application is used for identifying and locating said application. For example, if there is currently one application app1 that needs to request an audit release, the domain name information of the application app1 may be app1.Com. The method for obtaining the domain name information of the application program can be used for analyzing the release information of the application program, namely analyzing the release request of the application program, obtaining the specific data in the request body of the release request of the application program, and obtaining the domain name information of the application program.
The query request may be a request sent to a DNS (Domain NAME SERVER) server for querying a load balancing server associated with the current application. Wherein, the DNS server is a server responsible for resolving the mapping relationship between the domain name and the IP address, and provides a service for converting the human-readable domain name into a computer-recognizable IP address.
The method comprises the steps that domain name information is stored in a request body of a query request, the query request is sent to a DNS server, the DNS server queries by taking the domain name information as a query condition after receiving the query request, an IP address associated with the domain name information is obtained and returned, the IP address is a load balancing server address, and further, a load balancing server corresponding to the load balancing server address is a target load balancing server.
Fig. 2 is an exemplary diagram of a request issuing method of an application program according to an embodiment of the present application. As shown in fig. 2, in this example, the target load balancer corresponding to the domain name information app1.Com is load balancing 1, the target load balancer corresponding to the domain name information app2.Com is load balancing 2, and the target load balancer corresponding to the domain name information app3.Com is load balancing 3.
When an application program release request is constructed, a request URL of the application program release request is designated as a URL of a target load balancing server, and the application program release request is sent out, so that release information of the application program can be sent to the target load balancing server.
The method has the advantages that the target load balancing server is determined according to the domain name information of the application program, so that a user does not need to memorize a complex IP address when sending an application program release request, only simple domain name information is needed to be provided, the user experience is improved, and the stability of the method is improved.
S103, generating a first IP address for the application program based on a first elastic IP module of the first server; generating a second IP address for the application program based on a second elastic IP module of the second server;
The first and second flexible IP blocks may include a plurality of network cards that may be used to provide a plurality of flexible IP addresses.
The method for generating the first IP address may adopt a method of acquiring a use parameter of each network card in the first elastic IP module, determining a first target network card in each network card of the first elastic IP module according to the use parameter of each network card in the first elastic IP module, and determining an IP address corresponding to the first target network card as the first IP address; the method for generating the second IP address may adopt obtaining the use parameters of each network card in the second elastic IP module, determining a second target network card in each network card of the second elastic IP module according to the use parameters of each network card in the second elastic IP module, and determining the IP address corresponding to the second target network card as the second IP address.
S104, generating a first proxy cloth request of the application program according to the first IP address; generating a second agent issuing request of the application program according to the second IP address;
the first agent cloth request may be a request sent by a first IP address for requesting to audit and issue a current application program at a target issue end; the second agent issue request may refer to a request issued through the second IP address for requesting an audit of issuing the current application at the target issuing side.
The method for generating the first proxy cloth request may determine first configuration information of the first proxy service module of the first server according to the target release address and the first IP address of the application program, so as to control the first proxy service module to generate the first proxy cloth request based on the first configuration information; the second proxy publishing request may be generated by determining second configuration information of a second proxy service module of the second server according to the target publishing address of the application program and the second IP address, so as to control the second proxy service module to generate the second proxy publishing request based on the second configuration information.
S105, the first agent distribution request and the second agent distribution request are sent to a target distribution end, and the target distribution end performs distribution verification on the application program based on the first agent distribution request and the second agent distribution request.
The target publishing end may refer to a platform capable of publishing a current application program and centrally managing and selling each application program, and for example, the target publishing end may be an application store.
The first agent service module controlling the first server may send the first agent request to the target issuing end, and the second agent service module controlling the second server may send the second agent request to the target issuing end, so that the target issuing end may perform issuing audit on the application program based on the first agent request and the second agent request.
The target issuing end receives the first agent issuing request and/or the second agent issuing request, acquires an application program package from a request body of the first agent issuing request and/or the second agent issuing request, and performs security check, function and performance evaluation, content audit, user privacy protection, platform specification compliance, copyright and intellectual property and other audits.
In the embodiment of the application, the issuing information of the application program is obtained in response to the issuing operation of the application program; the release information of the application program is sent to a load balancing server, and the release information is used for determining a first elastic IP module of a first server and a second elastic IP module of a second server according to the analysis result of the load balancing server; generating a first IP address for the application program based on a first elastic IP module of the first server; generating a second IP address for the application program based on a second elastic IP module of the second server; generating a first proxy cloth request of the application program according to the first IP address; generating a second agent issuing request of the application program according to the second IP address; and sending the first agent issuing request and the second agent issuing request to a target issuing end, so that the target issuing end performs issuing verification on the application program based on the first agent issuing request and the second agent issuing request. According to the request issuing method of the application program, by adopting the load balancing server, the two back-end servers with the best performance are determined to generate the two elastic IPs for the application program, so that the robustness of issuing request transmission can be improved, the influence of repeated use of the historical IPs on the normal auditing of the application program can be avoided, and the auditing passing rate of the application program can be improved.
Example two
Fig. 3 is a flowchart of a request issuing method of an application program according to a second embodiment of the present application. The scheme makes better improvement on the embodiment, and the specific improvement is as follows: the analysis result comprises the data size of the release information; correspondingly, according to the analysis result of the load balancing server, determining a first elastic IP module of the first server and a second elastic IP module of the second server includes: acquiring connection quantity information and response time information of each candidate server; and determining a first elastic IP module of the first server and a second elastic IP module of the second server from the candidate servers according to the data size of the release information, the connection quantity information and the response time information.
As shown in fig. 3, the method specifically comprises the following steps:
S301, responding to an application program release operation, and acquiring release information of an application program;
S302, sending the release information of the application program to a load balancing server;
s303, obtaining connection quantity information and response time information of each candidate server;
The candidate server may refer to a preset back-end server capable of providing a function of generating an elastic IP address for an application program and generating and transmitting a proxy issue request. Wherein, at least comprises a nginx server in a back-end server.
The connection number information may refer to the number of requests currently processed by one candidate server at the same time, and may be used to represent the load situation of the candidate server. The response time information may refer to the time required for one candidate server to process a request, and may be used to evaluate user experience and quality of service.
By sending a request for inquiring the connection number information and the response time information to each candidate server, each candidate server receives the request and returns the connection number information and the response time information of itself, the connection number information and the response time information of each candidate server can be acquired.
S304, determining a first elastic IP module of a first server and a second elastic IP module of a second server from the candidate servers according to the data size of the release information, the connection quantity information and the response time information;
The data size of the release information may refer to the data size of the application release request, and the unit is bytes. By reading the Content-Length field in the request header of the application issue request, the size of the request body of the application issue request can be determined as the data size of the issue information.
The method comprises the steps of determining the data size of release information, the connection quantity information and the weight of response time information according to the performance requirement of a user for requesting release and audit of the service of an application program, carrying out weighted calculation according to the weight to obtain the performance score of each candidate server, and determining two candidate servers with the highest performance score as a first server and a second server respectively. As shown in fig. 2, in this example, the first server is server 1 and the second server is server 2.
Correspondingly, the elastic IP module of the first server is the first elastic IP module, and the elastic IP module of the second server is the second elastic IP module. The elastic IP module may refer to a module for generating an elastic IP address for an application program.
S305, generating a first IP address for the application program based on a first elastic IP module of the first server; generating a second IP address for the application program based on a second elastic IP module of the second server;
In this technical scheme, optionally, a first IP address is generated for the application program based on a first elastic IP module of the first server; and generating a second IP address for the application based on a second elastic IP module of the second server, including:
Acquiring the use parameters of each network card in the first elastic IP module and acquiring the use parameters of each network card in the second elastic IP module;
Determining a first target network card in each network card of the first elastic IP module according to the use parameters of each network card in the first elastic IP module; determining a second target network card in each network card of the second elastic IP module according to the use parameters of each network card in the second elastic IP module;
and determining the IP address corresponding to the first target network card as a first IP address, and determining the IP address corresponding to the second target network card as a second IP address.
The release information of the application program, namely an application program release request, is distributed to a first server and a second server by a load balancing server, and the first server and the second server respond to the application program release request to generate an elastic IP address for the application program. The domain name information plus "/pay" may be used to indicate that the application corresponding to the domain name information issues a request, as shown in fig. 2, the load balancing 1 distributes app1.Com/pay to the server 1 and the server 2, the load balancing 2 distributes app2.Com/pay to the server 1 and the server 2, and the load balancing 3 distributes app3.Com/pay to the server 1 and the server 2.
The network card, also called a network adapter or a network interface controller, is a physical interface in a computer system for connecting a computer to a network, and is one of key components for communication between the computer and the network.
The usage parameters of the network card may be parameters for describing the usage and performance of the network card, and may include whether to use and bandwidth. Whether to use or not means whether the network card is already bound with an nginx instance; bandwidth may refer to the amount of data that the network card may transmit in a unit of time. The usage parameters of the network card are generally stored in the back-end server, so that the usage parameters can be directly read.
The first target network card may be a network card used for generating an elastic IP of the current application program in the first elastic IP module, and whether the network card with the highest bandwidth is used in the first elastic IP module is determined as the first target network card; the second target network card may be a network card used for generating the elastic IP of the current application program in the second elastic IP module, and whether the network card with the highest bandwidth is used in the second elastic IP module is determined as the second target network card.
The IP address corresponding to the network card may refer to an elastic IP address allocated to the network card by the cloud service provider. When a network card is determined to be used, a cloud service provider can be applied for allocating an elastic IP address to the network card. The elastic IP address allocated to the first target network card by the cloud service provider is the IP address corresponding to the first target network card, and further is the first IP address; the elastic IP address allocated to the second target network card by the cloud service provider is the IP address corresponding to the second target network card, and further is the second IP address.
As shown in fig. 2, in this example, for application app1, server 1 generates EIP1 as a first IP address for application app1, and server 2 generates EIP4 as a second IP address for application app 1; for application app2, server 1 generates EIP2 as a first IP address for application app2, and server 2 generates EIP5 as a second IP address for application app 2; for application app3, server 1 generates EIP3 as the first IP address of application app3 and server 2 generates EIP6 as the second IP address of application app3.
The proposal has the advantages that the transmission speed of the back-end server for sending the proxy release request to the target release end can be improved by determining the target network card according to the use parameters of the network card, and the same application program can be requested to be audited and released to the target release end by using different IP addresses by distributing the elastic IP addresses to the application program.
S306, generating a first proxy cloth request of the application program according to the first IP address; generating a second agent issuing request of the application program according to the second IP address;
S307, the first agent distribution request and the second agent distribution request are sent to a target distribution end, and the target distribution end performs distribution verification on the application program based on the first agent distribution request and the second agent distribution request.
The method and the system have the advantages that the first elastic IP module of the first server and the second elastic IP module of the second server are determined according to the analysis result of the load balancing server, so that the distributed back-end server can be ensured to correctly process the application program release request, the processing time is shortened as much as possible, and the efficiency is improved.
Example III
Fig. 4 is a flowchart of a request issuing method of an application program according to a third embodiment of the present application. The scheme makes better improvement on the first embodiment, and the specific improvement is as follows: generating a first proxy cloth request of the application program according to the first IP address; and generating a second agent publishing request of the application program according to the second IP address, including: acquiring a target release address of the application program; determining first configuration information of a first proxy service module of the first server according to a target release address of the application program and the first IP address so as to control the first proxy service module to generate a first proxy cloth request based on the first configuration information; and determining second configuration information of a second proxy service module of the second server according to the target release address of the application program and the second IP address so as to control the second proxy service module to generate a second proxy release request based on the second configuration information.
As shown in fig. 4, the method specifically comprises the following steps:
S401, responding to an application program release operation, and acquiring release information of the application program;
S402, sending the release information of the application program to a load balancing server, so as to determine a first elastic IP module of a first server and a second elastic IP module of a second server according to the analysis result of the load balancing server;
S403, generating a first IP address for the application program based on a first elastic IP module of the first server; generating a second IP address for the application program based on a second elastic IP module of the second server;
S404, acquiring a target release address of the application program;
the target issue address may refer to a URL address of the target issue end. As shown in fig. 2, in this example, the target issue address is buy.
The target release address of the application program can be obtained by analyzing the release information of the application program, namely analyzing the release request of the application program and obtaining the specific data in the request body of the release request of the application program.
S405, determining first configuration information of a first proxy service module of the first server according to a target release address of the application program and the first IP address so as to control the first proxy service module to generate a first proxy release request based on the first configuration information; determining second configuration information of a second proxy service module of the second server according to the target release address of the application program and the second IP address so as to control the second proxy service module to generate a second proxy release request based on the second configuration information;
The first proxy service module may refer to an ngix server deployed on a first server, and the second proxy service module may refer to an ngix server deployed on a second server. Wherein, the nginx server is an open source high-performance Web server and a reverse proxy server.
The configuration information of the first proxy service module is the first configuration information, and the configuration information of the second proxy service module is the second configuration information. The configuration information may include HTTP header information of the proxy issue request, an IP address bound when the proxy issue request is issued to the outside, a target address of the proxy issue request, and the like. Specifically, the HTTP header information of the proxy release request may be determined to be null, and the IP address bound when the proxy release request is externally sent should be determined to be the first IP address or the second IP address, and the target address of the proxy release request should be determined to be the target release address.
For example, if there is currently an application app1, the release information is app1.Com/pay, the first IP address is EIP1, the first configuration information may be:
The proxy_set_ HEADER ACCEPT-Encoding represents HTTP header information of the proxy release request, the proxy_bind represents an IP address bound when the proxy release request is externally sent, the proxy_pass represents a target address of the proxy release request, the $server_addr is a variable for storing an elastic IP address, and in this example, a specific value of $server_addr should be EIP1, and http:// buy.
After the first configuration information is determined, the first proxy service module automatically constructs and generates a first proxy cloth request according to the release information of the application program and the first configuration information; after the second configuration information is determined, the second proxy service module automatically constructs and generates a second proxy release request according to the release information of the application program and the second configuration information.
S406, the first agent distribution request and the second agent distribution request are sent to a target distribution end, and the target distribution end performs distribution verification on the application program based on the first agent distribution request and the second agent distribution request.
In this technical solution, optionally, the sending the first agent distribution request and the second agent distribution request to a target distribution end, where the target distribution end performs a distribution audit on the application program based on the first agent distribution request and the second agent distribution request, includes:
The first proxy service module of the first server is controlled to send the first proxy cloth request to a target issuing end, and the second proxy service module of the second server is controlled to send the second proxy issuing request to the target issuing end, so that the target issuing end carries out issuing verification on the application program based on the first proxy cloth request and the second proxy issuing request.
The nginx server can directly send the proxy release request to the target release end after constructing and generating the proxy release request. Specifically, the nginx server deployed on the first server may send the first proxy publishing request to the target publishing end, and the nginx server deployed on the second server may send the second proxy publishing request to the target publishing end.
The first proxy service module of the first server can be used for controlling the first proxy service module of the first server to send the first proxy service module to the target issuing end, so that the target issuing end can issue and examine the application program based on the first proxy service module, the auditing result fed back by the target issuing end is received, and the second proxy service module of the second server can be controlled to send the second proxy issuing request to the target issuing end, so that the target issuing end can issue and examine the application program based on the second proxy issuing request under the condition that the auditing result is not passed.
The first proxy service module controlling the first server can be used for sending the first proxy cloth request to the target issuing end, and the second proxy service module controlling the second server can be used for sending the second proxy issuing request to the target issuing end, so that the target issuing end can carry out issuing auditing on the application program based on the first proxy cloth request and the second proxy issuing request, and receive the auditing result fed back by the target issuing end.
The arrangement of the scheme has the advantages that.
In this technical solution, optionally, the sending the first agent distribution request and the second agent distribution request to a target distribution end, where the target distribution end performs a distribution audit on the application program based on the first agent distribution request and the second agent distribution request, includes:
A first proxy service module controlling the first server sends the first proxy cloth request to a target issuing end, so that the target issuing end issues and audits the application program based on the first proxy cloth request;
receiving an auditing result fed back by the target issuing end;
If the auditing result is not passed, controlling a second proxy service module of the second server to send the second proxy release request to a target release end, so that the target release end performs release auditing on the application program based on the second proxy release request;
Or alternatively
A first proxy service module controlling the first server sends the first proxy cloth request to a target issuing end; the second proxy service module of the second server is controlled to send the second proxy release request to a target release end, and the target release end carries out release verification on the application program based on the first proxy release request and the second proxy release request;
and receiving the auditing result fed back by the target issuing end.
The auditing result may be a result of judging whether the target issuing end can issue the application program or not, and may include passing or failing, by indicating that the application program can issue, and not by indicating that the application program cannot issue. The target issuing end feeds the auditing result back to the proxy service module of the back-end server, and the proxy service module of the back-end server receives the auditing result and carries out the next processing.
The proposal has the advantages that by sending the second agent release request again under the condition that the audit of the first agent cloth request is not passed, the condition that the two agent release requests are sent simultaneously and the audit is passed simultaneously, which leads to the repeated release of the application program at the target release end can be avoided.
The method has the advantages that the nginx server can process high-flow requests, and large application program release requests can be processed rapidly by using the ginx server to generate proxy release requests, so that efficiency is improved.
Example IV
Fig. 5 is a schematic structural diagram of a request issuing device of an application program according to a fourth embodiment of the present application. As shown in fig. 5, the apparatus includes:
a release information obtaining module 510, configured to obtain release information of an application program in response to an application program release operation;
the server determining module 520 is configured to send the release information of the application program to a load balancing server, and determine a first elastic IP module of the first server and a second elastic IP module of the second server according to an analysis result of the load balancing server;
An IP address determining module 530, configured to generate a first IP address for the application program based on a first elastic IP module of the first server; generating a second IP address for the application program based on a second elastic IP module of the second server;
A proxy issue request generating module 540, configured to generate a first proxy issue request of the application program according to the first IP address; generating a second agent issuing request of the application program according to the second IP address;
And the agent issuing request sending module 550 is configured to send the first agent issuing request and the second agent issuing request to a target issuing end, where the target issuing end performs issuing verification on the application program based on the first agent issuing request and the second agent issuing request.
In the embodiment of the application, a release information acquisition module is used for responding to the release operation of the application program and acquiring release information of the application program; the server determining module is used for sending the release information of the application program to the load balancing server and determining a first elastic IP module of the first server and a second elastic IP module of the second server according to the analysis result of the load balancing server; the IP address determining module is used for generating a first IP address for the application program based on a first elastic IP module of the first server; generating a second IP address for the application program based on a second elastic IP module of the second server; the agent issuing request generation module is used for generating a first agent issuing request of the application program according to the first IP address; generating a second agent issuing request of the application program according to the second IP address; the agent issuing request sending module is used for sending the first agent issuing request and the second agent issuing request to a target issuing end, so that the target issuing end can issue and audit the application program based on the first agent issuing request and the second agent issuing request. According to the request issuing device of the application program, by adopting the load balancing server, the two back-end servers with the optimal performance are determined to generate the two elastic IPs for the application program, so that the robustness of issuing request transmission can be improved, the influence of repeated use of the historical IPs on the normal auditing of the application program can be avoided, and the auditing passing rate of the application program can be improved.
The request issuing device of the application program in the embodiment of the application can be a device, and can also be a component, an integrated circuit or a chip in the terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc., and the non-mobile electronic device may be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, etc., and the embodiments of the present application are not limited in particular.
The request issuing device of the application program in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The request issuing device for an application program provided by the embodiment of the present application can implement each of the processes implemented in the first to third embodiments, and in order to avoid repetition, a detailed description is omitted herein.
Example five
As shown in fig. 6, an embodiment of the present application further provides an electronic device 600, including a processor 601, a memory 602, and a program or an instruction stored in the memory 602 and capable of running on the processor 601, where the program or the instruction implements each process of the request issuing method embodiment of the application program when executed by the processor 601, and the same technical effects can be achieved, and for avoiding repetition, a description is omitted herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Example six
The embodiment of the application also provides a readable storage medium, and the readable storage medium stores a program or an instruction, which when executed by a processor, implements each process of the request issuing method embodiment of the application program, and can achieve the same technical effect, so that repetition is avoided, and no further description is provided herein.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
Example seven
The embodiment of the application further provides a chip, the chip comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running a program or instructions, the processes of the embodiment of the request issuing device of the application program are realized, the same technical effects can be achieved, and the repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.
The foregoing description is only of the preferred embodiments of the application and the technical principles employed. The present application is not limited to the specific embodiments described herein, but is capable of numerous modifications, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, while the application has been described in connection with the above embodiments, the application is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit of the application, the scope of which is set forth in the following claims.

Claims (10)

1. A request issuing method of an application program, the method comprising:
responding to the release operation of the application program, and acquiring release information of the application program;
the release information of the application program is sent to a load balancing server, and the release information is used for determining a first elastic IP module of a first server and a second elastic IP module of a second server according to the analysis result of the load balancing server;
Generating a first IP address for the application program based on a first elastic IP module of the first server; generating a second IP address for the application program based on a second elastic IP module of the second server;
Generating a first proxy cloth request of the application program according to the first IP address; generating a second agent issuing request of the application program according to the second IP address;
And sending the first agent issuing request and the second agent issuing request to a target issuing end, so that the target issuing end performs issuing verification on the application program based on the first agent issuing request and the second agent issuing request.
2. The request issuing method of an application program according to claim 1, wherein the analysis result includes a data size of the issuing information;
Correspondingly, according to the analysis result of the load balancing server, determining a first elastic IP module of the first server and a second elastic IP module of the second server includes:
Acquiring connection quantity information and response time information of each candidate server;
and determining a first elastic IP module of the first server and a second elastic IP module of the second server from the candidate servers according to the data size of the release information, the connection quantity information and the response time information.
3. The request issuing method of an application program according to claim 2, wherein a first IP address is generated for the application program based on a first elastic IP module of the first server; and generating a second IP address for the application based on a second elastic IP module of the second server, including:
Acquiring the use parameters of each network card in the first elastic IP module and acquiring the use parameters of each network card in the second elastic IP module;
Determining a first target network card in each network card of the first elastic IP module according to the use parameters of each network card in the first elastic IP module; determining a second target network card in each network card of the second elastic IP module according to the use parameters of each network card in the second elastic IP module;
and determining the IP address corresponding to the first target network card as a first IP address, and determining the IP address corresponding to the second target network card as a second IP address.
4. The request issuing method of an application program according to claim 1, wherein a first proxy cloth request of the application program is generated from the first IP address; and generating a second agent publishing request of the application program according to the second IP address, including:
Acquiring a target release address of the application program;
Determining first configuration information of a first proxy service module of the first server according to a target release address of the application program and the first IP address so as to control the first proxy service module to generate a first proxy cloth request based on the first configuration information; and determining second configuration information of a second proxy service module of the second server according to the target release address of the application program and the second IP address so as to control the second proxy service module to generate a second proxy release request based on the second configuration information.
5. The method for issuing a request of an application program according to claim 4, wherein sending the first agent issue request and the second agent issue request to a target issuing side for the target issuing side to issue and audit the application program based on the first agent issue request and the second agent issue request, comprises:
The first proxy service module of the first server is controlled to send the first proxy cloth request to a target issuing end, and the second proxy service module of the second server is controlled to send the second proxy issuing request to the target issuing end, so that the target issuing end carries out issuing verification on the application program based on the first proxy cloth request and the second proxy issuing request.
6. The method for issuing a request for an application according to claim 5, wherein transmitting the first agent issue request and the second agent issue request to a target issuing side for the target issuing side to issue and audit the application based on the first agent issue request and the second agent issue request, comprises:
A first proxy service module controlling the first server sends the first proxy cloth request to a target issuing end, so that the target issuing end issues and audits the application program based on the first proxy cloth request;
receiving an auditing result fed back by the target issuing end;
If the auditing result is not passed, controlling a second proxy service module of the second server to send the second proxy release request to a target release end, so that the target release end performs release auditing on the application program based on the second proxy release request;
Or alternatively
A first proxy service module controlling the first server sends the first proxy cloth request to a target issuing end; the second proxy service module of the second server is controlled to send the second proxy release request to a target release end, and the target release end carries out release verification on the application program based on the first proxy release request and the second proxy release request;
and receiving the auditing result fed back by the target issuing end.
7. The method for issuing a request of an application program according to claim 1, wherein before sending the issuing information of the application program to a load balancing server, for determining a first elastic IP module of a first server and a second elastic IP module of a second server according to a parsing result of the load balancing server, the method further comprises:
analyzing the release information of the application program to obtain domain name information of the application program;
Sending a query request to a DNS server according to the domain name information;
receiving a load balancing server address returned by the DNS server to determine a target load balancing server;
correspondingly, sending the release information of the application program to a load balancing server comprises the following steps:
And sending the release information of the application program to a target load balancing server.
8. A request issuing apparatus of an application program, the apparatus comprising:
the release information acquisition module is used for responding to the release operation of the application program and acquiring release information of the application program;
The server determining module is used for sending the release information of the application program to the load balancing server and determining a first elastic IP module of the first server and a second elastic IP module of the second server according to the analysis result of the load balancing server;
the IP address determining module is used for generating a first IP address for the application program based on a first elastic IP module of the first server; generating a second IP address for the application program based on a second elastic IP module of the second server;
the agent issuing request generation module is used for generating a first agent issuing request of the application program according to the first IP address; generating a second agent issuing request of the application program according to the second IP address;
the agent issuing request sending module is used for sending the first agent issuing request and the second agent issuing request to a target issuing end, so that the target issuing end can issue and audit the application program based on the first agent issuing request and the second agent issuing request.
9. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the request issuing method of an application according to any of claims 1-7.
10. A readable storage medium, wherein a program or instructions are stored on the readable storage medium, which when executed by a processor, implement the steps of the request issuing method of an application program according to any one of claims 1-7.
CN202410949412.3A 2024-07-16 2024-07-16 Request issuing method, device, equipment and medium of application program Active CN119025257B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410949412.3A CN119025257B (en) 2024-07-16 2024-07-16 Request issuing method, device, equipment and medium of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410949412.3A CN119025257B (en) 2024-07-16 2024-07-16 Request issuing method, device, equipment and medium of application program

Publications (2)

Publication Number Publication Date
CN119025257A true CN119025257A (en) 2024-11-26
CN119025257B CN119025257B (en) 2025-06-03

Family

ID=93523999

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410949412.3A Active CN119025257B (en) 2024-07-16 2024-07-16 Request issuing method, device, equipment and medium of application program

Country Status (1)

Country Link
CN (1) CN119025257B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070203972A1 (en) * 2002-02-05 2007-08-30 Eutech Cybernetics Remote application publication and communication system
CN104486639A (en) * 2014-12-16 2015-04-01 成都驰通数码系统有限公司 Community information publication mechanism and publication system
CN106254579A (en) * 2016-09-30 2016-12-21 携程计算机技术(上海)有限公司 A kind of dynamic IP agent pool and building and management method
CN110798491A (en) * 2018-08-01 2020-02-14 北京国双科技有限公司 Network access method and device and proxy server
CN111538590A (en) * 2020-04-17 2020-08-14 姜海强 Distributed data acquisition method and system based on CS framework
CN111641664A (en) * 2019-03-01 2020-09-08 北京京东尚科信息技术有限公司 Crawler equipment service request method, device and system
CN112199567A (en) * 2020-09-27 2021-01-08 深圳市伊欧乐科技有限公司 Distributed data acquisition method, system, server and storage medium
WO2023016470A1 (en) * 2021-08-10 2023-02-16 华为技术有限公司 Method, apparatus and system for processing ping message
CN115941605A (en) * 2022-11-28 2023-04-07 杭州涂鸦信息技术有限公司 Method and system for realizing transparent proxy based on eBPF technology
CN117834589A (en) * 2023-12-28 2024-04-05 上海翌旭网络科技有限公司 Elastic IP proxy method based on KCP protocol

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070203972A1 (en) * 2002-02-05 2007-08-30 Eutech Cybernetics Remote application publication and communication system
CN104486639A (en) * 2014-12-16 2015-04-01 成都驰通数码系统有限公司 Community information publication mechanism and publication system
CN106254579A (en) * 2016-09-30 2016-12-21 携程计算机技术(上海)有限公司 A kind of dynamic IP agent pool and building and management method
CN110798491A (en) * 2018-08-01 2020-02-14 北京国双科技有限公司 Network access method and device and proxy server
CN111641664A (en) * 2019-03-01 2020-09-08 北京京东尚科信息技术有限公司 Crawler equipment service request method, device and system
CN111538590A (en) * 2020-04-17 2020-08-14 姜海强 Distributed data acquisition method and system based on CS framework
CN112199567A (en) * 2020-09-27 2021-01-08 深圳市伊欧乐科技有限公司 Distributed data acquisition method, system, server and storage medium
WO2023016470A1 (en) * 2021-08-10 2023-02-16 华为技术有限公司 Method, apparatus and system for processing ping message
CN115941605A (en) * 2022-11-28 2023-04-07 杭州涂鸦信息技术有限公司 Method and system for realizing transparent proxy based on eBPF technology
CN117834589A (en) * 2023-12-28 2024-04-05 上海翌旭网络科技有限公司 Elastic IP proxy method based on KCP protocol

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
S. S MANVI等: "Application of agent technology in communications:a review", COMPUTER COMMUNICTAIONS, vol. 27, no. 15, 31 December 2004 (2004-12-31), pages 1493 - 1508, XP004527523, DOI: 10.1016/j.comcom.2004.05.011 *
马浩然: "基于NS3的分布式消息系统Kafka的仿真实现", 中国优秀硕士学位论文全文库,信息科技辑, vol. 2016, no. 3, 15 March 2016 (2016-03-15) *

Also Published As

Publication number Publication date
CN119025257B (en) 2025-06-03

Similar Documents

Publication Publication Date Title
US20200089515A1 (en) Dynamic application migration between cloud providers
CN103678321B (en) Method and device for determining page elements, method and device for determining user behavior path
US8195633B2 (en) Enabling interactive integration of network-accessible applications in a content aggregation framework
CN115225707B (en) Resource access method and device
CN104580406B (en) A kind of method and apparatus of synchronous logging state
CN104184832B (en) Data submission method and device in network application
CN113452780B (en) Access request processing method, device, equipment and medium for client
CN107786621B (en) User information management method, access processing method, device and system
CN109145201B (en) Information management method, device, equipment and storage medium based on block chain
CN107920094B (en) Data acquisition method and device, server and network equipment
WO2014074964A1 (en) Providing and procuring worksheet functions through an online marketplace
US20150195181A1 (en) Testing of dynamic web content applications
CN103428179A (en) Method, system and device for logging into multi-domain-name website
CN113239308B (en) A page access method, device, equipment and storage medium
CN113676563A (en) Scheduling method, device, equipment and storage medium of content distribution network service
CN108512889B (en) A HTTP-based application response push method and proxy server
US11882055B1 (en) Computer resource-based API transaction method and system
US9021110B2 (en) Consistent association of a user ID with a user
CN111935210A (en) Data service method, device, server and storage medium
CN119025257B (en) Request issuing method, device, equipment and medium of application program
CN109344344A (en) Identification method, server and the computer readable storage medium of webpage client
CN112948733A (en) Interface maintenance method, device, computing equipment and medium
CN110708211B (en) Network flow testing method and system
CN112528339A (en) Data desensitization method based on Cach é database and electronic equipment
US12047469B1 (en) Inserting and replacing placeholders in resource code

Legal Events

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