Business processing method and device, computer equipment, readable storage medium and program product
By splitting and filtering the service information on the service call end, if the amount of non-instant matter parameter data is greater than the threshold, the feedback access address is given to the service provider end, which solves the problem of low service processing stability caused by insufficient message queue storage space in traditional technology. , achieving more efficient and stable business processing.
Patent Information
- Application Number
- CN202411725197.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-02-11
AI Technical Summary
In traditional business processing technology, the storage space of the message queue is limited, which leads to a decrease in message processing speed and even system crashes, and low stability of business processing.
By splitting business information on the service call end, real-time and non-immediate matters are determined, parameters of various matters are filtered, and when real-time matters are completed according to real-time matter parameters, the data volume of non-immediate matter parameters is determined. If the amount of data is greater than the threshold, the access address of the non-instant event parameter is feedback to the service provider so that it can obtain parameters through the access address and complete the event processing.
By feeding back the instant event parameters with large data volume to the service provider through the access address, the stability of service processing is improved, the system crash caused by insufficient storage space of the message queue is avoided, and the parameter security is ensured.
Smart Images

Figure CN119415264A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a business processing method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] With the development of computer technology, business processing technology has emerged, which can realize effective processing of business through interaction between the service calling end and the service providing end.
[0003] In traditional technology, the service caller and the service provider can interact through a message queue. Specifically, the service caller can put business information into the message queue so that the service provider can obtain the business information from the message queue for business processing. However, since the storage space of the message queue is limited, if the service caller puts a lot of business information, it may cause the message processing speed to decrease or even cause the system to crash. Therefore, using traditional technology for business processing has the problem of low business processing stability. Summary of the invention
[0004] Based on this, it is necessary to provide a business processing method, apparatus, computer equipment, computer-readable storage medium and computer program product that can improve the stability of business processing in response to the above technical problems.
[0005] In a first aspect, the present application provides a business processing method, which is applied to a service calling end, comprising:
[0006] In response to a business processing event initiated by a user, obtaining business information input by the user for a target business;
[0007] Splitting the target business based on the business information to determine immediate matters and non-immediate matters included in the target business;
[0008] Filtering the instant matter parameters of the instant matter and the non-instant matter parameters of the non-instant matter from the business information;
[0009] In the case where the immediate event is completed according to the immediate event parameters, determining the parameter data volume of the non-immediate event parameters;
[0010] If the parameter data volume is greater than the data volume threshold, the access address of the non-immediate event parameters is fed back to the service provider, so that the service provider obtains the non-immediate event parameters through the access address and completes the non-immediate event according to the non-immediate event parameters.
[0011] In one embodiment, feeding back the access address of the non-immediate event parameter to the service provider so that the service provider obtains the non-immediate event parameter through the access address, includes:
[0012] Storing the non-immediate event parameters in a storage space;
[0013] The access address of the non-immediate event parameter in the storage space is placed in the message queue in the form of a message body, so that the service provider obtains the message body from the message queue, obtains the access address based on the message body, and accesses the non-immediate event parameter from the storage space according to the access address.
[0014] In one embodiment, the method further comprises:
[0015] If the parameter data volume is less than or equal to the data volume threshold, the non-immediate event parameters are placed in the message queue, so that the service provider obtains the non-immediate event parameters from the message queue and completes the non-immediate event according to the non-immediate event parameters.
[0016] In one embodiment, the step of placing the non-immediate event parameter in a message queue at the access address of the storage space in the form of a message body includes:
[0017] Acquire multiple candidate sending modes and event processing types corresponding to the non-immediate event parameters;
[0018] Matching the event processing type with each of the candidate sending modes, and using the successfully matched candidate sending mode as the target sending mode corresponding to the event processing type;
[0019] Based on the target sending mode, the non-immediate event parameter is placed into a message queue in the form of a message body at the access address of the storage space.
[0020] In a second aspect, the present application also provides a business processing method, which is applied to a service provider, and the method includes:
[0021] Obtaining an access address for a non-immediate event parameter; the access address is obtained by the service calling end determining the parameter data volume of the non-immediate event parameter when the instant event is completed according to the instant event parameter, and feeding back the access address of the non-immediate event parameter when the parameter data volume is greater than a data volume threshold; the non-immediate event parameter and the instant event parameter are obtained by the service calling end in response to a business processing event initiated by the user, obtaining the business information input by the user for the target business, splitting the target business based on the business information, determining the instant events and non-immediate events included in the target business, and screening them from the business information;
[0022] The non-immediate event parameters are obtained through the access address, and the non-immediate event is completed according to the non-immediate event parameters.
[0023] In one embodiment, the method further comprises:
[0024] If the access address is not obtained, re-execute the step of obtaining the access address of the non-immediate event parameter and record the number of retries;
[0025] If the access address is still not acquired when the number of retries is greater than or equal to the retry threshold, a feedback signal is sent to the service calling end.
[0026] In a third aspect, the present application further provides a service processing device, including:
[0027] A business information acquisition module, used to respond to a business processing event initiated by a user and acquire business information input by the user for a target business;
[0028] A business splitting module, used to split the target business based on the business information, and determine the immediate matters and non-immediate matters included in the target business;
[0029] A parameter screening module, used for screening the instant matter parameters of the instant matter and the non-instant matter parameters of the non-instant matter from the business information;
[0030] A data volume determination module, configured to determine the parameter data volume of the non-immediate event parameter when the immediate event is completed according to the immediate event parameter;
[0031] The address feedback module is used to feed back the access address of the non-immediate matter parameter to the service provider if the parameter data volume is greater than the data volume threshold, so that the service provider can obtain the non-immediate matter parameter through the access address and complete the non-immediate matter according to the non-immediate matter parameter.
[0032] In a fourth aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the above method are implemented.
[0033] In a fifth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the steps of the above method when executed by a processor.
[0034] In a sixth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0035] The above-mentioned business processing method, device, computer equipment, computer-readable storage medium and computer program product, in response to a business processing event initiated by a user, obtains business information input by the user for the target business, can determine the specific situation of the user's business processing, split the target business based on the business information, determine the immediate matters and non-immediate matters contained in the target business, can distinguish the specific matters corresponding to the target business, and screen the immediate matter parameters of the immediate matters and the non-immediate matter parameters of the non-immediate matters from the business information. When the immediate matters are completed according to the immediate matter parameters, the parameter data volume of the non-immediate matter parameters is determined. If the parameter data volume is greater than the data volume threshold, it indicates that the parameter data volume corresponding to the immediate matter parameters is large. Therefore, it is necessary to feed back the access address of the non-immediate matter parameters to the service provider, so that the service provider obtains the non-immediate matter parameters through the access address and completes the non-immediate matters according to the non-immediate matter parameters. By using the above-mentioned method for business processing, the immediate matter parameters with large data volume can be fed back to the service provider in the form of the access address, thereby improving the stability of business processing under the premise of ensuring parameter security. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 An application environment diagram of a business processing method in an embodiment;
[0038] Figure 2 A schematic diagram of a process flow of a business processing method in an embodiment;
[0039] Figure 3 A schematic diagram of a flow chart of business processing steps in an embodiment;
[0040] Figure 4 is a flowchart of a business processing method in another embodiment;
[0041] Figure 5 is a flowchart of a business processing method in yet another embodiment;
[0042] Figure 6 is a structural block diagram of a service processing device in an embodiment;
[0043] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0045] The service processing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown in FIG. 1 , the service calling end 102 communicates with the service providing end 104 through the network. The service calling end 102 is the party that initiates the request, also known as the client. It calls the remote service to complete a specific task or obtain data. The service providing end 104 is the party that receives the request and returns the response, also known as the server. It is responsible for processing the request sent by the client, executing the corresponding business logic, and returning the result. Specifically, in the process of business processing, the service calling end 102 responds to the business processing event initiated by the user, obtains the business information input by the user for the target business; splits the target business based on the business information, and determines the immediate matters and non-immediate matters contained in the target business; from the business information, screens the immediate matter parameters of the immediate matters and the non-immediate matter parameters of the non-immediate matters; in the case of completing the immediate matters according to the immediate matter parameters, determines the parameter data volume of the non-immediate matter parameters; if the parameter data volume is greater than the data volume threshold, the access address of the non-immediate matter parameters is fed back to the service providing end, so that the service providing end 104 obtains the non-immediate matter parameters through the access address, and completes the non-immediate matters according to the non-immediate matter parameters.
[0046] In an exemplary embodiment, Figure 2 As shown, a business processing method is provided, which is applied to Figure 1 The service calling end 102 in the example is used for explanation, and the steps include the following steps S202 to S210. Among them:
[0047] Step S202: In response to a business processing event initiated by a user, business information input by the user for a target business is obtained.
[0048] Among them, a business processing event refers to an event initiated by a user that requires business processing. For example, a user can initiate a resource transfer event if he / she has the intention to transfer resources. The target business is the business targeted by the business processing event initiated by the user. When the business processing event is a resource transfer event, the target business is the resource transfer business. Business information is information associated with the resource transfer business. Business information may include, for example, the amount of resource transfer, the account of resource transfer, and the time of resource transfer, etc.
[0049] Specifically, after the user initiates a business processing event, the service caller needs to respond to the business processing event initiated by the user, obtain the business information input by the user for the target business in the business processing event, and clarify the specific situation of the business processing. It can be understood that the operation of obtaining the business information input by the user for the target business can be active acquisition or passive reception.
[0050] Step S204: split the target business based on the business information to determine the immediate matters and non-immediate matters included in the target business.
[0051] Among them, immediate matters refer to matters that need to be processed immediately. Non-immediate matters refer to matters that need to be processed non-immediately. For example, in the case where the business processing event is the purchase of an item, the immediate matter is to give the item to the user, and the non-immediate matter is to transfer the resources corresponding to the item. It can be understood that when a user purchases an item, he needs to get the item immediately, and the matter of deducting resources can be processed non-immediately in the background, and the final result is that the deduction of resources is successful.
[0052] Specifically, since immediate matters and non-immediate matters are handled by different execution entities, it is necessary to split the target business based on the actual business information and determine the immediate matters and non-immediate matters included in the target business. For example, if the target business is the same, the corresponding immediate matters and non-immediate matters may also be different if the business information is different.
[0053] Step S206, filtering the instant event parameters of the instant event and the non-instant event parameters of the non-instant event from the business information.
[0054] Among them, the immediate matter parameters refer to the parameters required for processing immediate matters, and the non-immediate matter parameters refer to the parameters required for processing non-immediate matters.
[0055] Specifically, in order to process the immediate items and non-immediate items, the immediate item parameters of the immediate items and the non-immediate item parameters of the non-immediate items can be filtered from the business information to facilitate the subsequent item processing. For example, when the immediate item is to give an item to the user, the immediate item parameters can be, for example, the size and type of the item. When the non-immediate item is to deduct resources, the non-immediate item parameters can be, for example, the amount of resource transfer, the resource type, etc.
[0056] Step S208, when the immediate event is completed according to the immediate event parameters, the parameter data volume of the non-immediate event parameters is determined.
[0057] The parameter data volume refers to the data volume occupied by non-immediate event parameters.
[0058] Specifically, the service call end is used to complete the instant event according to the instant event parameters. After completing the instant event, it is necessary to determine the parameter data volume of the non-instant event parameters to determine the data volume occupied by the non-instant event parameters.
[0059] Step S210, if the parameter data volume is greater than the data volume threshold, the access address of the non-immediate event parameters is fed back to the service provider, so that the service provider obtains the non-immediate event parameters through the access address and completes the non-immediate event according to the non-immediate event parameters.
[0060] The data volume threshold refers to the pre-set maximum data volume. That is, if the parameter data volume is greater than the data volume threshold, it means that the parameter data volume is large and needs to be fed back through the access address. The access address refers to the digital address used to identify and locate network resources or devices. The service provider is the party that receives the request and returns the response, also known as the server. It is responsible for processing the request sent by the client, executing the corresponding business logic, and returning the result.
[0061] Specifically, if the parameter data volume is greater than the data volume threshold, it means that the parameter data volume is large and needs to be fed back by way of the access address. Therefore, the access address of the non-immediate item parameter can be fed back to the service provider, so that the service provider obtains the non-immediate item parameter through the access address and completes the non-immediate item according to the non-immediate item parameter. It can be understood that if the parameter data volume is less than or equal to the data volume threshold, the non-immediate item parameter can be directly fed back to the service provider.
[0062] The above-mentioned business processing method, in response to the business processing event initiated by the user, obtains the business information input by the user for the target business, can determine the specific situation of the user's business processing, splits the target business based on the business information, determines the immediate matters and non-immediate matters contained in the target business, can distinguish the specific matters corresponding to the target business, and screens the immediate matter parameters of the immediate matters and the non-immediate matter parameters of the non-immediate matters from the business information. When the immediate matters are completed according to the immediate matter parameters, the parameter data volume of the non-immediate matter parameters is determined. If the parameter data volume is greater than the data volume threshold, it indicates that the parameter data volume corresponding to the immediate matter parameters is large. Therefore, it is necessary to feed back the access address of the non-immediate matter parameters to the service provider, so that the service provider obtains the non-immediate matter parameters through the access address and completes the non-immediate matters according to the non-immediate matter parameters. By using the above-mentioned method for business processing, the immediate matter parameters with large data volume can be fed back to the service provider in the form of the access address, thereby improving the stability of business processing under the premise of ensuring the security of the parameters.
[0063] In an exemplary embodiment, the access address of the non-immediate matter parameter is fed back to the service provider so that the service provider obtains the non-immediate matter parameter through the access address, including: storing the non-immediate matter parameter in a storage space; putting the access address of the non-immediate matter parameter in the storage space into a message queue in the form of a message body, so that the service provider obtains the message body from the message queue, obtains the access address based on the message body, and accesses the non-immediate matter parameter from the storage space according to the access address.
[0064] Storage space, also known as storage medium or storage device, is a physical medium or device used to store data, information or programs. The message body usually refers to the specific content part that needs to be transmitted in a messaging system. Message queue is a widely used communication mechanism in distributed systems, which allows asynchronous and reliable communication between different system or application components.
[0065] Specifically, if the parameter data volume is greater than the data volume threshold, the service calling end can first store the non-immediate matter parameters in the storage space, and then generate an access address for the non-immediate matter parameters in the storage space, and put the access address into the message queue in the form of a message body, so that the subsequent service provider can obtain the message body from the message queue, obtain the access address from the message body, and access the access address, thereby achieving the purpose of accessing the non-immediate matter parameters corresponding to the access address from the storage space.
[0066] In this embodiment, the service calling end stores the non-immediate event parameters in the storage space and puts the corresponding access address into the message queue in the form of a message body, which can ensure the parameter security of the non-immediate event parameters while improving the orderliness of the subsequent parameter access by the service provider.
[0067] In an exemplary embodiment, the business processing method also includes: if the parameter data volume is less than or equal to the data volume threshold, the non-immediate matter parameters are placed in a message queue, so that the service provider obtains the non-immediate matter parameters from the message queue and completes the non-immediate matter according to the non-immediate matter parameters.
[0068] Specifically, if the parameter data volume is less than or equal to the data volume threshold, it indicates that the data volume of the non-immediate matter parameter corresponding to the parameter data volume is small. Therefore, the non-immediate matter parameter can be directly put into the message queue so that the service provider can obtain the non-immediate matter parameter from the message queue and complete the non-immediate matter according to the non-immediate matter parameter, which is conducive to ensuring the stability of business processing.
[0069] In an exemplary embodiment, the access address of the non-immediate matter parameter in the storage space is placed in the message queue in the form of a message body, including: obtaining multiple candidate sending modes and the matter processing type corresponding to the non-immediate matter parameter; matching the matter processing type with each candidate sending mode, and using the successfully matched candidate sending mode as the target sending mode corresponding to the matter processing type; based on the target sending mode, placing the access address of the non-immediate matter parameter in the storage space in the message queue in the form of a message body.
[0070] The candidate sending mode refers to the possible selected access address sending mode, for example, the candidate sending mode may include delayed sending, real-time sending, etc. The event processing type is the event processing type corresponding to the non-immediate event parameter. It can be understood that different event processing types may correspond to different candidate sending modes. The target sending mode is the sending mode selected from the candidate sending modes and corresponding to the event processing type.
[0071] Specifically, before business processing, multiple candidate sending modes can be pre-set. During business processing, the service call end can first obtain multiple preset candidate sending modes, and determine the event processing type corresponding to the non-immediate event parameter, and then match the event processing type with each candidate sending mode. If the event processing type successfully matches a candidate sending mode, the candidate sending mode that will be successfully matched can be used as the target sending mode corresponding to the event processing type; based on the target sending mode, the access address of the non-immediate event parameter in the storage space is placed in the message queue in the form of a message body. Exemplarily, the target sending mode corresponding to the event processing type can be, for example, delayed sending or real-time sending. The specific selection is subject to the actual situation and is not limited here.
[0072] In this embodiment, the candidate sending mode corresponding to the non-immediate event parameter is selected according to the event processing type corresponding to the non-immediate event parameter. The appropriate candidate sending mode can be flexibly selected according to the different adaptability of the non-immediate event parameter to ensure the normal progress of the business processing process.
[0073] In an exemplary embodiment, a business processing method is also provided, which is applied to a service provider, and includes: obtaining an access address for non-immediate matter parameters; the access address is obtained by the service calling end determining the parameter data volume of the non-immediate matter parameters when the immediate matter is completed according to the immediate matter parameters, and feedback on the access address of the non-immediate matter parameters when the parameter data volume is greater than a data volume threshold; the non-immediate matter parameters and the immediate matter parameters are obtained by the service calling end in response to a business processing event initiated by the user, obtaining business information input by the user for the target business, splitting the target business based on the business information, determining the immediate matters and non-immediate matters contained in the target business, and filtering them from the business information; obtaining the non-immediate matter parameters through the access address, and completing the non-immediate matter according to the non-immediate matter parameters.
[0074] Specifically, with the service provider as the execution entity, the service calling end responds to the business processing event initiated by the user, obtains the business information input by the user for the target business, splits the target business based on the business information, determines the immediate matters and non-immediate matters included in the target business, and screens the immediate matter parameters of the immediate matters and the non-immediate matter parameters of the non-immediate matters from the business information. When the immediate matters are completed according to the immediate matter parameters, the parameter data volume of the non-immediate matter parameters is determined. If the parameter data volume is greater than the data volume threshold, the access address of the non-immediate matter parameters is fed back to the service provider, and the service provider can obtain the access address of the non-immediate matter parameters, obtain the non-immediate matter parameters through the access address, and complete the non-immediate matter according to the non-immediate matter parameters.
[0075] In this embodiment, after the service calling end completes the operation of access address feedback, the service providing end can smoothly obtain non-immediate event parameters according to the access address, and complete the non-immediate event according to the non-immediate event parameters, thereby ensuring the normal progress of the business processing process.
[0076] In an exemplary embodiment, the business processing method also includes: if the access address is not obtained, re-executing the step of obtaining the access address of the non-immediate matter parameters and recording the number of retries; if the access address is still not obtained when the number of retries is greater than or equal to the retry threshold, sending a feedback signal to the service call end.
[0077] The feedback signal refers to a signal sent by the service provider to the service caller to provide feedback on the acquisition status when the access address is not acquired.
[0078] Specifically, if the service provider fails to obtain the access address, it re-executes the steps of obtaining the access address of the non-immediate matter parameters and records the number of retries until the number of retries is greater than or equal to the retry threshold. If the access address is still not obtained at this time, a feedback signal is sent to the service caller to feedback the situation that the access address was not obtained, so that the service caller can take corresponding processing measures to ensure the normal progress of the business processing process.
[0079] In a specific embodiment, Figure 3 As shown, a business processing method in an actual application scenario is also provided, including:
[0080] 1. The service caller starts a transaction and handles local transactions, etc.
[0081] Call asynchronous services;
[0082] 2.1 Business information is stored in the local database;
[0083] 2.2 Cache the business information in the JVM (Java Virtual Machine). If the parameter data volume of the parameter corresponding to the business information is greater than the specified value, the parameter is cached in the db (Database).
[0084] 3. Business systems and other middleware or operating other businesses;
[0085] 4. The transaction is completed;
[0086] 5. Send MQ (Message Queue) messages. There are two types of messages: real-time messages and delayed messages (delivered to the message queue according to a specified agreed period)
[0087] 5.1 Integrate the cache to send non-immediate event parameters and send them to the specified MQ. If the amount of parameter data of the non-immediate event parameters is too large, there will be an access address of the synchronization service in the MQ message to obtain the non-immediate event parameters;
[0088] 5.2 After the parameters are sent successfully, the local DB related data will be deleted;
[0089] 6. The service provider monitors the corresponding message queue;
[0090] 6.1 After receiving the message, determine whether the message contains parameters. If not, obtain the non-immediate event parameters through the access address;
[0091] 6.2 Use the non-immediate event parameters obtained from the message to trigger the business method call;
[0092] 6.3 If there is no abnormality in the business system, the service is completed;
[0093] 6.4 If there is an exception in the business system, retry according to the specified rules (multiple retries, by number, delayed retries, etc.);
[0094] 6.4.1 Retry rules: Business groups can specify retry rules through configuration, such as immediate retry or delayed retry (waiting for a specified time), and can also specify whether the data is dropped into the database or re-delivered to MQ after a retry fails;
[0095] 6.5 When the retry reaches the specified threshold, exceeds the specified time or exceeds the specified number of times, the data is stored in the DB;
[0096] 7. Timed retry logic, scan the specified DB table (including sending and consumption), and resend the message queue.
[0097] This embodiment refers to the synchronous service call form and is based on the function interface definition specification, wherein steps 2, 5, and 6 are provided in a component manner, and the user can complete the operation based on annotations and interfaces.
[0098] Here are some examples:
[0099] The original pseudo code is as follows:
[0100] Sender
[0101] Bengintransaction
[0102] dO
[0103] Store asynchronous message parameters ("xxx")
[0104] dB
[0105] Endtransaction
[0106] Establishing MQ connection
[0107] Send Message("xxx")
[0108] Close MQ connection
[0109] Caller
[0110] Establishing MQ connection
[0111] Bind to the specified mq
[0112] Implement specific consumption methods
[0113] Confirm MQ message
[0114] Pseudo code of this embodiment
[0115] Asynchronous Service Interface Specification
[0116] voidmethod(StringtransactionID)
[0117] Sender
[0118] Begintransaction
[0119] dO
[0120] method("xxx")
[0121] dB
[0122] Endtransaction
[0123] The caller only needs to add a DascService annotation to the provided class to implement the specific consumption method.
[0124] In a specific embodiment, Figure 4 As shown, a business processing method is also provided, which is applied to the service calling end, and the method includes:
[0125] Step S401, in response to a business processing event initiated by a user, obtaining business information input by the user for a target business;
[0126] Step S402, splitting the target business based on the business information to determine the immediate matters and non-immediate matters included in the target business;
[0127] Step S403, filtering the instant event parameters of the instant event and the non-instant event parameters of the non-instant event from the business information;
[0128] Step S404, when the immediate event is completed according to the immediate event parameters, determining the parameter data volume of the non-immediate event parameters;
[0129] Step S405: if the parameter data volume is less than or equal to the data volume threshold, the non-immediate event parameters are put into a message queue, so that the service provider obtains the non-immediate event parameters from the message queue and completes the non-immediate event according to the non-immediate event parameters;
[0130] Step S406, if the parameter data volume is greater than the data volume threshold, the non-immediate event parameters are stored in the storage space;
[0131] Step S407, obtaining multiple candidate sending modes and event processing types corresponding to the non-immediate event parameters;
[0132] Step S408, matching the event processing type with each candidate sending mode, and using the successfully matched candidate sending mode as the target sending mode corresponding to the event processing type;
[0133] Step S409, based on the target sending mode, puts the access address of the non-immediate event parameters in the storage space into the message queue in the form of a message body, so that the service provider obtains the message body from the message queue, obtains the access address based on the message body, accesses the non-immediate event parameters from the storage space according to the access address, and completes the non-immediate event according to the non-immediate event parameters.
[0134] In a specific embodiment, Figure 5 As shown, a business processing method is also provided, which is applied to a service provider, and the method includes:
[0135] Step S501, trying to obtain the access address of the non-immediate event parameter;
[0136] Step S502, if the access address is not obtained, re-execute the step of obtaining the access address of the non-immediate event parameter, and record the number of retries;
[0137] Step S503: If the access address is still not obtained when the number of retries is greater than or equal to the retry threshold, a feedback signal is sent to the service caller;
[0138] The access address is obtained by the service calling end determining the parameter data volume of the non-immediate item parameter when the instant item is completed according to the instant item parameter, and feedback of the access address of the non-immediate item parameter when the parameter data volume is greater than the data volume threshold; the non-immediate item parameter and the instant item parameter are obtained by the service calling end in response to the business processing event initiated by the user, obtaining the business information input by the user for the target business, splitting the target business based on the business information, determining the instant items and non-immediate items included in the target business, and filtering them from the business information;
[0139] Step S504: if the access address is obtained, the non-immediate event parameters are obtained through the access address, and the non-immediate event is completed according to the non-immediate event parameters.
[0140] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0141] Based on the same inventive concept, the embodiment of the present application also provides a business processing device for implementing the business processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more business processing device embodiments provided below can refer to the limitations on the business processing method above, and will not be repeated here.
[0142] In an exemplary embodiment, Figure 6 As shown, a service processing device 600 is provided, including: a service information acquisition module 602, a service splitting module 604, a parameter screening module 606, a data volume determination module 608 and an address feedback module 610, wherein:
[0143] The business information acquisition module 602 is used to respond to the business processing event initiated by the user and acquire the business information input by the user for the target business;
[0144] A business splitting module 604 is used to split the target business based on the business information and determine the immediate matters and non-immediate matters included in the target business;
[0145] The parameter screening module 606 is used to screen the instant event parameters of the instant event and the non-instant event parameters of the non-instant event from the business information;
[0146] A data volume determination module 608, for determining the parameter data volume of the non-immediate event parameters when the immediate event is completed according to the immediate event parameters;
[0147] The address feedback module 610 is used to feed back the access address of the non-immediate event parameter to the service provider if the parameter data volume is greater than the data volume threshold, so that the service provider can obtain the non-immediate event parameter through the access address and complete the non-immediate event according to the non-immediate event parameter.
[0148] In an exemplary embodiment, the address feedback module 610 includes:
[0149] A parameter storage unit, used to store non-immediate event parameters in a storage space;
[0150] The parameter insertion unit is used to put the access address of the non-immediate event parameter in the storage space into the message queue in the form of a message body, so that the service provider can obtain the message body from the message queue, obtain the access address based on the message body, and access the non-immediate event parameter from the storage space according to the access address.
[0151] In an exemplary embodiment, the service processing device 600 further includes a parameter input module, which is specifically configured to:
[0152] If the parameter data volume is less than or equal to the data volume threshold, the non-immediate event parameters are placed in the message queue, so that the service provider obtains the non-immediate event parameters from the message queue and completes the non-immediate event according to the non-immediate event parameters.
[0153] In an exemplary embodiment, the parameter input unit is specifically used to:
[0154] Obtain multiple candidate sending modes and event processing types corresponding to non-immediate event parameters;
[0155] Matching the event processing type with each candidate sending mode, and using the successfully matched candidate sending mode as the target sending mode corresponding to the event processing type;
[0156] Based on the target sending mode, the access address of the non-immediate event parameter in the storage space is put into the message queue in the form of a message body.
[0157] Each module in the above-mentioned business processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.
[0158] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 7 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a business processing method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0159] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0160] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps of the above method when executing the computer program.
[0161] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0162] In one embodiment, a computer program product is provided, comprising a computer program, which implements the steps of the above method when executed by a processor.
[0163] 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, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0164] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0165] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0166] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A business processing method, characterized in that: Applied to the service calling end, the method includes: In response to a business processing event initiated by a user, obtaining business information input by the user for a target business; Splitting the target business based on the business information to determine immediate matters and non-immediate matters included in the target business; Filtering the instant matter parameters of the instant matter and the non-instant matter parameters of the non-instant matter from the business information; In the case where the immediate event is completed according to the immediate event parameters, determining the parameter data volume of the non-immediate event parameters; If the parameter data volume is greater than the data volume threshold, the access address of the non-immediate event parameters is fed back to the service provider, so that the service provider obtains the non-immediate event parameters through the access address and completes the non-immediate event according to the non-immediate event parameters.
2. The method according to claim 1, characterized in that: Feeding back the access address of the non-immediate event parameter to the service provider so that the service provider obtains the non-immediate event parameter through the access address includes: Storing the non-immediate event parameters in a storage space; The access address of the non-immediate event parameter in the storage space is placed in the message queue in the form of a message body, so that the service provider obtains the message body from the message queue, obtains the access address based on the message body, and accesses the non-immediate event parameter from the storage space according to the access address.
3. The method according to claim 2, characterized in that The method further comprises: If the parameter data volume is less than or equal to the data volume threshold, the non-immediate event parameters are placed in the message queue, so that the service provider obtains the non-immediate event parameters from the message queue and completes the non-immediate event according to the non-immediate event parameters.
4. The method according to claim 2, characterized in that: The step of placing the non-immediate event parameter into a message queue in the form of a message body at the access address of the storage space includes: Acquire multiple candidate sending modes and event processing types corresponding to the non-immediate event parameters; Matching the event processing type with each of the candidate sending modes, and using the successfully matched candidate sending mode as the target sending mode corresponding to the event processing type; Based on the target sending mode, the non-immediate event parameter is placed into a message queue in the form of a message body at the access address of the storage space.
5. A business processing method, characterized in that: Applied to a service provider, the method comprises: Obtaining an access address for a non-immediate event parameter; the access address is obtained by the service calling end determining the parameter data volume of the non-immediate event parameter when the instant event is completed according to the instant event parameter, and feeding back the access address of the non-immediate event parameter when the parameter data volume is greater than a data volume threshold; the non-immediate event parameter and the instant event parameter are obtained by the service calling end in response to a business processing event initiated by the user, obtaining the business information input by the user for the target business, splitting the target business based on the business information, determining the instant events and non-immediate events included in the target business, and screening them from the business information; The non-immediate event parameters are obtained through the access address, and the non-immediate event is completed according to the non-immediate event parameters.
6. The method according to claim 5, characterized in that The method further comprises: If the access address is not obtained, re-execute the step of obtaining the access address of the non-immediate event parameter and record the number of retries; If the access address is still not acquired when the number of retries is greater than or equal to the retry threshold, a feedback signal is sent to the service calling end.
7. A service processing device, characterized in that: The device comprises: A business information acquisition module, used to respond to a business processing event initiated by a user and acquire business information input by the user for a target business; A business splitting module, used to split the target business based on the business information, and determine the immediate matters and non-immediate matters included in the target business; A parameter screening module, used for screening the instant matter parameters of the instant matter and the non-instant matter parameters of the non-instant matter from the business information; A data volume determination module, configured to determine the parameter data volume of the non-immediate event parameter when the immediate event is completed according to the immediate event parameter; The address feedback module is used to feed back the access address of the non-immediate matter parameter to the service provider if the parameter data volume is greater than the data volume threshold, so that the service provider can obtain the non-immediate matter parameter through the access address and complete the non-immediate matter according to the non-immediate matter parameter.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.