Job processing method, device and system

By classifying the job elements of distributed service subtransactions into core and non-core parts, processing core parts in real time and processing non-core parts asynchronously, the problem of traditional subtransaction execution time is solved, and the overall performance and customer experience of distributed services is improved.

CN113269631BActive Publication Date: 2025-06-06INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110591801.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-28
Publication Date
2025-06-06
Estimated Expiration
2041-05-28

AI Technical Summary

Technical Problem

The execution time of traditional distributed service sub-transactions is long, resulting in an increase in the total execution time of distributed services, affecting the customer experience.

Method used

By classifying the job elements requested by the job processing into core elements and non-core elements, the jobs are executed in real time based on the core elements, and after the job processing is successful, the jobs corresponding to the non-core elements are executed asynchronously.

Benefits of technology

It effectively improves job execution performance, reduces job execution time, and thus improves customer experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113269631B_ABST
    Figure CN113269631B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device and system for processing a job, which can be applied to the financial field, wherein the method comprises: receiving a job processing request, the request comprising: job elements; classifying the job elements into core elements and non-core elements according to a predetermined rule; executing a job corresponding to the request in real time based on the core elements; and executing the job corresponding to the non-core elements in an asynchronous manner in response to the success of the job processing. Through the present invention, the job execution performance can be effectively improved, the execution time of the job can be reduced, and thus the customer experience can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing and can be applied to the financial field, and in particular to a method, device and system for processing a job. Background Art

[0002] In recent years, with the continuous advancement of IT architecture transformation, distributed architecture has become a standard solution for the construction of large-scale enterprise information systems, and distributed services have also become the mainstream of system service design. Compared with traditional services, distributed services have a more open and flexible technical architecture, increased technical complexity and uncertainties, and higher requirements for service performance. For distributed services that require transaction consistency, involving the coordinated processing of multiple systems of the main transaction and each sub-transaction, the performance of distributed services is directly affected by the performance of sub-transactions. Improving the performance of distributed sub-transactions is conducive to improving the overall external service quality of the system.

[0003] Traditional distributed service subtransactions usually accept complete business parameters and provide relatively complete business processing logic. After being called and executing the corresponding business logic, they no longer interact with the main transaction. Since all parameters are passed and the complete business logic is executed in one call, the execution time of the subtransaction is relatively long. The total execution time of the distributed service is naturally superimposed by the execution time of each subtransaction. The longer the subtransaction execution time is, the longer the total execution time of the distributed service will be, thus affecting the customer experience. Summary of the invention

[0004] In view of this, the present invention provides a job processing method, device and system to solve at least one of the above-mentioned problems.

[0005] According to a first aspect of the present invention, there is provided a job processing method, the method comprising:

[0006] receiving a job processing request, the request comprising: job elements;

[0007] Classifying the operational elements into core elements and non-core elements according to predetermined rules;

[0008] Execute the job corresponding to the request in real time based on the core elements;

[0009] In response to the job being processed successfully, the job corresponding to the non-core element is executed in an asynchronous manner.

[0010] According to a second aspect of the present invention, there is provided a job processing device, the device comprising:

[0011] A request receiving unit, configured to receive a job processing request, the request comprising: a job element;

[0012] A classification unit, used for classifying the operation elements into core elements and non-core elements according to a predetermined rule;

[0013] A real-time operation unit, configured to execute the operation corresponding to the request in real time based on the core elements;

[0014] The asynchronous operation unit is used to execute the operation corresponding to the non-core element in an asynchronous manner in response to the success of the operation processing.

[0015] According to a third aspect of the present invention, there is provided a job processing system, the system comprising: the above-mentioned job processing apparatus, at least one sub-business processing unit, the job processing apparatus scheduling the at least one sub-business processing unit to execute a real-time job or an asynchronous job.

[0016] According to a fourth aspect of the present invention, there is provided an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the program.

[0017] According to a fifth aspect of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, which implements the steps of the above method when executed by a processor.

[0018] It can be seen from the above technical solution that by classifying the job elements of the received job processing request into core elements and non-core elements, and then executing the job corresponding to the request in real time based on the core elements, and when the job processing is successful, executing the job corresponding to the non-core elements in an asynchronous manner, compared with the prior art, the embodiment of the present invention executes the job based on the core part and the non-core part of the job respectively, which can effectively improve the job execution performance and reduce the execution time of the job, thereby improving the customer experience. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0020] Figure 1 is a structural block diagram of a job processing system according to an embodiment of the present invention;

[0021] Figure 2 is an exemplary structural block diagram of a job processing system according to an embodiment of the present invention;

[0022] Figure 3is an operation flow chart of a transaction receiving unit according to an embodiment of the present invention;

[0023] Figure 4 is a flowchart of the operation of the core sub-transaction scheduling unit according to an embodiment of the present invention;

[0024] Figure 5 is a flowchart of the operation of the core sub-transaction processing unit according to an embodiment of the present invention;

[0025] Figure 6 is a flowchart of the operation of the core sub-transaction result receiving unit according to an embodiment of the present invention;

[0026] Figure 7 is a flowchart of an operation of a non-core sub-transaction scheduling unit according to an embodiment of the present invention;

[0027] Figure 8 is a flowchart of an operation of a non-core sub-transaction processing unit according to an embodiment of the present invention;

[0028] Fig. 9 is a flowchart of a job processing method according to an embodiment of the present invention;

[0029] Fig.10 It is a schematic block diagram of the system structure of the electronic device 600 according to an embodiment of the present invention. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0031] Since the total execution time of the current distributed service is naturally superimposed by the execution time of each sub-transaction, all business parameters and complete business logic are required when the sub-transaction is executed and called, the longer the execution time of each sub-transaction is, the longer the total execution time of the distributed service is, which affects the customer experience. Based on this, an embodiment of the present invention provides a job processing solution, which executes the core part and the non-core part of the job separately, which can effectively improve the execution performance of distributed sub-transactions, thereby improving the overall performance of distributed services, reducing the execution time of distributed services, and improving customer experience. The following is a detailed description of the embodiment of the present invention in conjunction with the accompanying drawings.

[0032] Figure 1 is a structural block diagram of a job processing system according to an embodiment of the present invention. Figure 1As shown, the system includes: a job processing device 1 and at least one sub-business processing unit 2 (shown as one in the figure), wherein the job processing device schedules the at least one sub-business processing unit to execute a real-time job (corresponding to the core part of the job) or an asynchronous job (corresponding to the non-core part of the job). The job processing device 1 is described in detail below.

[0033] Continue to see Figure 1 The device comprises: a request receiving unit 11, a classification unit 12, a real-time operation unit 13 and an asynchronous operation unit 14, wherein:

[0034] The request receiving unit 11 is used to receive a job processing request, wherein the request includes: job elements.

[0035] The classification unit 12 is used to classify the operation elements into core elements and non-core elements according to predetermined rules.

[0036] In actual operation, the core elements include: multiple account information, priority of each account, payment amount, etc. Non-core elements include: summary, remarks, purpose, receipt processing, etc.

[0037] The real-time operation unit 13 is used to execute the operation corresponding to the request in real time based on the core elements.

[0038] In one embodiment, the job processing request may be a linked payment request, ie, a request to make a payment through multiple account balances.

[0039] Specifically, the real-time operation unit 13 includes: an available quota acquisition module and a real-time operation module, wherein:

[0040] An available credit limit acquisition module is used to obtain the available credit limit of an account corresponding to the account information;

[0041] The real-time operation module is used to execute the operation corresponding to the linkage payment request in real time on the corresponding account according to the available credit limit of each account.

[0042] The real-time operation module may specifically execute the operation corresponding to the linkage payment request in real time on each account in turn based on the priority and available credit limit of each account.

[0043] The asynchronous operation unit 14 is used to execute the operation corresponding to the non-core element in an asynchronous manner in response to the success of the operation processing.

[0044] The classification unit 12 classifies the job elements of the job processing request received by the request receiving unit 11 into core elements and non-core elements. Then, the real-time job unit 13 executes the job corresponding to the request in real time based on the core elements. When the job processing is successful, the asynchronous job unit 14 executes the job corresponding to the non-core elements in an asynchronous manner. Compared with the prior art, the embodiment of the present invention executes jobs based on the core part and the non-core part of the job respectively, which can effectively improve the job execution performance and reduce the execution time of the job, thereby improving the customer experience.

[0045] In actual operation, the above-mentioned device also includes: a processing result determination unit, which is used to determine that the operation processing has failed in response to the total available credit limit of multiple accounts being less than the payment amount.

[0046] In actual operation, the above-mentioned units and modules may be provided in combination or individually, and the present invention is not limited thereto.

[0047] In order to better understand the present invention, the following takes the business scenario of "fund pool linkage payment" (i.e., the linkage payment mentioned above) as an example. Figure 2 The illustrated distributed exemplary system is used to explain the embodiments of the present invention in detail.

[0048] When "Fund Pool Linked Payment" processes a payment instruction (main transaction), if the balance of the payment account itself is insufficient, funds (sub-transaction) must be transferred from the parent account of the payment account in real time to complete the external payment. When there are multiple parent accounts to be linked, the number of sub-transactions included will be larger.

[0049] like Figure 2 As shown, the example system includes: a transaction receiving unit 1, a core sub-transaction scheduling unit 2, a core sub-transaction processing unit 3, a core sub-transaction result receiving unit 4, a non-core sub-transaction scheduling unit 5, and a non-core sub-transaction processing unit 6. Each unit is described below.

[0050] Transaction receiving unit: responsible for receiving payment instructions sent by the external system, completing the registration of transaction elements (i.e., operation elements) and the judgment of multi-level linkage agreements, and completing the preparation before linkage entry. The operation process of the transaction receiving unit can be found in Figure 3 The process shown in the figure. Among them, transaction elements are divided into core transaction elements and non-core transaction elements. Core transaction elements include account number, deduction amount, etc.; non-core transaction elements include summary, remarks, purpose, receipt processing, etc.

[0051] Core sub-transaction scheduling unit: The core sub-transaction of the fund pool linkage payment is the balance reservation service for accounts at all levels. This service supports balance reservation based on the maximum available amount of the account. The scheduling unit starts from the payment account and initiates balance reservation processing step by step until the reserved balance reaches the amount required by the payment instruction; if the reserved balance at the top of the linkage branch still does not reach the amount required by the payment instruction, the payment fails and a rollback of the reserved amount needs to be initiated. The operation process of the core sub-transaction scheduling unit can be found in Figure 4 The process shown.

[0052] Core sub-transaction processing unit: This unit mainly completes the account balance reservation process based on the current account available balance and the amount sent by the dispatch unit. When the current account available balance is less than the amount sent, the reserved amount is the total available balance of the account; when the current account available balance is greater than or equal to the amount sent, the reserved amount is the amount sent. After registering the necessary core logs, the sub-transaction returns the successful deduction amount to the dispatch unit. The operation process of this core sub-transaction processing unit can be found in Figure 5 The process shown.

[0053] Core sub-transaction result receiving unit: This unit mainly receives the processing results of the core sub-transaction, confirms whether the core sub-transaction has successfully completed the retention of the debit amount and whether it needs to continue to link up. If it needs to continue to link up, the core sub-transaction scheduling unit is notified to continue to initiate the processing of the upper-level core sub-transaction, otherwise the linked payment processing result is fed back to the unit caller. The completion of this unit's processing can represent the completion of the entire transaction. The operation flow of the core sub-transaction result receiving unit can be found in Figure 6 The process shown.

[0054] Non-core sub-transaction scheduling unit: This unit asynchronously completes the scheduling of sub-transactions that have no direct impact on the transaction processing results, including the registration of non-core elements such as summaries, remarks, purposes, receipts, and the supplementary registration of debit and credit logs and details in the linkage payment process. The operation process of this non-core sub-transaction scheduling unit can be found in Figure 7 The process shown.

[0055] Non-core sub-transaction processing unit: This unit completes the processing of non-core sub-transactions, mainly including the processing of summaries, remarks, purposes, receipts, and the supplementary registration of debit and credit logs and details of the linkage payment process. The processing results of this unit do not have a direct impact on the processing results of the original transaction. If an error occurs, an error report needs to be generated. The operation flow of this non-core sub-transaction processing unit can be found in Figure 8 The process shown.

[0056] The above embodiment describes a multi-sub-transaction processing scenario for fund pool linkage payment, which is also applicable to scenarios such as one debit and multiple loans, multiple debits and multiple loans, etc.

[0057] The embodiment of the present invention provides a distributed sub-transaction design scheme based on the core elements of the transaction, which changes the existing sub-transaction design mode of passing all parameters and executing all functional logic in one call. The embodiment of the present invention adopts the mode of "core elements + core logic" real-time processing and "non-core elements + non-core logic" asynchronous processing to complete the processing of distributed sub-transactions, which can realize the efficient execution of the core logic of the business, ensure the overall performance of the service, and reduce the probability of service timeout. At the same time, the asynchronous processing of "non-core elements + non-core logic" ensures the integrity of the business function and can improve the customer experience.

[0058] Based on similar inventive concepts, an embodiment of the present invention further provides a job processing method, which can preferably be applied to the above-mentioned job processing device.

[0059] Fig. 9 is a flowchart of the job processing method, such as Fig. 9 As shown, the method includes:

[0060] Step 901, receiving a job processing request, the request including: job elements.

[0061] Step 902: Classify the operation elements into core elements and non-core elements according to predetermined rules.

[0062] In actual operation, the core elements include: multiple account information, priority of each account, payment amount, etc.

[0063] Step 903: Execute the job corresponding to the request in real time based on the core elements.

[0064] In one embodiment, the job processing request may be a linkage payment request.

[0065] The process of step 903 specifically includes: firstly obtaining the available credit limit of the account corresponding to the account information; and then executing the operation corresponding to the linkage payment request in real time on the corresponding account according to the available credit limit of each account.

[0066] Specifically, the operation corresponding to the linkage payment request may be executed in real time on each account in turn based on the priority and available amount of each account.

[0067] Step 904: In response to the job being processed successfully, executing the job corresponding to the non-core element in an asynchronous manner.

[0068] By classifying the job elements of the received job processing request into core elements and non-core elements, and then executing the job corresponding to the request in real time based on the core elements, and when the job processing is successful, executing the job corresponding to the non-core elements in an asynchronous manner, compared with the prior art, the embodiment of the present invention executes the job based on the core part and the non-core part of the job respectively, which can effectively improve the job execution performance, reduce the execution time of the service, and thus improve the customer experience.

[0069] In actual operation, when the total available balance of multiple accounts is less than the above payment amount, it is determined that the job processing has failed.

[0070] The specific execution process of the above steps can be found in the description of the above system embodiment, which will not be repeated here.

[0071] This embodiment also provides an electronic device, which may be a desktop computer, a tablet computer, a mobile terminal, etc., but this embodiment is not limited thereto. In this embodiment, the electronic device may be implemented with reference to the above method embodiment and the operation processing device / system embodiment, the contents of which are incorporated herein, and the repeated parts are not repeated.

[0072] Fig.10 FIG. 6 is a schematic block diagram of a system structure of an electronic device 600 according to an embodiment of the present invention. Fig.10 As shown, the electronic device 600 may include a central processor 100 and a memory 140; the memory 140 is coupled to the central processor 100. It should be noted that this figure is exemplary; other types of structures may also be used to supplement or replace this structure to implement telecommunication functions or other functions.

[0073] In one embodiment, the job processing function may be integrated into the central processing unit 100. The central processing unit 100 may be configured to perform the following control:

[0074] receiving a job processing request, the request comprising: job elements;

[0075] Classifying the operational elements into core elements and non-core elements according to predetermined rules;

[0076] Execute the job corresponding to the request in real time based on the core elements;

[0077] In response to the job being processed successfully, the job corresponding to the non-core element is executed in an asynchronous manner.

[0078] From the above description, it can be seen that the electronic device provided by the embodiment of the present application, by classifying the job elements of the received job processing request into core elements and non-core elements, then executing the job corresponding to the request in real time based on the core elements, and when the job processing is successful, executing the job corresponding to the non-core elements in an asynchronous manner. Compared with the prior art, the embodiment of the present invention executes jobs based on the core part and the non-core part of the job respectively, which can effectively improve the job execution performance and reduce the execution time of the service, thereby improving the customer experience.

[0079] In another embodiment, the job processing device / system may be configured separately from the central processing unit 100. For example, the job processing device / system may be configured as a chip connected to the central processing unit 100, and the job processing function is implemented under the control of the central processing unit.

[0080] like Fig.10 As shown, the electronic device 600 may further include: a communication module 110, an input unit 120, an audio processor 130, a display 160, and a power supply 170. It is worth noting that the electronic device 600 does not necessarily have to include Fig.10 In addition, the electronic device 600 may also include Fig.10 For components not shown, reference may be made to the prior art.

[0081] like Fig.10 As shown, the central processor 100 is sometimes also referred to as a controller or an operation control, and may include a microprocessor or other processor devices and / or logic devices. The central processor 100 receives inputs and controls the operations of various components of the electronic device 600.

[0082] The memory 140 may be, for example, one or more of a cache, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory or other suitable devices. The above-mentioned information related to the failure may be stored, and a program for executing the relevant information may also be stored. The CPU 100 may execute the program stored in the memory 140 to implement information storage or processing.

[0083] The input unit 120 provides input to the CPU 100. The input unit 120 is, for example, a key or a touch input device. The power supply 170 is used to provide power to the electronic device 600. The display 160 is used to display display objects such as images and text. The display may be, for example, an LCD display, but is not limited thereto.

[0084] The memory 140 may be a solid-state memory, such as a read-only memory (ROM), a random access memory (RAM), a SIM card, etc. It may also be a memory that saves information even when the power is off, can be selectively erased, and is provided with more data, examples of which are sometimes referred to as EPROMs, etc. The memory 140 may also be some other type of device. The memory 140 includes a buffer memory 141 (sometimes referred to as a buffer). The memory 140 may include an application / function storage unit 142, which is used to store application programs and function programs or processes for executing the operation of the electronic device 600 through the central processor 100.

[0085] The memory 140 may also include a data storage unit 143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 144 of the memory 140 may include various drivers for communication functions of the electronic device and / or for executing other functions of the electronic device (such as messaging applications, address book applications, etc.).

[0086] The communication module 110 is a transmitter / receiver that transmits and receives signals via the antenna 111. The communication module 110 is coupled to the central processor 100 to provide input signals and receive output signals, which may be the same as the case of a conventional mobile communication terminal.

[0087] Based on different communication technologies, multiple communication modules 110 may be provided in the same electronic device, such as a cellular network module, a Bluetooth module and / or a wireless local area network module. The communication module 110 is also coupled to a speaker 131 and a microphone 132 via an audio processor 130 to provide an audio output via the speaker 131 and receive an audio input from the microphone 132, thereby realizing a common telecommunication function. The audio processor 130 may include any suitable buffer, decoder, amplifier, etc. In addition, the audio processor 130 is also coupled to the central processor 100, so that the microphone 132 can be used to record on the local device, and the speaker 131 can be used to play the sound stored on the local device.

[0088] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned job processing method are implemented.

[0089] In summary, the embodiment of the present invention provides a distributed sub-transaction design solution based on the core elements of a transaction, which improves the overall performance of distributed services by designing core sub-transactions, and has the following effects and advantages:

[0090] 1. By designing core sub-transactions, the execution performance of services can be effectively improved. Complex services such as multiple borrowing and multiple lending can also be realized in the platform system, ensuring the safe and stable operation of the core banking system and the smooth progress of the host system architecture transformation project.

[0091] 2. The design concept is simple and easy to understand, and has strong portability. It is not only instructive for the design of distributed services, but also a reference for the design of non-distributed services.

[0092] The preferred embodiments of the present invention are described above with reference to the accompanying drawings. Many features and advantages of these embodiments are clear from this detailed description, and therefore the claims are intended to cover all such features and advantages of these embodiments that fall within their true spirit and scope. In addition, since many modifications and changes are easily conceivable to those skilled in the art, it is not intended to limit the embodiments of the present invention to the precise structure and operation illustrated and described, but all suitable modifications and equivalents falling within its scope may be covered.

[0093] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0094] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0095] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0096] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0097] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for processing a job, It is characterized in that The method comprises: receiving a job processing request, the request comprising: job elements; Classifying the operation elements into core elements and non-core elements according to predetermined rules; the core elements include: multiple account information, priority of each account and payment amount; the non-core elements include: summary, remarks, purpose and receipt processing; Execute the job corresponding to the request in real time based on the core elements; In response to the job being processed successfully, executing the job corresponding to the non-core element in an asynchronous manner; The core sub-transaction scheduling unit and the core sub-transaction processing unit respectively perform core sub-transaction scheduling and processing, specifically including: Core sub-transaction scheduling unit: The core sub-transaction of fund pool linkage payment is the balance reservation service for accounts at all levels. This service supports balance reservation based on the maximum available amount of the account. The scheduling unit starts from the payment account and initiates balance reservation processing step by step until the reserved balance reaches the amount required by the payment instruction. If the reserved balance at the top of the linkage branch still does not reach the amount required by the payment instruction, the payment fails and a rollback of the reserved amount needs to be initiated. Core sub-transaction processing unit: This unit mainly completes the reservation processing of the account balance according to the current available balance of the account and the amount of deduction sent by the scheduling unit; when the current available balance of the account is less than the amount of deduction sent, the reserved amount is the total available balance of the account; when the current available balance of the account is greater than or equal to the amount of deduction sent, the reserved amount is the amount of deduction sent; after registering the necessary core logs, the sub-transaction returns the successful deduction amount to the scheduling unit.

2. The method according to claim 1, It is characterized in that The request is a linkage payment request, and the operations corresponding to the request are executed in real time based on the core elements, including: Obtain the available balance of the account corresponding to the account information; The operation corresponding to the linkage payment request is executed in real time on the corresponding account according to the available credit limit of each account.

3. The method according to claim 2, It is characterized in that According to the available credit limit of each account, the operations corresponding to the linkage payment request are executed in real time on the corresponding account, including: Based on the priority and available amount of each account, the operation corresponding to the linkage payment request is executed in real time on each account in turn.

4. The method according to claim 2, It is characterized in that The method further comprises: In response to a total available amount of the multiple accounts being less than the payment amount, it is determined that the job processing has failed.

5. A job processing device, It is characterized in that The device comprises: A request receiving unit, configured to receive a job processing request, the request comprising: a job element; A classification unit, for classifying the operation elements into core elements and non-core elements according to a predetermined rule; the core elements include: multiple account information, priority of each account and payment amount; the non-core elements include: summary, remarks, purpose and receipt processing; A real-time operation unit, configured to execute the operation corresponding to the request in real time based on the core elements; an asynchronous operation unit, configured to execute the operation corresponding to the non-core element in an asynchronous manner in response to the operation being processed successfully; The core sub-transaction scheduling unit and the core sub-transaction processing unit respectively perform core sub-transaction scheduling and processing, specifically including: Core sub-transaction scheduling unit: The core sub-transaction of fund pool linkage payment is the balance reservation service for accounts at all levels. This service supports balance reservation based on the maximum available amount of the account. The scheduling unit starts from the payment account and initiates balance reservation processing step by step until the reserved balance reaches the amount required by the payment instruction. If the reserved balance at the top of the linkage branch still does not reach the amount required by the payment instruction, the payment fails and a rollback of the reserved amount needs to be initiated. Core sub-transaction processing unit: This unit mainly completes the reservation processing of the account balance according to the current available balance of the account and the amount of deduction sent by the scheduling unit; when the current available balance of the account is less than the amount of deduction sent, the reserved amount is the total available balance of the account; when the current available balance of the account is greater than or equal to the amount of deduction sent, the reserved amount is the amount of deduction sent; after registering the necessary core logs, the sub-transaction returns the successful deduction amount to the scheduling unit.

6. The device according to claim 5, It is characterized in that The request is a linkage payment request, and the real-time operation unit includes: An available credit limit acquisition module is used to obtain the available credit limit of an account corresponding to the account information; The real-time operation module is used to execute the operation corresponding to the linkage payment request in real time on the corresponding account according to the available credit limit of each account.

7. The device according to claim 6, It is characterized in that The real-time operation module is specifically used for: Based on the priority and available amount of each account, the operation corresponding to the linkage payment request is executed in real time on each account in turn.

8. The device according to claim 6, It is characterized in that The device also includes: The processing result determination unit is used to determine that the operation processing fails in response to the total available credits of the multiple accounts being less than the payment amount.

9. A job processing system, It is characterized in that The system comprises: a job processing device as described in any one of claims 5 to 8, and at least one sub-business processing unit, wherein the job processing device schedules the at least one sub-business processing unit to execute a real-time job or an asynchronous job.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps of the method according to any one of claims 1 to 4 are implemented.

11. A computer-readable storage medium having a computer program stored thereon, It is 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 4 are implemented.

Citation Information

Patent Citations

  • Job processing method and device

    CN112559179A