CN113987317A - Front-end request processing method, device, equipment and storage medium - Google Patents

Front-end request processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN113987317A
CN113987317A CN202111273710.8A CN202111273710A CN113987317A CN 113987317 A CN113987317 A CN 113987317A CN 202111273710 A CN202111273710 A CN 202111273710A CN 113987317 A CN113987317 A CN 113987317A
Authority
CN
China
Prior art keywords
request
end request
target
initial
configuration information
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
CN202111273710.8A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202111273710.8A priority Critical patent/CN113987317A/en
Publication of CN113987317A publication Critical patent/CN113987317A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2433Query languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9532Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention relates to the field of artificial intelligence, and discloses a front-end request processing method, a front-end request processing device, a front-end request processing equipment and a front-end request processing storage medium, which are used for improving the efficiency of front-end request processing. The front-end request processing method comprises the following steps: monitoring an initial front-end request sent by a front-end system, wherein the initial front-end request carries basic configuration information; performing request splitting on an initial front-end request to obtain basic configuration information, wherein the basic configuration information is used for indicating a request address, request parameters and a request mode; filtering the initial front-end request according to the system identification and the basic configuration information to obtain a filtered front-end request; updating and assembling the filtering front-end request according to an assembling strategy to obtain a target front-end request; and responding to the target front-end request and feeding back the target front-end request to the front-end system. In addition, the invention also relates to a block chain technology, and the initial front-end request can be stored in the block chain node.

Description

Front-end request processing method, device, equipment and storage medium
Technical Field
The present invention relates to the field of artificial intelligence, and in particular, to a front-end request processing method, apparatus, device, and storage medium.
Background
With the rapid development of the internet technology, the system function of the application software system is more and more complex, and the technical implementation difficulty of software development is also improved.
The traditional software development architecture comprises a front-end client and a back-end server, wherein a front-end system and a back-end system are mutually related, the back-end system comprises a plurality of functions, and all the functions are in the same project. When the existing scheme is used for processing the front-end request, the project code needs to be corrected and the project code needs to be repackaged and deployed when the overtime configuration needs to be modified, or the configuration before packaging needs to be modified and repackaged and deployed, the unified adjustment can also affect other interface requests, and the hardware resource waste of other interface requests can be affected by the unified configuration adjustment before packaging, so the efficiency of processing the front-end request is low.
Disclosure of Invention
The invention provides a front-end request processing method, a front-end request processing device and a storage medium, which are used for improving the efficiency of front-end request processing.
A first aspect of the present invention provides a front-end request processing method, where the front-end request processing method includes: monitoring an initial front-end request sent by a front-end system, wherein the initial front-end request carries basic configuration information; performing request splitting on the initial front-end request to obtain the basic configuration information corresponding to the initial front-end request, wherein the basic configuration information is used for indicating a request address, request parameters and a request mode; filtering the initial front-end request according to a preset system identifier and the basic configuration information to obtain a filtered front-end request; updating and assembling the filtering front-end request according to a preset assembling strategy to obtain a target front-end request; and responding to the target front-end request and feeding back the target front-end request to the front-end system.
Optionally, in a first implementation manner of the first aspect of the present invention, the monitoring an initial front-end request sent by a front-end system includes: the method comprises the steps of carrying out request monitoring on a front-end system at intervals of preset time; and when the request sent by the front-end system is monitored, intercepting the request sent by the front-end system to obtain an initial front-end request.
Optionally, in a second implementation manner of the first aspect of the present invention, the splitting the initial front-end request to obtain the basic configuration information corresponding to the initial front-end request includes: performing address resolution on the initial front-end request to obtain a target address; identifying a request mode of the initial front-end request to obtain a target request mode; performing parameter analysis on the initial front-end request to obtain a target request parameter; and determining the target address, the target request mode and the target request parameter as the basic configuration information corresponding to the initial front-end request.
Optionally, in a third implementation manner of the first aspect of the present invention, the filtering the initial front-end request according to a preset system identifier and the basic configuration information to obtain a filtered front-end request includes: acquiring key information in the basic configuration information through a preset crawler to obtain target key information; and filtering and disassembling the initial front-end request according to a preset system identifier and the target key information to obtain a filtered front-end request.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the updating and assembling the filtering front-end request according to a preset assembly policy to obtain a target front-end request includes: updating the configuration item of the request of the front filtering end to obtain a newly added configuration item; downloading the delay time requested by the filtering front end through a preset assembly strategy to obtain the delay time; and performing request assembly on the filtering front-end request according to the delay time and the newly added configuration item to obtain a target front-end request.
Optionally, in a fifth implementation manner of the first aspect of the present invention, the responding to the target front-end request and feeding back the target front-end request to the front-end system includes: responding to the target front-end request and generating a target operation corresponding to the updating request; and returning the target operation and feeding the target operation back to the front-end system.
A second aspect of the present invention provides a front-end request processing apparatus, including: the monitoring module is used for monitoring an initial front-end request sent by a front-end system, wherein the initial front-end request carries basic configuration information; the splitting module is used for performing request splitting on the initial front-end request to obtain the basic configuration information corresponding to the initial front-end request, wherein the basic configuration information is used for indicating a request address, request parameters and a request mode; the filtering module is used for filtering the initial front-end request according to a preset system identifier and the basic configuration information to obtain a filtered front-end request; the assembly module is used for updating and assembling the filtering front-end request according to a preset assembly strategy to obtain a target front-end request; and the feedback module is used for responding to the target front-end request and feeding back the target front-end request to the front-end system.
Optionally, in a first implementation manner of the second aspect of the present invention, the monitoring module is specifically configured to: the method comprises the steps of carrying out request monitoring on a front-end system at intervals of preset time; and when the request sent by the front-end system is monitored, intercepting the request sent by the front-end system to obtain an initial front-end request.
Optionally, in a second implementation manner of the second aspect of the present invention, the splitting module further includes: the analysis unit is used for carrying out address analysis on the initial front-end request to obtain a target address; identifying a request mode of the initial front-end request to obtain a target request mode; the generating unit is used for carrying out parameter analysis on the initial front-end request to obtain a target request parameter; and determining the target address, the target request mode and the target request parameter as the basic configuration information corresponding to the initial front-end request.
Optionally, in a third implementation manner of the second aspect of the present invention, the filtering module is specifically configured to: acquiring key information in the basic configuration information through a preset crawler to obtain target key information; and filtering and disassembling the initial front-end request according to a preset system identifier and the target key information to obtain a filtered front-end request.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the assembly module is specifically configured to: updating the configuration item of the request of the front filtering end to obtain a newly added configuration item; downloading the delay time requested by the filtering front end through a preset assembly strategy to obtain the delay time; and performing request assembly on the filtering front-end request according to the delay time and the newly added configuration item to obtain a target front-end request.
Optionally, in a sixth implementation manner of the second aspect of the present invention, the feedback module is specifically configured to: responding to the target front-end request and generating a target operation corresponding to the updating request; and returning the target operation and feeding the target operation back to the front-end system.
A third aspect of the present invention provides a computer apparatus comprising: a memory and at least one processor, the memory having instructions stored therein; the at least one processor invokes the instructions in the memory to cause the computer device to perform the front-end request processing method described above.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to execute the above-described front-end request processing method.
In the technical scheme provided by the invention, an initial front-end request sent by a front-end system is monitored, and the initial front-end request carries basic configuration information; performing request splitting on the initial front-end request to obtain basic configuration information corresponding to the initial front-end request, wherein the basic configuration information is used for indicating a request address, request parameters and a request mode; filtering the initial front-end request according to the system identification and the basic configuration information to obtain a filtered front-end request; updating and assembling the filtering front-end request according to an assembling strategy to obtain a target front-end request; and responding to the target front-end request and feeding back the target front-end request to the front-end system. According to the method, the front-end request is split firstly, the basic configuration information corresponding to the front-end request is obtained, the accuracy of request filtering is improved by splitting the request, and the response speed of the request can be effectively improved by assembling the filtered front-end request, so that the efficiency of front-end request processing is improved.
Drawings
FIG. 1 is a diagram of a front-end request processing method according to an embodiment of the present invention;
FIG. 2 is a diagram of another embodiment of a front-end request processing method according to an embodiment of the present invention;
FIG. 3 is a diagram of an embodiment of a front-end request processing apparatus according to the embodiment of the invention;
FIG. 4 is a diagram of another embodiment of a front-end request processing apparatus according to the embodiment of the present invention;
FIG. 5 is a diagram of an embodiment of a computer device in an embodiment of the invention.
Detailed Description
The embodiment of the invention provides a front-end request processing method, a front-end request processing device and a storage medium, which are used for improving the efficiency of front-end request processing. The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a detailed flow of the embodiment of the present invention is described below, and referring to fig. 1, a first embodiment of a front-end request processing method according to the embodiment of the present invention includes:
101. monitoring an initial front-end request sent by a front-end system, wherein the initial front-end request carries basic configuration information;
it should be understood that the execution subject of the present invention may be a front-end request processing device, and may also be a terminal or a server, which is not limited herein. The embodiment of the present invention is described by taking a server as an execution subject. The server may be an independent server, or may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), and a big data and artificial intelligence platform.
The embodiment of the invention can acquire and process related data based on an artificial intelligence technology. Among them, Artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
The artificial intelligence infrastructure generally includes technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a robot technology, a biological recognition technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and the like.
The execution subject of the present invention is a server, and the networking structure of the present invention comprises: the system comprises a front-end system, a public platform, a load balancer and a back-end system, wherein the front-end system is used for sending a front-end request to the public platform and responding to feedback information of the public platform, and the public platform is used for: 1. monitoring a front-end request; 2. splitting a front-end request; 3. supporting configuration policies, configuration filtering, etc.; 4. request and policy assembly. The load balancer is used for receiving the front-end request sent by the public platform and forwarding the front-end request to the back-end system, and the back-end system is used for receiving the front-end request and responding to the front-end request.
Specifically, the server monitors an initial front-end request sent by a front-end system through the public platform, transmits the monitored initial front-end request to the public platform, monitors a preset front-end system at preset time intervals, and transmits the initial front-end request to the preset public platform by taking the front-end request as the initial front-end request when the front-end request is monitored.
102. Performing request splitting on the initial front-end request to obtain basic configuration information corresponding to the initial front-end request, wherein the basic configuration information is used for indicating a request address, request parameters and a request mode;
specifically, the server performs request splitting on the initial front-end request, wherein the request splitting can be performed in real time to generate a resource allocation result of the initial front-end request, and the method has the characteristic of strong query timeliness. The server analyzes the request address in the initial front-end request respectively to obtain a target address, and identifies the request parameter and the request mode in the initial front-end request to obtain basic configuration information, wherein the request splitting can split and combine the processing result in an off-line analysis task mode, and the combined processing result is used as the basic configuration information.
103. Filtering the initial front-end request according to a preset system identifier and basic configuration information to obtain a filtered front-end request;
specifically, the server filters the initial front-end request according to a preset system identifier and basic configuration information to obtain a filtered front-end request. The server acquires a system identifier corresponding to the initial front-end request, specifically: the server configures the front-segment character of the characteristic identifier corresponding to the initial front-end request according to a preset system identifier configuration table to obtain a front-segment character string, generates the rear-segment character of the characteristic identifier corresponding to the initial front-end request according to a preset random number generation function, such as a rand function, to obtain a rear-segment character string, performs exclusive-or operation on the rear-segment character string and a preset key by the server to perform encryption processing, and splices the front-segment character string and the encrypted rear-segment character string to obtain the system identifier corresponding to the initial front-end request. The server compares the system identification with the identity identification in the basic configuration information, filters the basic configuration information with different comparison results, searches the authentication information corresponding to the system identification in the database, and filters the initial front-end request according to the authentication information to obtain a filtered front-end request.
104. Updating and assembling the filtering front-end request according to a preset assembling strategy to obtain a target front-end request;
specifically, the server queries an assembled structured query statement corresponding to the front-end filtering request according to a preset assembly strategy, generates a query identifier corresponding to the structured query statement, reads cache data corresponding to the front-end filtering request according to the query identifier, executes the statement of the structured query statement, completes database query statistics, and obtains statistical result data; and updating the cache data of the query identifier data, and releasing the protection node server to return the target front-end request.
105. And responding to the target front-end request and feeding back the target front-end request to the front-end system.
Specifically, the server forwards the target front-end request to a preset back-end system, and responds to the target front-end request through the back-end system and feeds the target front-end request back to the front-end system. The data persistence layer is to install one or more additional software on an operating system corresponding to one or more servers to implement load balancing, such as dns load balance, checkpoint firewall-1 control, and the like, where the servers implement load balancing requirements of target front-end requests based on a specific environment.
Further, the server stores the initial front-end request in a blockchain database, which is not limited herein.
In the embodiment of the invention, an initial front-end request sent by a front-end system is monitored, and the initial front-end request carries basic configuration information; performing request splitting on the initial front-end request to obtain basic configuration information corresponding to the initial front-end request, wherein the basic configuration information is used for indicating a request address, request parameters and a request mode; filtering the initial front-end request according to the system identification and the basic configuration information to obtain a filtered front-end request; updating and assembling the filtering front-end request according to an assembling strategy to obtain a target front-end request; the invention responds to the target front-end request and feeds the target front-end request back to the front-end system.
Referring to fig. 2, a second embodiment of the front-end request processing method according to the embodiment of the present invention includes:
201. monitoring an initial front-end request sent by a front-end system, wherein the initial front-end request carries basic configuration information;
optionally, the server performs request monitoring on the front-end system at preset time intervals; when monitoring that the front-end system sends a request, the server intercepts the request sent by the front-end system to obtain an initial front-end request; the server transmits the initial front-end request to a pre-set public platform.
Specifically, the server monitors a preset front-end system at preset time intervals, and when the front-end request is monitored to exist, the front-end request is used as an initial front-end request and is transmitted to a preset public platform.
Specifically, the server performs address resolution on the initial front-end request through a preset public platform to obtain a target address, determines a request mode of the initial front-end request through the preset public platform, and performs parameter resolution on the initial front-end request through the preset public platform to obtain a target request parameter; and the server determines the target address, the target request mode and the target request parameter as basic configuration information corresponding to the initial front-end request.
202. Performing address resolution on the initial front-end request to obtain a target address;
specifically, the server performs parameter verification on the initial front-end request and judges whether the initial front-end request carries a url address and user information; if the initial front-end request carries the url address and the user information, the server extracts the url address in the initial front-end request, judges whether the initial front-end request belongs to the specified request or not based on the url address, and if so, takes the url address as the target address.
203. Identifying a request mode of an initial front-end request to obtain a target request mode;
specifically, the server determines whether the initial front-end request is a get-mode initial front-end request, if so, analyzes the content of the initial front-end request to determine the request mode of the initial front-end request, for example, whether the initial front-end request is a get-mode initial front-end request, whether the initial front-end request is a post-mode initial front-end request, and specifically, may determine whether the initial front-end request is a get-mode initial front-end request, and for a post-mode initial front-end request, perform a virtual response, and send a simulated server response message by the program, and enter a related process for processing. And for other modes of initial front-end requests, directly rejecting the request.
204. Performing parameter analysis on the initial front-end request to obtain a target request parameter;
specifically, the server monitors that the server identifies the received target address request, performs matching analysis on the received target address request and the url in the read configuration file, judges whether the number of parameters in the configuration file is less than or equal to the number of parameters in the url request, judges whether the parameter values are the same, and if the parameter values are the same, the server generates a target request parameter.
205. Determining a target address, a target request mode and a target request parameter as basic configuration information corresponding to an initial front-end request;
specifically, the server takes the target address, the target request mode and the target request parameter obtained after the request is split as basic configuration information corresponding to the initial front-end request.
206. Filtering the initial front-end request according to a preset system identifier and basic configuration information to obtain a filtered front-end request;
optionally, the server obtains key information in the basic configuration information through a preset crawler to obtain target key information; and the server filters and disassembles the initial front-end request according to the preset system identification and the target key information to obtain a filtered front-end request.
Specifically, the server crawls key information in the basic configuration information through a preset crawler, wherein the key information is obtained by encrypting and splicing a target address, a target request mode and a target request parameter by the server. The server acquires a system identifier corresponding to the initial front-end request, specifically: the server configures the front-segment character of the characteristic identifier corresponding to the initial front-end request according to a preset system identifier configuration table to obtain a front-segment character string, generates the rear-segment character of the characteristic identifier corresponding to the initial front-end request according to a preset random number generation function, such as a rand function, to obtain a rear-segment character string, performs exclusive-or operation on the rear-segment character string and a preset key by the server to perform encryption processing, and splices the front-segment character string and the encrypted rear-segment character string to obtain the system identifier corresponding to the initial front-end request. The server compares the system identification with the identity identification in the basic configuration information, and filters the basic configuration information with different comparison results, wherein the server firstly encrypts and splices a target address, a target request mode and a target request parameter to obtain key information, the server searches authentication information corresponding to the system identification in a database, and the server filters an initial front-end request according to the authentication information, the key information and the system identification to obtain a filtered front-end request.
207. Updating and assembling the filtering front-end request according to a preset assembling strategy to obtain a target front-end request;
optionally, the server updates the configuration item of the filtering front-end request to obtain a newly added configuration item; the server downloads the delay time requested by the filtering front end through a preset assembly strategy to obtain the delay time; and the server performs request assembly on the filtering front-end request according to the delay time and the newly added configuration item to obtain a target front-end request.
Specifically, the server assembles the filtering front-end request according to a preset assembly strategy, specifically: the server queries the assembled structured query statement corresponding to the filtering front-end request and generates a query identifier corresponding to the structured query statement, the server reads the cache data corresponding to the filtering front-end request according to the query identifier, and executes the statement of the structured query statement to complete database query statistics and obtain statistical result data; updating the cached data of the query identifier data and releasing the protection node server to return the target front-end request requires adjusting the time configuration of the suspension in the request configuration and is only for the download request: the server configures the delay time of the downloading request to be 30 seconds through a strategy, and assembles the request to obtain a target front-end request.
208. And responding to the target front-end request and feeding back the target front-end request to the front-end system.
Specifically, the server forwards the target front-end request to a preset back-end system through a preset application program, and responds to the target front-end request through the back-end system to obtain a target operation corresponding to the update request; and returning the target operation to a preset data persistence layer, and feeding the target operation back to the front-end system through the data persistence layer. The data persistence layer consumes an indefinite amount of resources of the system because additional software is installed on each server for running, the more powerful modules consume, the data persistence layer is built on the original network structure, and the method provides a transparent, cheap and effective method for expanding the bandwidth of the servers and the network equipment and enhancing the network data processing capacity.
Further, the server stores the initial front-end request in a blockchain database, which is not limited herein.
In the embodiment of the invention, an initial front-end request sent by a front-end system is monitored, and the initial front-end request carries basic configuration information; performing request splitting on the initial front-end request to obtain basic configuration information corresponding to the initial front-end request, wherein the basic configuration information is used for indicating a request address, request parameters and a request mode; filtering the initial front-end request according to the system identification and the basic configuration information to obtain a filtered front-end request; updating and assembling the filtering front-end request according to an assembling strategy to obtain a target front-end request; the invention responds to the target front-end request and feeds the target front-end request back to the front-end system.
The foregoing describes a front-end request processing method in the embodiment of the present invention, and the following describes a front-end request processing apparatus in the embodiment of the present invention, with reference to fig. 3, where a first embodiment of the front-end request processing apparatus in the embodiment of the present invention includes:
a monitoring module 301, configured to monitor an initial front-end request sent by a front-end system, where the initial front-end request carries basic configuration information;
a splitting module 302, configured to split the initial front-end request to obtain the basic configuration information corresponding to the initial front-end request, where the basic configuration information is used to indicate a request address, a request parameter, and a request mode;
a filtering module 303, configured to filter the initial front-end request according to a preset system identifier and the basic configuration information to obtain a filtered front-end request;
an assembling module 304, configured to update and assemble the filtering front-end request according to a preset assembling policy, so as to obtain a target front-end request;
a feedback module 305, configured to respond to the target front-end request and feed back the target front-end request to the front-end system.
In the embodiment of the invention, an initial front-end request sent by a front-end system is monitored, and the initial front-end request carries basic configuration information; performing request splitting on the initial front-end request to obtain basic configuration information corresponding to the initial front-end request, wherein the basic configuration information is used for indicating a request address, request parameters and a request mode; filtering the initial front-end request according to the system identification and the basic configuration information to obtain a filtered front-end request; updating and assembling the filtering front-end request according to an assembling strategy to obtain a target front-end request; the invention responds to the target front-end request and feeds the target front-end request back to the front-end system.
Referring to fig. 4, a second embodiment of a front-end request processing apparatus according to the present invention includes:
a monitoring module 301, configured to monitor an initial front-end request sent by a front-end system, where the initial front-end request carries basic configuration information;
a splitting module 302, configured to split the initial front-end request to obtain the basic configuration information corresponding to the initial front-end request, where the basic configuration information is used to indicate a request address, a request parameter, and a request mode;
a filtering module 303, configured to filter the initial front-end request according to a preset system identifier and the basic configuration information to obtain a filtered front-end request;
an assembling module 304, configured to update and assemble the filtering front-end request according to a preset assembling policy, so as to obtain a target front-end request;
a feedback module 305, configured to respond to the target front-end request and feed back the target front-end request to the front-end system.
Optionally, the monitoring module 301 is specifically configured to:
the method comprises the steps of carrying out request monitoring on a front-end system at intervals of preset time; and when the request sent by the front-end system is monitored, intercepting the request sent by the front-end system to obtain an initial front-end request.
Optionally, the splitting module 302 further includes:
an analyzing unit 3021, configured to perform address analysis on the initial front-end request to obtain a target address; identifying a request mode of the initial front-end request to obtain a target request mode;
a generating unit 3022, configured to perform parameter analysis on the initial front-end request to obtain a target request parameter; and determining the target address, the target request mode and the target request parameter as the basic configuration information corresponding to the initial front-end request.
Optionally, the filtering module 303 is specifically configured to:
acquiring key information in the basic configuration information through a preset crawler to obtain target key information; and filtering and disassembling the initial front-end request according to a preset system identifier and the target key information to obtain a filtered front-end request.
Optionally, the assembly module 304 is specifically configured to:
updating the configuration item of the request of the front filtering end to obtain a newly added configuration item; downloading the delay time requested by the filtering front end through a preset assembly strategy to obtain the delay time; and performing request assembly on the filtering front-end request according to the delay time and the newly added configuration item to obtain a target front-end request.
Optionally, the feedback module 305 is specifically configured to:
responding to the target front-end request and generating a target operation corresponding to the updating request; and returning the target operation and feeding the target operation back to the front-end system.
In the embodiment of the invention, an initial front-end request sent by a front-end system is monitored, and the initial front-end request carries basic configuration information; performing request splitting on the initial front-end request to obtain basic configuration information corresponding to the initial front-end request, wherein the basic configuration information is used for indicating a request address, request parameters and a request mode; filtering the initial front-end request according to the system identification and the basic configuration information to obtain a filtered front-end request; updating and assembling the filtering front-end request according to an assembling strategy to obtain a target front-end request; the invention responds to the target front-end request and feeds the target front-end request back to the front-end system.
Fig. 3 and fig. 4 above describe the front-end request processing apparatus in the embodiment of the present invention in detail from the perspective of the modular functional entity, and computer equipment in the embodiment of the present invention is described in detail from the perspective of hardware processing.
Fig. 5 is a schematic structural diagram of a computer device 500 according to an embodiment of the present invention, where the computer device 500 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) for storing applications 533 or data 532. Memory 520 and storage media 530 may be, among other things, transient or persistent storage. The program stored on the storage medium 530 may include one or more modules (not shown), each of which may include a sequence of instructions operating on the computer device 500. Further, the processor 510 may be configured to communicate with the storage medium 530 to execute a series of instruction operations in the storage medium 530 on the computer device 500.
The computer device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input-output interfaces 560, and/or one or more operating systems 531, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, and the like. Those skilled in the art will appreciate that the computer device configuration illustrated in FIG. 5 does not constitute a limitation of computer devices, and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components.
The present invention also provides a computer device, which includes a memory and a processor, where the memory stores computer readable instructions, and the computer readable instructions, when executed by the processor, cause the processor to execute the steps of the front-end request processing method in the foregoing embodiments.
The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium, and which may also be a volatile computer-readable storage medium, having stored therein instructions, which, when run on a computer, cause the computer to perform the steps of the front-end request processing method.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A front-end request processing method, characterized in that the front-end request processing method comprises:
monitoring an initial front-end request sent by a front-end system, wherein the initial front-end request carries basic configuration information;
performing request splitting on the initial front-end request to obtain the basic configuration information corresponding to the initial front-end request, wherein the basic configuration information is used for indicating a request address, request parameters and a request mode;
filtering the initial front-end request according to a preset system identifier and the basic configuration information to obtain a filtered front-end request;
updating and assembling the filtering front-end request according to a preset assembling strategy to obtain a target front-end request;
and responding to the target front-end request and feeding back the target front-end request to the front-end system.
2. The front-end request processing method according to claim 1, wherein the listening for the initial front-end request sent by the front-end system comprises:
the method comprises the steps of carrying out request monitoring on a front-end system at intervals of preset time;
and when the request sent by the front-end system is monitored, intercepting the request sent by the front-end system to obtain an initial front-end request.
3. The front-end request processing method according to claim 1, wherein the splitting the initial front-end request to obtain the basic configuration information corresponding to the initial front-end request includes:
performing address resolution on the initial front-end request to obtain a target address;
identifying a request mode of the initial front-end request to obtain a target request mode;
performing parameter analysis on the initial front-end request to obtain a target request parameter;
and determining the target address, the target request mode and the target request parameter as the basic configuration information corresponding to the initial front-end request.
4. The front-end request processing method according to claim 1, wherein the filtering the initial front-end request according to a preset system identifier and the basic configuration information to obtain a filtered front-end request includes:
acquiring key information in the basic configuration information through a preset crawler to obtain target key information;
and filtering and disassembling the initial front-end request according to a preset system identifier and the target key information to obtain a filtered front-end request.
5. The front-end request processing method according to claim 1, wherein the updating and assembling the filtered front-end request according to a preset assembling policy to obtain a target front-end request comprises:
updating the configuration item of the request of the front filtering end to obtain a newly added configuration item;
downloading the delay time requested by the filtering front end through a preset assembly strategy to obtain the delay time;
and performing request assembly on the filtering front-end request according to the delay time and the newly added configuration item to obtain a target front-end request.
6. The front-end request processing method according to any one of claims 1 to 5, wherein the responding to the target front-end request and feeding back the target front-end request to the front-end system comprises:
responding to the target front-end request and generating a target operation corresponding to the updating request;
and returning the target operation and feeding the target operation back to the front-end system.
7. A front-end request processing apparatus, characterized in that the front-end request processing apparatus comprises:
the monitoring module is used for monitoring an initial front-end request sent by a front-end system, wherein the initial front-end request carries basic configuration information;
the splitting module is used for performing request splitting on the initial front-end request to obtain the basic configuration information corresponding to the initial front-end request, wherein the basic configuration information is used for indicating a request address, request parameters and a request mode;
the filtering module is used for filtering the initial front-end request according to a preset system identifier and the basic configuration information to obtain a filtered front-end request;
the assembly module is used for updating and assembling the filtering front-end request according to a preset assembly strategy to obtain a target front-end request;
and the feedback module is used for responding to the target front-end request and feeding back the target front-end request to the front-end system.
8. The front-end request processing apparatus of claim 7, wherein the assembly module is specifically configured to:
updating the configuration item of the request of the front filtering end to obtain a newly added configuration item;
downloading the delay time requested by the filtering front end through a preset assembly strategy to obtain the delay time;
and performing request assembly on the filtering front-end request according to the delay time and the newly added configuration item to obtain a target front-end request.
9. A computer device, characterized in that the computer device comprises: a memory and at least one processor, the memory having instructions stored therein;
the at least one processor invoking the instructions in the memory to cause the computer device to perform the front end request processing method of any of claims 1-6.
10. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement a front-end request processing method as recited in any of claims 1-6.
CN202111273710.8A 2021-10-29 2021-10-29 Front-end request processing method, device, equipment and storage medium Pending CN113987317A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111273710.8A CN113987317A (en) 2021-10-29 2021-10-29 Front-end request processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111273710.8A CN113987317A (en) 2021-10-29 2021-10-29 Front-end request processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113987317A true CN113987317A (en) 2022-01-28

Family

ID=79744526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111273710.8A Pending CN113987317A (en) 2021-10-29 2021-10-29 Front-end request processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113987317A (en)

Similar Documents

Publication Publication Date Title
CN112615849B (en) Micro-service access method, device, equipment and storage medium
CN111079104B (en) Authority control method, device, equipment and storage medium
US7743147B2 (en) Automated provisioning of computing networks using a network database data model
US7152109B2 (en) Automated provisioning of computing networks according to customer accounts using a network database data model
CN103403707B (en) The system and method exchanged for database proxy request
US8051207B2 (en) Inferring server state in s stateless communication protocol
US7124289B1 (en) Automated provisioning framework for internet site servers
CN108270882B (en) Domain name resolution method and device, storage medium and electronic device
US20020156831A1 (en) Automated provisioning of computing networks using a network database data model
US10880405B2 (en) Managing client computing systems using distilled data streams
US20020194584A1 (en) Automated provisioning of computing networks using a network database model
JP5605229B2 (en) Application server management system, application server management method, management apparatus, application server, and computer program
US20040226010A1 (en) Automated provisioning framework for internet site servers
US20070143454A1 (en) System for automatic configuration of computers in a server farm
CN112104617B (en) Rights management method, device, equipment and storage medium for micro-service
CN107947954B (en) System, method and server for dynamically adjusting log level
CN111262839A (en) Vulnerability scanning method, management equipment, node and storage medium
CN111506367B (en) Multi-cluster type artificial intelligence online service method and system
CN113676563A (en) Scheduling method, device, equipment and storage medium of content distribution network service
CN113835836B (en) System, method, computer device and medium for dynamic publishing container service
CN114064155A (en) Container-based algorithm calling method, device, equipment and storage medium
CN112804223A (en) Message processing method and device
CN115189897A (en) Access processing method and device for zero trust network, electronic equipment and storage medium
CN110597783B (en) Database management method, device, equipment and storage medium
JP2003162449A (en) Integrated access management system, integrated access management device and its method and program

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