Service request processing method and device, equipment, medium and product

By deploying a centralized database in a distributed processing system and forwarding service requests between nodes, the problems of low processing efficiency and data consistency in scenarios with small requests are solved, and efficient and reliable service request processing is achieved.

CN120390036APending Publication Date: 2025-07-29AGRICULTURAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510632029.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-16
Publication Date
2025-07-29

AI Technical Summary

Technical Problem

In business scenarios with small request volume, the service request processing of distributed architecture is inefficient and data consistency management is complex, which is easy to cause data conflicts.

Method used

Deploy a centralized database at the business processing node, and select the lightest application cluster in the distributed processing system to handle business requests. If an exception is detected, it will be forwarded to other clusters to ensure data consistency and efficient processing.

Benefits of technology

Improves the efficiency of business request processing, reduces data management complexity, and maintains data consistency and system availability in case of failures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120390036A_ABST
    Figure CN120390036A_ABST
Patent Text Reader

Abstract

The invention discloses a service request processing method and device, equipment, a medium and a product. The method comprises the following steps: acquiring a target service request, sending the target service request to a first service processing node, and determining a first response result; the first response result is a data processing result of the first application cluster on a first centralized database according to the target service request; if it is determined that the first application cluster is abnormal according to the first response result, forwarding the target service request to a second application cluster to obtain a second response result; the second application cluster is an application cluster except the first application cluster in the first service processing node. According to the technical scheme, the problem of low service request processing efficiency in a service scene with a small request quantity is solved, and the service request processing efficiency is improved while the data consistency is ensured by deploying the centralized database at the service processing node.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and particularly to a method, device, equipment, medium and product for processing service requests. Background Art

[0002] Business systems in the financial field usually adopt a distributed architecture, where data is dispersed and stored in multiple nodes, and efficient network communication mechanisms are used to achieve collaborative work among nodes. The distributed architecture not only improves the overall performance of the business system but also ensures load balancing of data and full utilization of resources.

[0003] However, the distributed storage of data makes the data management of business systems more complex. Since data is scattered across multiple nodes, more refined synchronization and coordination mechanisms are required to ensure data consistency and integrity, which not only increases the maintenance difficulty of the business system but also easily leads to data conflicts. Summary of the Invention

[0004] The present invention provides a method, device, equipment, medium and product for processing service requests to solve the problem of low processing efficiency of service requests in service scenarios with a small number of requests. By deploying a centralized database at the service processing node, while ensuring data consistency, the processing efficiency of service requests is improved.

[0005] According to one aspect of the present invention, there is provided a method for processing service requests, which is executed by a distributed processing system. The distributed processing system includes at least two service processing nodes, and each service processing node includes at least two application clusters, and the application clusters in each service processing node are the same. The method includes:

[0006] Obtain a target service request, send the target service request to a first service processing node, and determine a first response result. The first response result is the data processing result of the first centralized database by the first application cluster according to the target service request. The first application cluster is determined based on the unprocessed task amounts of the application clusters in the first service processing node. The first centralized database is the centralized database matched to the first service processing node.

[0007] If it is determined according to the first response result that the first application cluster is abnormal, then forward the target service request to a second application cluster to obtain a second response result. The second application cluster is an application cluster other than the first application cluster in the first service processing node. The second response result is the data processing result of the first centralized database by the second application cluster according to the target service request.

[0008] According to another aspect of the present invention, there is provided a processing device for service requests. The device is configured in a distributed processing system, which includes at least two service processing nodes. Each service processing node includes at least two application clusters, and the application clusters in each service processing node are the same. The device includes:

[0009] A first response result determination module, configured to obtain a target service request, send the target service request to a first service processing node, and determine a first response result. The first response result is the data processing result of a first centralized database by the first application cluster according to the target service request. The first application cluster is determined based on the unprocessed task amounts of the application clusters in the first service processing node. The first centralized database is the centralized database matched to the first service processing node.

[0010] A second response result determination module, configured to, if it is determined according to the first response result that the first application cluster is abnormal, forward the target service request to a second application cluster to obtain a second response result. The second application cluster is an application cluster other than the first application cluster in the first service processing node. The second response result is the data processing result of the first centralized database by the second application cluster according to the target service request.

[0011] According to another aspect of the present invention, there is provided an electronic device, which includes:

[0012] At least one processor; and a memory communicatively connected to the at least one processor. Wherein, the memory stores a computer program executable by the at least one processor. When the computer program is executed by the at least one processor, the at least one processor is enabled to execute the service request processing method according to any embodiment of the present invention.

[0013] According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the service request processing method according to any embodiment of the present invention when executed.

[0014] According to another aspect of the present invention, there is provided a computer program product including a computer program, which implements the service request processing method according to any embodiment of the present invention when executed by a processor.

[0015] The technical solution of the embodiment of the present invention obtains a target service request, sends the target service request to a first service processing node, and determines a first response result; the first response result is the data processing result of the first centralized database by the first application cluster according to the target service request; the first application cluster is determined based on the unprocessed task amounts of the application clusters in the first service processing node; the first centralized database is the centralized database matched for the first service processing node; if it is determined according to the first response result that the first application cluster is abnormal, then the target service request is forwarded to a second application cluster to obtain a second response result; the second application cluster is an application cluster other than the first application cluster in the first service processing node; the second response result is the data processing result of the first centralized database by the second application cluster according to the target service request. This technical solution solves the problem of low processing efficiency of service requests in a service scenario with a small number of requests. By deploying a centralized database in the service processing node, while ensuring data consistency, the processing efficiency of service requests is improved.

[0016] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0018] Figure 1 is a flowchart of a method for processing a service request according to Embodiment 1 of the present invention;

[0019] Figure 2 is a flowchart of a method for processing a service request according to Embodiment 2 of the present invention;

[0020] Figure 3 is a schematic structural diagram of a device for processing a service request according to Embodiment 3 of the present invention;

[0021] Figure 4 is a schematic structural diagram of an electronic device for implementing the method for processing a service request of the embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0022] To enable those skilled in the art to better understand the solution of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of protection of the present invention.

[0023] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention 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 such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices. The acquisition, storage, use, processing, etc. of data in the technical solution of this application all comply with the relevant regulations of national laws and regulations.

[0024] Embodiment 1

[0025] Figure 1 A flowchart of a method for processing a service request is provided for Embodiment 1 of the present invention. This embodiment is applicable to the service request processing scenario of a financial institution, especially for service processing situations with a low request volume such as electronic cash IC card transactions. This method can be executed by a processing device for service requests. The device can be implemented in the form of hardware and / or software, and the device can be configured in an electronic device. As Figure 1 shown, the method includes:

[0026] S110. Obtain a target service request, send the target service request to a first service processing node, and determine a first response result; the first response result is the data processing result of the first centralized database by the first application cluster according to the target service request; the first application cluster is determined based on the unprocessed task volume of each application cluster in the first service processing node; the first centralized database is the centralized database matched to the first service processing node.

[0027] This solution can be executed by the distributed processing system of a financial institution. It can be understood that a distributed system is a system in which multiple independent computing nodes are connected through a network and cooperate with each other to complete specific tasks. The computing nodes may be physically located in different places, but communicate and coordinate through the network. For users, the computing nodes are like a whole. The distributed processing system in this solution is a business processing system based on a distributed architecture. The distributed processing system includes at least two business processing nodes, and each business processing node can be deployed in different geographical locations.

[0028] One business processing node in the distributed processing system can be used as the primary node, and one or more of the other business processing nodes can be used as standby nodes. Therefore, the distributed processing system has the ability to horizontally expand and can easily cope with the data processing challenges brought by business growth. Each business processing node can include multiple application clusters, and the application clusters in the business processing node are the same. The application clusters are used to process business requests.

[0029] The distributed processing system can receive the target business request sent by the user terminal, send the target business request to the first business processing node, and determine the first response result. Specifically, the first business processing node can be the primary node. The distributed processing system can select one of the application clusters in the first business processing node as the application cluster for responding to the target business request, that is, the first application cluster, according to the load conditions of the application clusters in the first business processing node. The distributed processing system can send the target business request to the first application cluster of the first business processing node. The first application cluster can respond to the target business request and output the first response result.

[0030] It is easy to understand that each business processing node can be configured with a centralized database. A centralized database refers to a type of database in which data is centrally stored on a single, central database service. All data access and data processing operations are carried out through this database service. The centralized database does not require cross-node transaction coordination, has low single-machine transaction performance loss, does not require data sharding management, has low operation and maintenance complexity, and can effectively improve the business processing efficiency of low request volumes.

[0031] In this solution, the first response result is the data processing result of the first centralized database by the first application cluster according to the target business request; the first centralized database is the centralized database matched to the first business processing node. Specifically, the target business request can include information such as a request identifier, a request time, a request type, and target data. The request type can include data processing types such as query, account movement, and maintenance. The target data can be used to describe the data range to be processed.

[0032] S120. If it is determined that the first application cluster is abnormal according to the first response result, forward the target service request to the second application cluster to obtain a second response result. The second application cluster is an application cluster other than the first application cluster in the first service processing node. The second response result is the data processing result of the first centralized database by the second application cluster according to the target service request.

[0033] It can be understood that the first application cluster in the first service processing node can normally respond to the target service request in the normal working state, and the first response result may be a successful response, that is, the first application cluster has completed the data processing operation on the first centralized database according to the target service request. However, when the first application cluster fails, it cannot normally respond to the target service request. At this time, the first response result is an abnormal situation such as a failed response or a response timeout, that is, the first application cluster cannot complete the data processing operation on the first centralized database according to the target service request.

[0034] The distributed processing system can determine whether the first application cluster is working abnormally according to the first response result. If the first application cluster is abnormal, the distributed processing system can forward the target service request to the second application cluster for response to obtain a second response result. Among them, the second application cluster is an application cluster other than the first application cluster in the first service processing node. The second response result is the data processing result of the first centralized database by the second application cluster according to the target service request.

[0035] It can be understood that if there are multiple application clusters other than the first application cluster in the first service processing node, the distributed processing system can use the application clusters other than the first application cluster in the first service processing node as candidate clusters, and sequentially use each candidate cluster as the target cluster to forward the target service request to the target cluster. If the target cluster can normally respond to the target service request, the target cluster is the second application cluster, and the response result of the target cluster to the target service request is the second response result. If the target cluster cannot normally respond to the target service request, select a new target cluster from the un-traversed candidate clusters and forward the target service request to the target cluster until the target cluster normally responds to the target service request or there are no un-traversed candidate clusters. The distributed processing system can use the last traversed target cluster as the second application cluster, and the response result of this target cluster to the target service request is the second response result. Deploying multiple identical application clusters on each service processing node can improve the concurrency ability of service processing on the one hand and increase the fault tolerance of service processing on the other hand.

[0036] In the technical solution of the embodiment of the present invention, by obtaining a target service request, sending the target service request to a first service processing node, and determining a first response result; the first response result is the data processing result of the first centralized database by the first application cluster according to the target service request; the first application cluster is determined based on the unprocessed task amounts of the application clusters in the first service processing node; the first centralized database is the centralized database matched to the first service processing node; if it is determined according to the first response result that the first application cluster is abnormal, then forwarding the target service request to a second application cluster to obtain a second response result; the second application cluster is an application cluster other than the first application cluster in the first service processing node; the second response result is the data processing result of the first centralized database by the second application cluster according to the target service request. This technical solution solves the problem of low processing efficiency of service requests in a service scenario with a small number of requests. By deploying a centralized database in the service processing node, while ensuring data consistency, the processing efficiency of service requests is improved.

[0037] Embodiment 2

[0038] Figure 2 It is a flowchart of a method for processing a service request provided in Embodiment 2 of the present invention. This embodiment is refined based on the above embodiment. As Figure 2 shown, the method includes:

[0039] S210. Obtain a target service request, send the target service request to a first service processing node, and determine a first response result; the first response result is the data processing result of the first centralized database by the first application cluster according to the target service request; the first application cluster is determined based on the unprocessed task amounts of the application clusters in the first service processing node; the first centralized database is the centralized database matched to the first service processing node.

[0040] In this embodiment, the target service request is one of a query request, a fund transfer request, and a maintenance request.

[0041] Among them, the query request may be a request for querying target data, the fund transfer request may be a request for changing account funds due to a transaction behavior, and the maintenance request may be a request for maintaining account information.

[0042] S220. Determine whether the first application cluster is abnormal according to the first response result.

[0043] The distributed processing system can determine whether the first application cluster is operating abnormally according to the first response result. For example, if the first response result is a successful response, it is determined that the first application cluster is operating normally; if the first response result is a failed response or a timeout response, it is determined that the first application cluster is operating abnormally. If the first application cluster is normal, execute S230; if the first application cluster is abnormal, execute S240.

[0044] S230. Output the first response result.

[0045] If the first application cluster can normally respond to the target service request, the distributed processing system can output the first response result and feedback the first response result to the user terminal.

[0046] S240. Forward the target service request to the second application cluster to obtain a second response result; the second application cluster is an application cluster in the first service processing node other than the first application cluster; the second response result is the data processing result of the second application cluster on the first centralized database according to the target service request.

[0047] In this embodiment, the second application cluster is the application cluster in the first service processing node that can normally respond to the target service request or the last traversed application cluster in the first service processing node. The second response result includes situations such as a successful response, a failed response, and a timeout response.

[0048] S250. Determine whether the first service processing node is abnormal according to the second response result.

[0049] It can be understood that the second response result can indicate whether the first service processing node can perform normal service processing. The distributed processing system can determine whether the first service processing node is operating abnormally according to the second response result. For example, if the second response result is a successful response, it is determined that the first service processing node is normal; if the second response result is a failed response or a timeout response, it is determined that the first service processing node is abnormal. If the first service processing node is normal, execute S260; if the first service processing node is abnormal, execute S270.

[0050] S260. Output the second response result.

[0051] If the second application cluster can normally respond to the target service request, the distributed processing system can output the second response result and feedback the second response result to the user terminal.

[0052] S270. Forward the target service request to the second service processing node and determine the third response result. The second service processing node is a service processing node other than the first service processing node in the distributed processing system. The third response result is the data processing result of the second centralized database by the third application cluster according to the target service request. The third application cluster is determined based on the unprocessed task amounts of the application clusters in the second service processing node. The second centralized database is the centralized database matched with the second service processing node.

[0053] If there is no application cluster in the first service processing node that can normally respond to the target service request, the distributed processing system can forward the target service request to the second service processing node, i.e., the backup node, and the backup node responds to the target service request to obtain the third response result.

[0054] Specifically, the distributed processing system can select one of the application clusters in the second service processing node as the application cluster for responding to the target service request, i.e., the third application cluster, according to the load conditions of the application clusters in the second service processing node. The distributed processing system can send the target service request to the third application cluster in the second service processing node. The third application cluster can respond to the target service request and output the third response result. Among them, the third response result is the data processing result of the second centralized database by the third application cluster according to the target service request. The second centralized database is the centralized database matched with the second service processing node.

[0055] S280. Output the third response result.

[0056] If the third application cluster can normally respond to the target service request, the distributed processing system can output the third response result and feedback the third response result to the user terminal. If the third application cluster cannot normally respond to the target service request, the distributed processing system can forward the target service request to the fourth application cluster for response to obtain the fourth response result. Among them, the fourth application cluster is the application cluster other than the third application cluster in the second service processing node. The fourth response result is the data processing result of the second centralized database by the fourth application cluster according to the target service request.

[0057] It can be understood that if there are multiple application clusters in the second service processing node other than the third application cluster, the distributed processing system can use the application clusters in the second service processing node other than the third application cluster as candidate clusters, and sequentially use each candidate cluster as the target cluster to forward the target service request to the target cluster; if the target cluster can normally respond to the target service request, the target cluster is the fourth application cluster, and the response result of the target cluster to the target service request is the fourth response result; if the target cluster cannot normally respond to the target service request, a new target cluster is selected from the un-traversed candidate clusters, and the target service request is forwarded to the target cluster until the target cluster normally responds to the target service request or there are no un-traversed candidate clusters. The distributed processing system can use the target cluster traversed last as the fourth application cluster, and the response result of this target cluster to the target service request is the fourth response result.

[0058] If it is determined that the second service processing node is abnormal according to the fourth response result, the distributed processing system can forward the target service request to other un-traversed service processing nodes until there is a service processing node that can normally respond to the target service request or the distributed processing system has no un-traversed service processing nodes, and output the response result of the service processing node traversed last to the target service request.

[0059] In this solution, before determining the third response result, the method further includes:

[0060] Synchronize the data between the first centralized database and the second centralized database.

[0061] It should be noted that before forwarding the target service request to the second service processing node, the distributed processing system can synchronize the data between the first centralized database and the second centralized database to ensure the consistency of service data when the second service processing node responds to the target service request. The first centralized database can be the main database, and the second centralized database is the slave database. The master and slave databases can synchronize data through a data communication network (DCN, Data Communication Network), constructing a robust data storage system.

[0062] In a financial business scenario with low request volume, multiple business processing nodes of a distributed processing system do not need to be in a high-load state all the time. A centralized database can ensure quick response when needed and maintain low resource consumption when idle. Since the amount of financial business data with low request volume is small, the centralized database can perform efficient data processing, avoid unnecessary resource waste, and achieve reasonable utilization of resources. The characteristics of the distributed processing system enable other nodes to continue providing services even if a certain business processing node fails, ensuring data availability and business continuity. The centralized database further enhances data security through data redundancy and backup mechanisms. In the case of small data volume, backup and recovery operations will also be faster and more efficient.

[0063] Although the nodes of the distributed system are dispersed, due to the small overall data volume, the monitoring and management of the nodes become relatively simple. Due to the small data volume, the centralized database can quickly respond to query requests and provide low-latency data services. This is crucial for financial businesses that require quick response. In the case of low transaction volume, flexibly adjust the number of nodes of the distributed system according to business needs to achieve cost optimization. When the transaction volume increases, nodes can be easily expanded to meet performance requirements; while when the transaction volume decreases, nodes can be reduced to lower costs. The elastic expansion ability of the centralized database also supports dynamically adjusting storage resources according to the size of the data volume, thereby achieving more refined cost control.

[0064] Embodiment III

[0065] Figure 3 The following is a schematic structural diagram of a processing device for business requests provided in Embodiment III of the present invention. The device is configured in a distributed processing system, and the distributed processing system includes at least two business processing nodes. Each business processing node includes at least two application clusters, and the application clusters in each business processing node are the same. As Figure 3 shown, the device includes:

[0066] A first response result determination module 310, configured to obtain a target business request, send the target business request to a first business processing node, and determine a first response result; the first response result is the data processing result of the first centralized database by the first application cluster according to the target business request; the first application cluster is determined based on the unprocessed task volume of each application cluster in the first business processing node; the first centralized database is the centralized database matched to the first business processing node;

[0067] The second response result determination module 320 is configured to, if it is determined that the first application cluster is abnormal according to the first response result, forward the target service request to a second application cluster to obtain a second response result; the second application cluster is an application cluster other than the first application cluster in the first service processing node; the second response result is the data processing result of the first centralized database by the second application cluster according to the target service request.

[0068] In this solution, the device further includes:

[0069] The third response result determination module is configured to, after obtaining the second response result, if it is determined that the first service processing node is abnormal according to the second response result, forward the target service request to a second service processing node to determine a third response result; the second service processing node is a service processing node other than the first service processing node in the distributed processing system; the third response result is the data processing result of the second centralized database by a third application cluster according to the target service request; the third application cluster is determined based on the unprocessed task amounts of the application clusters in the second service processing node; the second centralized database is the centralized database matched with the second service processing node.

[0070] Based on the above solution, the device further includes:

[0071] The data synchronization module is configured to synchronize the data between the first centralized database and the second centralized database before determining the third response result.

[0072] In a feasible solution, the device further includes:

[0073] The first response result output module is configured to, after determining the first response result, if it is determined that the first application cluster is normal according to the first response result, output the first response result.

[0074] Optionally, the device further includes:

[0075] The second response result output module is configured to, after obtaining the second response result, if it is determined that the first service processing node is abnormal according to the second response result, output the second response result.

[0076] In this embodiment, the target service request is one of a query request, a fund transfer request, and a maintenance request.

[0077] The service request processing device provided by the embodiments of the present invention can execute the service request processing method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.

[0078] Embodiment 4

[0079] Figure 4 The structural schematic diagram of an electronic device 410 that can be used to implement the embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0080] As Figure 4 shown, the electronic device 410 includes at least one processor 411, and a memory communicatively connected to the at least one processor 411, such as a read-only memory (ROM) 412, a random access memory (RAM) 413, etc. Among them, the memory stores a computer program executable by the at least one processor. The processor 411 can execute various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 412 or the computer program loaded from the storage unit 418 into the random access memory (RAM) 413. In the RAM 413, various programs and data required for the operation of the electronic device 410 can also be stored. The processor 411, the ROM 412, and the RAM 413 are connected to each other through a bus 414. The input / output (I / O) interface 415 is also connected to the bus 414.

[0081] Multiple components in the electronic device 410 are connected to the I / O interface 415, including: an input unit 416, such as a keyboard, a mouse, etc.; an output unit 417, such as various types of displays, speakers, etc.; a storage unit 418, such as a magnetic disk, an optical disc, etc.; and a communication unit 419, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 419 allows the electronic device 410 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0082] The processor 411 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 411 include but are not limited to a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 411 executes the various methods and processes described above, such as the processing method of a service request.

[0083] In some embodiments, the method for processing a service request may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 418. In some embodiments, part or all of the computer program may be loaded and / or installed onto the electronic device 410 via the ROM 412 and / or the communication unit 419. When the computer program is loaded into the RAM 413 and executed by the processor 411, one or more steps of the method for processing a service request described above may be performed. Alternatively, in other embodiments, the processor 411 may be configured to perform the method for processing a service request by any other suitable means (e.g., by means of firmware).

[0084] The various embodiments of the systems and techniques described above in this document may be implemented in digital electronic circuitry, integrated circuit systems, field-programmable gate arrays (FPGA), application-specific integrated circuits (ASIC), application-specific standard products (ASSP), systems-on-chip (SOC), complex programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a special-purpose or general-purpose programmable processor that receives data and instructions from a storage system, at least one input device, and at least one output device, and transmits the data and instructions to the storage system, the at least one input device, and the at least one output device.

[0085] The computer program for implementing the method of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable apparatus for processing service requests, such that the computer program, when executed by the processor, causes the functions / operations specified in the flowchart and / or block diagram to be implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0086] In the context of the present invention, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0087] For providing interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can also be used for providing interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0088] The systems and techniques described herein can be implemented in a computing system that includes backend components (such as, for example, a data server), or a computing system that includes middleware components (such as, for example, an application server), or a computing system that includes frontend components (such as, for example, a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (such as, for example, a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), blockchain network, and the Internet.

[0089] A computing system may include a client and a server. The client and the server are generally far from each other and usually interact via a communication network. The client-server relationship is created by computer programs running on respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system, solving the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.

[0090] It should be understood that various forms of processes shown above can be used, steps can be reordered, added or deleted. For example, the steps described in the present invention can be executed in parallel, sequentially or in a different order, as long as the desired results of the technical solution of the present invention can be achieved, and no limitation is made herein.

[0091] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. A method for processing a service request, characterized in that, The method is executed by a distributed processing system, which includes at least two service processing nodes. Each service processing node includes at least two application clusters, and the application clusters in each service processing node are the same. The method includes: Obtain a target service request, send the target service request to a first service processing node, and determine a first response result. The first response result is the data processing result of a first centralized database by the first application cluster according to the target service request. The first application cluster is determined based on the unprocessed task amounts of the application clusters in the first service processing node. The first centralized database is the centralized database matched to the first service processing node. If it is determined that the first application cluster is abnormal according to the first response result, forward the target service request to a second application cluster to obtain a second response result. The second application cluster is an application cluster in the first service processing node other than the first application cluster. The second response result is the data processing result of the first centralized database by the second application cluster according to the target service request.

2. The method according to claim 1, wherein After obtaining the second response result, the method further includes: If it is determined that the first service processing node is abnormal according to the second response result, forward the target service request to a second service processing node and determine a third response result. The second service processing node is a service processing node in the distributed processing system other than the first service processing node. The third response result is the data processing result of a second centralized database by a third application cluster according to the target service request. The third application cluster is determined based on the unprocessed task amounts of the application clusters in the second service processing node. The second centralized database is the centralized database matched to the second service processing node.

3. The method according to claim 2, wherein Before determining the third response result, the method further includes: Synchronize the data between the first centralized database and the second centralized database.

4. The method according to claim 1, wherein After determining the first response result, the method further includes: If it is determined that the first application cluster is normal according to the first response result, output the first response result.

5. The method according to claim 1, characterized in that After obtaining the second response result, the method further includes: If it is determined that the first service processing node is abnormal according to the second response result, output the second response result.

6. The method according to claim 1, characterized in that, The target service request is one of a query request, a fund transfer request, and a maintenance request.

7. A processing device for a service request, characterized in that, The device is configured in a distributed processing system, which includes at least two service processing nodes. Each service processing node includes at least two application clusters, and the application clusters in each service processing node are the same. The device includes: The first response result determination module is configured to obtain a target service request, send the target service request to a first service processing node, and determine a first response result; the first response result is a data processing result of the first centralized database by the first application cluster according to the target service request; the first application cluster is determined based on the unprocessed task amounts of the application clusters in the first service processing node; the first centralized database is a centralized database matched to the first service processing node. The second response result determination module is configured to, if it is determined according to the first response result that the first application cluster is abnormal, forward the target service request to a second application cluster to obtain a second response result; the second application cluster is an application cluster other than the first application cluster in the first service processing node; the second response result is a data processing result of the first centralized database by the second application cluster according to the target service request.

8. An electronic device, characterized in that, The electronic device includes: At least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the service request processing method according to any one of claims 1-6.

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

10. A computer program product includes a computer program, and the computer program implements the service request processing method according to any one of claims 1-6 when executed by a processor.