Network request control method and device, storage medium and electronic equipment

By implementing network request control methods in the airline's business system, the problem of abnormal user order information during business system maintenance is solved, and work efficiency and system stability are improved.

CN119676310AActive Publication Date: 2025-03-21TRAVELSKY TECHNOLOGY LIMITED
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411782623.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-05
Publication Date
2025-03-21
Estimated Expiration
2044-12-05

AI Technical Summary

Technical Problem

When an airline handles user requests through the business system, due to the high number of visits and uninterrupted access, the user order information during the business system maintenance is abnormal, and manual processing is required for compensation, resulting in low work efficiency of the airline.

Method used

A control method for network request is provided, by receiving the target request and determining the target service function it has requested, reading control information in memory, including the first switch information and the target rules, matching the matching rules and requests, determining the target service system based on the matching result, and controlling forwarding of the target request to the target service system.

Benefits of technology

It realizes control of requests in network traffic of the business system, improves the stability of the business system when it is put into production, avoids user data errors during business system switching, and improves the work efficiency of airline staff.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119676310A_ABST
    Figure CN119676310A_ABST
Patent Text Reader

Abstract

The invention discloses a network request control method and device, a storage medium and electronic equipment, the method is applied to the field of network flow control, and the method comprises the following steps: receiving a target request, and determining a target service function requested to be realized by the target request; reading the control information in the memory; under the condition that the first switch information indicates to control the target request, matching the first rule with the target request to obtain a matching result; and determining a target service system according to a matching result, and controlling the target request to be forwarded to the target service system. Through the method and the device, the problem that the working efficiency of an airline company is relatively low due to the fact that the user order information is abnormal and needs to be manually processed for compensation when the service system is maintained because the page view is relatively high and the access is uninterrupted when the airline company processes the user request through the service system in the related technology is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network traffic processing, and in particular to a method, device, storage medium and electronic device for controlling network requests. Background Art

[0002] Computer Reservation System (CRS) is an electronic system that provides agents with services such as flight availability query, flight segment sales, reservation records, electronic ticket reservations, and travel products. The open order management system is a key module in the open agent sales system that involves important operations such as reservation sales, reservation management, reservation ticketing, and reservation changes. In particular, the open order management system is responsible for the generation and update of order data.

[0003] In order to make the process of commissioning and transferring the open order management system transparent to agents and airlines, when the open order management system is put into production, it is necessary to control the traffic switching to the open order management system. Usually, the traffic of the open order management system is controlled by modifying the configuration file. However, due to the complexity of the business functions of the open order management system, the control of the agent alone requires thousands of configurations, and it is also necessary to distinguish between interfaces and methods. Therefore, the method of controlling traffic by modifying the configuration file makes maintenance difficult; secondly, each time the configuration file is modified, the service needs to be restarted, and when it is put into production, it needs to be put online in multiple batches in a short time. Therefore, it is difficult to implement. Even if the configuration file is modified by hot loading, it cannot fundamentally solve the problem of not being able to accurately process user requests during the commissioning control process.

[0004] For an open order management system, which is a large system that requires uninterrupted business and has a very high traffic, once an online problem occurs in the new version, even if the old version is switched back as quickly as possible, it may cause thousands of order data errors. These erroneous data usually need to be processed manually before passengers can perform subsequent operations. Even some data errors closely related to departure business may cause passengers to find that they cannot check in after arriving at the airport, which will affect passengers' travel and damage the interests of the airline.

[0005] Regarding the problem in related technologies that when airlines process user requests through business systems, due to high access volume and uninterrupted access, user order information becomes abnormal during business system maintenance, requiring manual processing for compensation, resulting in low work efficiency for airlines, and no effective solution has been proposed so far. Summary of the invention

[0006] The main purpose of the present application is to provide a network request control method, device, storage medium and electronic device to solve the problem in the related art that when an airline processes user requests through a business system, due to high access volume and uninterrupted access, user order information becomes abnormal during business system maintenance, requiring manual processing for compensation, resulting in low work efficiency of the airline.

[0007] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for controlling a network request is provided, the method comprising: receiving a target request, and determining a target business function implemented by the target request; reading control information in a memory, wherein the control information comprises at least: first switch information and a target rule, the first switch information being used to indicate whether to control the target request, and the target rule being used to determine a target business system for processing the target request; when the first switch information indicates that the target request is to be controlled, matching the first rule with the target request to obtain a matching result, wherein the first rule is a rule corresponding to the target business function in the target rule; determining the target business system based on the matching result, and controlling the target request to be forwarded to the target business system.

[0008] Furthermore, the control information includes: second switch information, the second switch information represents a business system in a production state, and before matching the first rule and the target request to obtain a matching result, the method also includes: determining the business system in a production state based on the second switch information, wherein the business system includes at least: a first business system and a second business system, and the businesses executed by the first business system and the second business system are different; determining the target rule based on the rule corresponding to the business system in production.

[0009] Furthermore, the first rule is matched with the target request to obtain a matching result, including: determining the first rule in the target rule according to the target business function; matching the field information of each field in the target request with the first rule respectively to obtain a matched first rule; generating the matching result according to the matched first rule, wherein the matching result includes the first rule that matches the field information of the target request.

[0010] Furthermore, the target business system is determined based on the matching result, and the target request is controlled to be forwarded to the target business system, including: when the matching result contains a rule corresponding to the first business system and the second switch information indicates that the first business system is in a production state, the first business system is taken as the target business system and the target request is sent to the first business system; when the matching result contains a rule corresponding to the second business system and the second switch information indicates that the second business system is in a production state, the second business system is taken as the target business system and the target request is sent to the second business system.

[0011] Furthermore, the target request is sent to at least one of the following business systems: the first business system and the third business system. Before matching the first rule with the target request to obtain a matching result, the method also includes: when the first switch information indicates that the target request is not to be controlled, or the first switch information indicates that the target request is to be controlled and the second switch information indicates that the second business system is not in a production state, sending the target request to the third business system; when the first switch information indicates that the target request is to be controlled and the second switch information indicates that the second business system is in a production state, and the matching result does not include a rule corresponding to the first business system, taking the third business system as the target business system and sending the target request to the third business system.

[0012] Furthermore, before reading the control information in the memory, the method also includes: receiving a target message, wherein the target message is a message for processing the target rule; verifying the field information of the target rule in the target message to obtain a verification result; if the verification result is that the verification passes, converting the target rule in the target message into a preset format to obtain a processed target rule; loading the processed target rule into the memory, and storing it in the target database.

[0013] Furthermore, before receiving the target message, the method also includes: for each business system, determining the business function of the business system according to the business needs of the business system; configuring the processing scope of each business function, configuring the user of each business function, and configuring the processing rules of each business function to obtain the target rules; generating the target message according to the target rules.

[0014] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a control device for network requests is provided, and the device includes: a first receiving unit, used to receive a target request and determine the target business function implemented by the target request; a reading unit, used to read the control information in the memory, wherein the control information at least includes: first switch information and a target rule, the first switch information is used to indicate whether to control the target request, and the target rule is used to determine the target business system for processing the target request; a matching unit, used to match the first rule with the target request to obtain a matching result when the first switch information indicates that the target request is controlled, wherein the first rule is the rule corresponding to the target business function in the target rule; a first determination unit, used to determine the target business system based on the matching result, and control the target request to be forwarded to the target business system.

[0015] Further, the control information includes: second switch information, the second switch information represents a business system in a production state, and the device also includes: a second determination unit, used to determine the business system in a production state based on the second switch information before matching the first rule and the target request to obtain a matching result, wherein the business system includes at least: a first business system and a second business system, and the businesses executed by the first business system and the second business system are different; a third determination unit, used to determine the target rule based on the rule corresponding to the business system in production.

[0016] Furthermore, the matching unit includes: a determination subunit, used to determine the first rule in the target rule according to the target business function; a matching subunit, used to match the field information of each field in the target request with the first rule respectively to obtain a matched first rule; and a generation subunit, used to generate the matching result based on the matched first rule, wherein the matching result includes the first rule that matches the field information of the target request.

[0017] Furthermore, the first determination unit includes: a first sending subunit, used to take the first business system as the target business system and send the target request to the first business system when the matching result contains a rule corresponding to the first business system and the second switch information indicates that the first business system is in a production state; a second sending subunit, used to take the second business system as the target business system and send the target request to the second business system when the matching result contains a rule corresponding to the second business system and the second switch information indicates that the second business system is in a production state.

[0018] Furthermore, the target request is sent to at least one of the following business systems: the first business system and the third business system, and the device also includes: a first sending unit, used to send the target request to the third business system before matching the first rule with the target request to obtain a matching result, when the first switch information indicates not to control the target request, or the first switch information indicates to control the target request and the second switch information indicates that the second business system is not in a production state; a second sending unit, used to take the third business system as the target business system and send the target request to the third business system when the first switch information indicates to control the target request and the second switch information indicates that the second business system is in a production state and the matching result does not contain a rule corresponding to the first business system.

[0019] Furthermore, the device also includes: a second receiving unit, used to receive a target message before reading the control information in the memory, wherein the target message is a message for processing the target rule; a verification unit, used to verify the field information of the target rule in the target message to obtain a verification result; a processing unit, used to convert the target rule in the target message into a preset format to obtain a processed target rule if the verification result is a passed verification; and a loading unit, used to load the processed target rule into the memory and store it in the target database.

[0020] Furthermore, the device also includes: a fourth determination unit, used to determine the business function of the business system for each business system based on the business needs of the business system before receiving the target message; a configuration unit, used to configure the processing scope of each business function, configure the user of each business function, and configure the processing rules of each business function to obtain the target rules; and a generation unit, used to generate the target message based on the target rules.

[0021] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a computer program product is provided, including a computer program, which, when executed by a processor, implements any one of the above-mentioned methods for controlling network requests, and which, when executed by a processor, implements the steps of the methods for controlling network requests described in each embodiment of the present application.

[0022] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes stored computer instructions, wherein when the computer instructions are executed by a processor, any one of the above-mentioned network request control methods is implemented.

[0023] In order to achieve the above-mentioned purpose, according to one aspect of the present application, an electronic device is provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement any one of the above-mentioned network request control methods.

[0024] Through the present application, the following steps are adopted: receiving a target request and determining a target business function implemented by the target request; reading control information in the memory, wherein the control information at least includes: first switch information and a target rule, wherein the first switch information is used to indicate whether to control the target request, and the target rule is used to determine a target business system for processing the target request; in the case where the first switch information indicates to control the target request, matching the first rule with the target request to obtain a matching result, wherein the first rule is a rule corresponding to the target business function in the target rule; determining the target business system based on the matching result, and controlling the target request to be forwarded to the target business system, which solves the problem in the related art that when an airline processes user requests through a business system, due to high access volume and uninterrupted access, user order information becomes abnormal during business system maintenance, requiring manual processing for compensation, resulting in low work efficiency for the airline. By defining the control information to include the first switch information and the commissioning rules, when the business system is put into production, the target request can be matched with the commissioning rules according to the control information, and the target request can be processed according to the matching result, thereby realizing the control of the requests in the network traffic of the switched business system, improving the stability of the business system when it is put into production, achieving the effect of ensuring the stability of the business system switching, avoiding the problem of user data errors caused by the switching of the business system, resulting in reduced work efficiency of airline staff, and further achieving the effect of improving the work efficiency of airline staff. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0026] Figure 1 is a flowchart of a method for controlling a network request provided in Embodiment 1 of the present application;

[0027] Figure 2 is a schematic diagram of an optional network request control method provided according to Embodiment 1 of the present application;

[0028] Figure 3 is a schematic diagram of a control device for network requests provided in Embodiment 2 of the present application;

[0029] Figure 4 This is a schematic diagram of a control electronic device for a network request provided in Example 5 of the present application. DETAILED DESCRIPTION

[0030] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0031] It should be noted that the user information (including but not limited to user device information, user personal information, collected data, used data, generated data, processed data, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, collected information, used information, generated information, processed information, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data are in compliance with the relevant laws, regulations and standards of relevant countries and regions, necessary confidentiality measures are taken, and public order and good morals are not violated, and corresponding operation portals are provided for users to choose to authorize or refuse. For example, an interface is set between this system and relevant users or organizations. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.

[0032] It should be noted that this application provides users with corresponding operation entrances for them to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered.

[0033] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0035] Embodiment 1

[0036] The present invention is described below in conjunction with preferred implementation steps. Figure 1 is a flowchart of a method for controlling a network request according to Embodiment 1 of the present application. Figure 1 As shown, the method comprises the following steps:

[0037] Step S101: receiving a target request and determining a target business function to be realized by the target request.

[0038] The method for controlling network requests provided in the first embodiment of the present application can be applied to the target application service of an airline. The target application service is responsible for controlling the network requests initiated by users in the network traffic received by the airline, sending the network requests to the business system that processes the requests, and processing the network requests through the business system. The business systems involved in the first embodiment include but are not limited to an open order management system, a host system, and a verification system, wherein the open order management system refers to a business system that provides external agent sales systems with business functions such as reservation sales, reservation management, reservation ticketing, and reservation changes. The verification system refers to a business system that verifies the processing results of the open order management system for user requests in the network traffic. The host system refers to a business system that can correctly execute user requests, but some business functions in the host system are not open to the agent organization. The network request can be controlled through the target application service of the airline and forwarded to the corresponding business system.

[0039] In the first embodiment, the target request refers to a request initiated by a user in the network traffic received by the airline, including but not limited to a reservation request, a ticket purchase request, a fare inquiry request, etc. The target business function refers to a business function that needs to be implemented by the target request. For example, the business function that needs to be implemented by the fare inquiry request includes calculating the fare of a certain flight segment according to the information selected by the user in the request, and returning the calculation result to the user.

[0040] In order to meet the target request initiated by the user, it is necessary to determine the target business function that the user needs to implement based on the request content in the target request, and then send the target request to the corresponding target business system according to the target business function. The target business system processes the target request, obtains the processing result, and returns the processing result to the user corresponding to the target request to complete the user's target request.

[0041] Step S102, reading control information in the memory, wherein the control information at least includes: first switch information and target rules, the first switch information is used to indicate whether to control the target request, and the target rule is used to determine the target business system for processing the target request.

[0042] In the first embodiment of the present invention, the control of the target request initiated by the user can be divided into at least two levels: the first level, namely the first switch information mentioned above, is used to determine whether to control the target request. The scope of control includes service call class requests and message class requests. The first switch information includes a first state and a second state. The first switch information is in the first state, indicating that the target request is processed, and the first switch information is in the second state, indicating that the target request is not processed. At the same time, this switch also assumes the function of switching back to the host system for service call class requests and message class requests; the second level, the production rules and verification rules, namely the target rules mentioned above, the production rules refer to the rules for sending the target request to the open order management system, and the verification rules refer to the rules for sending the target request to the verification system. The production rules and verification rules can be configured according to different business functions. For example, for the production rules of the order creation function, passenger-related rules such as whether to process requests from multiple people or team requests can be configured; flight-related rules such as the flight range and airline range to be processed can also be configured; at the same time, the type of service items to be processed, the number of requests to be processed per day, etc. can be set.

[0043] By obtaining the control information stored in the memory, the received target request can be controlled according to the first switch information and target rules in the control information, for example, the target request can be sent to an open order management system, or to a verification system, or the target request can be directly discarded.

[0044] Step S103, when the first switch information indicates to control the target request, the first rule is matched with the target request to obtain a matching result, wherein the first rule is a rule corresponding to the target business function in the target rule.

[0045] In the first embodiment, it is necessary to match the first rule corresponding to the target business function in the target rule with the request content in the target request to obtain a matching result, so as to control the target request according to the matching result.

[0046] It should be noted that after receiving the target request, the target application service is in the startup state, and the memory in the target application service already has all the target rules that the target application service needs to use. For each business function of the target application service, there is its own control module, and the control information of each business function is stored in the control module.

[0047] Step S104, determining the target business system according to the matching result, and controlling the target request to be forwarded to the target business system.

[0048] In the first embodiment of the present invention, in order to complete the target request initiated by the user, it is necessary to determine the destination business system of the target request based on the matching result, that is, the above-mentioned target business system, send the target request to the target business system, process the target request initiated by the user through the target business system, obtain the processing result and return it to the user.

[0049] In summary, the network request control method provided in the first embodiment of the present application receives a target request and determines the target business function implemented by the target request; reads the control information in the memory, wherein the control information at least includes: first switch information and a target rule, the first switch information is used to indicate whether to control the target request, and the target rule is used to determine the target business system for processing the target request; when the first switch information indicates to control the target request, the first rule and the target request are matched to obtain a matching result, wherein the first rule is the rule corresponding to the target business function in the target rule; the target business system is determined based on the matching result, and the target request is controlled to be forwarded to the target business system, which solves the problem in the related technology that when an airline processes user requests through a business system, due to high access volume and uninterrupted access, user order information becomes abnormal during business system maintenance, and manual processing is required to compensate, resulting in low work efficiency of the airline. By defining the control information to include the first switch information and the commissioning rules, when the business system is put into production, the target request can be matched with the commissioning rules according to the control information, and the target request can be processed according to the matching result, thereby realizing the control of the requests in the network traffic of the switched business system, improving the stability of the business system when it is put into production, achieving the effect of ensuring the stability of the business system switching, avoiding the problem of user data errors caused by the switching of the business system, resulting in reduced work efficiency of airline staff, and further achieving the effect of improving the work efficiency of airline staff.

[0050] Optionally, in the network request control method provided in Example 1 of the present application, the above-mentioned control information includes: second switch information, the second switch information represents a business system in a production state, and before matching the first rule and the target request to obtain a matching result, the above-mentioned method also includes: determining the business system in a production state based on the second switch information, wherein the business system includes at least: a first business system and a second business system, and the businesses executed by the first business system and the second business system are different; determining the target rule based on the rule corresponding to the business system in the production state.

[0051] In the first embodiment, the control information may further include second switch information, which represents a service system in production state, so that the target service system to which the target request is forwarded can be determined according to the first switch information, the second switch information and the target rule.

[0052] In an optional embodiment, it can be determined based on the state corresponding to the second switch information whether the business system in production includes an open order management system (i.e., the first business system mentioned above) and a verification system (i.e., the second business system mentioned above), wherein the open order management system refers to a business system that provides external agent sales systems with business functions such as reservation sales, reservation management, reservation ticketing, and reservation changes, and the verification system refers to a business system that verifies the processing results of the open order management system on user requests in network traffic.

[0053] The second switch information may include four states: in the first state, both the open order management system and the request verification system are in a non-production state (i.e., the production state mentioned above), i.e., the open order management system is not put into production, and the target request is not verified; in the second state, the open order management system is in a production state, and the verification system is in a non-production state, i.e., the open order management system is put into production, and the target request is not verified; in the third state, the open order management system is in a non-production state, and the verification system is in a production state, the open order management system is not put into production, and the target request is verified; in the fourth state, both the open order management system and the request verification system are in a production state, the open order management system is put into production, and the target request is verified. The first state is the switchback state of the third state, and the second state is the switchback state of the fourth state. The switchback state indicates that the verification system needs to be temporarily shut down due to problems in the verification system.

[0054] After determining the second switch information, the target business system for forwarding the target request can be determined. For example, if the second switch information is in the first state, the target request is discarded and not forwarded; if the second switch information is in the second state, it is determined that the target request can be forwarded to the open order management system; if the second switch information is in the third state, it is determined that the target request can be forwarded to the verification system; if the second switch information is in the fourth state, it is determined that the target request can be forwarded to the open order management system and the verification system.

[0055] After determining the forwarding destination business system of the target request, the target rule is determined according to the business system included in the destination business system. For example, if the destination business system includes an open order management system, the rules corresponding to the open order management system are determined as the target rules; if the destination business system includes a verification system, the rules corresponding to the verification system are determined as the target rules; if the destination business system includes an open order management system and a verification system, the rules corresponding to the open order management system and the rules corresponding to the verification system are determined as the target rules.

[0056] Optionally, in the control method of network requests provided in Example 1 of the present application, the first rule and the target request are matched to obtain a matching result, including: determining the first rule in the target rule according to the target business function; matching the field information of each field in the target request with the first rule respectively to obtain a matched first rule; generating a matching result based on the matched first rule, wherein the matching result includes the first rule that matches the field information of the target request.

[0057] In the first embodiment, in order to determine the target business system of the target request, the target rule in the memory may be matched with the field information of each field in the target request, and the target business system of the target request may be determined according to the matching result.

[0058] In an optional embodiment, the field value of each field in the target request is matched with the field value of the target rule one by one, and all the rules in the target rule are matched one by one. If a field in the target request hits a rule in the target rule, it is determined that the target request needs to be forwarded. It should be noted that it is necessary to count all the rules hit by the target request, and record all the rules hit by the target request in the matching result. If the target request does not hit any target rule, the matching result can be made empty.

[0059] It should be noted that if the target rule contains rules related to the number of units put into production, the target requests that hit the target rule are counted.

[0060] Optionally, in the network request control method provided in Example 1 of the present application, the target business system is determined based on the matching result, and the target request is controlled to be forwarded to the target business system, including: when the matching result includes a rule corresponding to the first business system and the second switch information indicates that the first business system is in a production state, the first business system is used as the target business system, and the target request is sent to the first business system; when the matching result includes a rule corresponding to the second business system and the second switch information indicates that the second business system is in a production state, the second business system is used as the target business system, and the target request is sent to the second business system.

[0061] In the first embodiment, in order to correctly forward the target request, it is necessary to determine the destination business system of the target request according to the matching result, so as to forward the target request.

[0062] In an optional embodiment, if the matching rule is empty, the target request is discarded and the target request is not processed; if the matching result includes a hit target rule, and the hit target rule belongs to the rule corresponding to the first business system, and it is determined according to the second switch information that the first business system is in production, the first business system is used as the target business system, and the target request is sent to the target first business system; if the matching result includes a hit target rule, and the hit target rule belongs to the rule corresponding to the second business system, and it is determined according to the second switch information that the second business system is in production, the second business system is used as the target business system, and the target request is sent to the target second business system.

[0063] Exemplarily, if the second switch information is in the fourth state, and the matching result contains the second rule and the third rule, and the second rule and the third rule belong to the rules corresponding to the second business system, the second business system is used as the target business system, and the target request is sent to the second business system; if the second switch information is in the fourth state, and the matching result contains the second rule and the third rule, and the second rule belongs to the rules corresponding to the first business system, and the third rule belongs to the rules corresponding to the second business system, the first business system and the second business system are used as the target business systems at the same time, and the target request is sent to the first business system and the second business system.

[0064] Optionally, in the network request control method provided in Example 1 of the present application, the above-mentioned target request is sent to at least one of the following business systems: a first business system and a third business system. Before matching the first rule and the target request to obtain a matching result, the above-mentioned method also includes: when the first switch information indicates that the target request is not to be controlled, or the first switch information indicates that the target request is to be controlled, and the second switch information indicates that the second business system is not in a production state, sending the target request to the third business system; when the first switch information indicates that the target request is to be controlled, and the second switch information indicates that the second business system is in a production state, and the matching result does not include a rule corresponding to the first business system, taking the third business system as the target business system and sending the target request to the third business system.

[0065] In the first embodiment of the present invention, in order to ensure that the target request initiated by the user is processed and not missed, the target request needs to be sent to at least the open order management system (i.e., the first business system mentioned above) and the host system (i.e., the third business system mentioned above), that is, if the target request is not sent to the first business system, the target request is sent to the third business system.

[0066] In an optional embodiment, the case where the target request is not sent to the first business system includes the following: the first switch information indicates that the target request is not controlled; the first switch information indicates that the target request is controlled, and the second switch information indicates that the second business system is not in production; the first switch information indicates that the target request is controlled, and the second switch information indicates that the second business system is in production, and the target rule hit included in the matching result does not belong to the rule corresponding to the first business system. In the above case, the target request is sent to the third business system.

[0067] Optionally, in the control method for network requests provided in Example 1 of the present application, before reading the control information in the memory, the method further includes: receiving a target message, wherein the target message is a message for processing a target rule; verifying the field information of the target rule in the target message to obtain a verification result; when the verification result is that the verification passes, converting the target rule in the target message into a preset format to obtain a processed target rule; loading the processed target rule into the memory, and storing it in the target database.

[0068] In the first embodiment, in order to control network requests according to target rules, the target rules can be determined according to the received target message, loaded into the memory, and stored in the target database, so that when the target request is received later, the target rules in the memory are used for matching.

[0069] In an optional embodiment, the received target rules may be checked. For each received target rule, if the business field input in the target rule does not comply with the preset rule (for example, the specific value of a business field exceeds the range, or a business field string does not belong to the string included in the preset string set, or a business field does not belong to the field involved in the production business function, etc.), the target rule is rejected and not integrated with the existing business functions and rules.

[0070] Then, the target rules that have passed the verification are integrated into the database, that is, the above-mentioned storage is in the target database, where the target database can be a Redis database. It should be noted that in addition to processing the target rules according to the received target message, the existing target rules can also be modified, deleted, and queried. For modified or deleted target rules, they should be integrated with the existing rules in the target database and rewritten into the target database. The target database should contain a complete set of rules that have been put into use, so that when the business or service is restarted, the complete range of rules can still be read.

[0071] Optionally, in the network request control method provided in Example 1 of the present application, before receiving the target message, the method further includes: for each business system, determining the business function of the business system based on the business requirements of the business system; configuring the processing scope of each business function, configuring the user of each business function, and configuring the processing rules of each business function to obtain the target rules; and generating the target message according to the target rules.

[0072] In this first embodiment, in order to control user requests in network traffic, target rules for forwarding target requests can be formulated according to the characteristics of the business functions of the business system, thereby generating target messages according to the target rules, and setting a method for filtering network requests according to the target messages, thereby achieving the purpose of controlling network requests.

[0073] In an optional embodiment, the business functions used by each business system in the production process and the users who are ready to use the business functions can be extracted from the business requirements of each business system according to the functional characteristics of the open order management system. Exemplarily, the business functions put into production by the first system and the users who use each business function can be determined according to the business requirements of the open order management system (i.e., the first system mentioned above). In addition, it is also possible to configure multiple users for each business function, configure the details of the network request for the business function, or configure the number of requests for each business function.

[0074] Before going into production, the production personnel are required to confirm the business functions and processing scope rules for the current production. After confirmation, the processing scope of each business function, the users of each business function, and the processing rules of each business function are simply sorted out to obtain the above-mentioned target rules. Finally, the target rules are converted according to the format of the message data to generate the above-mentioned target message.

[0075] Optionally, in the first embodiment, the network request control method of the present application can be applied to a target application service, and the structure of the target application service can be as follows: Figure 2 As shown, the target application service includes a rule input module 201 , a rule management module 202 , a rule publishing module 203 , a rule receiving module 204 and a request filtering module 205 .

[0076] The rule input module 201 is a module that manages the input of production rules. According to the business requirements of the business functions of the open order management system, the business functions that can be controlled during production and the users who are ready to use the business functions during production are extracted. In the rule input module 201, multiple users can be configured for a business function, the details of the business function request can be configured, and the number of requests processed by a business function can also be configured. Before production, the production personnel confirm the functions and processing scope rules for the current production, and input them into the rule input module 201. The rule input module 201 obtains the input information and performs simple sorting, converts the input into a target message and sends it to the rule management module 202.

[0077] The rule management module 202 is a module that manages and stores the target rules (including production rules and verification rules) of each business function. The rule management module 202 verifies the received target message, and gives an error reply prompt for the input that is not within the scope of the business function. For the target message that can be processed within the scope of the business function, it extracts the information related to the production business function and processing scope in the target message, organizes it into a unified format of target rules, and stores it in the target database. The rule management module 202 can also implement operations such as adding, deleting, and modifying target rules, and provide query services for existing target rules. During production, operators can query existing target rules, delete unnecessary target rules, modify existing target rules, or add new target rules.

[0078] The rule publishing module 203 is a real-time synchronization module for modifying target rules. After the staff adds, modifies and deletes the target rules, and after the rule management module 202 updates the business function rules in the database, the rule publishing module 203 organizes the operations performed by the rule management module 202 into messages that can be processed by the rule receiving module 204 and publishes them to a specified location (e.g., memory).

[0079] The rule receiving module 204 manages the received target rules, including two functions: actively loading the target rules at startup, receiving the target rule update message when the target rules are modified, and modifying the target rules in the memory. The rule receiving module 204 is embedded in the open order management system, and reads the set target rules for writing when the application starts; when receiving the message of adding, deleting, and modifying the target rules, it processes and verifies the received target messages, receives the target messages applicable to the current system, and discards the target messages not applicable to the current system; and processes the target rules already in the open order management system according to the received target messages, including adding, deleting, and modifying operations.

[0080] The request filtering module 205 implements the judgment of the target rules. When a new business request is received, the request filtering module 205 determines whether the request is processed and verified by the open order management system. Exemplarily, when a new target request is received, the request filtering module 205 will identify the target business function of the target request, and match the production rules and verification rules corresponding to the target business function in the system, compare the target request with the production rules and verification rules already existing in the memory one by one, and determine whether the target request belongs to the business function and user that can be put into production according to the production rules and verification rules, and send the target request to the open order management system for processing. The part that has not been put into production after matching is forwarded to the host system for processing. The request that can be verified is determined according to the verification rules, and is sent to the verification system for verification while being processed.

[0081] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0082] Embodiment 2

[0083] The second embodiment of the present application also provides a control device for network requests. It should be noted that the control device for network requests in the second embodiment of the present application can be used to execute the control method for network requests provided in the first embodiment of the present application. The control device for network requests provided in the second embodiment of the present application is introduced below.

[0084] Figure 3 Schematic diagram of a control device for network requests according to Embodiment 2 of the present application. Figure 3 As shown, the device includes: a first receiving unit 301, a reading unit 302, a matching unit 303 and a first determining unit 304.

[0085] Specifically, the first receiving unit 301 is used to receive a target request and determine a target business function to be realized by the target request.

[0086] The reading unit 302 is used to read the control information in the memory, wherein the control information includes at least: first switch information and target rules, the first switch information is used to indicate whether to control the target request, and the target rule is used to determine the target business system for processing the target request.

[0087] The matching unit 303 is used to match the first rule with the target request to obtain a matching result when the first switch information indicates that the target request is to be controlled, wherein the first rule is a rule corresponding to the target business function in the target rule.

[0088] The first determination unit 304 is used to determine the target business system according to the matching result, and control the target request to be forwarded to the target business system.

[0089] The control device for network requests provided in the second embodiment of the present application receives the target request through the first receiving unit 301, and determines the target business function implemented by the target request; the reading unit 302 reads the control information in the memory, wherein the control information at least includes: first switch information and target rules, the first switch information is used to indicate whether to control the target request, and the target rule is used to determine the target business system for processing the target request; the matching unit 303 matches the first rule with the target request when the first switch information indicates to control the target request, and obtains a matching result, wherein the first rule is the rule corresponding to the target business function in the target rule; the first determining unit 304 determines the target business system based on the matching result, and controls the target request to be forwarded to the target business system, which solves the problem in the related art that when an airline processes user requests through a business system, due to high access volume and uninterrupted access, user order information becomes abnormal during business system maintenance, and manual processing is required to compensate, resulting in low work efficiency of the airline. By defining the control information to include the first switch information and the commissioning rules, when the business system is put into production, the target request can be matched with the commissioning rules according to the control information, and the target request can be processed according to the matching result, thereby realizing the control of the requests in the network traffic of the switched business system, improving the stability of the business system when it is put into production, achieving the effect of ensuring the stability of the business system switching, avoiding the problem of user data errors caused by the switching of the business system, resulting in reduced work efficiency of airline staff, and further achieving the effect of improving the work efficiency of airline staff.

[0090] Optionally, in the control device for network requests provided in Example 2 of the present application, the above-mentioned control information includes: second switch information, the second switch information represents a business system in a production state, and the above-mentioned device also includes: a second determination unit, used to determine the business system in a production state according to the second switch information before matching the first rule and the target request to obtain a matching result, wherein the business system includes at least: a first business system and a second business system, and the businesses executed by the first business system and the second business system are different; a third determination unit, used to determine the target rule according to the rule corresponding to the business system in a production state.

[0091] Optionally, in the control device for network requests provided in Example 2 of the present application, the above-mentioned matching unit 303 includes: a determination subunit, used to determine a first rule in the target rule based on the target business function; a matching subunit, used to match the field information of each field in the target request with the first rule respectively to obtain a matched first rule; and a generation subunit, used to generate a matching result based on the matched first rule, wherein the matching result includes the first rule that matches the field information of the target request.

[0092] Optionally, in the control device for network requests provided in Example 2 of the present application, the above-mentioned first determination unit 304 includes: a first sending subunit, used to take the first business system as the target business system and send the target request to the first business system when the matching result includes a rule corresponding to the first business system and the second switch information indicates that the first business system is in a production state; a second sending subunit, used to take the second business system as the target business system and send the target request to the second business system when the matching result includes a rule corresponding to the second business system and the second switch information indicates that the second business system is in a production state.

[0093] Optionally, in the control device for network requests provided in Example 2 of the present application, the above-mentioned target request is sent to at least one of the following business systems: a first business system and a third business system, and the above-mentioned device also includes: a first sending unit, used to send the target request to the third business system when the first switch information indicates that the target request is not to be controlled, or the first switch information indicates that the target request is to be controlled and the second switch information indicates that the second business system is not in a production state, before matching the first rule and the target request to obtain a matching result; a second sending unit, used to take the third business system as the target business system and send the target request to the third business system when the first switch information indicates that the target request is to be controlled and the second switch information indicates that the second business system is in a production state, and the matching result does not include a rule corresponding to the first business system.

[0094] Optionally, in the control device for network requests provided in Example 2 of the present application, the above-mentioned device also includes: a second receiving unit, used to receive a target message before reading the control information in the memory, wherein the target message is a message for processing the target rule; a verification unit, used to verify the field information of the target rule in the target message to obtain a verification result; a processing unit, used to convert the target rule in the target message into a preset format to obtain a processed target rule when the verification result is that the verification passes; and a loading unit, used to load the processed target rule into the memory and store it in the target database.

[0095] Optionally, in the control device for network requests provided in Example 2 of the present application, the above-mentioned device also includes: a fourth determination unit, used to determine the business function of the business system for each business system based on the business requirements of the business system before receiving the target message; a configuration unit, used to configure the processing scope of each business function, configure the user of each business function, and configure the processing rules of each business function to obtain the target rules; and a generation unit, used to generate the target message based on the target rules.

[0096] The control device for network requests includes a processor and a memory. The above-mentioned first receiving unit 301, reading unit 302, matching unit 303 and first determination unit 304 are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to implement corresponding functions.

[0097] The processor contains a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the efficiency of airline staff can be improved by adjusting kernel parameters.

[0098] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0099] Embodiment 3 of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, a method for controlling a network request is implemented.

[0100] Embodiment 4 of the present invention provides a processor, and the processor is used to run a program, wherein the control method of executing a network request is executed when the program is running.

[0101] like Figure 4As shown, embodiment 5 of the present invention provides an electronic device, the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program: receiving a target request and determining a target business function implemented by the target request; reading control information in the memory, wherein the control information includes at least: first switch information and a target rule, the first switch information is used to indicate whether to control the target request, and the target rule is used to determine a target business system for processing the target request; when the first switch information indicates that the target request is to be controlled, matching the first rule with the target request to obtain a matching result, wherein the first rule is a rule corresponding to the target business function in the target rule; determining the target business system based on the matching result, and controlling the target request to be forwarded to the target business system.

[0102] When the processor executes the program, the following steps are also implemented: the above-mentioned control information includes: second switch information, the second switch information represents a business system in a production state, and before matching the first rule and the target request to obtain a matching result, the above-mentioned method also includes: determining the business system in a production state based on the second switch information, wherein the business system includes at least: a first business system and a second business system, and the businesses executed by the first business system and the second business system are different; determining the target rule based on the rule corresponding to the business system in a production state.

[0103] When the processor executes the program, the following steps are also implemented: matching the first rule with the target request to obtain a matching result, including: determining the first rule in the target rule based on the target business function; matching the field information of each field in the target request with the first rule respectively to obtain a matched first rule; generating a matching result based on the matched first rule, wherein the matching result includes the first rule that matches the field information of the target request.

[0104] When the processor executes the program, the following steps are also implemented: determining the target business system based on the matching result, and controlling the target request to be forwarded to the target business system, including: when the matching result contains a rule corresponding to the first business system and the second switch information indicates that the first business system is in a production state, the first business system is used as the target business system and the target request is sent to the first business system; when the matching result contains a rule corresponding to the second business system and the second switch information indicates that the second business system is in a production state, the second business system is used as the target business system and the target request is sent to the second business system.

[0105] When the processor executes the program, the following steps are also implemented: the above-mentioned target request is sent to at least one of the following business systems: the first business system and the third business system. Before matching the first rule and the target request to obtain a matching result, the above-mentioned method also includes: when the first switch information indicates that the target request is not to be controlled, or the first switch information indicates that the target request is to be controlled, and the second switch information indicates that the second business system is not in a production state, the target request is sent to the third business system; when the first switch information indicates that the target request is to be controlled, and the second switch information indicates that the second business system is in a production state, and the matching result does not contain a rule corresponding to the first business system, the third business system is used as the target business system, and the target request is sent to the third business system.

[0106] When the processor executes the program, the following steps are also implemented: before reading the control information in the memory, the above method also includes: receiving a target message, wherein the target message is a message for processing a target rule; verifying the field information of the target rule in the target message to obtain a verification result; when the verification result is that the verification passes, converting the target rule in the target message into a preset format to obtain a processed target rule; loading the processed target rule into the memory, and storing it in the target database.

[0107] When the processor executes the program, the following steps are also implemented: before receiving the target message, the above method also includes: for each business system, determining the business function of the business system based on the business needs of the business system; configuring the processing scope of each business function, configuring the user of each business function, and configuring the processing rules of each business function to obtain the target rules; generating the target message according to the target rules.

[0108] The devices in this article can be servers, PCs, PADs, mobile phones, etc.

[0109] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: receiving a target request and determining a target business function implemented by the target request; reading control information in a memory, wherein the control information includes at least: first switch information and a target rule, wherein the first switch information is used to indicate whether to control the target request, and the target rule is used to determine a target business system for processing the target request; when the first switch information indicates that the target request is to be controlled, matching the first rule with the target request to obtain a matching result, wherein the first rule is a rule corresponding to the target business function in the target rule; determining the target business system based on the matching result, and controlling the target request to be forwarded to the target business system.

[0110] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: the above-mentioned control information includes: second switch information, the second switch information represents a business system in a production state, before matching the first rule and the target request to obtain a matching result, the above-mentioned method also includes: determining the business system in a production state based on the second switch information, wherein the business system includes at least: a first business system and a second business system, and the businesses executed by the first business system and the second business system are different; determining the target rule based on the rule corresponding to the business system in a production state.

[0111] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: matching the first rule with the target request to obtain a matching result, including: determining the first rule in the target rule according to the target business function; matching the field information of each field in the target request with the first rule respectively to obtain a matched first rule; generating a matching result based on the matched first rule, wherein the matching result includes the first rule that matches the field information of the target request.

[0112] When executed on a data processing device, it is also suitable for executing a program that initializes the following method steps: determining a target business system based on a matching result, and controlling the target request to be forwarded to the target business system, including: when the matching result contains a rule corresponding to the first business system and the second switch information indicates that the first business system is in a production state, the first business system is used as the target business system and the target request is sent to the first business system; when the matching result contains a rule corresponding to the second business system and the second switch information indicates that the second business system is in a production state, the second business system is used as the target business system and the target request is sent to the second business system.

[0113] When executed on a data processing device, it is also suitable for executing a program initialized with the following method steps: the above-mentioned target request is sent to at least one of the following business systems: the first business system and the third business system. Before matching the first rule and the target request to obtain a matching result, the above-mentioned method also includes: when the first switch information indicates that the target request is not to be controlled, or the first switch information indicates that the target request is to be controlled, and the second switch information indicates that the second business system is not in a production state, the target request is sent to the third business system; when the first switch information indicates that the target request is to be controlled, and the second switch information indicates that the second business system is in a production state, and the matching result does not contain a rule corresponding to the first business system, the third business system is used as the target business system, and the target request is sent to the third business system.

[0114] When executed on a data processing device, it is also suitable for executing a program initialized with the following method steps: before reading the control information in the memory, the above method also includes: receiving a target message, wherein the target message is a message for processing a target rule; verifying the field information of the target rule in the target message to obtain a verification result; when the verification result is that the verification passes, converting the target rule in the target message into a preset format to obtain a processed target rule; loading the processed target rule into the memory, and storing it in the target database.

[0115] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: before receiving the target message, the above method also includes: for each business system, determining the business function of the business system according to the business needs of the business system; configuring the processing scope of each business function, configuring the user of each business function, and configuring the processing rules of each business function to obtain the target rules; generating the target message according to the target rules.

[0116] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0117] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0118] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0119] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0120] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0121] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0122] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0123] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0124] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0125] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for controlling a network request, characterized in that: include: Receive a target request and determine a target business function to be implemented by the target request; Reading control information in the memory, wherein the control information at least includes: first switch information and a target rule, wherein the first switch information is used to indicate whether to control the target request, and the target rule is used to determine a target business system for processing the target request; In a case where the first switch information indicates that the target request is to be controlled, matching a first rule with the target request to obtain a matching result, wherein the first rule is a rule corresponding to the target service function in the target rule; The target business system is determined according to the matching result, and the target request is controlled to be forwarded to the target business system.

2. The method according to claim 1, characterized in that The control information includes: second switch information, the second switch information represents a business system in a production state, and before matching the first rule with the target request to obtain a matching result, the method further includes: Determine a business system in production state according to the second switch information, wherein the business system includes at least: a first business system and a second business system, and the first business system and the second business system execute different businesses; The target rule is determined according to the rule corresponding to the business system in production state.

3. The method according to claim 2, characterized in that Matching the first rule with the target request to obtain a matching result, including: Determining the first rule in the target rules according to the target business function; Matching the field information of each field in the target request with the first rule respectively to obtain a matching first rule; The matching result is generated according to the matching first rule, wherein the matching result includes the first rule that matches the field information of the target request.

4. The method according to claim 2, characterized in that: Determining the target business system according to the matching result, and controlling the target request to be forwarded to the target business system, including: When the matching result includes a rule corresponding to the first business system and the second switch information indicates that the first business system is in production, the first business system is used as the target business system, and the target request is sent to the first business system; When the matching result includes a rule corresponding to the second business system and the second switch information indicates that the second business system is in production, the second business system is used as the target business system, and the target request is sent to the second business system.

5. The method according to claim 4, characterized in that The target request is sent to at least one of the following business systems: the first business system and the third business system. Before matching the first rule with the target request to obtain a matching result, the method further includes: When the first switch information indicates that the target request is not to be controlled, or when the first switch information indicates that the target request is to be controlled and the second switch information indicates that the second business system is not in production status, sending the target request to the third business system; When the first switch information indicates that the target request is to be controlled, and the second switch information indicates that the second business system is in production status, and the matching result does not include the rule corresponding to the first business system, the third business system is used as the target business system, and the target request is sent to the third business system.

6. The method according to claim 1, characterized in that Before reading the control information in the memory, the method further includes: receiving a target message, wherein the target message is a message for processing the target rule; Verifying the field information of the target rule in the target message to obtain a verification result; If the verification result is that the verification is passed, converting the target rule in the target message into a preset format to obtain a processed target rule; The processed target rules are loaded into the memory and stored in the target database.

7. The method according to claim 6, characterized in that Before receiving the target message, the method further includes: For each business system, determine the business function of the business system according to the business requirements of the business system; Configure the processing scope of each business function, configure the user of each business function, and configure the processing rule of each business function to obtain the target rule; The target message is generated according to the target rule.

8. A control device for network requests, characterized in that: include: A first receiving unit, configured to receive a target request and determine a target business function to be implemented by the target request; A reading unit, configured to read control information in a memory, wherein the control information at least includes: first switch information and a target rule, wherein the first switch information is used to indicate whether to control the target request, and the target rule is used to determine a target business system for processing the target request; a matching unit, configured to match a first rule with the target request to obtain a matching result when the first switch information indicates that the target request is to be controlled, wherein the first rule is a rule corresponding to the target business function in the target rule; The first determination unit is used to determine the target business system according to the matching result, and control the target request to be forwarded to the target business system.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes stored computer instructions, wherein when the computer instructions are executed by a processor, the method for controlling a network request according to any one of claims 1 to 7 is implemented.

10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the control method for network requests described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Flow control method and device, network equipment and storage medium

    CN110808919A

  • Service routing implementation method, device and system

    CN118233369A

  • Method and System for Accelerated Stream Processing

    US20090287628A1

  • Modifying system timers for optimizing mobile traffic management

    US20150023161A1