CN115361450B - Request information processing method, apparatus, electronic device, medium, and program product - Google Patents

Request information processing method, apparatus, electronic device, medium, and program product Download PDF

Info

Publication number
CN115361450B
CN115361450B CN202211276458.0A CN202211276458A CN115361450B CN 115361450 B CN115361450 B CN 115361450B CN 202211276458 A CN202211276458 A CN 202211276458A CN 115361450 B CN115361450 B CN 115361450B
Authority
CN
China
Prior art keywords
information
request
data
data request
request 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.)
Active
Application number
CN202211276458.0A
Other languages
Chinese (zh)
Other versions
CN115361450A (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.)
State Grid Corp of China SGCC
State Grid Information and Telecommunication Co Ltd
Beijing Guodiantong Network Technology Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Information and Telecommunication Co Ltd
Beijing Guodiantong 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 State Grid Corp of China SGCC, State Grid Information and Telecommunication Co Ltd, Beijing Guodiantong Network Technology Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202211276458.0A priority Critical patent/CN115361450B/en
Publication of CN115361450A publication Critical patent/CN115361450A/en
Application granted granted Critical
Publication of CN115361450B publication Critical patent/CN115361450B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities

Abstract

The embodiment of the disclosure discloses a request information processing method, a request information processing device, an electronic device, a medium and a program product. One embodiment of the method comprises: receiving data request information; storing the data request information to a data request information set; determining whether to trigger a storage trigger according to a data log file corresponding to the data request information set; generating request feedback information according to the data request information in response to determining to trigger the storage trigger; generating request result information according to the terminal identification included in the request feedback information and the data request information; adding the request result information to a request result information set; in response to receiving the request result acquisition information, determining the request result information corresponding to the terminal identifier in the updated request result information set as target request result information; and sending the request feedback information to the external network terminal. The implementation mode can improve the processing efficiency of the data request information between the internal network and the external network.

Description

Request information processing method, apparatus, electronic device, medium, and program product
Technical Field
Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to a method, an apparatus, an electronic device, a medium, and a program product for processing request information.
Background
Data security can be effectively protected by dividing the internal network and the external network to protect the data, however, how to process data request information between the internal network and the external network becomes a problem which needs to be solved urgently. At present, when processing data request information between an internal network and an external network, the method generally adopts: through the timing task, the intranet terminal generates a bar code to process data request information between the intranet and the extranet, and encrypts all information transmitted from the intranet to the extranet.
However, the inventor finds that when the data request information between the internal network and the external network is processed in the above manner, the following technical problems often exist:
firstly, a timing task mode is adopted, when a time interval for executing the timing task is long, response time of a request is long, and when the time interval for executing the timing task is short, load of hardware equipment is large, and processing efficiency of the request is low.
Secondly, the method of encrypting all information transmitted from the intranet to the extranet is adopted, so that the processing amount is large, the time consumption is long, and the processing efficiency of the request is further low.
The above information disclosed in this background section is only for enhancement of understanding of the background of the inventive concept and, therefore, it may contain information that does not form the prior art that is already known to a person of ordinary skill in the art in this country.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose a request information processing method, apparatus, electronic device, computer readable medium and computer program product to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a request information processing method, including: receiving data request information aiming at target application sent by an external network terminal, wherein the data request information comprises a terminal identifier of the external network terminal; storing the data request information to a data request information set; determining whether to trigger a storage trigger according to a data log file corresponding to the data request information set; responding to the determination of triggering the storage trigger, and generating request feedback information corresponding to the data request information according to the data request information; generating request result information corresponding to the data request information according to the request feedback information and a terminal identifier included in the data request information, wherein the request result information includes the request feedback information and the terminal identifier; adding the request result information to a request result information set so as to update the request result information set; in response to receiving the request result acquisition information sent by the external network terminal, determining the request result information corresponding to the terminal identifier in the updated request result information set as target request result information; and sending request feedback information included in the target request result information to the external network terminal, so that the external network terminal displays the request feedback information.
In a second aspect, some embodiments of the present disclosure provide a request information processing apparatus, including: the device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is configured to receive data request information aiming at a target application and sent by an external network terminal, and the data request information comprises a terminal identifier of the external network terminal; a storage unit configured to store the data request information to a data request information set; a first determining unit configured to determine whether to trigger a storage trigger according to a data log file corresponding to the data request information set; a first generating unit configured to generate request feedback information corresponding to the data request information according to the data request information in response to determining to trigger the storage trigger; a second generating unit configured to generate request result information corresponding to the data request information according to the request feedback information and a terminal identifier included in the data request information, wherein the request result information includes the request feedback information and the terminal identifier; an adding unit configured to add the request result information to a request result information set to update the request result information set; a second determining unit configured to determine, in response to receiving the request result acquisition information sent by the external network terminal, request result information corresponding to the terminal identifier in the updated request result information set as target request result information; a sending unit configured to send request feedback information included in the target request result information to the external network terminal, so that the external network terminal displays the request feedback information.
In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement the method described in any of the implementations of the first aspect.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium on which a computer program is stored, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect.
In a fifth aspect, some embodiments of the present disclosure provide a computer program product comprising a computer program that, when executed by a processor, implements the method described in any of the implementations of the first aspect above.
The above embodiments of the present disclosure have the following advantages: by the request information processing method of some embodiments of the disclosure, the processing efficiency of data request information between the internal network and the external network can be improved. Specifically, the reason why the processing efficiency of the request is low is that: by adopting the timing task mode, the response time of the request is longer when the time interval for executing the timing task is longer, and the processing efficiency of the request is lower when the time interval for executing the timing task is shorter and the load of hardware equipment is larger. Based on this, the request information processing method of some embodiments of the present disclosure, first, receives data request information for a target application sent by an external network terminal. Wherein, the data request information includes the terminal identifier of the external network terminal. Thereby, data request information is available and can be used for request processing. Then, the data request information is stored in a data request information set. Thus, the data request information may be stored, and thus, the data request information may be stored to trigger the storage trigger. And then, determining whether to trigger a storage trigger according to the data log file corresponding to the data request information set. Therefore, the storage trigger which has no other specific functions and is arranged in the intranet can be automatically triggered through the monitoring log file, manual control response is not needed, the response efficiency is improved, the safety of data information is ensured, and the number of times of malicious attacks is reduced. And then, in response to the determination that the storage trigger is triggered, generating request feedback information corresponding to the data request information according to the data request information. Thereby, request feedback information can be obtained, and the data request information can be processed in real time. And then, generating request result information corresponding to the data request information according to the request feedback information and the terminal identifier included in the data request information, wherein the request result information includes the request feedback information and the terminal identifier. Therefore, request result information comprising the terminal identification can be obtained, and the request feedback information corresponding to the data request information can be searched through the terminal identification. Then, the request result information is added to a request result information set to update the request result information set. Therefore, the request result information can be stored, and can be used for the external network terminal to obtain. And then, responding to the received request result acquisition information sent by the external network terminal, and determining the request result information corresponding to the terminal identifier in the updated request result information set as target request result information. Thus, the target request result information corresponding to the data request information can be obtained, and the target request result information can be used for being transmitted to the external network terminal. And finally, sending the request feedback information included in the target request result information to the external network terminal, so that the external network terminal displays the request feedback information. Thus, the request feedback information corresponding to the data request information can be sent to the external network terminal, and the request processing between the internal network and the external network can be completed. When the data request information between the internal network and the external network is processed, the data request information is processed in real time by triggering the storage trigger after the data request information is received for processing, so that the processing efficiency of the request is improved. Therefore, the processing efficiency of the data request information between the internal network and the external network can be improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
FIG. 1 is a flow diagram of some embodiments of a request information processing method according to the present disclosure;
FIG. 2 is a block diagram of some embodiments of a requesting information processing apparatus according to the present disclosure;
FIG. 3 is a schematic block diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates a flow 100 of some embodiments of a request information processing method according to the present disclosure. The request information processing method comprises the following steps:
step 101, receiving data request information aiming at a target application sent by an external network terminal.
In some embodiments, an execution subject (e.g., a server of an intranet) of the request information processing method may receive data request information for a target application, which is sent by an extranet terminal, through a wired connection manner or a wireless connection manner. The data request information may represent a request of the target application. For example, the data request information may characterize a data request that queries for a document having a file name of "employee profile". The data request information may include a terminal identifier of the external network terminal. The terminal identifier may be a user ID. The external network terminal may be a terminal device connected to an external network. The target application may be an application running on the extranet terminal. It is noted that the wireless connection means may include, but is not limited to, a 3G/4G connection, a WiFi connection, a bluetooth connection, a WiMAX connection, a Zigbee connection, a UWB (ultra wideband) connection, and other wireless connection means now known or developed in the future.
And 102, storing the data request information to a data request information set.
In some embodiments, the execution body may store the data request information to the data request information set in various ways. The data request information set may be stored in a database in the form of a table. The data request information included in the data request information set may be received information that has not been subjected to response processing temporarily.
In some optional implementations of some embodiments, the execution subject may store the data request information to a data request information set by:
and step one, carrying out verification processing on the data request information to obtain a verification result. The verification result can represent whether the data request information passes the security verification or not. For example, the verification result may be "verification passed". In practice, the execution main body may perform verification processing on the data request information according to the security isolation gatekeeper to obtain a verification result.
As an example, when storing the data request information to the data request information set, first, the execution main body may connect the security isolation gatekeeper to the intranet. And then, virus checking, analysis and filtering processing are carried out on the data request information through a special detection module included by an internal processing unit of the security isolation gateway, so as to obtain a verification result.
And step two, in response to the fact that the verification result meets the preset verification result condition, storing the data request information to a data request information set. The preset verification result condition may be that the verification result representation passes security verification.
And 103, determining whether to trigger a storage trigger according to the data log file corresponding to the data request information set.
In some embodiments, the execution main body may determine whether to trigger the storage trigger according to a data log file corresponding to the data request information set in various ways. The data log file may be a file storing records generated when the data request information set is processed. The storage trigger may be a special storage process triggered by an event of the data request information set.
In some alternative implementations of some embodiments, the set of data request information may be stored in a database. The execution main body may determine whether to trigger the storage trigger according to the data log file corresponding to the data request information set by:
the first step, responding to the detected database log updating information corresponding to the database, and determining the log line number included in the data log file. The database log update information may represent information for updating a log file corresponding to the database. The data log file may be a log file corresponding to the database. In practice, the execution main body may determine the log line number included in the data log file by reading the data log file.
And secondly, determining to trigger the storage trigger in response to the fact that the number of the log lines meets a preset line number condition. The preset number of lines condition may be that the number of log lines is greater than the number of log lines before updating.
And step 104, responding to the determination of the trigger of the storage trigger, and generating request feedback information corresponding to the data request information according to the data request information.
In some embodiments, the execution body may generate request feedback information corresponding to the data request information according to the data request information in response to determining to trigger the storage trigger in various ways. Wherein the request feedback information may characterize feedback for the data request information. The request feedback information may include request result data corresponding to the data request information.
In some optional implementation manners of some embodiments, the data request information includes a micro service interface identifier of an intranet. The microservice interface identifier may be a unique identifier of an interface corresponding to a microservice. The execution main body may generate request feedback information corresponding to the data request information according to the data request information by:
in the first step, the data request information is added to a first request information queue as first request information. The first request message queue may be a message queue for storing the first request message. The first request message may be a data request message to be processed in response. The first request message queue may be configured to process data request messages in real time.
And secondly, determining the type of the micro service interface corresponding to the micro service interface identifier included in the data request information. The microservice interface type can represent real-time processing or timing processing of the data request information. The microservice interface type may be, but is not limited to, one of the following: timing processing interface and real-time processing interface.
And thirdly, in response to the fact that the type of the micro service interface meets the preset interface type condition, performing data query on the data request information according to the micro service interface identification to obtain request feedback information corresponding to the data request information. The preset interface type condition may be that the microservice interface type representation performs real-time processing on the data request information. In practice, the execution main body may invoke an interface of the micro service corresponding to the micro service interface identifier in response to determining that the micro service interface type meets a preset interface type condition, and perform data query on the data request information to obtain request feedback information corresponding to the data request information.
And fourthly, in response to the fact that the type of the micro service interface is determined not to meet the preset interface type condition, adding the data request information serving as second request information to a second request information queue. The second request information queue may be configured to store data request information that needs to be processed at a fixed time. The second request message may be a data request message to be processed that needs to be processed at a fixed time. The second request information in the second request information queue corresponds to a second request identifier. The second request identifier may represent a number of request processing corresponding to the second request information. The second request identifier may be a combination of a predetermined character string and a number. The above combination may be character concatenation. For example, the second request identification may be "request information 1". The second request message queue may be a message queue for storing the second request message.
And fifthly, determining the micro service interface identifier included in the data request information as a target micro service interface identifier.
Sixthly, in response to that the current time meets a preset interval duration condition, executing the following substeps for each second request message included in the second request message queue:
the first substep is to determine whether the micro service interface identifier included in the second request message is the same as the target micro service interface identifier. The preset interval duration condition may be that a time interval between the current time and the last time of processing the second request information is a preset interval duration. The preset interval duration may be a preset interval duration. For example, the preset interval duration may be 1 second.
And a second substep, determining the second request information as target request information in response to determining that the micro service interface identifier included in the second request information is the same as the target micro service interface identifier.
And seventhly, performing data query on each determined target request message according to the target micro service interface identifier to obtain target request feedback messages and obtain a target request feedback message set. The target request feedback information corresponds to a request identifier. The target request feedback information may be feedback information corresponding to the request information. In practice, the execution main body may invoke an interface of the micro service corresponding to the target micro service interface identifier, and perform data query on each determined target request message to obtain a target request feedback message, so as to obtain a target request feedback message set.
And eighthly, determining the request identifier corresponding to the data request information as a target request identifier.
And a ninth step of selecting target request feedback information corresponding to the target request identifier from the target request feedback information set as request feedback information corresponding to the data request information.
Therefore, when the interface corresponding to the data request information can be processed in real time, the request feedback information can be generated in real time. When the interface corresponding to the data request information can be processed in a timing mode, the data request information is processed in a message queue mode, and the response time of the data request information is guaranteed according to the first-in first-out principle. Therefore, the processing efficiency of the request is improved, the influence of high concurrency on service application in a short time can be relieved, and the smoothness of processing the data request of the internal network and the external network is ensured.
And 105, generating request result information corresponding to the data request information according to the request feedback information and the terminal identification included in the data request information.
In some embodiments, the execution main body may generate request result information corresponding to the data request information according to the request feedback information and a terminal identifier included in the data request information. The request result information may include the request feedback information and the terminal identifier. In practice, the execution main body may combine the request feedback information and the terminal identifier included in the data request information to obtain request result information corresponding to the data request information. The combination mode can be character splicing.
And 106, adding the request result information to the request result information set so as to update the request result information set.
In some embodiments, the execution agent may add the request result information to a request result information set to update the request result information set. The request result information set may be stored in a database in a form of a table. The request result information included in the request result information set may be the request result information waiting to be transmitted to the external network terminal.
And step 107, in response to receiving the request result acquisition information sent by the external network terminal, determining the request result information corresponding to the terminal identifier in the updated request result information set as the target request result information.
In some embodiments, the executing agent may determine, in response to receiving the request result obtaining information sent by the external network terminal, the request result information corresponding to the terminal identifier in the updated request result information set as the target request result information. The request result obtaining information may represent a request for obtaining the request result information corresponding to the terminal identifier. The request result obtaining information may include a terminal identifier. The request result acquisition information may be a combination of a preset character string and the terminal identifier. The above combination may be character concatenation. The predetermined string may be "get request result information".
And step 108, sending the request feedback information included in the target request result information to the external network terminal, so that the external network terminal displays the request feedback information.
In some embodiments, the execution main body may send request feedback information included in the target request result information to the external network terminal in various ways, so that the external network terminal displays the request feedback information.
In some optional implementation manners of some embodiments, the execution main body may send request feedback information included in the target request result information to the external network terminal through the following steps:
the first step, the request feedback information included in the target request result information is classified to obtain the information classification type. The information classification type can represent whether the request feedback information needs to be encrypted or not. The information classification type may be, but is not limited to, one of the following: encryption is required, and no encryption is required. In practice, the execution main body may classify the request feedback information included in the target request result information in various ways to obtain an information classification type.
In some optional implementation manners of some embodiments, the executing entity may perform classification processing on the request feedback information included in the target request result information through the following steps to obtain an information classification type:
and firstly, extracting text information from the request feedback information to serve as target text information. The text information may be information representing a text. In practice, the execution body may extract the chinese characters and the numbers in the request feedback information as the target text information.
As an example, the request feedback information may be "name, age, identification number; three, 23 years old, 410000000000000000", the target text information may be" three of name age identity number, 23 years old, 41000000000000 ".
And secondly, performing word segmentation processing on the target text information to obtain a word set. In practice, the execution main body may perform word segmentation processing on the target text information through a word segmentation method based on a word list to obtain a word set.
As an example, the request feedback information may be "name, age, identification number; zhang three, 23 years old, 410000000000000000", the target text message may be" name age identity card number Zhang three, 23 years old, 410000000000000000". The set of words may be "{ name, age, identification number, zhang san, 23 years }".
And thirdly, classifying each word included in the word set to obtain a word classification information set. The word classification information in the word classification information set can represent whether the corresponding word needs to be encrypted. The word classification information in the word classification information set includes a word type and a word. The word type may be, but is not limited to, one of the following: encryption is required and no encryption is required. In practice, first, the execution main body may classify each word included in the word set through a word classification model to obtain a word classification information set. The word classification model can be used for representing the corresponding relation between words and word types. For example, the word classification model may be a correspondence table in which correspondence between a plurality of words and word types is stored, which is prepared in advance by a technician based on statistics of a large number of words and word types. The word classification model may also be a neural network that takes a word as input and a word type as output. The neural network may be a convolutional neural network. Then, for each word included in the word set, determining the word type of the word and the word type of the corresponding word as word classification information, and obtaining a word classification information set.
And fourthly, in response to the fact that any word type included in the word classification information set meets a preset word type condition, determining a preset first information classification type as an information classification type. The preset part-of-speech type condition can represent that the corresponding word needs to be encrypted for the word type. The preset first information classification type may be a preset characterization information classification type that is a type that needs to be encrypted. For example, the preset first information classification type may be "encryption".
And fifthly, determining a preset second information classification type as an information classification type in response to the fact that the word types included in the word classification information set do not meet the preset word type condition. The preset second information classification type may be a preset characterization information classification type that is a type that does not need to be encrypted. For example, the preset second information classification type may be "not encrypted".
And secondly, responding to the condition that the information classification type meets the preset information type condition, and sending the request feedback information to the external network terminal. The preset information type condition may be that the information classification type representation request feedback information does not need to be encrypted.
In some optional implementation manners of some embodiments, the execution main body may further send request feedback information included in the target request result information to the external network terminal by:
a first step of, in response to determining that the information classification type does not satisfy the preset information type condition, performing, for each word classification information included in the word classification information set, the following substeps:
a first substep of determining whether the above word classification information matches preset word classification information. The preset word classification information may be information that a preset token word type is required to be encrypted. In practice, first, the execution main body may determine whether or not the word-type corresponding word included in the word classification information needs to be encrypted. Then, in response to determining that the word corresponding to the word type included in the word classification information needs to be encrypted, determining that the word classification information matches the preset word classification information.
And a second substep of determining a word included in the word set corresponding to the word classification information as a target word in response to determining that the word classification information matches the preset word classification information.
And secondly, encrypting each word text corresponding to each determined target word included in the request feedback information to obtain encrypted request feedback information. In practice, the execution main body may encrypt each word text corresponding to each determined target word included in the request feedback information through an encryption algorithm, so as to obtain encrypted request feedback information. The encryption algorithm may be, but is not limited to, one of the following: DES encryption algorithm, SM2 encryption algorithm, etc.
And thirdly, sending the encryption request feedback information to the external network terminal.
The above technical solution and the related content serve as an invention point of the embodiment of the present disclosure, and solve the second technical problem mentioned in the background art that "the processing amount is large, the time consumption is long, and the processing efficiency of the request is further low because all information transmitted from the intranet to the extranet is encrypted". Factors that lead to inefficient processing of requests tend to be as follows: the method of encrypting all information transmitted from the internal network to the external network is adopted, so that the processing amount is large, the time consumption is long, and the processing efficiency of the request is further low. If the above-mentioned factors are solved, the effect of improving the processing efficiency of the request can be achieved. To achieve this effect, the request information processing method of some embodiments of the present disclosure first extracts text information from the request feedback information as target text information. And performing word segmentation processing on the target text information to obtain a word set. And classifying each word included in the word set to obtain a word classification information set. Therefore, the word classification information set corresponding to each word can be obtained, and whether the request feedback information needs to be encrypted or not can be determined according to the word text in the request feedback information. Secondly, in response to the fact that any word type included in the word classification information set meets a preset word type condition, a preset first information classification type is determined as an information classification type. And in response to determining that the word types included in the word classification information set do not meet the preset word type condition, determining a preset second information classification type as the information classification type. Thus, the information classification type of the request feedback information can be determined, and thus whether to perform encryption processing on the request feedback information can be determined. Then, in response to determining that the information classification type does not satisfy the preset information type condition, for each word classification information included in the word classification information set, performing the following steps: determining whether the word classification information is matched with preset word classification information; and in response to determining that the word classification information is matched with the preset word classification information, determining the word corresponding to the word classification information included in the word set as a target word. Therefore, each target word needing to be encrypted in the request feedback information can be obtained. And then, encrypting each word text corresponding to each determined target word included in the request feedback information to obtain encrypted request feedback information. Thus, encryption request feedback information in which only a part of the word text is encrypted can be obtained, thereby reducing the processing amount of encryption processing. And finally, sending the encryption request feedback information to the external network terminal. Thus, the request feedback information can be transmitted while ensuring security, and the processing of the data request information between the internal network and the external network is completed. When the encryption request feedback information is sent to the external network terminal, whether encryption processing needs to be carried out on the request feedback information is judged firstly, when the encryption is determined to be needed, encryption processing is carried out, and only part of information in the request feedback information is encrypted, so that the processing amount of encryption processing is reduced, and the processing time is shortened. Therefore, the processing efficiency of the data request information between the internal network and the external network can be improved while the safety is ensured.
The above embodiments of the present disclosure have the following advantages: by the request information processing method of some embodiments of the present disclosure, the processing efficiency of data request information between the internal network and the external network can be improved. Specifically, the reason why the processing efficiency of the request is low is that: by adopting the timing task mode, the response time of the request is longer when the time interval for executing the timing task is longer, and the processing efficiency of the request is lower when the time interval for executing the timing task is shorter and the load of hardware equipment is larger. Based on this, the request information processing method of some embodiments of the present disclosure, first, receives data request information for a target application sent by an external network terminal. Wherein, the data request information includes the terminal identifier of the external network terminal. Thereby, data request information is available and can be used for request processing. Then, the data request information is stored in a data request information set. Thus, the data request information may be stored, and thus, the data request information may be stored to trigger the storage trigger. And then, determining whether to trigger a storage trigger according to the data log file corresponding to the data request information set. Therefore, the storage trigger which has no other specific functions and is arranged in the intranet can be automatically triggered through the monitoring log file, manual control response is not needed, the response efficiency is improved, the safety of data information is ensured, and the number of times of malicious attacks is reduced. And then, responding to the determination of triggering the storage trigger, and generating request feedback information corresponding to the data request information according to the data request information. Thereby, request feedback information can be obtained, and the data request information can be processed in real time. And then, generating request result information corresponding to the data request information according to the request feedback information and the terminal identifier included in the data request information, wherein the request result information includes the request feedback information and the terminal identifier. Therefore, request result information comprising the terminal identification can be obtained, and the request feedback information corresponding to the data request information can be searched through the terminal identification. Then, the request result information is added to a request result information set to update the request result information set. Therefore, the request result information can be stored, and can be used for the external network terminal to obtain. And then, responding to the received request result acquisition information sent by the external network terminal, and determining the request result information corresponding to the terminal identifier in the updated request result information set as target request result information. Thus, the target request result information corresponding to the data request information can be obtained, and the target request result information can be used for being transmitted to the external network terminal. And finally, sending the request feedback information included in the target request result information to the external network terminal, so that the external network terminal displays the request feedback information. Thus, the request feedback information corresponding to the data request information can be sent to the external network terminal, and the request processing between the internal network and the external network can be completed. When the data request information between the internal network and the external network is processed, the data request information is processed in real time by triggering the storage trigger after the data request information is received for processing, so that the processing efficiency of the request is improved. Therefore, the processing efficiency of the data request information between the internal network and the external network can be improved.
With further reference to fig. 2, as an implementation of the methods illustrated in the above figures, the present disclosure provides some embodiments of a request information processing apparatus, which correspond to those illustrated in fig. 1, and which may be particularly applied in various electronic devices.
As shown in fig. 2, a request information processing apparatus 200 of some embodiments includes: a receiving unit 201, a storage unit 202, a first determining unit 203, a first generating unit 204, a second generating unit 205, an adding unit 206, a second determining unit 207, and a transmitting unit 208. The receiving unit 201 is configured to receive data request information for a target application, which is sent by an external network terminal, wherein the data request information includes a terminal identifier of the external network terminal; the storage unit 202 is configured to store the data request information into a data request information set; the first determining unit 203 is configured to determine whether to trigger a storage trigger according to a data log file corresponding to the data request information set; the first generating unit 204 is configured to generate request feedback information corresponding to the data request information according to the data request information in response to determining to trigger the storage trigger; the second generating unit 205 is configured to generate request result information corresponding to the data request information according to the request feedback information and a terminal identifier included in the data request information, where the request result information includes the request feedback information and the terminal identifier; the adding unit 206 is configured to add the request result information to a request result information set to update the request result information set; the second determining unit 207 is configured to determine, in response to receiving the request result acquisition information sent by the extranet terminal, request result information corresponding to the terminal identifier in the updated request result information set as target request result information; the sending unit 208 is configured to send request feedback information included in the target request result information to the external network terminal, so that the external network terminal displays the request feedback information.
It will be understood that the units described in the apparatus 200 correspond to the various steps in the method described with reference to fig. 1. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 200 and the units included therein, and are not described herein again.
Referring now to fig. 3, a block diagram of an electronic device 300 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, electronic device 300 may include a processing device (e.g., central processing unit, graphics processor, etc.) 301 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 302 or a program loaded from a storage device 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data necessary for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, or the like; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 308 including, for example, magnetic tape, hard disk, etc.; and a communication device 309. The communication means 309 may allow the electronic device 300 to communicate wirelessly or by wire with other devices to exchange data. While fig. 3 illustrates an electronic device 300 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may be alternatively implemented or provided. Each block shown in fig. 3 may represent one device or may represent multiple devices, as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. The computer program, when executed by the processing apparatus 301, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (Hyper Text Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving data request information aiming at target application sent by an external network terminal, wherein the data request information comprises a terminal identifier of the external network terminal; storing the data request information to a data request information set; determining whether to trigger a storage trigger according to a data log file corresponding to the data request information set; responding to the determination of triggering the storage trigger, and generating request feedback information corresponding to the data request information according to the data request information; generating request result information corresponding to the data request information according to the request feedback information and a terminal identifier included in the data request information, wherein the request result information includes the request feedback information and the terminal identifier; adding the request result information to a request result information set so as to update the request result information set; in response to receiving the request result acquisition information sent by the external network terminal, determining the request result information corresponding to the terminal identifier in the updated request result information set as target request result information; and sending the request feedback information included in the target request result information to the external network terminal, so that the external network terminal displays the request feedback information.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, which may be described as: a processor includes a receiving unit, a storage unit, a first determining unit, a first generating unit, a second generating unit, an adding unit, a second determining unit, and a transmitting unit. The names of these units do not form a limitation on the unit itself in some cases, for example, the receiving unit may also be described as "a unit that receives data request information for a target application sent by an external network terminal, where the data request information includes a terminal identifier of the external network terminal".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems on a chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
Some embodiments of the present disclosure also provide a computer program product comprising a computer program that, when executed by a processor, implements any one of the above-described request information processing methods.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (8)

1. A request information processing method, comprising:
receiving data request information aiming at a target application sent by an external network terminal, wherein the data request information comprises a terminal identifier of the external network terminal;
storing the data request information to a data request information set;
determining whether to trigger a storage trigger or not according to a data log file corresponding to the data request information set;
responding to the determination of triggering the storage trigger, and generating request feedback information corresponding to the data request information according to the data request information;
generating request result information corresponding to the data request information according to the request feedback information and the terminal identification included in the data request information, wherein the request result information includes the request feedback information and the terminal identification;
adding the request result information to a request result information set to update the request result information set;
in response to receiving request result acquisition information sent by the external network terminal, determining request result information corresponding to the terminal identifier in the updated request result information set as target request result information;
and sending request feedback information included in the target request result information to the external network terminal, so that the external network terminal displays the request feedback information.
2. The method of claim 1, wherein the storing the data request information to a set of data request information comprises:
verifying the data request information to obtain a verification result;
and in response to the fact that the verification result meets a preset verification result condition, storing the data request information to a data request information set.
3. The method of claim 1, wherein the set of data request information is stored in a database; and
the determining whether to trigger a storage trigger according to the data log file corresponding to the data request information set includes:
in response to detecting database log update information corresponding to the database, determining a number of log lines included in the data log file;
and determining to trigger the storage trigger in response to determining that the log line number meets a preset line number condition.
4. The method according to claim 1, wherein the data request information includes a micro service interface identification of an intranet; and
the generating request feedback information corresponding to the data request information according to the data request information includes:
adding the data request information as first request information to a first request information queue;
determining the micro service interface type corresponding to the micro service interface identifier included in the data request information;
in response to the fact that the micro service interface type meets the preset interface type condition, performing data query on the data request information according to the micro service interface identification to obtain request feedback information corresponding to the data request information;
in response to the fact that the microservice interface type is determined not to meet the preset interface type condition, adding the data request information serving as second request information to a second request information queue, wherein the second request information in the second request information queue corresponds to a second request identifier;
determining the micro service interface identifier included in the data request information as a target micro service interface identifier;
in response to that the current time meets a preset interval duration condition, for each second request message included in the second request message queue, executing the following steps:
determining whether the micro service interface identifier included in the second request information is the same as the target micro service interface identifier;
in response to determining that the micro service interface identifier included in the second request information is the same as the target micro service interface identifier, determining the second request information as target request information;
performing data query on each determined target request message according to the target micro service interface identifier to obtain a target request feedback message and obtain a target request feedback message set, wherein the target request feedback message corresponds to the request identifier;
determining a request identifier corresponding to the data request information as a target request identifier;
and selecting target request feedback information corresponding to the target request identifier from the target request feedback information set as request feedback information corresponding to the data request information.
5. The method according to one of claims 1 to 4, wherein the sending request feedback information included in the target request result information to the extranet terminal comprises:
classifying the request feedback information included in the target request result information to obtain an information classification type;
and responding to the condition that the information classification type meets the preset information type, and sending the request feedback information to the external network terminal.
6. A request information processing apparatus comprising:
the device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is configured to receive data request information aiming at a target application and sent by an external network terminal, and the data request information comprises a terminal identification of the external network terminal;
a storage unit configured to store the data request information to a set of data request information;
a first determining unit configured to determine whether to trigger a storage trigger according to a data log file corresponding to the data request information set;
a first generating unit configured to generate request feedback information corresponding to the data request information according to the data request information in response to determining to trigger the storage trigger;
a second generating unit configured to generate request result information corresponding to the data request information according to the request feedback information and a terminal identifier included in the data request information, wherein the request result information includes the request feedback information and the terminal identifier;
an adding unit configured to add the request result information to a request result information set to update the request result information set;
a second determining unit configured to determine, in response to receiving request result acquisition information sent by the extranet terminal, request result information corresponding to the terminal identifier in the updated request result information set as target request result information;
a sending unit configured to send request feedback information included in the target request result information to the external network terminal, so that the external network terminal displays the request feedback information.
7. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-5.
8. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-5.
CN202211276458.0A 2022-10-19 2022-10-19 Request information processing method, apparatus, electronic device, medium, and program product Active CN115361450B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211276458.0A CN115361450B (en) 2022-10-19 2022-10-19 Request information processing method, apparatus, electronic device, medium, and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211276458.0A CN115361450B (en) 2022-10-19 2022-10-19 Request information processing method, apparatus, electronic device, medium, and program product

Publications (2)

Publication Number Publication Date
CN115361450A CN115361450A (en) 2022-11-18
CN115361450B true CN115361450B (en) 2023-01-17

Family

ID=84007641

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211276458.0A Active CN115361450B (en) 2022-10-19 2022-10-19 Request information processing method, apparatus, electronic device, medium, and program product

Country Status (1)

Country Link
CN (1) CN115361450B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116150249B (en) * 2023-04-13 2023-06-16 新兴际华集团财务有限公司 Table data export method, apparatus, electronic device and computer readable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111200655A (en) * 2019-12-31 2020-05-26 北京奇才天下科技有限公司 Intranet access method, system and electronic equipment based on proxy server
CN113051456A (en) * 2021-05-11 2021-06-29 北京字节跳动网络技术有限公司 Request processing method and device, electronic equipment and computer readable medium
CN113992382A (en) * 2021-10-22 2022-01-28 北京京东振世信息技术有限公司 Service data processing method and device, electronic equipment and storage medium
CN114928574A (en) * 2022-05-16 2022-08-19 多点生活(成都)科技有限公司 Information sending method, information sending device, electronic equipment and computer readable medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105469266B (en) * 2015-11-18 2021-01-08 腾讯科技(深圳)有限公司 Information processing method and device
US20200201966A1 (en) * 2018-12-21 2020-06-25 Oath Inc. Biometric based self-sovereign information management

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111200655A (en) * 2019-12-31 2020-05-26 北京奇才天下科技有限公司 Intranet access method, system and electronic equipment based on proxy server
CN113051456A (en) * 2021-05-11 2021-06-29 北京字节跳动网络技术有限公司 Request processing method and device, electronic equipment and computer readable medium
CN113992382A (en) * 2021-10-22 2022-01-28 北京京东振世信息技术有限公司 Service data processing method and device, electronic equipment and storage medium
CN114928574A (en) * 2022-05-16 2022-08-19 多点生活(成都)科技有限公司 Information sending method, information sending device, electronic equipment and computer readable medium

Also Published As

Publication number Publication date
CN115361450A (en) 2022-11-18

Similar Documents

Publication Publication Date Title
US10958657B2 (en) Utilizing transport layer security (TLS) fingerprints to determine agents and operating systems
CN112468520B (en) Data detection method, device and equipment and readable storage medium
CN115412370B (en) Vehicle communication data detection method and device, electronic equipment and readable medium
CN113760674A (en) Information generation method and device, electronic equipment and computer readable medium
CN113268761B (en) Information encryption method and device, electronic equipment and computer readable medium
CN111259409A (en) Information encryption method and device, electronic equipment and storage medium
CN115361450B (en) Request information processing method, apparatus, electronic device, medium, and program product
CN111930709A (en) Data storage method and device, electronic equipment and computer readable medium
CN112685799B (en) Device fingerprint generation method and device, electronic device and computer readable medium
CN117156012B (en) Exception request data processing method, device, equipment and computer readable medium
CN116150249B (en) Table data export method, apparatus, electronic device and computer readable medium
CN109150898B (en) Method and apparatus for processing information
CN116361121A (en) Abnormal interface alarm method, device, electronic equipment and computer readable medium
CN109087097B (en) Method and device for updating same identifier of chain code
CN112367266A (en) Current limiting method, current limiting device, electronic equipment and computer readable medium
CN110659476A (en) Method and apparatus for resetting password
CN111371745B (en) Method and apparatus for determining SSRF vulnerability
CN113282471B (en) Equipment performance testing method and device and terminal equipment
CN112437052B (en) Method, apparatus, electronic device, and computer-readable medium for processing information
CN110909382B (en) Data security control method and device, electronic equipment and computer readable medium
CN114124533A (en) Data interception method and device, electronic equipment and computer readable medium
CN117474338A (en) Service processing method and related device
CN117251835A (en) Object information binding method, device, electronic equipment and computer readable medium
CN117312107A (en) Data reporting method, device, equipment, computer readable medium and program product
CN113763188A (en) Information generation method and device, electronic equipment and computer readable medium

Legal Events

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