Business processing method, apparatus, device, and readable storage medium
By determining the maximum number of notifications for the target business request and the client, until a successful processing response message is sent, the problem of inconsistency between the processing result of the business request and the sending status of the response message is solved, thus achieving accuracy in business processing.
Patent Information
- Application Number
- CN202310623310.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-30
- Publication Date
- 2025-12-30
- Estimated Expiration
- 2043-05-30
AI Technical Summary
In existing technologies, the processing result of a business request is inconsistent with the sending status of a successful processing response message, resulting in poor accuracy in business processing.
By determining the business processing status of multiple business requests, the maximum number of notifications for the target business request, and the target client, the processing result is guaranteed to be consistent with the status of the response message until a successful processing response message is sent or the maximum number of notifications is reached.
It improves the accuracy of business processing, ensures that the processing results are consistent with the sending status of the response message, and enhances the reliability of the system.
Smart Images

Figure CN116647600B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of artificial intelligence technology, and in particular to a business processing method, apparatus, device, and readable storage medium. Background Technology
[0002] The first business request can be processed by multiple handlers. After all the handlers have successfully processed the request, a processing success response message can be sent to the target client.
[0003] In the existing technology, if any one of the multiple processing procedures for the first service request fails, the processing procedure can be reprocessed to ensure that the processing procedure succeeds, thus guaranteeing that the processing result of the first service request is successful. However, since there are processing procedures that fail during the processing of the first service request, the processing device will not send a processing success response message to the target client. This results in an inconsistency between the processing result of the first service request and the sending status of the processing success response message, leading to poor accuracy in service processing. Summary of the Invention
[0004] This application provides a business processing method, apparatus, device, and readable storage medium to solve the problem of poor accuracy in business processing.
[0005] Firstly, this application provides a business processing method, including:
[0006] Multiple first service requests are identified from the client, and the processing success response message of the multiple first service requests is in a failed sending state. The processing success response message is used to send to the client.
[0007] Determine the business processing status of the plurality of first business requests, wherein the business processing status is a success status or a failure status;
[0008] Based on the service processing status of the plurality of first service requests, a target service request is determined among the plurality of first service requests, and the service processing status of the target service request is the success status.
[0009] Determine the maximum number of notifications for the target service request and the target client, and send the processing success response message to the target client according to the maximum number of notifications, until the processing success response message is successfully sent to the target client, or the number of times the processing success response message is sent to the target client is equal to the maximum number of notifications.
[0010] Secondly, this application provides a service processing apparatus, including a first determining module, a second determining module, a third determining module, a fourth determining module, and a sending module:
[0011] The first determining module is used to determine multiple first service requests from the client, wherein the processing success response message of the multiple first service requests is in a failed sending state, and the processing success response message is used to send to the client;
[0012] The second determining module is used to determine the service processing status of the plurality of first service requests, wherein the service processing status is a success status or a failure status;
[0013] The third determining module is used to determine a target service request among the plurality of first service requests based on the service processing status of the plurality of first service requests, wherein the service processing status of the target service request is the success status.
[0014] The fourth determining module is used to determine the maximum number of notifications for the target service request and the target client.
[0015] The sending module is used to send the processing success response message to the target client according to the maximum number of notifications, until the processing success response message is successfully sent to the target client, or the number of times the processing success response message is sent to the target client is equal to the maximum number of notifications.
[0016] Thirdly, embodiments of this application provide a terminal device, including: a memory and a processor.
[0017] The memory stores computer-executed instructions;
[0018] The processor executes computer execution instructions stored in the memory, causing the processor to perform the business processing method described in any of the first aspects.
[0019] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the business processing method described in any of the first aspects.
[0020] The service processing method, apparatus, device, and readable storage medium provided in this application can determine multiple first service requests. If the processing success response message of a first service request has not been sent, and the service processing status of the first service request is successful, then the first service request is determined as the target service request. A processing success response message can be sent to the target client corresponding to the target service request until the processing success response message is successfully sent or the maximum number of notifications is reached. This ensures that the processing result of the first service request is consistent with the sending status of the processing success response message, thereby improving the accuracy of service processing. Attached Figure Description
[0021] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0022] Figure 1 A schematic diagram illustrating the application scenarios provided in the embodiments of this application;
[0023] Figure 2 A schematic diagram of the architecture of the business processing method provided in the embodiments of this application;
[0024] Figure 3 A flowchart illustrating a business processing method provided in an embodiment of this application;
[0025] Figure 4 A flowchart illustrating another business processing method provided in an embodiment of this application;
[0026] Figure 5 A flowchart illustrating another business processing method provided in an embodiment of this application;
[0027] Figure 6 This is a schematic diagram of the structure of the business processing method provided in the embodiments of this application;
[0028] Figure 7 This is a schematic diagram of the structure of a service processing device provided in an embodiment of this application;
[0029] Figure 8 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application.
[0030] The accompanying drawings have illustrated specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to specific embodiments. Detailed Implementation
[0031] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0032] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with relevant laws, regulations and standards, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0033] It should be noted that the methods and apparatus for business processing in this application can be used in the field of artificial intelligence technology, or in any field other than artificial intelligence technology. The application fields of the methods and apparatus for business processing in this application are not limited.
[0034] Figure 1 This is a schematic diagram illustrating an application scenario provided in an embodiment of this application. Please refer to [link / reference]. Figure 1 It includes multiple clients 101, processing devices 102, and databases 103.
[0035] The processing device 102 can receive the first service request sent by the client 101, process the first service request through multiple processing programs, and send a processing success response message to the client 101 after the multiple processing programs have successfully processed the request. If the processing success response message indicates that the request was not successfully sent, the first service request is stored in the database 103.
[0036] The processing device 102 can also obtain the first business request in the database 103, determine the first business request with the business processing status of success as the target business request, determine the maximum number of notifications for the target business request and the target client 101, and send a processing success response message to the target client 101 according to the maximum number of notifications.
[0037] Client 101 can be a tablet, desktop computer, or laptop computer, etc.
[0038] In the existing technology, if any one of the multiple processing procedures for the first service request fails, the processing procedure can be reprocessed to ensure that the processing procedure succeeds, thus guaranteeing that the processing result of the first service request is successful. However, since there are processing procedures that fail during the processing of the first service request, the processing device will not send a processing success response message to the target client. This results in an inconsistency between the processing result of the first service request and the sending status of the processing success response message, leading to poor accuracy in service processing.
[0039] In this embodiment, multiple first service requests can be identified. If the processing success response message for a first service request has not been sent, and the service processing status of the first service request is successful, then the first service request is identified as the target service request. A processing success response message can be sent to the target client corresponding to the target service request until the processing success response message is successfully sent or the maximum number of notifications is reached. This ensures that the processing result of the first service request is consistent with the sending status of the processing success response message, thereby improving the accuracy of service processing.
[0040] To facilitate understanding of the embodiments of this application, the following is combined with... Figure 2 This application provides an explanation of the business processing methods provided.
[0041] Figure 2 This is a schematic diagram of the architecture of the business processing method provided in the embodiments of this application. The business processing method may include a business processing procedure and a message verification procedure. During the business processing procedure, the business processing procedure corresponding to the first business request can be divided into multiple processing programs and notification programs according to the first business request. Each processing program can be executed independently, and the processing programs do not affect each other. If the processing result of each processing program is successful, a successful processing response message can be sent through the notification program; if the processing result of each processing program is a failure, the first business request is stored in a preset database, and the processing program with a failure result is re-executed until the processing result of that processing program is successful.
[0042] During message verification, the first business request can be identified in the preset database. The successful response message of the first business request is in an unsuccessful sending state. The first business request with a successful business processing state is identified as the target business request (if the processing result of multiple processing programs of the first business request is successful, then the business processing state of the first business request is successful). The maximum number of notifications for the target business request and the target client can be determined. The successful response message is sent to the target client through the notification program until the successful response message is sent to the target client, or the number of successful response messages sent to the target client is equal to the maximum number of notifications.
[0043] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0044] Figure 3 This is a flowchart illustrating a business processing method provided in an embodiment of this application. Please refer to [link / reference]. Figure 3 The method may include:
[0045] S301. Identify multiple first-stage business requests from the client.
[0046] The execution entity in this application embodiment can be a processing device or a business processing unit installed within the processing device. The business processing unit can be implemented through software or through a combination of software and hardware.
[0047] Multiple initial business requests from the client can be determined at preset times.
[0048] The successful response message for multiple first-level business requests is in the "not successfully sent" state. The successful response message is used to send to the client.
[0049] If an error occurs during the processing of the first service request, a successful processing response message will not be sent to the client of the first service request, and the successful processing response message for the first service request will be in the unsuccessful sending status.
[0050] If the first service request is successfully processed, a processing success response message is sent to the client that made the first service request, and the processing success response message for the first service request is in a successfully sent state.
[0051] S302. Determine the business processing status of multiple first business requests.
[0052] The business processing status can include a success status or a failure status.
[0053] After receiving the first service request, it can be processed. If the first service request is processed successfully, the service processing status of the first service request is successful. If there is an error in the processing of the first service request, the service processing status of the first service request is failed. If the error in the processing of the first service request is reprocessed, and the first service request is processed successfully, the service processing status of the first service request changes from failed to successful.
[0054] S303. Based on the business processing status of multiple first business requests, determine the target business request among the multiple first business requests.
[0055] The target business request has been successfully processed.
[0056] For example, suppose there are three first business requests, namely first business requests 1-3. Suppose the business processing status of first business request 1 is successful, the business processing status of first business request 2 is failed, and the business processing status of first business request 3 is successful. Then, first business request 1 and first business request 3 can be identified as the target business requests.
[0057] S304. Determine the maximum number of notifications for the target business request and the target client.
[0058] The maximum number of notifications can be preset by the target client of the target business request. The maximum number of notifications can be used to limit the number of times a successful processing response message is sent to the target client.
[0059] The client that sends the target service request can be identified as the target client.
[0060] For example, suppose that the client 1 receives the first service request 1, the successful response message of the first service request 1 is in the "not successfully sent" state, and the service processing status of the first service request 1 is in the "successful" state. It can be determined that the first service request is the target service request, and the client 1 that sent the first service request 1 can be identified as the target client.
[0061] S305. Based on the maximum number of notifications, send a processing success response message to the target client until a processing success response message is successfully sent to the target client, or the number of times a processing success response message is sent to the target client equals the maximum number of notifications.
[0062] If the number of times a successful response message is sent to the target client equals the maximum number of notifications, then the user can be notified to manually process the target business request.
[0063] For example, assuming the maximum number of notifications is 3, and assuming that a processing success message was not successfully sent to the target client, and the number of times a processing success message was sent to the target client is 3, then a notification is sent to the user to manually process the target business request.
[0064] The business processing method provided in this application embodiment can determine a target business request among multiple first business requests based on the business processing status. The processing status of the target business request is a success status, and the sending status of the successful processing response message is unsuccessful. After determining the maximum number of notifications for the target business request and the target client, a successful processing response message can be sent to the target client, so that the processing result of the first business request is consistent with the sending status of the successful processing response message, thereby improving the accuracy of business processing.
[0065] Based on the above embodiments, a service processing procedure for the first service request may also be included, which may be as follows: Figure 4 The diagram shows a flowchart of the business processing method.
[0066] Figure 4 This is a flowchart illustrating another business processing method provided in an embodiment of this application. Please refer to... Figure 4 The method may include:
[0067] S401, Receive the first service request sent by the client.
[0068] S402. Determine the multiple processing procedures and notification procedures corresponding to the first business request.
[0069] Multiple processing programs can be used to process the first business request, and a notification program can be used to send the processing result of the first business request to the client.
[0070] Processors and notification programs can be labeled to distinguish their different purposes. Processors can be labeled with the symbol T, and notification programs with the symbol R.
[0071] The multiple processing procedures and notification procedures for the first service request have their corresponding processing order. For example, assuming that the processing procedure, notification procedure and processing order corresponding to the first service request 1 can be as shown in Table 1, the processing procedure is processing procedure 11 and processing procedure 12, the notification procedure is notification procedure 11, and the processing order is processing procedure 11, processing procedure 12 and notification procedure 11, then the first service request can be processed in this order.
[0072] Optionally, the notification procedure may be executed multiple times for the first service request. For example, assuming that the processing procedure, notification procedure and processing order corresponding to the first service request 2 can be as shown in Table 1, the processing procedure is processing procedure 21 and processing procedure 22, and the notification procedure is notification procedure 21, then the processing order of the first service request is processing procedure 21, notification procedure 21, processing procedure 22 and notification procedure 21.
[0073] Table 1
[0074]
[0075] S403. The first business request is processed by multiple processing programs to obtain the processing result of each processing program on the first business processing request.
[0076] The processing result can include whether the processing was successful or failed.
[0077] S404. If the processing result of the first service request by the processing program is a failure, then the first service request is stored in the preset database.
[0078] For example, suppose the processing programs corresponding to the first business request 1 are processing program 1 and processing program 2. Suppose the processing result of processing program 1 is successful and the processing result of processing program 2 can be failure. Then the first business request 1 is stored in the preset database.
[0079] If the processing result of the first business processing request is a failure, the first business processing request can be reprocessed by the same processing program. If the processing is successful, the processing result of the processing program corresponding to the first business request in the preset database will be changed from failure to success, so that a successful processing response message can be resent to the target client based on the processing result of the first business request.
[0080] S405. If the processing results of multiple processing procedures for the first business processing request are all successful, then determine the notification procedure corresponding to the first business request.
[0081] For example, assuming that the processing procedures corresponding to the first business request 1 are processing procedure 1 and processing procedure 2, and assuming that the processing results of processing procedure 1 and processing procedure 2 are both successful, then it can be determined that the notification procedure 1 corresponding to the first business request is 1.
[0082] S406. Send a successful processing response message to the client via the notification procedure.
[0083] For example, assuming the client that sends the first service request 1 is client 1, and the notification program for the first service request 1 is notification program 1, then a successful processing response message can be sent to client 1 through notification program 1.
[0084] The business processing method provided in this application, after receiving a first business request, can process the first business request through multiple processing programs. If the processing result of the first business request by any processing program is a processing failure and the successful processing response information of the first business request is not successfully sent to the client, the first business request is stored in a preset database. The first business request in the preset database can then be processed, thereby improving the accuracy of business processing.
[0085] Figure 5 This is a flowchart illustrating another business processing method provided in an embodiment of this application. Please refer to... Figure 5 The method may include:
[0086] S501. Retrieve multiple first business requests from the preset database.
[0087] The default database can be used to store business requests that failed to send a successful response message.
[0088] S502. For any first business request, obtain the first processing information corresponding to the first business request.
[0089] The first processing information may include the processing results of multiple processing programs on the first business request. Multiple processing programs can be used to process the first business request, and the processing result can be successful or unsuccessful.
[0090] For example, suppose the first processing information corresponding to the first business request 1 can be as shown in Table 2.
[0091] Table 2
[0092] Processor Processing results Processor 1 Processing successful Processor 2 Processing successful Processor 3 Processing failure
[0093] S503. If the processing results of each processing program in the first processing information for the first business request are all successful, then the business processing status is determined to be a successful status.
[0094] When the first service request is stored in the preset database, each processing program may have a processing failure result for the first service request. After being stored in the preset database, the processing programs that failed will reprocess the first service request so that the processing result of the first service request is successful.
[0095] For example, suppose the processing programs corresponding to the first business request 1 are processing program 1 and processing program 2, and suppose that the processing results of processing program 1 and processing program 2 are both successful, then the business processing status of the first business request 1 is a successful status.
[0096] S504. If the first processing information contains a processing result of the processing program for the first business request that the processing failed, then the business processing status is determined to be a failure status.
[0097] For example, suppose the processing procedures corresponding to the first business request 1 are processing procedure 1 and processing procedure 2. Suppose the processing status of processing procedure 1 is processing failure and the processing result of processing procedure 2 is processing success. Then the business processing status of the first business request 1 is the failure status.
[0098] S505. Based on the business processing status of multiple first business requests, determine the target business request among the multiple first business requests.
[0099] S506. Determine the maximum number of notifications for the target business request and the target client.
[0100] S507. Based on the maximum number of notifications, send a processing success response message to the target client until a processing success response message is successfully sent to the target client, or the number of times a processing success response message is sent to the target client equals the maximum number of notifications.
[0101] The execution process of S505-S507 can be found in the execution process of S303-S305, and will not be repeated here.
[0102] S508. If a successful processing response message is successfully sent to the target client, the target service request is deleted from the preset database.
[0103] For example, assuming the target business request is the first business request 1, after successfully sending a successful processing response message for the first business request 1 to the target client, the first business request 1 will be deleted from the preset database.
[0104] S509. If the number of times a successful processing response message is sent to the target client is equal to the maximum number of notifications, then at least one successful processing response message corresponding to the target business request is determined.
[0105] For example, assuming the target service request is the first service request 2 as shown in Table 1, and the first service request 2 needs to execute the notification procedure twice, then the two processing success response messages corresponding to the target service request can be determined as processing success response message 1 and processing success response message 2.
[0106] S510. If at least one successful response message indicates that the message has been successfully sent, then the global status corresponding to the target service request is determined to be the completed status.
[0107] For example, suppose there are two successful response messages, namely successful response message 1 and successful response message 2. If both successful response message 1 and successful response message 2 are in a successfully sent state, then the global state corresponding to the target business request can be determined to be the completed state.
[0108] S511. If at least one successful processing response message contains a successful processing response message with an unsuccessful sending status, then the global status corresponding to the target service request is determined to be an incomplete status.
[0109] For example, suppose there are two successful response messages, namely successful response message 1 and successful response message 2. If successful response message 1 is in an unsuccessful sending state and successful response message 2 is in a successful sending state, then the global state corresponding to the target business request can be determined to be incomplete.
[0110] Optionally, if the global status corresponding to the target business request is incomplete, an alarm message can be sent to the user, who can then manually handle the incomplete target business request.
[0111] The business processing method provided in this application can retrieve the first business request from a preset database. If the successful processing response message is in an unsuccessful sending state, a successful processing response message can be sent to the target client according to the maximum number of notifications, ensuring that the successful processing response message can be sent successfully and improving the accuracy of business processing.
[0112] Figure 6 This is a schematic diagram illustrating the structure of the business processing method provided in an embodiment of this application. Please refer to [link / reference]. Figure 6After receiving the first service request, multiple processing procedures can be determined based on the first service request. The first service request is processed by the multiple processing procedures. After each processing procedure is successful, a processing success response message is sent through the notification procedure. If the processing result of any processing procedure is a processing failure, the first service request is stored in the preset database.
[0113] Multiple first business requests can be retrieved from a preset database at a preset time. The first business request with a business processing status of "processed successfully" is identified as the target business request. The maximum number of notifications and the target client corresponding to the target business request are determined. A processing success response message is sent to the target client through a notification program. If the processing success response message is not sent successfully, it is resent until the maximum number of notifications is reached, at which point manual processing is performed.
[0114] Figure 7 This is a schematic diagram of a service processing apparatus provided in an embodiment of this application. Please refer to [link / reference]. Figure 6 The service processing device 10 may include a first determining module 11, a second determining module 12, a third determining module 13, a fourth determining module 14, and a sending module 15.
[0115] The first determining module 11 is used to determine multiple first service requests from the client, wherein the processing success response message of the multiple first service requests is in the unsuccessful sending state, and the processing success response message is used to send to the client;
[0116] The second determining module 12 is used to determine the business processing status of multiple first business requests, where the business processing status is either a success status or a failure status.
[0117] The third determining module 13 is used to determine the target business request among the multiple first business requests based on the business processing status of the multiple first business requests, wherein the business processing status of the target business request is a success status.
[0118] The fourth determining module 14 is used to determine the maximum number of notifications for the target service request and the target client.
[0119] The sending module 15 is used to send a processing success response message to the target client according to the maximum number of notifications, until the processing success response message is successfully sent to the target client, or the number of times the processing success response message is sent to the target client is equal to the maximum number of notifications.
[0120] In one possible implementation, for any given first service request, the second determining module 12 is specifically used for:
[0121] Obtain the first processing information corresponding to the first business request. The first processing information includes the processing results of multiple processing programs on the first business request. The multiple processing programs are used to process the first business request, and the processing result is either successful or unsuccessful.
[0122] Based on the first processing information, determine the business processing status.
[0123] In one possible implementation, the second determining module 12 is specifically used for:
[0124] If the processing results of each processing program in the first processing information for the first business request are all successful, then the business processing status is determined to be a successful status.
[0125] If the first processing information contains a result indicating that the processing of the first business request has failed, then the business processing status is determined to be a failure status.
[0126] In one possible implementation, the service processing apparatus 10 further includes:
[0127] Identify at least one successful response message corresponding to the target business request;
[0128] If at least one successful response message indicates that the message has been successfully sent, then the global status corresponding to the target service request is determined to be the completed status.
[0129] If at least one successful processing response message contains a successful processing response message with an unsuccessful sending status, then the global status corresponding to the target business request is determined to be incomplete.
[0130] In one possible implementation, the first determining module 11 is specifically used for:
[0131] Retrieve multiple first business requests from a preset database. The preset database is used to store business requests that failed to send a successful response message.
[0132] After successfully sending a successful processing response message to the target client, the process also includes:
[0133] Delete the target business request from the preset database.
[0134] In one possible implementation, the service processing apparatus 10 further includes:
[0135] Receive the first service request sent by the client;
[0136] Identify the multiple processing procedures and notification procedures corresponding to the first business request;
[0137] The first business request is processed by multiple processing programs to obtain the processing result of each processing program on the first business request.
[0138] If a processing program fails to process the first business request, the first business request will be stored in a preset database.
[0139] In one possible implementation, the service processing apparatus 10 further includes:
[0140] If multiple processing programs all result in success for the first business request, then the notification program corresponding to the first business request is determined.
[0141] A successful processing response message is sent to the client via a notification program.
[0142] The business processing apparatus provided in this application embodiment can execute the technical solutions shown in the above method embodiments. Its implementation principle and beneficial effects are similar, and will not be described again here.
[0143] Figure 8 Please refer to the structural diagram of a terminal device provided in this application embodiment. Figure 8 The terminal device 20 may include a processor 21 and a memory 22. Exemplarily, the processor 21 and the memory 22 are interconnected via a bus 23.
[0144] Memory 22 stores instructions executed by the computer;
[0145] The processor 21 executes computer execution instructions stored in the memory 22, causing the processor 21 to perform the business processing method as shown in the above method embodiment.
[0146] Accordingly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the heterogeneous service processing method of the above-described method embodiments.
[0147] Accordingly, embodiments of this application may also provide a computer program product, including a computer program, which, when executed by a processor, can implement the business processing method shown in the above method embodiments.
[0148] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0149] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0150] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0151] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0152] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0153] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0154] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0155] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0156] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A service processing method characterized by, The method comprises the following steps: determining a plurality of first service requests from a client, the processing success response message of the plurality of first service requests being in an unsuccessful sending state, the processing success response message being used for sending to the client; determining a service processing state of the plurality of first service requests, the service processing state being a success state or a failure state; determining a target service request in the plurality of first service requests according to the service processing state of the plurality of first service requests, the service processing state of the target service request being the success state; determining a maximum notification number of the target service request and a target client, and sending the processing success response message to the target client according to the maximum notification number until the processing success response message is successfully sent to the target client or the number of times of sending the processing success response message to the target client is equal to the maximum notification number; determining a plurality of first service requests from a client, comprising: obtaining the plurality of first service requests in a preset database, the preset database being used for storing service requests for which the processing success response message is unsuccessfully sent; after the processing success response message is successfully sent to the target client, further comprising: deleting the target service request in the preset database; the method further comprises: receiving the first service request sent by the client; determining a plurality of processing programs and notification programs corresponding to the first service request; processing the first service request through the plurality of processing programs to obtain a processing result of the first service request by each processing program; if there is a processing result of the first service request by a processing program, the processing result being processing failure, then storing the first service request to the preset database.
2. The method of claim 1, wherein, For any one first service request; determining a service processing state of the first service request, comprising: obtaining first processing information corresponding to the first service request, the first processing information comprising a plurality of processing results of the first service request by a plurality of processing programs, the plurality of processing programs being used for processing the first service request, the processing result being processing success or processing failure; determining the service processing state according to the first processing information.
3. The method of claim 2, wherein, determining the service processing state according to the first processing information, comprising: if the processing result of the first service request by each processing program in the first processing information is the processing success, then determining that the service processing state is the success state; if the processing result of the first service request by a processing program in the first processing information is the processing failure, then determining that the service processing state is the failure state.
4. The method according to any one of claims 1 to 3, characterized in that, the method further comprises: determining at least one processing success response message corresponding to the target service request; if the at least one processing success response message is respectively in a successfully sent state, then determining that a global state corresponding to the target service request is a completion state; if there is a processing success response message in an unsuccessful sending state in the at least one processing success response message, then determining that a global state corresponding to the target service request is an uncompleted state.
5. The method of claim 1, wherein, The method further includes: If the processing results of the plurality of processing programs on the first service request are processing success respectively, determining a notification program corresponding to the first service request; Sending the processing success response message to the client through the notification program.
6. A service processing apparatus characterized by comprising: The method includes a first determining module, a second determining module, a third determining module, a fourth determining module, and a sending module: The first determining module is configured to determine a plurality of first service requests from a client, and the processing success response messages of the plurality of first service requests are in an unsuccessful sending state, wherein the processing success response messages are used for sending to the client. The second determining module is configured to determine service processing states of the plurality of first service requests, wherein the service processing states are success states or failure states. The third determining module is configured to determine a target service request in the plurality of first service requests according to the service processing states of the plurality of first service requests, wherein the service processing state of the target service request is the success state. The fourth determining module is configured to determine a maximum notification number of the target service request and a target client. The sending module is configured to send the processing success response message to the target client according to the maximum notification number, until the processing success response message is successfully sent to the target client or the number of times of sending the processing success response message to the target client is equal to the maximum notification number. The first determining module is specifically configured to: Obtain the plurality of first service requests in a preset database, wherein the preset database is used for storing service requests for which the processing success response messages are unsuccessfully sent. The device is further configured to delete the target service request in the preset database after the processing success response message is successfully sent to the target client. The service processing device is further configured to: Receive the first service request sent by the client; Determine a plurality of processing programs and a notification program corresponding to the first service request; Perform service processing on the first service request through the plurality of processing programs to obtain a processing result of each processing program on the first service processing request; If there is a processing program whose processing result on the first service processing request is processing failure, store the first service request to the preset database.
7. A terminal device, characterized by comprising: The device includes: a memory and a processor, The memory stores computer execution instructions. The processor executes the computer execution instructions stored in the memory, so that the processor executes the service processing method in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer execution instructions, and when the computer execution instructions are executed by the processor, the computer execution instructions are used to implement the service processing method in any one of claims 1 to 5.
Citation Information
Patent Citations
Service request processing method, device and equipment and storage medium
CN110233881A
Business processing method and device, electronic equipment and computer readable medium
CN114513762A