Consumption request processing method and device, equipment and medium

By intercepting consumption requests and determining the target service provider based on parameter information and matching mechanism, the problem that service routing in the existing technology cannot meet application requirements is solved, and flexible service routing and efficient consumption request processing are achieved.

CN120658783APending Publication Date: 2025-09-16INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510789778.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-13
Publication Date
2025-09-16

AI Technical Summary

Technical Problem

The existing remote procedure call service routing mechanism cannot perform service routing according to the application's own needs, resulting in insufficient flexibility.

Method used

By intercepting consumption requests, the parameter information and pre-configured parameter matching mechanism are used to determine whether the current service provider processes the request. If not, the target service provider is determined, and a target consumption request is constructed based on the current consumption request and sent to the target service provider for processing.

Benefits of technology

It implements demand-based, customizable service routing, improves the flexibility of consumer request processing, and reduces implementation costs without the need for invasive coding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120658783A_ABST
    Figure CN120658783A_ABST
Patent Text Reader

Abstract

The invention provides a consumption request processing method and device, equipment and a medium, relates to the technical field of computers, and can be applied to the field of financial science and technology. The method comprises the following steps: intercepting a current consumption request sent to a current service provider; judging whether the current consumption request is processed by the current service provider or not according to the parameter information in the current consumption request and a pre-configured parameter matching mechanism; if not, determining a target service provider for processing the current consumption request according to the parameter information and a parameter matching mechanism; and according to the attribute information of the target service provider, constructing a target consumption request on the basis of the current consumption request, and sending the target consumption request to the target service provider for processing. According to the invention, service routing can be carried out based on the requirements of the application, and the flexibility of service routing is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology and can be applied to the field of financial technology, and in particular to a consumption request processing method, apparatus, device and medium. Background Art

[0002] RPC (Remote Procedure Call) is a computer communication protocol that allows a program to call a service or method on another computer (or a different process on the same computer) without explicitly writing network communication code. It makes remote function calls look just like local calls, greatly simplifying the development of distributed systems.

[0003] The existing remote procedure call service routing mechanism is based on the load balancing mechanism of the service registry, which uses the load balancing mechanism to route consumer requests. However, this makes it impossible for applications to route services based on their own needs. Summary of the Invention

[0004] The present application provides a consumption request processing method, apparatus, device and medium to solve the problem in the prior art that applications cannot route services based on their own needs.

[0005] In a first aspect, the present application provides a consumption request processing method, comprising:

[0006] Intercept the current consumption request sent to the current service provider;

[0007] Determining whether the current consumption request is processed by the current service provider based on parameter information in the current consumption request and a pre-configured parameter matching mechanism;

[0008] If not, determining the target service provider for processing the current consumption request based on the parameter information and the parameter matching mechanism;

[0009] According to the attribute information of the target service provider, a target consumption request is constructed on the basis of the current consumption request, and the target consumption request is sent to the target service provider for processing.

[0010] In a second aspect, the present application provides a consumption request processing device, comprising:

[0011] The interception module is used to intercept the current consumption request sent to the current service provider;

[0012] a first determining module, configured to determine whether the current consumption request is processed by the current service provider based on parameter information in the current consumption request and a pre-configured parameter matching mechanism;

[0013] a target service provider determining module, configured to determine a target service provider for processing the current consumption request based on the parameter information and a parameter matching mechanism when the first determining module determines that the target service provider is not.

[0014] The target consumption request construction module is used to construct a target consumption request based on the current consumption request according to the attribute information of the target service provider, and send the target consumption request to the target service provider for processing.

[0015] In a third aspect, the present application also provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the consumption request processing method as described in any one of the embodiments of the present application is implemented.

[0016] In a fourth aspect, the present application further provides a computer-readable storage medium on which a computer program is stored, which, when executed by a processor, implements the consumption request processing method as described in any one of the embodiments of the present application.

[0017] In a fifth aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the consumption request processing method as described in any one of the embodiments of the present application.

[0018] The consumer request processing method, apparatus, device, and medium provided in this application intercept the current consumer request and, based on its parameter information and parameter matching mechanism, determine whether the current consumer request is processed by the current service provider. If the judgment is not positive, the target service provider for processing the current consumer request can be further determined based on the parameter information and parameter matching mechanism. The target consumer request is then constructed based on the current consumer request and sent to the target service provider for processing. In this way, the service provider's own attributes can be combined with the parameters of the consumer request to achieve demand-based, customizable service routing, thereby improving the flexibility of consumer request processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.

[0020] Figure 1 A flowchart of a consumption request processing method provided in an embodiment of the present application;

[0021] Figure 2 A flowchart of another consumption request processing method provided in an embodiment of the present application;

[0022] Figure 3 A flowchart of another consumption request processing method provided in an embodiment of the present application;

[0023] Figure 4 A flowchart of another consumption request processing method provided in an embodiment of the present application;

[0024] Figure 5 A schematic diagram of the structure of a consumption request processing device provided in an embodiment of the present application;

[0025] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0026] The above drawings illustrate specific embodiments of the present application, which will be described in more detail below. These drawings and the textual description are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments. DETAILED DESCRIPTION

[0027] The present application will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are intended only to illustrate the present application and are not intended to limit the present application. It should also be noted that, for ease of description, the accompanying drawings only illustrate portions of the present application, not all of the structures.

[0028] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance. The acquisition, storage, use, processing, etc. of data in the technical solution of this application comply with the relevant provisions of national laws and regulations. It should be noted that in the embodiments of this application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of the implementation of the technical solution of this application, but it does not mean that the applicant has or must use the relevant content of the solution.

[0029] Figure 1A flowchart of a consumption request processing method provided in an embodiment of the present application. This embodiment can be applied to processing service consumption requests to achieve routing according to demand, and can be applied to the field of financial technology, such as performing grayscale routing services based on the combination logic of branch information or charging enterprise number and other different dimensional information when customer service functions are launched. The method can be executed by a consumption request processing device, which can be implemented in software and / or hardware, and is preferably configured in an electronic device, such as a computer device or a server. Figure 1 As shown, the method specifically includes:

[0030] S101. Intercept a current consumption request sent to a current service provider.

[0031] S102: Based on the parameter information in the current consumption request and the pre-configured parameter matching mechanism, determine whether the current consumption request is processed by the current service provider. If not, execute S103.

[0032] S103: Determine the target service provider for processing the current consumption request based on the parameter information and the parameter matching mechanism.

[0033] S104: Construct a target consumption request based on the current consumption request according to the attribute information of the target service provider, and send the target consumption request to the target service provider for processing.

[0034] Specifically, when a service consumer initiates a service request, a current consumption request is generated and sent to the current service provider. For example, the current service may be a service or microservice that provides billing services, and the current consumption request may be a payment request. The current consumption request may specifically be a remote procedure call (RPC) request. The current service provider is a load balancing mechanism based on the service registry, and the service provider is determined by the service registry for the current consumption request.

[0035] Distributed service frameworks (such as Dubbo) can solve the remote procedure call problem between services in a microservices architecture. Therefore, for example, in this architecture, the filter feature (an extension mechanism) in Dubbo can be used to set up an interception device for the service provider, which intercepts the current consumption request received.

[0036] After interception, the system first determines whether the current consumption request is handled by the current service provider based on the parameter information in the current consumption request and a pre-configured parameter matching mechanism. The parameter information includes the service parameters of the request itself. For example, for a payment request, the service parameters may include information such as the payment item, payment amount, and billing recipient. The parameter matching mechanism is used to measure the mapping relationship between the consumption request and the service provider. For example, when an application is put into production, a grayscale release can be performed for specific payment items based on demand, and a grayscale list can be created. The grayscale list can record the mapping between the specified payment items and service providers. Therefore, based on the parameter information, the grayscale list can be queried to determine whether the current service provider matches the parameter information listed in the grayscale list. If so, the current consumption request is determined to be handled by the current service provider and the current consumption request is directly sent to the current service provider for processing. If not, the current consumption request is determined to be not handled by the current service provider. At this point, the parameter information and the parameter matching mechanism can be further used to determine the target service provider to handle the current consumption request. This means searching the grayscale list for the target service provider that matches the current consumption request.

[0037] After determining that the current consumption request is processed by the target service provider, the interception device will no longer pass the current consumption request downward, that is, it will no longer pass it to the current service provider for processing. Instead, it will construct a target consumption request based on the current consumption request according to the attribute information of the target service provider, and send the target consumption request to the target service provider for processing. Among them, the attribute information of the target service provider may include unique identification information such as the version number of the target service provider. The constructed target consumption request can retain the necessary context information such as the parameter information of the current consumption request and the service request input parameters, and add the attribute information of the target service provider. The target service provider receives the target consumption request and processes the request according to the context information carried in the request.

[0038] The technical solution of the embodiment of the present application intercepts the current consumption request, and based on its parameter information and parameter matching mechanism, determines whether the current consumption request is processed by the current service provider. When it is judged to be no, the target service provider that processes the current consumption request can be further determined based on the parameter information and parameter matching mechanism, and then the target consumption request is constructed based on the current consumption request, and the target consumption request is sent to the target service provider for processing. In this way, the attributes of the service provider itself and the parameters of the consumption request can be combined to realize demand-based and customizable service routing, thereby improving the flexibility of consumption request processing. At the same time, the technical solution of the embodiment of the present application does not require intrusive coding of the business logic of the actual service processing, and decouples the application business logic from the interception device. As a lightweight processing solution, it is configurable and ready to use, and the interception device can be online and offline at any time, which makes the implementation cost of the solution low and more flexible.

[0039] Figure 2 This is a flowchart of another consumption request processing method provided in an embodiment of the present application. Figure 2 As shown, the method includes the following steps:

[0040] S201. Intercept a current consumption request sent to a current service provider.

[0041] S202: Determine whether the current consumption request includes a processing tag, wherein the processing tag is used to mark whether the consumption request has been intercepted and processed. If not, execute S203; if so, execute S206.

[0042] S203: Based on the parameter information in the current consumption request and the pre-configured parameter matching mechanism, determine whether the current consumption request is processed by the current service provider. If not, execute S204; if so, execute S206.

[0043] S204: Determine the target service provider for processing the current consumption request based on the parameter information and the parameter matching mechanism.

[0044] S205: Construct a target consumption request based on the current consumption request according to the attribute information of the target service provider, and send the target consumption request to the target service provider for processing.

[0045] S206: Send the current consumption request to the current service provider for processing.

[0046] In an embodiment of the present application, a processing tag is added to identify whether a consumption request has been intercepted and processed. Specifically, after the current service provider's interceptor intercepts the current consumption request, it first determines whether the current consumption request includes a processing tag. If so, this indicates that the current consumption request has been intercepted and processed, and no further determination is required. The current service provider is determined to be the qualified service provider for processing the current consumption request. The current consumption request can then be directly sent to the current service provider for processing. If not, this indicates that the current consumption request has not been intercepted and processed by any other interception device. The current service provider's interception device then continues to determine whether the current consumption request is processed by the current service provider based on the parameter information in the current consumption request and a pre-configured parameter matching mechanism. If so, the current consumption request is directly sent to the current service provider for processing. If not, this indicates that the current service provider does not meet the requirements. The target service provider for processing the current consumption request is then determined based on the parameter information and the parameter matching mechanism. Based on the attribute information of the target service provider, a target consumption request is constructed based on the current consumption request and sent to the target service provider for processing.

[0047] Accordingly, based on the target service provider's attribute information, a target consumption request is constructed based on the current consumption request. Specifically, this includes: constructing the target consumption request based on the current consumption request based on the target service provider's attribute information, and adding a processing tag to the target consumption request. The target consumption request is first received by the target service provider's interception device, which determines that it contains the processing tag, indicating that the target consumption request has already been intercepted and processed. Therefore, no further determination is made, and the target consumption request is directly passed down for processing.

[0048] Therefore, the technical solution of the embodiment of the present application intercepts and processes the current consumption request, and determines the target service provider that processes the current consumption request based on the parameter information of the current consumption request and the pre-configured parameter matching mechanism. It can combine the attributes of the service provider itself with the parameters of the consumption request to achieve demand-based, customizable service routing, thereby improving the flexibility of consumption request processing. At the same time, by adding a processing tag to identify whether the consumption request has been intercepted and processed, it can avoid the interception device of each service provider from repeatedly judging and processing the request message after intercepting it, thereby improving the efficiency of message routing.

[0049] Figure 3 This is a flowchart of another consumption request processing method provided in an embodiment of the present application. Figure 3 As shown, the method includes the following steps:

[0050] S301. Intercept the current consumption request sent to the current service provider.

[0051] S302: Based on the parameter information in the current consumption request and the pre-configured parameter matching mechanism, determine whether the current consumption request is processed by the current service provider. If not, execute S303.

[0052] S303: Determine the target service provider for processing the current consumption request based on the parameter information and the parameter matching mechanism.

[0053] S304: Construct a target consumption request based on the current consumption request according to the attribute information of the target service provider, and send the target consumption request to the target service provider for processing.

[0054] S305: Obtain the current response message returned by the target service provider after processing the current consumption request.

[0055] S306: Construct a target response message for the current consumption request according to the current response message.

[0056] S307: Return the target response message to the service consumer that initiated the current consumption request.

[0057] The target service provider is the service provider that processes the current consumption request and belongs to the service provider. The interception device of the current service provider intercepts the current consumption request and constructs a new target consumption request, which belongs to the corresponding consumer. Therefore, after processing, the target service provider needs to return the generated current corresponding message to the interception device of the current service provider. At the same time, the current response message is the response corresponding to the target consumption request, not the response to the current consumption request. Therefore, the interception device of the current service provider also needs to construct the target response message of the current consumption request based on the current response message, and return the target response message to the service consumer who initiated the current consumption request. When the service consumer receives the target response message, the call link of the entire remote procedure call completes a business routing.

[0058] The technical solution of the embodiment of the present application intercepts the current consumption request, constructs a target consumption request based on the current consumption request, and sends the target consumption request to a target service provider that meets the requirements for processing. At the same time, after receiving the current response message from the target service provider, a target response message for the current consumption request is constructed and returned to the service consumer of the current consumption request. This achieves a complete business routing of the call link of the remote procedure call, realizes demand-based, customizable service routing, and improves the flexibility of consumption request processing.

[0059] Figure 4 This is a flowchart of another consumption request processing method provided in an embodiment of the present application. Figure 4 A schematic diagram showing the direction of the transaction link.

[0060] There are multiple service providers (4 are shown in the figure) that constitute a Service cluster. Based on the Filter feature in the Dubbo architecture, a filtering device is built for each service provider. When a consumer application sends a consumption request, it does not initially carry a label. Based on the load balancing mechanism, the consumption request is routed to any service provider (as shown in ① in the figure), and the filtering device of the service provider intercepts it and determines whether it contains a label. If there is no label, it is further determined whether it is processed by the current service provider, that is, whether the current service provider meets the requirements (as shown in ② in the figure), and the service provider that meets the requirements is determined, and then a new consumption request is constructed, and a label is added, and the new consumption request is sent to the service provider that meets the requirements for processing (as shown in ③ and ④ in the figure). In this way, the following technical effects can be achieved:

[0061] 1. The filtering device of this application is relatively lightweight and can be used immediately after configuration, and the device can be put online and offline at any time;

[0062] 2. The filtering device of the present application can combine the service provider's own attributes with the request parameters of the remote procedure call request to achieve customizable mapping between different service providers and business requests, and realize custom routing;

[0063] 3. To implement the technical solution of this application, there is no need to invasively code the business logic of actual service processing. Instead, based on the characteristics of Dubbo Filter, the application business logic and the interception device are decoupled.

[0064] Figure 5 This is a schematic diagram of the structure of the consumption request processing device provided in the embodiment of the present application. Figure 5 As shown, the consumption request processing device includes:

[0065] The interception module 510 is used to intercept the current consumption request sent to the current service provider;

[0066] A first determination module 520 is configured to determine whether the current consumption request is processed by the current service provider based on parameter information in the current consumption request and a pre-configured parameter matching mechanism;

[0067] a target service provider determining module 530, configured to determine a target service provider for processing the current consumption request based on the parameter information and a parameter matching mechanism when the first determining module determines that the target service provider is not.

[0068] The target consumption request construction module 540 is configured to construct a target consumption request based on the current consumption request according to the attribute information of the target service provider, and send the target consumption request to the target service provider for processing.

[0069] In some embodiments, the apparatus further comprises:

[0070] The first sending module is configured to send the current consumption request to the current service provider for processing when the first determining module 520 determines that the current consumption request is to be processed by the current service provider.

[0071] In some embodiments, the apparatus further comprises:

[0072] a second determination module configured to determine whether the current consumption request includes a processing tag before the first determination module 520 determines whether the current consumption request is processed by the current service provider based on the parameter information in the current consumption request and a pre-configured parameter matching mechanism, wherein the processing tag is used to indicate whether the consumption request has been intercepted and processed, and to process the request by the first determination module 520 if the processing tag is yes;

[0073] Accordingly, the target consumption request building module 540 is specifically configured to:

[0074] According to the attribute information of the target service provider, a target consumption request is constructed on the basis of the current consumption request, and the processing tag is added to the target consumption request.

[0075] In some embodiments, the apparatus further comprises:

[0076] The second sending module is configured to send the current consumption request to the current service provider for processing when the second judging module judges that the current consumption request includes the processing tag.

[0077] In some embodiments, the apparatus further comprises:

[0078] A response message acquisition module is used to obtain the current response message returned by the target service provider after processing the current consumption request;

[0079] A response message construction module, configured to construct a target response message for the current consumption request according to the current response message;

[0080] The response message returning module is used to return the target response message to the service consumer who initiated the current consumption request.

[0081] In some embodiments, the consumption request is a remote procedure call request.

[0082] The consumption request processing device provided in the embodiment of the present application can be used to execute the technical solution of the consumption request processing method in the above embodiment. Its implementation principle and technical effects are similar and will not be repeated here.

[0083] The information collected in this application is 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 the relevant data comply with the relevant laws, regulations and standards of the relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0084] It should be noted that it should be understood that the division of the various modules of the above device is merely a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. Moreover, these modules can all be implemented in the form of software called by processing elements; they can also all be implemented in the form of hardware; some modules can also be implemented in the form of processing elements calling software, and some modules can be implemented in the form of hardware. For example, the interception module 510 can be a separately established processing element, or it can be integrated into a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device to perform the functions of the above interception module 510. The implementation of other modules is similar. In addition, these modules can all or partly be integrated together, or they can be implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each of the above modules can be completed by the hardware integrated logic circuit in the processor element or by instructions in the form of software.

[0085] Figure 6 This is a schematic diagram of the structure of the electronic device provided in the embodiment of the present application. Figure 6 As shown, the electronic device may include: a transceiver 121 , a processor 122 , and a memory 123 .

[0086] The processor 122 executes the computer-executable instructions stored in the memory, so that the processor 122 implements the solutions in the above embodiments. The processor 122 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0087] The memory 123 is connected to the processor 122 via a system bus and communicates with the processor 122. The memory 123 is used to store computer program instructions.

[0088] The transceiver 121 may be used to obtain tasks to be executed and configuration information of the tasks to be executed.

[0089] The system bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, among others. The system bus can be divided into an address bus, a data bus, a control bus, and so on. For ease of illustration, the figure shows only one thick line, but this does not imply that there is only one bus or only one type of bus. Transceivers are used to enable communication between the database access device and other computers (e.g., clients, read-write libraries, and read-only libraries). Memory may include random access memory (RAM) and non-volatile memory.

[0090] The electronic device provided in the embodiment of the present application may be the terminal device of the above embodiment.

[0091] An embodiment of the present application further provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on a computer, the computer executes the technical solution of the consumption request processing method of the above embodiment.

[0092] An embodiment of the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium, and when at least one processor executes the computer program, it can implement the technical solution of the consumption request processing method in the above embodiment.

[0093] The computer program product, during implementation, may be written in one or more programming languages ​​or a combination thereof, for performing the operations of the present application, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0094] Note that the above are only preferred embodiments of the present application and the technical principles employed. Those skilled in the art will understand that the present application is not limited to the specific embodiments herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application has been described in more detail through the above embodiments, the present application is not limited to the above embodiments and may include many other equivalent embodiments without departing from the scope of the present application. The scope of the present application is determined by the scope of the appended claims.

Claims

1. A consumption request processing method, characterized in that: include: Intercept the current consumption request sent to the current service provider; Determining whether the current consumption request is processed by the current service provider based on parameter information in the current consumption request and a pre-configured parameter matching mechanism; If not, determining the target service provider for processing the current consumption request based on the parameter information and the parameter matching mechanism; According to the attribute information of the target service provider, a target consumption request is constructed on the basis of the current consumption request, and the target consumption request is sent to the target service provider for processing.

2. The method according to claim 1, characterized in that Also includes: If it is determined that the current consumption request is processed by the current service provider, the current consumption request is sent to the current service provider for processing.

3. The method according to claim 1, characterized in that Before determining whether the current consumption request is processed by the current service provider based on the parameter information in the current consumption request and a pre-configured parameter matching mechanism, the method further includes: Determining whether the current consumption request includes a processing tag, wherein the processing tag is used to mark whether the consumption request has been intercepted and processed; If not, executing the step of determining whether the current consumption request is processed by the current service provider based on the parameter information in the current consumption request and the pre-configured parameter matching mechanism; Accordingly, constructing a target consumption request based on the current consumption request according to the attribute information of the target service provider includes: According to the attribute information of the target service provider, a target consumption request is constructed on the basis of the current consumption request, and the processing tag is added to the target consumption request.

4. The method according to claim 3, characterized in that Also includes: If it is determined that the current consumption request includes the processing tag, the current consumption request is sent to the current service provider for processing.

5. The method according to claim 1, wherein Also includes: Obtaining the current response message returned by the target service provider after processing the current consumption request; Constructing a target response message for the current consumption request according to the current response message; The target response message is returned to the service consumer that initiated the current consumption request.

6. The method according to claim 1, wherein The consumption request is a remote procedure call request.

7. A consumption request processing device, characterized in that: include: The interception module is used to intercept the current consumption request sent to the current service provider; a first determining module, configured to determine whether the current consumption request is processed by the current service provider based on parameter information in the current consumption request and a pre-configured parameter matching mechanism; a target service provider determining module, configured to determine a target service provider for processing the current consumption request based on the parameter information and a parameter matching mechanism when the first determining module determines that the target service provider is not. The target consumption request construction module is used to construct a target consumption request based on the current consumption request according to the attribute information of the target service provider, and send the target consumption request to the target service provider for processing.

8. An electronic device, characterized in that: include: a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the consumption request processing method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the consumption request processing method according to any one of claims 1 to 6.

10. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the consumption request processing method according to any one of claims 1 to 6.