CN113763177A - Method and device for controlling concurrent processing of proxy hotspot accounts - Google Patents

Method and device for controlling concurrent processing of proxy hotspot accounts Download PDF

Info

Publication number
CN113763177A
CN113763177A CN202111109813.0A CN202111109813A CN113763177A CN 113763177 A CN113763177 A CN 113763177A CN 202111109813 A CN202111109813 A CN 202111109813A CN 113763177 A CN113763177 A CN 113763177A
Authority
CN
China
Prior art keywords
transaction request
request message
processing
accounting
processed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111109813.0A
Other languages
Chinese (zh)
Inventor
段锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202111109813.0A priority Critical patent/CN113763177A/en
Publication of CN113763177A publication Critical patent/CN113763177A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a method and a device for controlling concurrent processing of proxy hotspot accounts, and relates to the technical field of artificial intelligence, wherein the method comprises the following steps: receiving to-be-processed transaction request messages sent by different proxied lines; and distributing each transaction request message to be processed to the accounting processing process according to the current processing condition of the transaction request message of each agent row in the accounting processing process so as to enable one transaction request message of each agent row to be processed by the accounting processing process at the same time. The invention can control the concurrent processing of the proxy hot-spot account, avoid the deadlock problem caused by the concurrent processing of various proxy hot-spot accounts and ensure the normal processing of the proxy business and the stable operation of the proxy line system.

Description

Method and device for controlling concurrent processing of proxy hotspot accounts
Technical Field
The invention relates to the technical field of artificial intelligence, in particular to a method and a device for controlling concurrent processing of proxy hotspot accounts.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
When the agent line processes the proxied line service and encounters a scene of online batch sending requests, if wages are simultaneously issued for a plurality of agent lines at the end of the month, due to the possible deadlock problem of concurrent hot account, a large amount of system resources are occupied, and the system response is slow.
Disclosure of Invention
The embodiment of the invention provides a method for controlling agent hotspot account concurrent processing, which is used for controlling agent hotspot account concurrent processing and avoiding deadlock problems caused by the concurrence of a plurality of agent hotspot accounts, and comprises the following steps:
receiving to-be-processed transaction request messages sent by different proxied lines;
and distributing each transaction request message to be processed to the accounting processing process according to the current processing condition of the transaction request message of each agent row in the accounting processing process so as to enable one transaction request message of each agent row to be processed by the accounting processing process at the same time.
The embodiment of the invention also provides a device for controlling the concurrent processing of the proxy hotspot accounts, which is used for controlling the concurrent processing of the proxy hotspot accounts and avoiding the deadlock problem caused by the concurrent processing of a plurality of proxied hotspot accounts, and the device comprises:
the receiving unit is used for receiving transaction request messages to be processed sent by different proxied lines;
and the concurrent control unit is used for distributing each transaction request message to be processed to the accounting processing process according to the current processing condition of the transaction request message of each agent row in the accounting processing process so as to enable one transaction request message of each agent row to be processed by the accounting processing process at the same time.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the method for controlling the concurrent processing of the proxy hot account when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program for executing the method for controlling the concurrent processing of the proxy hotspot account.
In the embodiment of the invention, the scheme for controlling the concurrent processing of the proxy hotspot account comprises the following steps: receiving to-be-processed transaction request messages sent by different proxied lines; according to the current processing condition of the transaction request message of each agent row in the accounting processing process, each transaction request message to be processed is distributed to the accounting processing process for processing, so that one transaction request message of each agent row is processed by the accounting processing process at the same time, agent hot-spot accounts can be controlled to be processed concurrently, the deadlock problem caused by the concurrence of various agent hot-spot accounts is avoided, and the normal processing of the agent business and the stable operation of an agent row system are ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
fig. 1 is a schematic flowchart of a method for controlling proxy hotspot account concurrent processing in an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating a principle of controlling proxy hotspot account concurrent processing in an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a concurrency control procedure according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a concurrency control procedure according to another embodiment of the present invention;
FIG. 5 is a flowchart illustrating a concurrency control procedure according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of an apparatus for controlling proxy hotspot account concurrent processing in the embodiment of the present invention;
fig. 7 is a schematic structural diagram of an apparatus for controlling proxy hotspot account concurrent processing according to another embodiment of the present invention;
FIG. 8 is a schematic structural diagram illustrating an apparatus for controlling proxy hotspot account concurrent processing according to another embodiment of the present invention;
fig. 9 is a schematic structural diagram of an apparatus for controlling proxy hotspot account concurrent processing according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
Before describing the embodiments of the present invention, first, terms related to the present invention will be described.
1. Proxy service: the method is characterized in that a large financial institution (an agent bank) receives the entrustment of medium and small financial institutions, and provides various financial services for clients (called the agent bank for short) of the medium and small financial institutions by utilizing the self operation function and advanced computer technical means, wherein the agent exchange is a common business category. After the agency opens the fund-making account and deposits enough funds in the agency, the agency uses the advanced fund transfer clearing system to process the relevant transfer service according to the requirements of the agency. The common remittance business adopts a batch processing mode, and the fund in the system can be realized within 24 hours; the urgent business adopts a real-time processing mode, thereby accelerating the fund remittance speed and ensuring that the fund of the client arrives at the account within 2 hours.
2. Hotspot account: the bank payment system is called a hot account, and the client account number with a certain value of transaction concurrence in one second is obtained.
3. Deadlock: in a computer, a phenomenon that two or more processes wait for each other due to contention of resources during execution is referred to, and if no external force is applied, the processes cannot advance, and at this time, a system is said to be in a deadlock state or a system is said to be in a deadlock state.
The inventor finds that: the current bank payment system usually has frequent account transfer transaction operation on the same account, and the system response is slow due to the fact that the concurrency is huge and system resources are greatly occupied.
The existing system processing mechanism is as follows: the payment requests sent by the agent bank are treated in sequence according to the principle of first-in first-out without distinction and limitation by the background service process, but the core system of the bank for subsequently treating the financial transaction can only treat the single external customer account number in a single-thread sequence, so that the core system can treat the financial transaction for a long time when the concurrent transaction amount of the hot account is too large, or deadlock occurs, and the remittance requirement of the agent bank can not be met.
When the agent line processes the business of the agent line, there are often scenes of online batch sending requests, for example, a batch remittance is performed by an agent enterprise unit, so that a payment account appears, and a scene corresponding to a plurality of collection accounts appears. The payment account can become a hot account, and the hot account has collection transaction on other channels of the agent bank, thus bringing great pressure to the operation of the agent bank financial transaction system and even causing deadlock.
In order to solve the technical problem, the inventor provides a scheme for controlling proxy hotspot account concurrent processing, wherein the scheme ensures the normal processing of all proxied services and the normal operation of a proxy bank core system through a proxy hotspot concurrent processing mechanism from a client control request. Specifically, the scheme ensures that only one request is sent to the core system of the agent row for each account of the agent at each moment through the parameter control table and the state check, namely, the concurrent transaction amount of each agent business hot-spot account is limited, each account is only processed in one background service process, all the agent accounts are uniformly distributed in the background processing process, the deadlock problem caused by the concurrence of various agent hot-spot accounts is effectively avoided, and the normal processing of all the agent businesses and the normal operation of the core system of the agent row are ensured. The following describes the detailed scheme of controlling the concurrent processing of the proxy hotspot account.
Fig. 1 is a schematic flowchart of a method for controlling proxy hotspot account concurrent processing in an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step 101: receiving to-be-processed transaction request messages sent by different proxied lines;
step 102: and distributing each transaction request message to be processed to the accounting processing process according to the current processing condition of the transaction request message of each agent row in the accounting processing process so as to enable one transaction request message of each agent row to be processed by the accounting processing process at the same time.
The method for controlling the concurrent processing of the proxy hotspot account provided by the embodiment of the invention comprises the following steps: receiving to-be-processed transaction request messages sent by different proxied lines; according to the current processing condition of the transaction request message of each agent row in the accounting processing process, each transaction request message to be processed is distributed to the accounting processing process for processing, so that one transaction request message of each agent row is processed by the accounting processing process at the same time, agent hot-spot accounts can be controlled to be processed concurrently, the deadlock problem caused by the concurrence of various agent hot-spot accounts is avoided, and the normal processing of the agent business and the stable operation of an agent row system are ensured. This is described in detail below with reference to fig. 2 to 5.
First, the above step 101 is introduced, and the step 101 can be implemented by a message receiving module (i.e. the receiving unit 01 mentioned below).
In specific implementation, as shown in fig. 2, the message receiving module receives a pending transaction request message sent by an agent through a network, such as customer transfer request data, that is, receives transfer request messages (transfer transaction request messages) sent by different agent through the network.
Next, preferred steps subsequent to the above step 101 are described.
In an embodiment, the method for controlling proxy hotspot account concurrent processing may further include:
carrying out validity check on the transaction request messages to be processed sent by different proxied lines;
and storing the successfully verified transaction request message to be processed into a message to-be-sent library.
In specific implementation, as shown in fig. 2, validity check is performed on a to-be-processed transaction request message sent by an agent through a network, for example, client transfer request data, and if the message check is successful, the message is written into a message to-be-sent library, so that security of concurrent processing of agent hotspot accounts is ensured.
In an embodiment, the method for controlling proxy hotspot account concurrent processing may further include: and if the to-be-processed transaction request message fails to be verified, returning the reason of the failure verification to the corresponding proxied line.
In specific implementation, as shown in fig. 2, the validity of the received message is checked, the check fails, and the failure reason is returned to the proxied bank through the module, so that the security of controlling the concurrent processing of the proxy hotspot account is ensured, and the user experience is improved.
Thirdly, next, the step 102 of the concurrency control process is described, which includes a step of the pre-inspection process, where the step 102 may be implemented by a concurrency control unit mentioned below, and the concurrency control unit may include a pre-inspection processing module, and the pre-inspection processing module performs message processing distribution.
To facilitate understanding how this step 102 is implemented, first two key tables related to the embodiment of the present invention are described, such as table 1 and table 2 shown below, where table 1 is a table in which a message is to be published (the message in table 1 is not a real message and is only used for illustration), and table 2 is a control table, through which the concurrent transaction amount of each proxy service hot-spot account can be limited, so that each account is processed in only one background service process, and it is ensured that all proxy accounts can be uniformly distributed in the background processing process. This step 102 is described in detail below.
Figure BDA0003270202770000051
In one embodiment, as shown in fig. 3, allocating each pending transaction request message to the accounting processing process for processing according to the current processing condition of the transaction request message of each agent row in the accounting processing process, so that one transaction request message of each agent row is processed by the accounting processing process at the same time may include:
step 1021: before processing a current transaction request message, detecting whether an agent bank account corresponding to the current transaction request message has a message in an accounting processing process;
step 1022: and when detecting that the account of the agent bank corresponding to the current transaction request message is in the accounting processing process and the state is the message in the processing state, processing the next transaction request message record.
In specific implementation, the implementation manner of the concurrency control processing (step 1021 and step 1022) is the step of "yes" in the second case mentioned below, so that the deadlock problem caused by concurrency of multiple proxied hot-spot accounts can be further avoided, and normal processing of proxied services and stable operation of a proxy line system are ensured.
In one embodiment, as shown in fig. 4, allocating each pending transaction request message to the accounting processing process for processing according to the current processing condition of the transaction request message of each agent row in the accounting processing process, so that one transaction request message of each agent row is processed by the accounting processing process at the same time, may further include:
step 1023: when detecting that the account of the agent bank corresponding to the current transaction request message is in the accounting processing process and is in the state of not starting to process, controlling the accounting processing process to process the message in the accounting processing process and in the state of not starting to process, and updating the state of the message in the accounting processing process and in the state of not starting to process into the processing state.
In specific implementation, the implementation manner of the concurrency control processing (step 1023) is a step of "if not" in the second case mentioned below, so that the deadlock problem caused by concurrency of multiple proxied hot-spot accounts can be further avoided, and normal processing of proxied services and stable operation of a proxy line system are ensured.
In one embodiment, as shown in fig. 5, allocating each pending transaction request message to the accounting processing process for processing according to the current processing condition of the transaction request message of each agent row in the accounting processing process, so that one transaction request message of each agent row is processed by the accounting processing process at the same time may include:
step 1024: before processing a current transaction request message, detecting whether an agent bank account corresponding to the current transaction request message has a message in an accounting processing process;
step 1025: when detecting that the account of the agent bank corresponding to the current transaction request message is not a message in the accounting processing process, determining the accounting processing process for processing the current transaction request message, and sending the current transaction request message to the determined accounting processing process; and the determined accounting processing process is used for calling a bank accounting processing system to perform accounting processing to complete the transaction request.
In specific implementation, the implementation manner of the concurrent control processing (step 1024 and step 1025) is the first case mentioned below, which can further avoid deadlock problems caused by concurrence of multiple proxied hot-spot accounts, and ensure normal processing of proxied services and stable operation of proxy line systems.
For ease of understanding, the steps of the concurrency control process will be described in detail below.
In the specific implementation, during the pre-check processing, in the message to be sent table (table 1), a record with the state UP (which can represent the state to be processed) is read, and after a record is read, the account number field is taken as the condition to search the matched record in the control table (table 2). The result of the match can have two cases, the first case: if the account number is not matched, the account number is not transacted at the moment, such as remittance, after the total number of all the account numbers in the control table is calculated, one is added, and after the total number of the reporting machine cluster is used for surplus, the machine ON which the report is sent is determined (the process is a step of determining the accounting processing process for processing the current transaction request message, the specific implementation mode can ensure that all the accounts to be proxied can be uniformly distributed in the background processing process), and the information (the information for determining which the report is sent ON the machine is determined later) is registered in the reporting control table together with the account number, the physical machine name, the state ON and the timestamp; in the second case: if yes (detecting that the account of the agent bank corresponding to the current transaction request message has a message in the financial processing process), judging whether the state is ON (in-process state), if yes, jumping out, and indicating that the account has a process in process; if not, it indicates that the account is not processed, the status is updated to ON (the status of the message updated in the accounting processing process is the processing status), then the next record is checked, and the process sleeps for 3 seconds after all the checks are finished.
In specific implementation, the above-mentioned determined accounting processing process calls the bank accounting processing system to perform accounting processing and complete the transaction request can be realized by an accounting processing module, the accounting processing module receives the transfer request of the sending and processing module, organizes interface information, sends the interface information to the bank accounting processing system for processing, and organizes a response message after the transfer is successful and returns the response message to the sending and processing module.
In a specific implementation, the sending of the current transaction request message to the determined accounting processing process may be implemented by the above-mentioned sending processing module, and the sending processing module calls the accounting processing module to perform the bank accounting processing according to the principle of sending the transaction request message in advance and then sending the transaction request message out. As an example, the message sending processing module first determines the name of the physical machine where the process is located, then reads a record in the control table, which is consistent with the machine and has an ON state, takes out the account number, calls a bank accounting processing system in the message table to be sent according to the principle that the account reading state is an UP message and the inside and outside of the sending is carried out first, changes the state UP to S (S may represent that the transaction message is not in the state to be processed) after the account is successfully entered, changes the state of the record in the control table to OFF after all the processing is finished, and carries out the next round of processing after sleeping for 3 seconds.
In specific implementation, if the pre-check processing module is not provided, each machine fixedly sends a message of a fixed account, due to the diversity of the proxied bank, hot accounts processed by each machine process are uneven, some processes are more, some processes are less, even one process is not processed, high availability of process report cannot be guaranteed, system resources are wasted, and the request of the proxied bank for timely remittance service cannot be timely met. The method for controlling the concurrent processing of the agent hot spot accounts, provided by the embodiment of the invention, embeds the automatic allocation processing logic of the hot spot accounts of the agent bank into the pre-check processing module, so that the requirement of one account only appears on one physical machine, and the number of the accounts of the agent bank processed by each machine is basically the same. Therefore, all the accounts to be proxied can be uniformly distributed in the background processing process, great pressure on the operation of the proxy bank financial transaction system is relieved, and the purposes of normal processing of all the businesses to be proxied and normal operation of a proxy bank core system are achieved.
Fourth, next, a further preferred step, such as the monitoring process step shown in fig. 2, may be implemented by a monitoring process module, where the monitoring process module checks the control table, and modifies the report record state and the null handling physical machine field of the physical machine.
In an embodiment, the method for controlling proxy hotspot account concurrent processing may further include:
monitoring the states of all transaction request messages to be processed;
and modifying the state of the transaction request message which is processed to be finished.
In specific implementation, as shown in the monitoring process step shown in fig. 2, the monitoring process monitors the states of all the transaction request messages to be processed, and modifies the states of the transaction request messages to be processed to be completed, as an example of specific implementation, a record which is consistent with the physical machine (the physical machine where the accounting processing process is located) and has an ON state is checked in the control table, and whether a corresponding record (the state is UP) exists in the message table to be sent is inquired, and if not, the state of the record can be changed to be OFF (the completed state), and the name of the physical machine is emptied.
The method for controlling the concurrent processing of the agent hotspot accounts, provided by the embodiment of the invention, ensures that only one account is processed in one service process at any moment in the process of taking out the message from the library to be submitted, so as to meet the requirement that only one transfer request is available in a core account system of an agent bank, and dynamically calculates the process to which the account which is not processed is to be distributed for processing.
The method for controlling the concurrent processing of the proxy hotspot account provided by the embodiment of the invention realizes that: the pre-inspection processing module can be reasonably designed, and parameter control is carried out, so that only one request of each account of the proxied bank is sent to the core system of the proxy bank, all proxy accounts can be uniformly distributed in a background processing process, and normal processing of all proxied services and normal operation of the core system of the proxy bank are ensured.
The method for controlling the concurrent processing of the proxy hotspot account provided by the embodiment of the invention has the advantages that: according to parameter control, concurrent processing of hot account numbers is controlled through program logic, so that system pressure is balanced, deadlock problems caused by concurrent hot account numbers of an agent bank are avoided, normal processing of all the acted businesses and normal operation of a core system of the agent bank are guaranteed, the level of providing high-quality and high-efficiency services for all clients in a balanced mode is achieved, and user experience is improved.
The embodiment of the invention also provides a device for controlling proxy hotspot account concurrent processing, which is described in the following embodiment. Because the principle of the device for solving the problems is similar to the method for controlling the proxy hotspot account concurrent processing, the implementation of the device can refer to the implementation of the method for controlling the proxy hotspot account concurrent processing, and repeated parts are not described again.
Fig. 6 is a schematic structural diagram of an apparatus for controlling proxy hotspot account concurrent processing in the embodiment of the present invention, as shown in fig. 6, the apparatus includes:
the receiving unit 01 is used for receiving transaction request messages to be processed sent by different proxied lines;
and the concurrency control unit 02 is configured to allocate each to-be-processed transaction request message to the accounting processing process for processing according to a current processing condition of the transaction request message of each agent row in the accounting processing process, so that one transaction request message of each agent row is processed by the accounting processing process at the same time.
In an embodiment, the concurrency control unit may be specifically configured to:
before processing a current transaction request message, detecting whether an agent bank account corresponding to the current transaction request message has a message in an accounting processing process;
and when detecting that the account of the agent bank corresponding to the current transaction request message is in the accounting processing process and the state is the message in the processing state, processing the next transaction request message record.
In one embodiment, the concurrency control unit may be further configured to: when detecting that the account of the agent bank corresponding to the current transaction request message is in the accounting processing process and is in the state of not starting to process, controlling the accounting processing process to process the message in the accounting processing process and in the state of not starting to process, and updating the state of the message in the accounting processing process and in the state of not starting to process into the processing state.
In an embodiment, the concurrency control unit may be specifically configured to:
before processing a current transaction request message, detecting whether an agent bank account corresponding to the current transaction request message has a message in an accounting processing process;
when detecting that the account of the agent bank corresponding to the current transaction request message is not a message in the accounting processing process, determining the accounting processing process for processing the current transaction request message, and sending the current transaction request message to the determined accounting processing process; and the determined accounting processing process is used for calling a bank accounting processing system to perform accounting processing to complete the transaction request.
In an embodiment, as shown in fig. 7, the apparatus for controlling proxy hotspot account concurrent processing may further include:
the monitoring unit 03 is used for monitoring the states of all transaction request messages to be processed;
and the state modification unit 04 is used for modifying the state of the transaction request message which is processed to be finished.
In an embodiment, as shown in fig. 8, the apparatus for controlling proxy hotspot account concurrent processing may further include:
the checking unit 05 is used for checking the validity of the transaction request messages to be processed sent by different proxied lines;
and the storage processing unit 06 is configured to store the to-be-processed transaction request message successfully verified in the message to-be-sent library.
In an embodiment, as shown in fig. 9, the apparatus for controlling proxy hotspot account concurrent processing may further include: and the failure message receipt unit 07 is configured to, if the to-be-processed transaction request message fails to be verified, return the reason of the verification failure to the corresponding proxied line.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the method for controlling the concurrent processing of the proxy hot account when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program for executing the method for controlling the concurrent processing of the proxy hotspot account.
In the embodiment of the invention, the scheme for controlling the concurrent processing of the proxy hotspot account comprises the following steps: receiving to-be-processed transaction request messages sent by different proxied lines; according to the current processing condition of the transaction request message of each agent row in the accounting processing process, each transaction request message to be processed is distributed to the accounting processing process for processing, so that one transaction request message of each agent row is processed by the accounting processing process at the same time, agent hot-spot accounts can be controlled to be processed concurrently, the deadlock problem caused by the concurrence of various agent hot-spot accounts is avoided, and the normal processing of the agent business and the stable operation of an agent row system are ensured.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (16)

1. A method for controlling concurrent processing of proxy hotspot accounts is characterized by comprising the following steps:
receiving to-be-processed transaction request messages sent by different proxied lines;
and distributing each transaction request message to be processed to the accounting processing process according to the current processing condition of the transaction request message of each agent row in the accounting processing process so as to enable one transaction request message of each agent row to be processed by the accounting processing process at the same time.
2. The method as claimed in claim 1, wherein the step of allocating each pending transaction request message to the accounting process according to the current processing condition of the transaction request message of each agent row in the accounting process, so that one transaction request message of each agent row is processed by the accounting process at the same time includes:
before processing a current transaction request message, detecting whether an agent bank account corresponding to the current transaction request message has a message in an accounting processing process;
and when detecting that the account of the agent bank corresponding to the current transaction request message is in the accounting processing process and the state is the message in the processing state, processing the next transaction request message record.
3. The method as claimed in claim 2, wherein each pending transaction request message is allocated to the accounting process for processing according to the current processing condition of the transaction request message of each agent row in the accounting process, so that one transaction request message of each agent row is processed by the accounting process at the same time, further comprising:
when detecting that the account of the agent bank corresponding to the current transaction request message is in the accounting processing process and is in the state of not starting to process, controlling the accounting processing process to process the message in the accounting processing process and in the state of not starting to process, and updating the state of the message in the accounting processing process and in the state of not starting to process into the processing state.
4. The method as claimed in claim 1, wherein the step of allocating each pending transaction request message to the accounting process according to the current processing condition of the transaction request message of each agent row in the accounting process, so that one transaction request message of each agent row is processed by the accounting process at the same time includes:
before processing a current transaction request message, detecting whether an agent bank account corresponding to the current transaction request message has a message in an accounting processing process;
when detecting that the account of the agent bank corresponding to the current transaction request message is not a message in the accounting processing process, determining the accounting processing process for processing the current transaction request message, and sending the current transaction request message to the determined accounting processing process; and the determined accounting processing process is used for calling a bank accounting processing system to perform accounting processing to complete the transaction request.
5. The method of controlling proxy hotspot account concurrency processing of claim 1, further comprising:
monitoring the states of all transaction request messages to be processed;
and modifying the state of the transaction request message which is processed to be finished.
6. The method of controlling proxy hotspot account concurrency processing of claim 1, further comprising:
carrying out validity check on the transaction request messages to be processed sent by different proxied lines;
and storing the successfully verified transaction request message to be processed into a message to-be-sent library.
7. The method of controlling proxy hotspot account concurrency processing of claim 6, further comprising: and if the to-be-processed transaction request message fails to be verified, returning the reason of the failure verification to the corresponding proxied line.
8. An apparatus for controlling proxy hotspot account concurrent processing, comprising:
the receiving unit is used for receiving transaction request messages to be processed sent by different proxied lines;
and the concurrent control unit is used for distributing each transaction request message to be processed to the accounting processing process according to the current processing condition of the transaction request message of each agent row in the accounting processing process so as to enable one transaction request message of each agent row to be processed by the accounting processing process at the same time.
9. The apparatus for controlling proxy hotspot account concurrency according to claim 8, wherein the concurrency control unit is specifically configured to:
before processing a current transaction request message, detecting whether an agent bank account corresponding to the current transaction request message has a message in an accounting processing process;
and when detecting that the account of the agent bank corresponding to the current transaction request message is in the accounting processing process and the state is the message in the processing state, processing the next transaction request message record.
10. The apparatus of claim 9, wherein the concurrency control unit is further configured to:
when detecting that the account of the agent bank corresponding to the current transaction request message is in the accounting processing process and is in the state of not starting to process, controlling the accounting processing process to process the message in the accounting processing process and in the state of not starting to process, and updating the state of the message in the accounting processing process and in the state of not starting to process into the processing state.
11. The apparatus for controlling proxy hotspot account concurrency according to claim 8, wherein the concurrency control unit is specifically configured to:
before processing a current transaction request message, detecting whether an agent bank account corresponding to the current transaction request message has a message in an accounting processing process;
when detecting that the account of the agent bank corresponding to the current transaction request message is not a message in the accounting processing process, determining the accounting processing process for processing the current transaction request message, and sending the current transaction request message to the determined accounting processing process; and the determined accounting processing process is used for calling a bank accounting processing system to perform accounting processing to complete the transaction request.
12. The apparatus for controlling proxy hotspot account concurrency processing of claim 8, further comprising:
the monitoring unit is used for monitoring the states of all transaction request messages to be processed;
and the state modification unit is used for modifying the state of the transaction request message which is processed to be finished into the state of the transaction request message which is finished.
13. The apparatus for controlling proxy hotspot account concurrency processing of claim 8, further comprising:
the checking unit is used for checking the legality of the transaction request messages to be processed sent by different proxied lines;
and the storage processing unit is used for storing the transaction request message to be processed which is successfully verified into the message to-be-sent library.
14. The apparatus for controlling proxy hotspot account concurrency processing of claim 8, further comprising: and the failure message receipt unit is used for returning the reason of the check failure to the corresponding proxied line if the to-be-processed transaction request message fails to check.
15. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 7 when executing the computer program.
16. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any one of claims 1 to 7.
CN202111109813.0A 2021-09-18 2021-09-18 Method and device for controlling concurrent processing of proxy hotspot accounts Pending CN113763177A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111109813.0A CN113763177A (en) 2021-09-18 2021-09-18 Method and device for controlling concurrent processing of proxy hotspot accounts

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111109813.0A CN113763177A (en) 2021-09-18 2021-09-18 Method and device for controlling concurrent processing of proxy hotspot accounts

Publications (1)

Publication Number Publication Date
CN113763177A true CN113763177A (en) 2021-12-07

Family

ID=78796840

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111109813.0A Pending CN113763177A (en) 2021-09-18 2021-09-18 Method and device for controlling concurrent processing of proxy hotspot accounts

Country Status (1)

Country Link
CN (1) CN113763177A (en)

Similar Documents

Publication Publication Date Title
CN111833034B (en) Batch deduction method, payment server, computer equipment and storage medium
CN107358524B (en) Method for leveling funds among multiple account management lines in same currency
CN113837732A (en) Internet resource transfer method, account transfer method and device
CN110968586A (en) Distributed transaction processing method and device
CN111144883A (en) Processing performance analysis method and device for block chain network
CN105096122A (en) Fragmented transaction matching method and fragmented transaction matching device
CN107958318B (en) Resource distribution method and device
CN109885382A (en) The system of cross-system distributed transaction processing method and distributing real time system
CN108537520B (en) Method and device for accessing third-party payment transaction
CN106034148B (en) Rapid information interaction method, local server, remote server and system
CN107194712B (en) Method and device for recording change information of shared account and method and system for supplementing account of internal account
CN112634011A (en) Multi-account linkage deposit method and device, electronic equipment and storage medium
CN110297824B (en) Data recording method, device, equipment and storage medium based on resource transfer
CN113763177A (en) Method and device for controlling concurrent processing of proxy hotspot accounts
CN112633953B (en) Service processing method and system based on block chain
CN113112344B (en) Service processing method, device, storage medium and computer program product
CN112669158B (en) Transaction system and control method and device of transaction service thereof
CN115643271A (en) Method, device, server and medium for synchronizing multi-application data on cloud
CN111695901A (en) Accounting voucher processing method, device, equipment and storage medium
KR20210144120A (en) Method and system for open banking service
CN110059109A (en) Device, method and the storage medium of data query
CN111797074A (en) Database connection method and device, electronic equipment and readable storage medium
CN106878369B (en) Service processing method and device
CN109741054A (en) Transaction data processing method, device, computer equipment and readable storage medium storing program for executing
CN110430263B (en) Value added service processing system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination