A distributed business processing method, device, equipment and storage medium

By dividing the distributed service system into three-level business nodes and performing classification and synchronization processing according to the service request and data type, the problem of limited improvement in the processing efficiency of distributed service systems in the existing technology is solved, and more efficient data processing and lower system pressure are achieved.

CN114924882BActive Publication Date: 2025-05-06CHINA EVERBRIGHT BANK
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210570938.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-24
Publication Date
2025-05-06
Estimated Expiration
2042-05-24

AI Technical Summary

Technical Problem

In the existing distributed business system, the work tasks of each node are converging, resulting in limited improvement in processing efficiency, and the high data processing efficiency of the distributed system cannot be effectively utilized, and the resource consumption and system pressure are increased.

Method used

By dividing the distributed business system into three-level business nodes, selecting target second-level and third-level business nodes for processing and storage according to the service request and data type, the service classification synchronization processing is realized.

Benefits of technology

It improves data processing efficiency, reduces the processing pressure of the business system, optimizes resource utilization, and enhances the load capacity of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114924882B_ABST
    Figure CN114924882B_ABST
Patent Text Reader

Abstract

The present invention discloses a distributed business processing method, device, equipment and storage medium. The method comprises: obtaining the to-be-processed business through the first-level business node in the distributed business system, and selecting a target second-level business node from at least two candidate second-level business nodes in the distributed business system according to the business request and data type of the to-be-processed business; processing the to-be-processed business through the target second-level business node to obtain a business processing result, and sending the business processing result to a third-level business node associated with the target second-level business node; and storing the business processing result through the third-level business node. The embodiment of the present invention can improve data processing efficiency and reduce the processing pressure of the business system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a distributed business processing method, device, equipment and storage medium. Background Art

[0002] A distributed system is a software system built on a network. Due to its distributed, autonomous, parallel, and global structure, it has the characteristics of resource sharing, accelerated computing speed, high reliability, and convenient communication.

[0003] In existing distributed business systems, the work tasks of each distributed node are similar. The improvement of its processing efficiency mainly relies on the accumulation of the number of node devices and the improvement of performance. This cannot effectively bring into play the high data processing efficiency characteristics of the distributed system structure, and leads to unnecessary resource consumption and increases the working pressure of the system. Summary of the invention

[0004] The present invention provides a distributed business processing method, device, equipment and storage medium to improve data processing efficiency and reduce the processing pressure of a business system.

[0005] According to one aspect of the present invention, there is provided a distributed service processing method, comprising:

[0006] Acquire the to-be-processed service through the first-level service node in the distributed service system, and select a target second-level service node from at least two candidate second-level service nodes in the distributed service system according to the service request and data type of the to-be-processed service;

[0007] Processing the to-be-processed service through the target second-level service node to obtain a service processing result, and sending the service processing result to a third-level service node associated with the target second-level service node;

[0008] The service processing result is stored by the third-level service node.

[0009] According to another aspect of the present invention, there is provided a distributed service processing device, comprising:

[0010] A service distribution module, used for acquiring services to be processed through the first-level service nodes in the distributed service system, and selecting a target second-level service node from at least two candidate second-level service nodes in the distributed service system according to the service request and data type of the services to be processed;

[0011] A service processing module, configured to process the service to be processed through the target second-level service node, obtain a service processing result, and send the service processing result to a third-level service node associated with the target second-level service node;

[0012] A data storage module is used to store the business processing results through the third-level business node.

[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores a computer program that can be executed 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 distributed business processing method described in any embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the distributed business processing method described in any embodiment of the present invention when executed.

[0018] The embodiment of the present invention divides the distributed business system into three-level distributed business systems to achieve synchronous processing of business classification based on business requests and data types, improve data processing efficiency, and reduce processing pressure on the business system.

[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended 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

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 is a flow chart of a distributed service processing method provided according to an embodiment of the present invention;

[0022] Figure 2 is a flow chart of a distributed service processing method provided according to another embodiment of the present invention;

[0023] Figure 3 is a structural diagram of a distributed service processing device provided according to another embodiment of the present invention;

[0024] Figure 4 It is a schematic diagram of the structure of an electronic device implementing an embodiment of the present invention. DETAILED DESCRIPTION

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

[0026] It should be noted that the terms "first", "second", etc. in the specification 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 the data used in this way can be interchanged where appropriate, 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 "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0027] Figure 1 This is a flow chart of a distributed service processing method provided by an embodiment of the present invention. This embodiment is applicable to the case of processing services through a distributed service system. The method can be executed by a distributed service processing device. The device can be implemented in the form of hardware and / or software. The device can be deployed in an electronic device with corresponding data processing capabilities. Figure 1 As shown, the method includes:

[0028] S110, obtaining a to-be-processed service through a first-level service node in the distributed service system, and selecting a target second-level service node from at least two candidate second-level service nodes in the distributed service system according to a service request and a data type of the to-be-processed service.

[0029] Among them, the distributed business system includes three levels of business nodes (in some embodiments, it may not be limited to three levels), and the business nodes at each level can form a sub-business system. The three-level business nodes can communicate with each other, and the business nodes in each level of business nodes can also communicate with each other. In the distributed system composed of three-level business nodes, the first-level business node is the outermost business distribution node of the business system. For the data to be processed, it is used to generate the business to be processed according to the business request and data type of the data to be processed, and determine the second-level business node corresponding to the business to be processed. The second-level business node is used to process the business to be processed of different data types and business requests. After the first-level business node determines the second-level business node corresponding to the data to be processed, it will automatically send the business to be processed to the corresponding second-level business node, and then the second-level business node will process the business to be processed accordingly and generate a business processing result. And the second-level business node sends the business processing result and the original data of the business to be processed (that is, the data to be processed initially obtained by the first-level business node) to the third-level business node; the third-level business node discards or stores the original data and the corresponding business processing result according to the business processing result.

[0030] Specifically, the first-level business node serves as the outermost data processing node of the distributed business. It receives business requests and determines the data type of the business requests. It can determine a subclass business node in the second-level business node corresponding to the business to be processed based on the data type and the business request, and then sends the business to be processed to any business node in the subclass business node.

[0031] S120: Process the to-be-processed service through the target second-level service node to obtain a service processing result, and send the service processing result to a third-level service node associated with the target second-level service node.

[0032] Specifically, each subclass node in the second-level node is used to process pending services of specific request types and data types. In order to improve the data storage capacity for different service requests and data types, the third-level nodes are divided into the same subclasses, and the third-level nodes include at least two categories, which are used to store the service processing results and corresponding original data generated by processing services of different request types and data types. After processing the pending services in the second-level nodes, the nodes forward the original data received from the first-level nodes and the service processing results generated by the processed services to any node in the subclass nodes associated with themselves in the third-level service nodes.

[0033] Optionally, selecting a target second-level service node from at least two candidate second-level service nodes in the distributed service system according to the service request and data type of the service to be processed includes:

[0034] If the service request of the service to be processed is a distribution request, a second-level service node belonging to the first subclass among at least two candidate second-level service nodes is selected as the target second-level service node; if the service request of the service to be processed is a data processing request and the data type is valid data, a target second-level service node is selected from second-level service nodes belonging to the second subclass among at least two candidate second-level service nodes; if the service request of the service to be processed is a data anomaly detection request and the data type is valid data, a target second-level service node is selected from second-level service nodes belonging to the third subclass among at least two candidate second-level service nodes.

[0035] Among them, business requests include distribution requests, data processing requests (such as converting floating-point data to integers), and data anomaly detection requests. The data type of the data to be processed involves three dimensions, and the data type can be determined from at least one of the following three dimensions: the first dimension, whether it is encrypted: divided into encrypted data and non-encrypted data, whether the data is encrypted can be directly judged; the second dimension, the attributes of the data: divided into log data and message data, the attributes of the data can also be directly judged; the third dimension, the validity of the data: divided into valid data and invalid data, and a comprehensive judgment can be made from aspects such as data integrity and security.

[0036] Specifically, the second-level business node includes the first subclass, the second subclass and the third subclass nodes:, wherein the first subclass node in the second-level business node is used to receive the pending business whose business request is to distribute data, and the data type is not limited; the second subclass node is used to receive the pending business whose business request is to convert data, and the data type excludes invalid data; the third subclass is used to receive the pending business whose business request is to detect whether the data is abnormal data, and the data type is limited to valid data. Since the invalid data has been confirmed to be invalid, it can be directly identified as abnormal data without further judgment, but the valid data can be further judged. Since the first subclass node does not need to further process the data, it can directly distribute the pending data in the pending business to the corresponding distribution object, and record the distribution results such as the distribution object and the distribution time as the business processing result. The second subclass node can convert the data according to the data conversion requirements (for example, converting floating-point data into integers), and after the conversion is completed, the data before and after the conversion are recorded as the business processing result. The third subclass node detects whether the data is abnormal according to the preset data abnormality judgment method, and uses the abnormality detection result as the business processing result.

[0037] Optionally, the second-level business nodes of the first subclass and the second-level business nodes of the second subclass are associated with the third-level business nodes of the fourth subclass, and the third-level business nodes of the fourth subclass are used to store the original data and business processing results of the to-be-processed business.

[0038] Among them, the third-level business nodes include fourth subclass and fifth subclass business nodes; the fourth subclass business nodes are used to receive the original data and business processing results transmitted by the first subclass and second subclass nodes in the aforementioned second-level business nodes; the fifth subclass business nodes are used to receive the original data and business processing results transmitted by the third subclass nodes in the aforementioned second-level business nodes.

[0039] Specifically, for the fourth subclass node in the third-level service node, it is mainly used to store the distribution result sent by the first subclass node, or to store the converted data sent by the first subclass node. In addition, the fourth subclass node can also transmit the converted data as new data to be processed to the first-level service node. The first-level service node uses the converted data as data to be processed and generates a new service to be processed to start the service processing flow. At this time, the service request of the new service to be processed can be data distribution.

[0040] S130: Storing the service processing result through the third-level service node.

[0041] Specifically, the third-level business node determines the logical relationship between the request type, data type and business processing result of the business to be processed according to the pre-selected data storage principle. If it meets the storage principle, the business processing result will be stored; if it does not meet the storage rule, the storage of the business processing result will be abandoned.

[0042] Optionally, the second-level service node of the third subclass is associated with a third-level service node of the fifth subclass, and when the third-level service node is the third-level service node of the fifth subclass, storing the service processing result by using the third-level service node includes:

[0043] If the service processing result is normal data, the original data of the service to be processed and the service processing result are stored through the third-level service node of the fifth subclass;

[0044] If the service processing result is abnormal data, the original data of the service to be processed is discarded and the service processing result is stored through the third-level service node of the fifth subclass.

[0045] Specifically, for the fifth subclass node in the third-level business node, if the abnormal judgment result of the business to be processed is normal data, the business processing result and the original data can be stored; if the abnormal judgment result of the business to be processed is abnormal data, the original data is directly discarded; at the same time, the abnormal judgment result of the abnormal data is recorded for reference at any time.

[0046] Optionally, after storing the original data of the service to be processed and the service processing result, the method further includes:

[0047] According to the original data of the pending business whose business processing result is normal data, a new pending business is generated and sent to the first-level business node for distribution.

[0048] Specifically, when the anomaly detection result is normal data, the fifth subclass node can also transmit the normal original data to the first-level business node. The first-level business node uses the normal original data as the data to be processed, generates a new business to be processed to start the business processing process. At this time, the business request of the new business to be processed can be a data distribution or data conversion request.

[0049] It should be noted that in the three-level business node structure of the embodiment of the present invention, business nodes at the same level need to synchronize all data; cross-level business nodes can synchronize data according to the original data and data processing results involved in the above-mentioned business process. In addition, data can only be synchronized in the order of the first level to the third level, and cannot be synchronized in the order of the third level-the first level; for example: the third level can be synchronized to the first level, but cannot be synchronized to the second level. In addition, since the business nodes are graded, some data may not need to be synchronized. Therefore, when synchronizing data, a conditional synchronization method can be used, that is, the synchronizing party first asks the synchronized party whether it already has synchronized data. If the synchronized party already has the corresponding synchronized data, there is no need to synchronize again; if not, then synchronize again.

[0050] The embodiment of the present invention divides the distributed business system into three-level distributed business systems to achieve synchronous processing of business classification based on business requests and data types, improve data processing efficiency, and reduce processing pressure on the business system.

[0051] Figure 2 FIG. 1 is a flow chart of a distributed service processing method provided by another embodiment of the present invention. This embodiment is optimized and improved on the basis of the above embodiment. Figure 2 As shown, the method includes:

[0052] S210, obtaining a to-be-processed service through a first-level service node in the distributed service system, and selecting a target second-level service node from at least two candidate second-level service nodes in the distributed service system according to a service request and a data type of the to-be-processed service;

[0053] S220, processing the to-be-processed service through the target second-level service node to obtain a service processing result, and sending the service processing result to a third-level service node associated with the target second-level service node;

[0054] S230: Storing the service processing result through the third-level service node.

[0055] S240: If an abnormality occurs in the second-level service nodes of the first subclass, the second-level service nodes of the third subclass, the second-level service nodes of the second subclass, and the unactivated service nodes are used in sequence to supplement the second-level service nodes of the first subclass.

[0056] Specifically, in the second-level business nodes, the division of the three subclass nodes is not fixed, and the division of the three types of business nodes can be adjusted in real time according to the actual operation conditions during the operation of the business system. If the number of business nodes of the first subclass cannot meet the corresponding business processing requirements, resulting in an abnormality in the nodes of the first subclass, the business nodes are divided into the first subclass from the third subclass, the second subclass, and the unenabled business nodes of the third subclass in order of priority from high to low, so that the number of business nodes of the first subclass after the nodes are supplemented meets the corresponding processing requirements. In addition, for the second subclass nodes and the third subclass nodes, if an abnormality occurs, the number of nodes can also be supplemented by referring to the supplementation method of the first subclass nodes.

[0057] Optionally, sequentially using the second-level service nodes of the third subclass, the second-level service nodes of the second subclass, and the unenabled service nodes to supplement the second-level service nodes of the first subclass includes:

[0058] The second-level business nodes of the first subclass are supplemented by redundant second-level business nodes of the third subclass; if the supplemented second-level business nodes of the first subclass do not meet the distribution requirements, the second-level business nodes of the first subclass are supplemented by redundant second-level business nodes of the second subclass; if the supplemented second-level business nodes of the first subclass do not meet the distribution requirements, the second-level business nodes of the first subclass are supplemented by unenabled business nodes; wherein the redundant second-level business nodes of the third subclass and the redundant second-level business nodes of the second subclass are both determined based on a set proportional relationship among the first subclass, the second subclass and the third subclass.

[0059] Among them, among the second-level business nodes, the number of first subclass nodes is the least, the number of second subclass nodes is the largest, and the number of third subclass nodes is in the middle. Correspondingly, the number of redundant first subclass second-level business nodes is the least, the number of redundant second subclass second-level business nodes is the largest, and the number of redundant third subclass second-level business nodes is in the middle. In the process of dynamically adjusting the number of first subclass, second subclass and third subclass nodes, the number of redundant subclass nodes should conform to the above-mentioned preset size ratio relationship.

[0060] Specifically, first divide some redundant third subclass nodes into the first subclass; if it still cannot meet the distribution requirements to be processed by the first subclass nodes, then determine whether some nodes can be divided from the redundant second subclass nodes to the first subclass based on the actual processing situation of the second subclass nodes. If so, divide some nodes from the second category business nodes to the first subclass nodes; if the first subclass nodes still cannot meet the distribution requirements at this time, some nodes can be divided from unactivated business nodes (such as newly added business nodes) to the first subclass nodes, or currently relatively idle business nodes can be divided from other levels to the first subclass nodes.

[0061] The embodiment of the present invention ensures that the distributed business system effectively adapts to different business scenarios by dynamically adjusting the number of nodes of each subclass, thereby improving the business load capacity and business processing efficiency of the business system.

[0062] Figure 3 FIG. 1 is a structural diagram of a distributed service processing device provided by another embodiment of the present invention. Figure 3 As shown, the device comprises:

[0063] The service distribution module 310 is used to obtain the service to be processed through the first-level service node in the distributed service system, and select a target second-level service node from at least two candidate second-level service nodes in the distributed service system according to the service request and data type of the service to be processed;

[0064] The service processing module 320 is used to process the to-be-processed service through the target second-level service node, obtain a service processing result, and send the service processing result to a third-level service node associated with the target second-level service node;

[0065] The data storage module 330 is used to store the service processing result through the third-level service node.

[0066] The distributed service processing device provided in the embodiment of the present invention can execute the distributed service processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0067] Optionally, the service distribution module 310 includes:

[0068] A first subclass distribution unit, configured to select a second-level service node belonging to the first subclass from at least two candidate second-level service nodes as a target second-level service node if the service request of the to-be-processed service is a distribution request;

[0069] A second subclass distribution unit, configured to select a target second-level service node from second-level service nodes belonging to a second subclass among at least two candidate second-level service nodes if the service request of the to-be-processed service is a data processing request and the data type is valid data;

[0070] The third subclass distribution unit is used to select a target second-level business node from the second-level business nodes belonging to the third subclass among at least two candidate second-level business nodes if the business request of the to-be-processed business is a data anomaly detection request and the data type is valid data.

[0071] Optionally, the second-level business nodes of the first subclass and the second-level business nodes of the second subclass are associated with the third-level business nodes of the fourth subclass, and the third-level business nodes of the fourth subclass are used to store the original data and business processing results of the to-be-processed business.

[0072] Optionally, the second-level business node of the third subclass is associated with the third-level business node of the fifth subclass, and the data storage module 330 includes a fifth subclass storage unit, which is used for, when the third-level business node is the third-level business node of the fifth subclass, if the business processing result is normal data, then storing the original data of the business to be processed and the business processing result through the third-level business node of the fifth subclass; if the business processing result is abnormal data, then discarding the original data of the business to be processed and storing the business processing result through the third-level business node of the fifth subclass.

[0073] Optionally, the fifth subcategory storage unit is further used to generate a new service to be processed according to the original data of the service to be processed whose service processing result is normal data, and send it to the first-level service node for distribution.

[0074] Optionally, the device also includes a first subclass node supplement module, which is used to supplement the second-level business nodes of the first subclass with the second-level business nodes of the third subclass, the second-level business nodes of the second subclass and the unenabled business nodes in sequence if an abnormality occurs in the second-level business nodes of the first subclass.

[0075] Optionally, the first subclass node supplement module is specifically used to supplement the second-level business nodes of the first subclass with redundant second-level business nodes of the third subclass; if the supplemented second-level business nodes of the first subclass do not meet the distribution requirements, the redundant second-level business nodes of the second subclass are used to supplement the second-level business nodes of the first subclass; if the supplemented second-level business nodes of the first subclass do not meet the distribution requirements, the unenabled business nodes are used to supplement the second-level business nodes of the first subclass; wherein the redundant second-level business nodes of the third subclass and the redundant second-level business nodes of the second subclass are both determined based on a set proportional relationship among the first subclass, the second subclass and the third subclass.

[0076] The distributed business processing device further described can also execute the distributed business processing method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0077] Figure 4 A schematic diagram of the structure of an electronic device 40 that can be used to implement an embodiment 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 processing, 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 required herein.

[0078] like Figure 4 As shown, the electronic device 40 includes at least one processor 41, and a memory connected to the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 to the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.

[0079] A number of components in the electronic device 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0080] The processor 41 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 41 executes the various methods and processes described above, such as a distributed business processing method.

[0081] In some embodiments, the distributed business processing method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 48. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the distributed business processing method described above may be performed. Alternatively, in other embodiments, the processor 41 may be configured to execute the distributed business processing method in any other appropriate manner (e.g., by means of firmware).

[0082] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0083] Computer programs for implementing the methods 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 data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0084] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0085] To provide interaction with a user, the systems and techniques described herein may 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 trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0086] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations 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 may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0087] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0088] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0089] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A distributed service processing method, characterized in that: Executed by a distributed business system, the method includes: Acquire the to-be-processed service through the first-level service node in the distributed service system, and select a target second-level service node from at least two candidate second-level service nodes in the distributed service system according to the service request and data type of the to-be-processed service; Processing the to-be-processed service through the target second-level service node to obtain a service processing result, and sending the service processing result to a third-level service node associated with the target second-level service node; Storing the service processing result by the third-level service node; Wherein, selecting a target second-level service node from at least two candidate second-level service nodes in the distributed service system according to the service request and data type of the service to be processed includes: If the service request of the to-be-processed service is a distribution request, selecting a second-level service node belonging to the first subclass from at least two candidate second-level service nodes as a target second-level service node; If the service request of the to-be-processed service is a data processing request, and the data type is valid data, selecting a target second-level service node from second-level service nodes belonging to a second subclass among at least two candidate second-level service nodes; If the service request of the to-be-processed service is a data anomaly detection request and the data type is valid data, a target second-level service node is selected from second-level service nodes belonging to the third subclass among at least two candidate second-level service nodes.

2. The method according to claim 1, characterized in that The second-level service nodes of the first subclass and the second-level service nodes of the second subclass are associated with the third-level service nodes of the fourth subclass, and the third-level service nodes of the fourth subclass are used to store the original data and service processing results of the service to be processed.

3. The method according to claim 1, characterized in that: The second-level service node of the third subclass is associated with the third-level service node of the fifth subclass, and when the third-level service node is the third-level service node of the fifth subclass, storing the service processing result by the third-level service node includes: If the service processing result is normal data, the original data of the service to be processed and the service processing result are stored through the third-level service node of the fifth subclass; If the service processing result is abnormal data, the original data of the service to be processed is discarded and the service processing result is stored through the third-level service node of the fifth subclass.

4. The method according to claim 3, characterized in that: After storing the original data of the service to be processed and the service processing result, the method further includes: According to the original data of the pending business whose business processing result is normal data, a new pending business is generated and sent to the first-level business node for distribution.

5. The method according to claim 1, characterized in that The method further comprises: If the second-level service nodes of the first subclass are abnormal, the second-level service nodes of the third subclass, the second-level service nodes of the second subclass and the unactivated service nodes are used in sequence to supplement the second-level service nodes of the first subclass.

6. The method according to claim 5, characterized in that The second-level service nodes of the third subclass, the second-level service nodes of the second subclass, and the unactivated service nodes are sequentially used to supplement the second-level service nodes of the first subclass, including: The redundant second-level service nodes of the third subclass are used to supplement the second-level service nodes of the first subclass; If the supplemented second-level service nodes of the first subclass do not meet the distribution requirements, redundant second-level service nodes of the second subclass are used to supplement the second-level service nodes of the first subclass; If the supplemented second-level service nodes of the first subcategory do not meet the distribution requirements, the second-level service nodes of the first subcategory are supplemented with unactivated service nodes; The redundant third subclass second-level service nodes and the redundant second subclass second-level service nodes are both determined based on a set proportional relationship among the first subclass, the second subclass, and the third subclass.

7. A distributed service processing device, characterized in that: Deployed in a distributed service system, the device includes: A service distribution module, used for acquiring services to be processed through the first-level service nodes in the distributed service system, and selecting a target second-level service node from at least two candidate second-level service nodes in the distributed service system according to the service request and data type of the services to be processed; A service processing module, configured to process the service to be processed through the target second-level service node, obtain a service processing result, and send the service processing result to a third-level service node associated with the target second-level service node; A data storage module, used for storing the service processing result through the third-level service node; Wherein, the business distribution module includes: A first subclass distribution unit, configured to select a second-level service node belonging to the first subclass from at least two candidate second-level service nodes as a target second-level service node if the service request of the to-be-processed service is a distribution request; A second subclass distribution unit, configured to select a target second-level service node from second-level service nodes belonging to a second subclass among at least two candidate second-level service nodes if the service request of the to-be-processed service is a data processing request and the data type is valid data; The third subclass distribution unit is used to select a target second-level business node from the second-level business nodes belonging to the third subclass among at least two candidate second-level business nodes if the business request of the to-be-processed business is a data anomaly detection request and the data type is valid data.

8. An electronic device, characterized in that: The electronic device comprises: 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 distributed business 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 instructions, and the computer instructions are used to enable a processor to implement the distributed business processing method according to any one of claims 1 to 6 when executed.

Citation Information

Patent Citations

  • Distributed data distribution method, electronic device and storage medium

    CN111447255A

  • Cloud computing task tracking processing method and cloud computing system

    CN112286659A