Incoming account service processing method and device, storage medium and computer equipment
By introducing in-book processing processes and in-stream limiting in-book packet processing processes in the payment system, the problem of in-book packet discarding caused by the payment system is solved, real-time and experience improvement of customer account entry, and the solution is to end the day Resource consumption and time extension issues during reconciliation.
Patent Information
- Application Number
- CN202410958039.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-11-15
AI Technical Summary
In the payment systems of banks and other financial institutions, when a large number of incoming accounts are carried out at the same time, the system's current limiting mechanism will cause incoming accounts to be discarded, affecting the real-time and experience of customer accounts, especially those missing incoming accounts at the end of the day Accounting business requires detailed download processing, resulting in customer accounts not being recorded in real time.
Introducing incoming accounting processing process and current-limited incoming accounting message processing process are introduced in the payment system. The pending tasks are obtained through the incoming accounting message queue. When the task triggers the current-limited incoming accounting message, the current-limited incoming accounting message is stored in the preset directory, and Reprocess it after traffic peaks to ensure that the flow-limited packets are not discarded and improve the real-timeness of customer accounts.
It effectively improves customer account arrival efficiency and experience, avoids reprocessing of current limit messages only at the end of the day, reduces the time and resource consumption of the reconciliation process, and improves the stability and customer satisfaction of the payment system.
Smart Images

Figure CN118967287A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of financial payment technology, and in particular to a method and device for processing incoming transactions, a storage medium, and a computer device. Background Art
[0002] At present, banks and other financial institutions usually have payment systems. When a large number of incoming transactions are carried out at the same time, in order to protect the system, the system current limiting mechanism is usually triggered. When the system current limits, the incoming messages will be discarded to improve the performance of the system. At the end of the day, when the payment system reconciles with the bank, the bank will download the details of the incoming transactions that are missing. After receiving the detailed download response message, the application system will process the missing incoming transactions. At this time, the real-time performance of customer deposits cannot be guaranteed, affecting the customer deposit experience. Summary of the invention
[0003] In view of this, the present application provides a method and device for processing incoming account business, a storage medium, and a computer device, which are applied to a payment system; the payment system runs a payment system bus process, and the payment system bus process manages an incoming account processing process and a current-limited incoming account message processing process; the incoming account processing process obtains pending incoming account tasks based on an incoming account message queue; when the incoming account processing process determines that the pending incoming account task triggers the current limiting of the payment system task, the incoming account processing process obtains the current-limited incoming account message corresponding to the pending incoming account task and stores it in a preset current-limited incoming account message storage directory; the payment system bus process calls up the current-limited incoming account message processing process, reads the target current-limited incoming account message that meets the preset reprocessing condition in the preset current-limited incoming account message storage directory, and writes the target current-limited incoming account message into the incoming account message queue, so that the incoming account processing process reprocesses the pending incoming account task based on the target current-limited incoming account message. When the payment service incoming account triggers overload protection, it can effectively improve the customer's account arrival efficiency and enhance the customer experience.
[0004] According to one aspect of the present application, a method for processing incoming account services is provided, which is applied to a payment system; the payment system runs a payment system bus process, and the payment system bus process manages an incoming account processing process and a flow-limited incoming account message processing process; the method comprises:
[0005] The incoming account processing process obtains the incoming account tasks to be processed based on the incoming account message queue;
[0006] When the account processing process determines that the pending account task triggers the payment system task current limiting, the account processing process obtains the current limiting account message corresponding to the pending account task that triggers the payment system task current limiting, and stores the current limiting account message in a preset current limiting account message storage directory;
[0007] The payment system bus process calls up the current-limited incoming account message processing process, which reads the target current-limited incoming account message that meets the preset reprocessing conditions in the preset current-limited incoming account message storage directory, and writes the target current-limited incoming account message into the incoming account message queue, so that the incoming account processing process reprocesses the pending incoming account tasks based on the target current-limited incoming account message.
[0008] Optionally, the flow-limited incoming account message processing process reads a target flow-limited incoming account message that meets a preset reprocessing condition in a preset flow-limited incoming account message storage directory, and writes the target flow-limited incoming account message into an incoming account message queue, including:
[0009] The flow-limited incoming account message processing process determines the number of cycles, and when the number of cycles is less than or equal to the preset maximum number of cycles, queries whether the flow-limited incoming account message is stored in the preset flow-limited incoming account message storage directory;
[0010] When the current-limited incoming account message processing process queries that the limited-current incoming account message is stored in the preset current-limited incoming account message storage directory, the current-limited incoming account message processing process obtains the target current-limited incoming account message whose message name meets the preset reprocessing condition in the preset current-limited incoming account message storage directory, and writes the target current-limited incoming account message into the incoming account message queue, wherein the current-limited incoming account message is named by the incoming account processing process based on the preset message naming rule and then stored in the preset current-limited incoming account message storage directory, and the message name of the named current-limited incoming account message includes the message timestamp, message type and the name of the process to which the message belongs.
[0011] Optionally, the message timestamp is the storage time of the current-limited incoming account message; the current-limited incoming account message processing process obtains a target current-limited incoming account message whose message name meets a preset reprocessing condition in a preset current-limited incoming account message storage directory, and writes the target current-limited incoming account message into an incoming account message queue, including:
[0012] The flow-limited incoming account message processing process is in the preset flow-limited incoming account message storage directory, and based on the message name of the flow-limited incoming account message, queries the target flow-limited incoming account message whose time interval between the message timestamp in the message name and the current time point is less than the preset message reading time interval, and based on the target message name corresponding to the target flow-limited incoming account message, writes the target flow-limited incoming account message into the incoming account message queue corresponding to the process name to which the message belongs in the target message name.
[0013] Optionally, when the number of cycles of the current-limited incoming account message processing process is greater than a preset maximum number of cycles, the current-limited incoming account message processing process automatically exits, and the payment system bus process re-schedules the current-limited incoming account message processing process to restart its operation.
[0014] Optionally, the preset current-limited incoming account message storage directory includes a preset current-limited incoming account message processing success subdirectory and a preset current-limited incoming account message processing failure subdirectory; after the current-limited incoming account message processing process writes the target current-limited incoming account message into the incoming account message queue, the method further includes:
[0015] The incoming account processing process stores the successfully written target current-limited incoming account messages in the preset current-limited incoming account message processing success subdirectory, and stores the unsuccessfully written target current-limited incoming account messages in the preset current-limited incoming account message processing failure subdirectory.
[0016] Optionally, after the incoming account processing process stores the successfully written target current-limited incoming account message in a preset current-limited incoming account message processing success subdirectory, the method further includes:
[0017] In response to the payment system scheduled log cleaning task, the target flow-limited incoming account message in the preset flow-limited incoming account message processing success subdirectory is deleted.
[0018] Optionally, the incoming account processing process reprocesses the pending incoming account task based on the target current limiting incoming account message, including:
[0019] The incoming account processing process obtains the business information of the incoming account task to be processed based on the target limited incoming account message in the incoming account message queue, and reprocesses the incoming account task to be processed based on the obtained business information, wherein the business information includes at least one of a business tracking code, a business tag, a transaction log level, a transaction date, and a transaction serial number.
[0020] According to another aspect of the present application, there is provided an incoming account service processing device, which is applied to a payment system; the payment system runs a payment system bus process, and the payment system bus process manages an incoming account processing process and a flow-limited incoming account message processing process; the device comprises:
[0021] The incoming account task processing module is used to obtain the incoming account tasks to be processed based on the incoming account message queue;
[0022] A flow-limiting message storage module is used to obtain a flow-limiting incoming account message corresponding to the pending incoming account task that triggers the payment system task flow limiting when the incoming account processing process determines that the pending incoming account task triggers the payment system task flow limiting, and store the flow-limiting incoming account message in a preset flow-limiting incoming account message storage directory;
[0023] The incoming account task reprocessing module is used to call up the current-limited incoming account message processing process, read the target current-limited incoming account message that meets the preset reprocessing conditions in the preset current-limited incoming account message storage directory, and write the target current-limited incoming account message into the incoming account message queue, so that the incoming account processing process can reprocess the pending incoming account tasks based on the target current-limited incoming account message.
[0024] Optionally, the incoming account task reprocessing module is further used to:
[0025] Determine the number of cycles, and when the number of cycles is less than or equal to the preset maximum number of cycles, query whether the limited flow incoming account message is stored in the preset limited flow incoming account message storage directory;
[0026] When it is queried that a limited flow incoming account message is stored in the preset limited flow incoming account message storage directory, a target limited flow incoming account message whose message name meets the preset reprocessing condition is obtained in the preset limited flow incoming account message storage directory, and the target limited flow incoming account message is written into the incoming account message queue, wherein the limited flow incoming account message is named by the incoming account processing process based on the preset message naming rule and then stored in the preset limited flow incoming account message storage directory, and the message name of the named limited flow incoming account message includes the message timestamp, message type and the name of the process to which the message belongs.
[0027] Optionally, the message timestamp is the storage time of the current-limited incoming account message; the incoming account task reprocessing module is further used to:
[0028] In the preset current-limited incoming account message storage directory, based on the message name of the current-limited incoming account message, query the target current-limited incoming account message whose time interval between the message timestamp in the message name and the current time point is less than the preset message reading time interval, and based on the target message name corresponding to the target current-limited incoming account message, write the target current-limited incoming account message into the incoming account message queue corresponding to the process name to which the message belongs in the target message name.
[0029] Optionally, when the number of cycles of the current-limited incoming account message processing process is greater than a preset maximum number of cycles, the current-limited incoming account message processing process automatically exits, and the payment system bus process re-schedules the current-limited incoming account message processing process to restart its operation.
[0030] Optionally, the preset flow-limited incoming account message storage directory includes a preset flow-limited incoming account message processing success subdirectory and a preset flow-limited incoming account message processing failure subdirectory; the incoming account task reprocessing module is further used to:
[0031] The target current limiting incoming account message that is written successfully is stored in the preset current limiting incoming account message processing successful subdirectory, and the target current limiting incoming account message that is not written successfully is stored in the preset current limiting incoming account message processing failed subdirectory.
[0032] Optionally, the device further includes: a log cleaning task module, configured to:
[0033] In response to the payment system scheduled log cleaning task, the target flow-limited incoming account message in the preset flow-limited incoming account message processing success subdirectory is deleted.
[0034] Optionally, the incoming account task reprocessing module is further used to:
[0035] Based on the target flow-limited incoming account messages of the incoming account message queue, the business information of the pending incoming account tasks is obtained, and based on the obtained business information, the pending incoming account tasks are reprocessed, wherein the business information includes at least one of a business tracking code, a business tag, a transaction log level, a transaction date, and a transaction serial number.
[0036] According to another aspect of the present application, a storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the above-mentioned incoming account service processing method is implemented.
[0037] According to another aspect of the present application, a computer device is provided, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the above-mentioned incoming account service processing method when executing the program.
[0038] By means of the above technical scheme, the present application provides a method and device for processing incoming account business, a storage medium, and a computer device, which are applied to a payment system; the payment system runs a payment system bus process, and the payment system bus process manages an incoming account processing process and a current-limited incoming account message processing process; the incoming account processing process obtains pending incoming account tasks based on an incoming account message queue; when the incoming account processing process determines that the pending incoming account task triggers the current limiting of the payment system task, the incoming account processing process obtains the current-limited incoming account message corresponding to the pending incoming account task and stores it in a preset current-limited incoming account message storage directory; the payment system bus process calls up the current-limited incoming account message processing process, reads the target current-limited incoming account message that meets the preset reprocessing condition in the preset current-limited incoming account message storage directory, and writes the target current-limited incoming account message into the incoming account message queue, so that the incoming account processing process reprocesses the pending incoming account task based on the target current-limited incoming account message. When the payment service incoming account triggers overload protection, it can effectively improve the customer's account arrival efficiency and enhance the customer experience.
[0039] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0041] Figure 1 A schematic diagram of a process flow of a method for processing incoming account services provided by an embodiment of the present application is shown;
[0042] Figure 2 A schematic diagram showing a flow chart of another incoming account service processing method provided in an embodiment of the present application;
[0043] Figure 3 A schematic diagram showing a flow chart of another incoming account service processing method provided in an embodiment of the present application;
[0044] Figure 4 A schematic diagram of the structure of an incoming account service processing device provided in an embodiment of the present application is shown;
[0045] Figure 5 A schematic structural diagram of another incoming account service processing device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0046] The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.
[0047] In this embodiment, a method for processing incoming account services is provided, which is applied to a payment system; the payment system runs a payment system bus process, and the payment system bus process manages an incoming account processing process and a flow-limited incoming account message processing process; Figure 1 As shown, the method includes:
[0048] Step 101, the incoming account processing process obtains the incoming account task to be processed based on the incoming account message queue.
[0049] Step 102, when the account processing process determines that the pending account task triggers the payment system task current limiting, the account processing process obtains the current limiting account message corresponding to the pending account task that triggers the payment system task current limiting, and stores the current limiting account message in the preset current limiting account message storage directory.
[0050] Step 103, the payment system bus process calls up the current-limited incoming account message processing process, the current-limited incoming account message processing process reads the target current-limited incoming account message that meets the preset reprocessing conditions in the preset current-limited incoming account message storage directory, and writes the target current-limited incoming account message into the incoming account message queue, so that the incoming account processing process reprocesses the pending incoming account tasks based on the target current-limited incoming account message.
[0051] Generally, when there is an instantaneous surge in incoming bank payment business, the system current limiting mechanism will be triggered to protect the application system. Under normal circumstances, the system will discard the incoming message when limiting the flow to improve the robustness of the system. At the end of the day, when the payment system reconciles with the bank, there will be a situation where there are more banks than banks with incoming business. Then the details of the bank's missing business will be downloaded. After receiving the detailed download response message, the application system will process the missing incoming business. For this reason, when the bank payment business incoming account triggers the current limiting, some customers will not be able to enter the account in real time, and need to wait for the end-of-day reconciliation to make up the account, which affects the customer's account entry experience.
[0052] In the above embodiments of the present application, it can be applied to the payment system of a financial institution, such as a bank. The payment system runs a payment system bus process. The payment system bus process manages an incoming account processing process and a current-limited incoming account message processing process. The incoming account processing process obtains pending incoming account tasks based on an incoming account message queue.
[0053] Next, the incoming account processing process can call up the current limiting calculation function to determine whether to trigger the payment system task current limiting. For example, before the incoming account processing process starts to execute the pending incoming account task, the incoming account processing process can first clean up the current limiting parameter data to determine whether the current limiting setting parameters of the process exist. If not, then reload the current limiting configuration file. In particular, the incoming account business can also be current limited by setting the process name current limiting parameter, that is, the incoming account business is controlled by the process name. The current limiting configuration parameters are mainly used to set the triggering current limiting standard. For example, the current limit of the incoming account process is set to 80, that is, when the concurrent incoming account business exceeds 80, the payment system current limiting will be triggered. When the incoming account processing process determines that the pending incoming account task triggers the payment system task current limiting, the incoming account processing process obtains the current limiting incoming account message corresponding to the pending incoming account task that triggers the payment system task current limiting, and stores the current limiting incoming account message in the preset current limiting incoming account message storage directory. By retaining discarded messages after triggering flow limiting, flow limiting messages can be processed again after a traffic peak, thereby avoiding reloading flow limiting messages only during end-of-day reconciliation, which can improve customer account entry experience.
[0054] Next, the payment system bus process calls up the limited current incoming account message processing process, reads the target limited current incoming account message that meets the preset reprocessing conditions in the preset limited current incoming account message storage directory, and writes the target limited current incoming account message into the incoming account message queue, so that the incoming account processing process reprocesses the pending incoming account task based on the target limited current incoming account message. To this end, without affecting the bank payment business incoming account limiting mechanism to protect the application system from the impact of overload requests, while improving the security of the application system, it can also avoid the situation where only the limited current message is discarded, so that the integrity of the business can only be guaranteed by the end-of-day reconciliation details download mechanism, that is, by storing the limited current message in real time and reprocessing it in time when the incoming account task is released from the current limit, the real-time and account entry experience of the customer can be improved.
[0055] By applying the technical solution of this embodiment, the incoming account processing process obtains the pending incoming account task based on the incoming account message queue; when the incoming account processing process determines that the pending incoming account task triggers the payment system task current limiting, the incoming account processing process obtains the current limiting incoming account message corresponding to the pending incoming account task and stores it in the preset current limiting incoming account message storage directory; the payment system bus process calls up the current limiting incoming account message processing process, reads the target current limiting incoming account message that meets the preset reprocessing condition in the preset current limiting incoming account message storage directory, and writes the target current limiting incoming account message into the incoming account message queue, so that the incoming account processing process reprocesses the pending incoming account task based on the target current limiting incoming account message. When the payment service incoming account triggers the overload protection, it can effectively improve the customer's account arrival efficiency and enhance the customer experience.
[0056] Further, as a refinement and expansion of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, another incoming account business processing method is provided, which is applied to a payment system; the payment system runs a payment system bus process, and the payment system bus process manages an incoming account processing process and a current-limited incoming account message processing process; Figure 2 As shown, the method includes:
[0057] Step 201, the incoming account processing process obtains the incoming account task to be processed based on the incoming account message queue.
[0058] Step 202, when the account processing process determines that the pending account task triggers the payment system task current limiting, the account processing process obtains the current limiting account message corresponding to the pending account task that triggers the payment system task current limiting, and stores the current limiting account message in a preset current limiting account message storage directory, wherein the current limiting account message is named by the account processing process based on a preset message naming rule and then stored in the preset current limiting account message storage directory, and the message name of the named current limiting account message includes a message timestamp, a message type and the name of the process to which the message belongs, and the message timestamp is the storage time of the current limiting account message.
[0059] In the above embodiment of the present application, the incoming account processing process obtains the pending incoming account task based on the incoming account message queue. When the incoming account processing process determines that the pending incoming account task triggers the payment system task flow limiting, that is, when the payment system has too many instantaneous incoming account tasks that trigger the task flow limiting, the incoming account processing process obtains the flow-limited incoming account message corresponding to the pending incoming account task that triggers the payment system task flow limiting, and stores the flow-limited incoming account message in the preset flow-limited incoming account message storage directory. The aforementioned flow-limited incoming account message is named by the incoming account processing process based on the preset message naming rule and stored in the preset flow-limited incoming account message storage directory. The preset message naming rule is, for example: file_message timestamp (YYYYMMDDHHMMSSxxx)_message type_sessioni onid-name of the process to which the message belongs.
[0060] Step 203: the flow-limited incoming message processing process determines the number of cycles.
[0061] Next, the flow-limited incoming message processing process determines the number of loops. In order to protect the operating efficiency of the payment system, when the number of loops of the flow-limited incoming message processing process is greater than the preset maximum number of loops (the preset maximum number of loops can be set to 50 times, for example), the flow-limited incoming message processing process automatically exits to release resources and improve operating efficiency.
[0062] Step 204, when the number of cycles of the flow-limited incoming account message processing process is greater than the preset maximum number of cycles, the flow-limited incoming account message processing process automatically exits, and the payment system bus process reschedules the flow-limited incoming account message processing process to restart its operation.
[0063] Step 205: When the number of cycles is less than or equal to the preset maximum number of cycles, the flow-limited incoming account message processing process queries whether the flow-limited incoming account message is stored in the preset flow-limited incoming account message storage directory.
[0064] Then, when the number of cycles is greater than the preset maximum number of cycles, the process exits, and the payment system bus process schedules the limited flow incoming account message processing process to restart the operation, thereby completing the release of resources and improving the operating efficiency of the payment system. When the number of cycles is less than or equal to the preset maximum number of cycles, the limited flow incoming account message processing process queries whether the limited flow incoming account message is stored in the preset limited flow incoming account message storage directory.
[0065] Step 206, when the current-limited incoming account message processing process inquires that the limited-flow incoming account message is stored in the preset current-limited incoming account message storage directory, the current-limited incoming account message processing process inquires in the preset current-limited incoming account message storage directory, based on the message name of the current-limited incoming account message, for the target current-limited incoming account message whose time interval between the message timestamp in the message name and the current time point is less than the preset message reading time interval.
[0066] Step 207, the flow-limited incoming account message processing process writes the target flow-limited incoming account message into the incoming account message queue corresponding to the process name to which the message belongs in the target message name based on the target message name corresponding to the target flow-limited incoming account message, so that the incoming account processing process reprocesses the pending incoming account task based on the target flow-limited incoming account message.
[0067] Next, when the flow-limited incoming account message processing process inquires that the limited-flow incoming account message is stored in the preset flow-limited incoming account message storage directory, the flow-limited incoming account message processing process obtains the message name of the target flow-limited incoming account message in the preset flow-limited incoming account message storage directory, queries the target flow-limited incoming account message whose time interval between the message timestamp in the message name and the current time point is less than the preset message reading time interval, and based on the target message name corresponding to the target flow-limited incoming account message, writes the target flow-limited incoming account message into the incoming account message queue corresponding to the process name to which the message belongs in the target message name, and the preset message reading time interval can be set to 3 minutes, for example. Then, the flow-limited incoming account message processing process writes the target flow-limited incoming account message into the incoming account message queue corresponding to the process name to which the message belongs based on the process name to which the message belongs in the message name, so that the incoming account processing process reprocesses the pending incoming account task based on the target flow-limited incoming account message. To this end, by performing secondary processing on the flow-limited message, the processing of payment incoming accounts can be completed faster, the efficiency of customer account entry can be improved, and the time efficiency of payment incoming account processing can be improved.
[0068] In the process of daily summary reconciliation and detailed reconciliation, there may be a cycle of daily summary reconciliation, detailed reconciliation, daily summary reconciliation, and detailed reconciliation. By applying the technical solution of this embodiment, this cycle can be reduced and the reconciliation efficiency can be improved. Specifically, the incoming account processing process obtains pending incoming account tasks based on the incoming account message queue. When the pending incoming account tasks trigger the current limiting of the payment system task, the incoming account processing process obtains the current limiting incoming account message and stores it in the preset current limiting incoming account message storage directory. The current limiting incoming account message processing process obtains the number of cycles. When the number of cycles is greater than the preset maximum number of cycles, the process exits and releases system resources. The payment system bus process schedules the current limiting incoming account message processing process to restart and run. When the number of cycles is less than or equal to the preset maximum number of cycles, when the current-limited incoming account message processing process queries that the limited-flow incoming account message is stored in the preset current-limited incoming account message storage directory, the current-limited incoming account message processing process obtains the target current-limited incoming account message in the preset current-limited incoming account message storage directory, whose message timestamp in the message name and the time interval between the current time point are less than the preset message reading time interval, and based on the process name to which the message belongs in the target message name of the target current-limited incoming account message, writes the target current-limited incoming account message into the incoming account message queue corresponding to the process name to which the message belongs, so that the incoming account processing process re-processes the pending incoming account tasks based on the target current-limited incoming account message.
[0069] Further, as a refinement and expansion of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, another incoming account business processing method is provided, which is applied to a payment system; the payment system runs a payment system bus process, and the payment system bus process manages an incoming account processing process and a current-limited incoming account message processing process; Figure 3 As shown, the method includes:
[0070] Step 301, the incoming account processing process obtains the incoming account task to be processed based on the incoming account message queue.
[0071] Step 302, when the account processing process determines that the pending account task triggers the payment system task current limiting, the account processing process obtains the current limiting account message corresponding to the pending account task that triggers the payment system task current limiting, and stores the current limiting account message in the preset current limiting account message storage directory.
[0072] In the above embodiment of the present application, the incoming account processing process obtains the pending incoming account task based on the incoming account message queue. When the incoming account processing process determines that the pending incoming account task triggers the payment system task current limiting, the incoming account processing process obtains the current limiting incoming account message corresponding to the pending incoming account task that triggers the payment system task current limiting, and stores the current limiting incoming account message in the preset current limiting incoming account message storage directory, in preparation for the subsequent secondary processing of the current limiting message.
[0073] Step 303, the payment system bus process calls up the current-limited incoming account message processing process, reads the target current-limited incoming account message that meets the preset reprocessing conditions in the preset current-limited incoming account message storage directory, and writes the target current-limited incoming account message into the incoming account message queue, wherein the preset current-limited incoming account message storage directory includes a preset current-limited incoming account message processing success subdirectory and a preset current-limited incoming account message processing failure subdirectory.
[0074] Step 304, the incoming account processing process obtains the business information of the pending incoming account task based on the target limited incoming account message in the incoming account message queue, and reprocesses the pending incoming account task based on the obtained business information, wherein the business information includes at least one of a business tracking code, a business tag, a transaction log level, a transaction date, and a transaction serial number.
[0075] Step 305, the incoming account processing process stores the successfully written target current-limited incoming account message in a preset current-limited incoming account message processing success subdirectory, and stores the unsuccessfully written target current-limited incoming account message in a preset current-limited incoming account message processing failure subdirectory.
[0076] Step 306, in response to the payment system's scheduled log cleaning task, delete the target current-limited incoming account message in the preset current-limited incoming account message processing success subdirectory.
[0077] Next, the payment system bus process calls up the limited current incoming account message processing process, reads the target limited current incoming account message that meets the preset reprocessing conditions in the preset limited current incoming account message storage directory, and writes the target limited current incoming account message into the incoming account message queue. Therefore, by reasonably processing the limited current message, the unstable "account entry" caused by the payment system task limited current can be avoided, and the stability and reliability of customer account entry can be improved.
[0078] Next, the incoming account processing process obtains the business information of the pending incoming account tasks based on the target current-limited incoming account messages in the incoming account message queue, and reprocesses the pending incoming account tasks based on the obtained business information, the business information including at least one of the business tracking code, business tag, transaction log level, transaction date, and transaction serial number. The incoming account processing process determines whether the target current-limited incoming account message is written successfully, and the incoming account processing process stores the successfully written target current-limited incoming account message in the preset current-limited incoming account message processing success sub-directory, and stores the unsuccessfully written target current-limited incoming account message in the preset current-limited incoming account message processing failure sub-directory. In response to the payment system's scheduled log cleaning tasks (for example, every three days, every week, every month, etc., and the settings can be changed at any time according to the actual application scenario), the current-limited incoming account messages in the preset current-limited incoming account message processing success sub-directory are deleted. To this end, a step is added to determine whether the current-limited incoming account message is written successfully, and the successfully written current-limited incoming account messages are cleaned up regularly to free up storage space. For the current-limited incoming account messages that failed to be written, they are re-read and re-written, which can improve the processing integrity of the current-limited message and avoid missing current-limited messages that are not processed, resulting in inaccurate customer account entry.
[0079] By applying the technical solution of this embodiment, the incoming account processing process obtains the pending incoming account task based on the incoming account message queue. When the pending incoming account task triggers the payment system task flow limiting, the incoming account processing process obtains the flow limiting incoming account message corresponding to the pending incoming account task that triggers the payment system task flow limiting and stores it in the preset flow limiting incoming account message storage directory. The flow limiting incoming account message processing process reads the target flow limiting incoming account message that meets the preset reprocessing condition in the preset flow limiting incoming account message storage directory, and writes the target flow limiting incoming account message into the incoming account message queue. The incoming account processing process obtains the business information of the pending incoming account task based on the target flow limiting incoming account message in the incoming account message queue, and reprocesses the pending incoming account task based on the obtained business information. The incoming account processing process stores the successfully written target flow limiting incoming account message in the preset flow limiting incoming account message processing success subdirectory, and stores the unsuccessfully written target flow limiting incoming account message in the preset flow limiting incoming account message processing failure subdirectory. In response to the payment system scheduled log cleaning task, the flow limiting incoming account message in the preset flow limiting incoming account message processing success subdirectory is deleted. This can avoid the increase in the reconciliation process time due to payment system task limiting, and the problem that at the end of the day, due to the large amount of data downloaded from the incoming account details, the system limiting may be triggered again, resulting in an increase in the entire end-of-day reconciliation process time.
[0080] Further, as Figure 1 The specific implementation of the method, the embodiment of the present application provides an incoming account business processing device, which is applied to a payment system; the payment system runs a payment system bus process, and the payment system bus process manages an incoming account processing process and a current-limited incoming account message processing process; Figure 4 As shown, the device comprises:
[0081] The incoming account task processing module 401 is used to obtain the incoming account tasks to be processed based on the incoming account message queue;
[0082] The flow-limiting message storage module 402 is used to obtain the flow-limiting incoming account message corresponding to the pending incoming account task that triggers the payment system task flow limiting when the incoming account processing process determines that the pending incoming account task triggers the payment system task flow limiting, and store the flow-limiting incoming account message in a preset flow-limiting incoming account message storage directory;
[0083] Incoming account task reprocessing module 403, the payment system bus calls up the current-limited incoming account message processing process, reads the target current-limited incoming account message that meets the preset reprocessing conditions in the preset current-limited incoming account message storage directory, and writes the target current-limited incoming account message into the incoming account message queue, so that the incoming account processing process reprocesses the pending incoming account task based on the target current-limited incoming account message.
[0084] Optionally, the incoming account task reprocessing module 403 is further used to:
[0085] Determine the number of cycles, and when the number of cycles is less than or equal to the preset maximum number of cycles, query whether the limited flow incoming account message is stored in the preset limited flow incoming account message storage directory;
[0086] When the current-limited incoming account message processing process queries that the limited-current incoming account message is stored in the preset current-limited incoming account message storage directory, the target current-limited incoming account message whose message name meets the preset reprocessing condition is obtained in the preset current-limited incoming account message storage directory, and the target current-limited incoming account message is written into the incoming account message queue, wherein the current-limited incoming account message is named by the incoming account processing process based on the preset message naming rule and then stored in the preset current-limited incoming account message storage directory, and the message name of the named current-limited incoming account message includes the message timestamp, message type and the name of the process to which the message belongs.
[0087] Optionally, the message timestamp is the storage time of the current-limited incoming account message; the incoming account task reprocessing module 403 is further used to:
[0088] In the preset current-limited incoming account message storage directory, based on the message name of the current-limited incoming account message, query the target current-limited incoming account message whose time interval between the message timestamp in the message name and the current time point is less than the preset message reading time interval, and based on the target message name corresponding to the target current-limited incoming account message, write the target current-limited incoming account message into the incoming account message queue corresponding to the process name to which the message belongs in the target message name.
[0089] Optionally, when the number of cycles of the current-limited incoming account message processing process is greater than a preset maximum number of cycles, the current-limited incoming account message processing process automatically exits, and the payment system bus process re-schedules the current-limited incoming account message processing process to restart its operation.
[0090] Optionally, the preset flow-limited incoming account message storage directory includes a preset flow-limited incoming account message processing success subdirectory and a preset flow-limited incoming account message processing failure subdirectory; the incoming account task reprocessing module 403 is further used to:
[0091] The target current limiting incoming account message that is written successfully is stored in the preset current limiting incoming account message processing successful subdirectory, and the target current limiting incoming account message that is not written successfully is stored in the preset current limiting incoming account message processing failed subdirectory.
[0092] Optionally, the incoming account task reprocessing module 403 is further used to:
[0093] Based on the target flow-limited incoming account messages of the incoming account message queue, the business information of the pending incoming account tasks is obtained, and based on the obtained business information, the pending incoming account tasks are reprocessed, wherein the business information includes at least one of a business tracking code, a business tag, a transaction log level, a transaction date, and a transaction serial number.
[0094] Furthermore, the embodiment of the present application provides an incoming account service processing device, which is applied to a payment system; the payment system runs a payment system bus process, and the payment system bus process manages an incoming account processing process and a current-limited incoming account message processing process; Figure 5 As shown, the device comprises:
[0095] The incoming account task processing module 501 is used to obtain the incoming account tasks to be processed based on the incoming account message queue;
[0096] The flow-limiting message storage module 502 is used to obtain the flow-limiting incoming message corresponding to the pending incoming task that triggers the payment system task flow limiting when the incoming account processing process determines that the pending incoming account task triggers the payment system task flow limiting, and store the flow-limiting incoming account message in a preset flow-limiting incoming account message storage directory;
[0097] The incoming account task reprocessing module 503 calls up the current-limited incoming account message processing process, reads the target current-limited incoming account message that meets the preset reprocessing condition in the preset current-limited incoming account message storage directory, and writes the target current-limited incoming account message into the incoming account message queue, so that the incoming account processing process reprocesses the pending incoming account task based on the target current-limited incoming account message;
[0098] The log cleaning task module 504 is used to delete the target flow-limited incoming account message in the preset flow-limited incoming account message processing success subdirectory in response to the payment system's scheduled log cleaning task.
[0099] Optionally, the incoming account task reprocessing module 503 is further used to:
[0100] Determine the number of cycles of the flow-limited account message processing process. When the number of cycles is less than or equal to the preset maximum number of cycles, call up the flow-limited account message processing process to query whether the flow-limited account message is stored in the preset flow-limited account message storage directory;
[0101] When the current-limited incoming account message processing process queries that the limited-current incoming account message is stored in the preset current-limited incoming account message storage directory, the target current-limited incoming account message whose message name meets the preset reprocessing condition is obtained in the preset current-limited incoming account message storage directory, and the target current-limited incoming account message is written into the incoming account message queue, wherein the current-limited incoming account message is named by the incoming account processing process based on the preset message naming rule and then stored in the preset current-limited incoming account message storage directory, and the message name of the named current-limited incoming account message includes the message timestamp, message type and the name of the process to which the message belongs.
[0102] Optionally, the message timestamp is the storage time of the current-limited incoming message; the incoming task reprocessing module 503 is further used to:
[0103] In the preset current-limited incoming account message storage directory, based on the message name of the current-limited incoming account message, query the target current-limited incoming account message whose time interval between the message timestamp in the message name and the current time point is less than the preset message reading time interval, and based on the target message name corresponding to the target current-limited incoming account message, write the target current-limited incoming account message into the incoming account message queue corresponding to the process name to which the message belongs in the target message name.
[0104] Optionally, when the number of cycles of the current-limited incoming account message processing process is greater than a preset maximum number of cycles, the current-limited incoming account message processing process automatically exits, and the current-limited incoming account message processing process is restarted by scheduling the payment system bus process.
[0105] Optionally, the preset flow-limited incoming account message storage directory includes a preset flow-limited incoming account message processing success subdirectory and a preset flow-limited incoming account message processing failure subdirectory; the incoming account task reprocessing module 503 is further used to:
[0106] The target current limiting incoming account message that is written successfully is stored in the preset current limiting incoming account message processing successful subdirectory, and the target current limiting incoming account message that is not written successfully is stored in the preset current limiting incoming account message processing failed subdirectory.
[0107] Optionally, the incoming account task reprocessing module 503 is further used to:
[0108] Based on the target flow-limited incoming account messages of the incoming account message queue, the business information of the pending incoming account tasks is obtained, and based on the obtained business information, the pending incoming account tasks are reprocessed, wherein the business information includes at least one of a business tracking code, a business tag, a transaction log level, a transaction date, and a transaction serial number.
[0109] It should be noted that for other corresponding descriptions of the functional units involved in the incoming account service processing device provided in the embodiment of the present application, reference can be made to Figures 1 to 3 The corresponding description in the method will not be repeated here.
[0110] Based on the above Figures 1 to 3 The method shown in the embodiment of the present application is accordingly provided with a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned Figures 1 to 3 The method for processing incoming account business is shown.
[0111] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.
[0112] Based on the above Figures 1 to 3 The method shown, and Figure 4 and Figure 5 In order to achieve the above-mentioned purpose, the embodiment of the present application further provides a computer device, which can be a personal computer, a server, a network device, etc. The computer device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figures 1 to 3 The method for processing incoming account business is shown.
[0113] Optionally, the computer device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display screen (Displ ay), an input unit such as a keyboard (Keyboard), etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a Bluetooth interface, a WI-FI interface), etc.
[0114] Those skilled in the art will appreciate that the computer device structure provided in this embodiment does not limit the computer device, and may include more or fewer components, or a combination of certain components, or different component arrangements.
[0115] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages and saves the hardware and software resources of the computer device, and supports the operation of information processing programs and other software and / or programs. The network communication module is used to realize communication between the components inside the storage medium, and communication with other hardware and software in the physical device.
[0116] Through the description of the above implementation methods, the technicians in this field can clearly understand that the present application can be implemented by means of software plus the necessary general hardware platform, or can be implemented by hardware to obtain pending account tasks based on the account message queue; when the account processing process determines that the pending account task triggers the payment system task current limiting, the account processing process obtains the current limiting account message corresponding to the pending account task and stores it in the preset current limiting account message storage directory; when the account processing process determines that the pending account task releases the payment system task current limiting, the payment system bus process calls up the current limiting account message processing process, reads the target current limiting account message that meets the preset reprocessing condition in the preset current limiting account message storage directory, and writes the target current limiting account message into the account message queue, so that the account processing process reprocesses the pending account task based on the target current limiting account message. When the payment service account triggers the overload protection, it can effectively improve the customer's account arrival efficiency and enhance the customer experience.
[0117] Those skilled in the art will appreciate that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily necessary for implementing the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario can be distributed in the devices of the implementation scenario according to the description of the implementation scenario, or can be changed accordingly and located in one or more devices different from the present implementation scenario. The modules of the above-mentioned implementation scenario can be combined into one module, or can be further split into multiple submodules.
[0118] The above serial numbers of this application are only for description and do not represent the advantages and disadvantages of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of this application, but this application is not limited to them, and any changes that can be thought of by technicians in this field should fall within the scope of protection of this application.
Claims
1. A method for processing incoming account business, characterized in that: Applied to a payment system; the payment system runs a payment system bus process, and the payment system bus process manages an incoming account processing process and a flow-limited incoming account message processing process; the method comprises: The incoming account processing process obtains the incoming account tasks to be processed based on the incoming account message queue; When the account processing process determines that the pending account task triggers the payment system task current limiting, the account processing process obtains the current limiting account message corresponding to the pending account task that triggers the payment system task current limiting, and stores the current limiting account message in a preset current limiting account message storage directory; The payment system bus process calls up the current-limited incoming account message processing process, which reads the target current-limited incoming account message that meets the preset reprocessing conditions in the preset current-limited incoming account message storage directory, and writes the target current-limited incoming account message into the incoming account message queue, so that the incoming account processing process reprocesses the pending incoming account tasks based on the target current-limited incoming account message.
2. The method according to claim 1, characterized in that: The flow-limited incoming account message processing process reads a target flow-limited incoming account message that meets a preset reprocessing condition in a preset flow-limited incoming account message storage directory, and writes the target flow-limited incoming account message into an incoming account message queue, including: The flow-limited incoming account message processing process determines the number of cycles, and when the number of cycles is less than or equal to the preset maximum number of cycles, queries whether the flow-limited incoming account message is stored in the preset flow-limited incoming account message storage directory; When the current-limited incoming account message processing process queries that the limited-current incoming account message is stored in the preset current-limited incoming account message storage directory, the current-limited incoming account message processing process obtains the target current-limited incoming account message whose message name meets the preset reprocessing condition in the preset current-limited incoming account message storage directory, and writes the target current-limited incoming account message into the incoming account message queue, wherein the current-limited incoming account message is named by the incoming account processing process based on the preset message naming rule and then stored in the preset current-limited incoming account message storage directory, and the message name of the named current-limited incoming account message includes the message timestamp, message type and the name of the process to which the message belongs.
3. The method according to claim 2, characterized in that The message timestamp is the storage time of the flow-limited incoming account message; the flow-limited incoming account message processing process obtains a target flow-limited incoming account message whose message name meets the preset reprocessing condition in the preset flow-limited incoming account message storage directory, and writes the target flow-limited incoming account message into the incoming account message queue, including: The flow-limited incoming account message processing process is in the preset flow-limited incoming account message storage directory, and based on the message name of the flow-limited incoming account message, queries the target flow-limited incoming account message whose time interval between the message timestamp in the message name and the current time point is less than the preset message reading time interval, and based on the target message name corresponding to the target flow-limited incoming account message, writes the target flow-limited incoming account message into the incoming account message queue corresponding to the process name to which the message belongs in the target message name.
4. The method according to claim 2, characterized in that: When the number of cycles of the flow-limited incoming account message processing process is greater than the preset maximum number of cycles, the flow-limited incoming account message processing process automatically exits, and the payment system bus process re-schedules the flow-limited incoming account message processing process to restart its operation.
5. The method according to claim 1, characterized in that The preset flow-limited incoming account message storage directory includes a preset flow-limited incoming account message processing success subdirectory and a preset flow-limited incoming account message processing failure subdirectory; After the flow-limited incoming account message processing process writes the target flow-limited incoming account message into the incoming account message queue, the method further includes: The incoming account processing process stores the successfully written target current-limited incoming account messages in the preset current-limited incoming account message processing success subdirectory, and stores the unsuccessfully written target current-limited incoming account messages in the preset current-limited incoming account message processing failure subdirectory.
6. The method according to claim 5, characterized in that After the incoming account processing process stores the successfully written target current-limited incoming account message in a preset current-limited incoming account message processing success subdirectory, the method further includes: In response to the payment system scheduled log cleaning task, the target flow-limited incoming account message in the preset flow-limited incoming account message processing success subdirectory is deleted.
7. The method according to any one of claims 1 to 6, characterized in that The incoming account processing process reprocesses the pending incoming account task based on the target current limiting incoming account message, including: The incoming account processing process obtains the business information of the incoming account task to be processed based on the target limited incoming account message in the incoming account message queue, and reprocesses the incoming account task to be processed based on the obtained business information, wherein the business information includes at least one of a business tracking code, a business tag, a transaction log level, a transaction date, and a transaction serial number.
8. An incoming account service processing device, characterized in that: Applied to a payment system; the payment system runs a payment system bus process, and the payment system bus process manages an incoming account processing process and a current-limited incoming account message processing process; the device includes: The incoming account task processing module is used to obtain the incoming account tasks to be processed based on the incoming account message queue; A flow-limiting message storage module is used to obtain a flow-limiting incoming account message corresponding to the pending incoming account task that triggers the payment system task flow limiting when the incoming account processing process determines that the pending incoming account task triggers the payment system task flow limiting, and store the flow-limiting incoming account message in a preset flow-limiting incoming account message storage directory; The incoming account task reprocessing module is used to call up the current-limited incoming account message processing process, read the target current-limited incoming account message that meets the preset reprocessing conditions in the preset current-limited incoming account message storage directory, and write the target current-limited incoming account message into the incoming account message queue, so that the incoming account processing process can reprocess the pending incoming account tasks based on the target current-limited incoming account message.
9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for processing incoming transactions as described in any one of claims 1 to 7 is implemented.
10. A computer device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method for processing incoming transactions as described in any one of claims 1 to 7 is implemented.
