CN111461864A - Transaction processing method and device - Google Patents

Transaction processing method and device Download PDF

Info

Publication number
CN111461864A
CN111461864A CN202010242682.2A CN202010242682A CN111461864A CN 111461864 A CN111461864 A CN 111461864A CN 202010242682 A CN202010242682 A CN 202010242682A CN 111461864 A CN111461864 A CN 111461864A
Authority
CN
China
Prior art keywords
resource
transaction
hot spot
hotspot
transaction request
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
CN202010242682.2A
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 CN202010242682.2A priority Critical patent/CN111461864A/en
Publication of CN111461864A publication Critical patent/CN111461864A/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/02Banking, e.g. interest calculation or account maintenance
    • 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/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources
    • 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
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5011Pool

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a transaction processing method and a device, wherein the method comprises the following steps: obtaining a transaction request; inputting transaction information in the transaction request into a hot spot resource library, and searching whether the transaction request contains identification information of hot spot resources, wherein the hot spot resource library is established according to the incidence relation between a plurality of hot spot resources and the identification information of the plurality of hot spot resources, and each hot spot resource corresponds to one transaction request maximum allowable concurrence number; when the transaction request contains identification information of the hotspot resource, judging whether the number of the existing transaction requests of the hotspot resource is less than the maximum allowable concurrence number of the transaction requests of the hotspot resource; when the number of the existing transaction requests of the hot spot resource is less than the maximum allowable concurrency number of the transaction requests of the hot spot resource, the transaction requests are processed.

Description

Transaction processing method and device
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a transaction processing method and apparatus.
Background
With the development of electronic commerce, services of issuing (sending wages, refunding from merchants, and the like) and deduction (collecting, paying, and the like) are gradually increased, and the services are characterized in that a public account number and a large number of private account numbers are traded. When the peripheral system of the bank processes the business, a large amount of online transactions are sent to the core bank system for processing in a batch-to-online mode, and when the core bank system processes the transactions, the account needs to be locked and processed in series in order to ensure the accuracy and continuity of the balance of the account.
A large number of concurrent transactions of a single peripheral account number and the lock serial processing of a core bank system form a contradiction, when a large number of concurrent transactions need to jointly access the same data resource to realize the transactions, the data can form hot spot resources, the hot spot resources can cause part of transactions to be accumulated in the core bank system, further the transaction response time is increased, the problem of transaction processing overtime occurs, and under the more serious condition, the lock spreading is caused by the lock mechanism of a database, so that large area slow of other transactions can be caused, and the transaction blocking and spreading are caused.
In the prior art, when the problem of hot spot resources is solved, an account which causes transaction congestion is marked, but with continuous expansion of service application and rapid increase of transaction amount, the account which causes transaction congestion is no longer a fixed individual account, and with continuous emergence of a large number of, sudden and new accounts which may cause transaction congestion, the method is difficult to effectively avoid the influence of the hot spot resources on the system.
Disclosure of Invention
The embodiment of the invention provides a transaction processing method, which is used for solving the problem of transaction congestion caused by hotspot resources and comprises the following steps:
obtaining a transaction request;
inputting the transaction information in the transaction request into a hot resource library, and searching whether the transaction request contains identification information of a hot resource; the hot spot resource library is established according to the incidence relation between a plurality of hot spot resources and identification information of the plurality of hot spot resources, and each hot spot resource corresponds to a maximum allowable concurrent number of transaction requests;
when the transaction request contains identification information of the hotspot resource, judging whether the number of the existing transaction requests of the hotspot resource is less than the maximum allowable concurrence number of the transaction requests of the hotspot resource;
and processing the transaction request when the number of the existing transaction requests of the hotspot resource is less than the maximum allowable concurrence number of the transaction requests of the hotspot resource.
The embodiment of the invention provides a transaction processing device, which is used for solving the problem of transaction congestion caused by hotspot resources and comprises:
an obtaining module for obtaining a transaction request;
the hot resource searching module is used for inputting the transaction information in the transaction request into a hot resource library and searching whether the transaction request contains identification information of the hot resource; the hot spot resource library is established according to the incidence relation between a plurality of hot spot resources and identification information of the plurality of hot spot resources, and each hot spot resource corresponds to a maximum allowable concurrent number of transaction requests;
the judging module is used for judging whether the number of the existing transaction requests of the hotspot resource is less than the maximum allowable concurrence number of the transaction requests of the hotspot resource when the transaction request contains the identification information of the hotspot resource;
and the processing module is used for processing the transaction request when the number of the existing transaction requests of the hotspot resource is less than the maximum allowable concurrence number of the transaction requests of the hotspot resource.
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 transaction processing method is realized when the processor executes the computer program.
The embodiment of the invention also provides a computer readable storage medium, and the computer readable storage medium stores a computer program for executing the transaction processing method.
The embodiment of the invention comprises the following steps: obtaining a transaction request; inputting the transaction information in the transaction request into a hot resource library, and searching whether the transaction request contains identification information of a hot resource; when the transaction request contains identification information of the hotspot resource, judging whether the number of the existing transaction requests of the hotspot resource is less than the maximum allowable concurrence number of the transaction requests of the hotspot resource; when the transaction request contains the identification information of the hot spot resource, the transaction request is processed after the existing transaction request number of the hot spot resource is determined to be smaller than the maximum allowable concurrent number of the transaction request of the hot spot resource, so that the transaction request for accessing the hot spot resource is controlled in the transaction process, and the problem of large-area congestion of the transaction caused by the hot spot resource is avoided.
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 diagram of a transaction processing method according to an embodiment of the invention;
FIG. 2 is a schematic diagram of a hot resource parameter configuration table/file update process according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a transaction concurrency control flow according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating the structure of a transaction processing device according to an embodiment of the present invention;
fig. 5 is a schematic diagram of another structure of a transaction processing device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Before describing embodiments of the present invention, a description will be given of terms related to the embodiments of the present invention.
A mainframe: or large host, the english name, mainframe. Mainframes use a dedicated processor instruction set, operating system and application software. The term mainframe, originally used to refer to a mainframe computer system housed in a very large framed iron box, was used to distinguish it from smaller miniatures and miniatures.
CICS client Information Control System (client Information Control System), is a transaction processing middleware provided by IBM corporation.
Online transaction: and (4) carrying out transaction on the CICS, wherein the resource usage in the transaction processing process is uniformly scheduled by the CICS.
DB 2: IBM's database for storing data.
In order to solve the technical problem of large-area congestion of a transaction caused by parallel access of hot spot resources by a large number of transaction requests in the prior art, an embodiment of the present invention provides a transaction processing method, and fig. 1 is a schematic diagram of a flow of the transaction processing method in the embodiment of the present invention, as shown in fig. 1, the method includes:
step 101: obtaining a transaction request;
step 102: inputting the transaction information in the transaction request into a hot resource library, and searching whether the transaction request contains identification information of a hot resource; the hot spot resource library is established according to the incidence relation between a plurality of hot spot resources and identification information of the plurality of hot spot resources, and each hot spot resource corresponds to a maximum allowable concurrent number of transaction requests;
step 103: when the transaction request contains identification information of the hotspot resource, judging whether the number of the existing transaction requests of the hotspot resource is less than the maximum allowable concurrence number of the transaction requests of the hotspot resource;
step 104: and processing the transaction request when the number of the existing transaction requests of the hotspot resource is less than the maximum allowable concurrence number of the transaction requests of the hotspot resource.
As shown in fig. 1, an embodiment of the present invention is implemented by: obtaining a transaction request; inputting the transaction information in the transaction request into a hot resource library, and searching whether the transaction request contains identification information of a hot resource; when the transaction request contains identification information of the hotspot resource, judging whether the number of the existing transaction requests of the hotspot resource is less than the maximum allowable concurrence number of the transaction requests of the hotspot resource; when the transaction request contains the identification information of the hot spot resource, the transaction request is processed after the existing transaction request number of the hot spot resource is determined to be smaller than the maximum allowable concurrent number of the transaction request of the hot spot resource, so that the transaction request for accessing the hot spot resource is controlled in the transaction process, and the problem of large-area congestion of the transaction caused by the hot spot resource is avoided.
In step 101, in a large-scale host system, a transaction request may be an online transaction running on a CICS, and the CICS may perform unified scheduling on resources required in an online transaction processing process, where transaction information in the transaction request may include: transaction code, transaction account/card number, data to be accessed for the transaction, etc.
In step 102, the transaction information in the transaction request may be input into the hot resource library, and whether the transaction request includes identification information of a hot resource is searched, where the identification information of the hot resource may be a positioning hot account/card number or other information that may be associated with the hot resource, and a hot resource parameter configuration table and a hot resource parameter configuration file may be maintained for the transaction request according to whether the transaction request includes the identification information of the hot resource, and structures of the two are consistent.
Table 1 is a hotspot resource parameter configuration table, and as shown in table 1, the hotspot resource parameter configuration table may include: transaction code, whether to control transaction concurrency, maximum allowable concurrency number of transaction requests, position of hotspot resource in transaction request message and other parameters. Since each transaction request may involve multiple hot resources, each transaction request transaction may support synchronous, undifferentiated real-time monitoring of multiple hot resources, as shown in table 1, may support synchronous monitoring of five types of hot resources. It can be understood that the above table 1 is only an example of a hot resource parameter configuration table, and the hot resource parameter configuration table can be flexibly customized for different transaction requests according to actual transaction requirements during implementation, which is not limited by the invention.
Table 1 hot spot resource parameter configuration table
Column position Type (B)&Length of Means of
Transaction code char(6) Transaction code
Concurrent control identification char(1) Whether to perform transaction concurrency control
Transaction parallelism char(2) Maximum allowed concurrency number of transaction requests
COLT_FLAG char(1) Concurrency control mark (set control hot spot resource class)Type)
RESR_NO char(6) Starting and ending positions of hotspot resources in transaction message
…… …… ……
COLT_FLAG5 char(1) Concurrency control sign (setting control hotspot resource type)
RESR_NO5 char(6) ……
Fig. 2 is a schematic diagram of a hotspot resource parameter configuration table/file update process in an embodiment of the present invention, as shown in fig. 2, when transaction information is newly added to a transaction request or needs to be modified, a corresponding hotspot resource parameter configuration table and a hotspot resource parameter configuration file may be modified in real time, which may be implemented by combining a DB2 database table and a VSAM file, the DB2 database may provide a visual operation interface for a user, implement real-time data update, provide operations of adding, deleting, checking, and changing with low maintenance cost, and after a user adds or changes transaction information through a maintenance interface and stores the transaction information, the corresponding VSAM file may be recorded and simultaneously validated, and the VSAM file is defined as a CMT mode, and may be directly loaded to a system memory of a CICS, thereby greatly reducing CPU consumption of online application access.
In one embodiment, before entering the transaction information in the transaction request into the hotspot resource database at step 102, the method further comprises:
establishing a hot spot resource library according to the following steps:
step 1021: for a plurality of hot spot resources, determining the identification information of each hot spot resource and the maximum allowable concurrent number of transaction requests;
step 1022: and establishing a hot spot resource library according to the incidence relation between each hot spot resource and the identification information of each hot spot resource and the maximum allowable concurrence number of the transaction requests of each hot spot resource.
During specific implementation, a plurality of hot resources and identification information corresponding to the hot resources can be determined according to daily monitoring data or historical transaction data, the maximum allowable concurrency number of transaction requests of the hot resources is set according to the daily monitoring data, and a hot resource library is established on the basis.
In one embodiment, step 103 may further comprise:
when the transaction request contains identification information of the hot spot resource, verifying the identification information of the hot spot resource in the transaction request;
and after the verification is passed, judging whether the number of the existing transaction requests of the hotspot resource is less than the maximum allowable concurrence number of the transaction requests of the hotspot resource.
In one embodiment, step 103 may further comprise: and processing the transaction request when the transaction request does not contain the identification information of the hotspot resource.
Fig. 3 is a schematic diagram of a transaction concurrency control flow in an embodiment of the present invention, as shown in fig. 3, in a specific implementation, step 103 may read a hot resource parameter configuration file of the transaction request after an online transaction is sent to a core bank system, and when a column of the hot resource parameter configuration file is "yes" to control whether to perform the transaction concurrency, may use an ENQ task control command of the CICS to implement the transaction concurrency control, including: extracting a resource name of a monitored hotspot resource from a transaction request message, verifying the validity of the resource name, reading the maximum allowable concurrency number of the transaction request from a hotspot resource parameter configuration file by using a task control command (ENQ) of a CICS (common information system), taking a combination mode of the hotspot resource name and a serial number (the value range of the serial number is 1-the maximum allowable concurrency number of the transaction request) as an object locked when the ENQ carries out single-line control, and judging whether the existing transaction request number of the hotspot resource is smaller than the maximum allowable concurrency number of the transaction request of the hotspot resource by judging whether the lockable object exists at present.
It should be noted that the ENQ locking/releasing object set is equivalent to a virtual resource pool, the locking of the resource records the occurrence of the transaction, the transaction is ended, the resource is automatically released, and the capacity of the virtual resource pool is determined by the maximum allowable concurrence number of the transaction requests of the hot resource, so as to achieve the purpose of counting the current existing transaction requests.
It should be noted that the verification of the validity of the hotspot resource name is to avoid unnecessary transaction rejection caused by parameter configuration errors, message serial bits, and other factors.
The ENQ control command is as follows:
EXEC CICS ENQ RESOURCE(WS-ENQNAME);
LENGTH(LENGTH OF WS-ENQNAME);
RESP(WS-RESP);
NOSUSPEND;
END-EXEC。
in specific implementation, when the column of whether to perform transaction concurrency control in the hotspot resource parameter configuration file is "no", it indicates that the transaction request does not need to access hotspot resources, and does not need to perform transaction concurrency control, and a service processing program of the transaction request can be directly performed.
In one embodiment, step 104 may further include:
and rejecting the transaction request when the number of the existing transaction requests of the hotspot resource is greater than or equal to the maximum allowable concurrency number of the transaction requests of the hotspot resource.
In one embodiment, step 104 may further include:
when the number of the existing transaction requests of the hotspot resource is more than or equal to the maximum allowable concurrency number of the transaction requests of the hotspot resource, caching the transaction requests;
judging whether the existing transaction request number of the hotspot resource is smaller than the maximum allowable concurrent number of the transaction requests of the hotspot resource again after the preset interval duration;
if the existing transaction request number of the hotspot resource after re-judgment is smaller than the maximum allowable concurrent number of the transaction requests of the hotspot resource, processing the transaction request;
and if the existing transaction request number of the hotspot resource after re-judgment is larger than or equal to the maximum allowable concurrent number of the transaction requests of the hotspot resource, rejecting the transaction request.
In specific implementation, as shown in fig. 3, in step 104, it may be tried to lock a counting resource in the virtual resource pool of the hot resource, and when there is a free resource in the virtual resource pool of the hot resource that can be used for recording the transaction request, the counting resource is successfully locked, which indicates that the number of existing transaction requests of the hot resource is less than the maximum allowable concurrence number of transaction requests of the hot resource, and online transaction processing may be performed; when the number of the existing transaction requests of the hotspot resource is larger than or equal to the maximum allowable concurrency number of the transaction requests of the hotspot resource, no lockable resource exists in a virtual resource pool of the hotspot resource, the resource locking is counted to fail, when the locking fails for the first time, the locking can be retried after a preset interval duration, if the locking succeeds, online transaction processing is carried out, and if the locking fails, the transaction request is rejected. It should be noted that, when the first locking fails, the locking is retried after a preset interval duration, so that the probability of transaction rejection can be effectively reduced.
Based on the same inventive concept, the embodiment of the present invention further provides a transaction processing apparatus, such as the following embodiments. Because the principle of solving the problems by the device is similar to that of the method, the implementation of the device can be referred to the implementation of the method, and repeated details are not repeated. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
In order to solve the technical problem of large area congestion in the transaction caused by parallel access of hot spot resources by a large number of transaction requests in the prior art, an embodiment of the present invention provides a transaction processing apparatus, and fig. 4 is a schematic diagram of a structure of the transaction processing apparatus in the embodiment of the present invention, as shown in fig. 4, the apparatus includes:
an obtaining module 01, configured to obtain a transaction request;
the hot resource searching module 02 is used for inputting the transaction information in the transaction request into a hot resource library and searching whether the transaction request contains identification information of the hot resource; the hot spot resource library is established according to the incidence relation between a plurality of hot spot resources and identification information of the plurality of hot spot resources, and each hot spot resource corresponds to a maximum allowable concurrent number of transaction requests;
the determining module 03 is configured to determine whether the number of existing transaction requests of the hotspot resource is less than the maximum allowable concurrence number of the transaction requests of the hotspot resource when the transaction request includes the identification information of the hotspot resource;
the processing module 04 is configured to process the transaction request when the number of the existing transaction requests of the hotspot resource is less than the maximum allowable concurrence number of the transaction requests of the hotspot resource.
Fig. 5 is a schematic diagram of another structure of a transaction processing device according to an embodiment of the invention, as shown in fig. 5, in an embodiment, the device further includes: a rejection module 05 for:
and rejecting the transaction request when the number of the existing transaction requests of the hotspot resource is greater than or equal to the maximum allowable concurrency number of the transaction requests of the hotspot resource.
In one embodiment, the apparatus is further configured to:
when the number of the existing transaction requests of the hotspot resource is more than or equal to the maximum allowable concurrency number of the transaction requests of the hotspot resource, caching the transaction requests;
judging whether the existing transaction request number of the hotspot resource is smaller than the maximum allowable concurrent number of the transaction requests of the hotspot resource again after the preset interval duration;
if the existing transaction request number of the hotspot resource after re-judgment is smaller than the maximum allowable concurrent number of the transaction requests of the hotspot resource, processing the transaction request;
and if the existing transaction request number of the hotspot resource after re-judgment is larger than or equal to the maximum allowable concurrent number of the transaction requests of the hotspot resource, rejecting the transaction request.
As shown in fig. 5, in an embodiment, the apparatus further includes a hot spot repository establishing module 06 configured to: before inputting the transaction information in the transaction request into the hot spot resource database, establishing the hot spot resource database according to the following steps:
for a plurality of hot spot resources, determining the identification information of each hot spot resource and the maximum allowable concurrent number of transaction requests;
and establishing a hot spot resource library according to the incidence relation between each hot spot resource and the identification information of each hot spot resource and the maximum allowable concurrence number of the transaction requests of each hot spot resource.
In an embodiment, the processing module 04 is specifically configured to:
when the transaction request contains identification information of the hot spot resource, verifying the identification information of the hot spot resource in the transaction request;
and after the verification is passed, judging whether the number of the existing transaction requests of the hotspot resource is less than the maximum allowable concurrence number of the transaction requests of the hotspot resource.
In one embodiment, the processing module 04 is further configured to: and processing the transaction request when the transaction request does not contain the identification information of the hotspot resource.
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 transaction processing method is realized when the processor executes the computer program.
The embodiment of the invention also provides a computer readable storage medium, and the computer readable storage medium stores a computer program for executing the transaction processing method.
In summary, the embodiment of the present invention provides: obtaining a transaction request; inputting the transaction information in the transaction request into a hot resource library, and searching whether the transaction request contains identification information of a hot resource; when the transaction request contains identification information of the hotspot resource, judging whether the number of the existing transaction requests of the hotspot resource is less than the maximum allowable concurrence number of the transaction requests of the hotspot resource; when the transaction request contains the identification information of the hot spot resource, the transaction request is processed after the existing transaction request number of the hot spot resource is determined to be smaller than the maximum allowable concurrent number of the transaction request of the hot spot resource, so that the transaction request for accessing the hot spot resource is controlled in the transaction process, and the problem of large-area congestion of the transaction caused by the hot spot resource is avoided.
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 is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and variations of the embodiment of the present invention may occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A transaction processing method, comprising:
obtaining a transaction request;
inputting the transaction information in the transaction request into a hot resource library, and searching whether the transaction request contains identification information of hot resources; the hot spot resource library is established according to the incidence relation between a plurality of hot spot resources and identification information of the plurality of hot spot resources, and each hot spot resource corresponds to a maximum allowable concurrency number of the transaction request;
when the transaction request contains identification information of the hotspot resource, judging whether the number of the existing transaction requests of the hotspot resource is less than the maximum allowable concurrence number of the transaction requests of the hotspot resource;
and processing the transaction request when the number of the existing transaction requests of the hotspot resource is less than the maximum allowable concurrence number of the transaction requests of the hotspot resource.
2. The method of claim 1, further comprising:
and rejecting the transaction request when the number of the existing transaction requests of the hotspot resource is greater than or equal to the maximum allowable concurrency number of the transaction requests of the hotspot resource.
3. The method of claim 1, further comprising:
when the number of the existing transaction requests of the hotspot resource is more than or equal to the maximum allowable concurrency number of the transaction requests of the hotspot resource, caching the transaction requests;
judging whether the existing transaction request number of the hotspot resource is smaller than the maximum allowable concurrent number of the transaction requests of the hotspot resource again after the preset interval duration;
if the existing transaction request number of the hotspot resource after re-judgment is smaller than the maximum allowable concurrent number of the transaction requests of the hotspot resource, processing the transaction request;
and if the existing transaction request number of the hotspot resource after re-judgment is larger than or equal to the maximum allowable concurrent number of the transaction requests of the hotspot resource, rejecting the transaction request.
4. The method of claim 1, further comprising: and processing the transaction request when the transaction request does not contain the identification information of the hotspot resource.
5. The method of claim 1, wherein prior to entering the transaction information in the transaction request into a hotspot resource database, the method further comprises:
establishing the hot spot resource library according to the following steps:
for a plurality of hot spot resources, determining the identification information of each hot spot resource and the maximum allowable concurrent number of transaction requests;
and establishing the hot spot resource library according to the incidence relation between each hot spot resource and the identification information of each hot spot resource and the maximum allowable concurrency number of the transaction requests of each hot spot resource.
6. The method of claim 1, wherein when the transaction request includes identification information of a hotspot resource, determining whether the number of existing transaction requests of the hotspot resource is less than the maximum allowable concurrency number of transaction requests of the hotspot resource, comprises:
when the transaction request contains identification information of the hot spot resource, verifying the identification information of the hot spot resource in the transaction request;
and after the verification is passed, judging whether the number of the existing transaction requests of the hotspot resource is less than the maximum allowable concurrence number of the transaction requests of the hotspot resource.
7. A transaction processing device, comprising:
an obtaining module for obtaining a transaction request;
the hot resource searching module is used for inputting the transaction information in the transaction request into a hot resource library and searching whether the transaction request contains identification information of the hot resource; the hot spot resource library is established according to the incidence relation between a plurality of hot spot resources and identification information of the plurality of hot spot resources, and each hot spot resource corresponds to a maximum allowable concurrency number of the transaction request;
the judging module is used for judging whether the number of the existing transaction requests of the hotspot resource is less than the maximum allowable concurrence number of the transaction requests of the hotspot resource when the transaction request contains the identification information of the hotspot resource;
and the processing module is used for processing the transaction request when the number of the existing transaction requests of the hotspot resource is less than the maximum allowable concurrence number of the transaction requests of the hotspot resource.
8. The apparatus of claim 7, further comprising: the hot spot resource library establishing module is used for:
for a plurality of hot spot resources, determining the identification information of each hot spot resource and the maximum allowable concurrent number of transaction requests;
and establishing the hot spot resource library according to the incidence relation between each hot spot resource and the identification information of each hot spot resource and the maximum allowable concurrency number of the transaction requests of each hot spot resource.
9. 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 6 when executing the computer program.
10. 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 6.
CN202010242682.2A 2020-03-31 2020-03-31 Transaction processing method and device Pending CN111461864A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010242682.2A CN111461864A (en) 2020-03-31 2020-03-31 Transaction processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010242682.2A CN111461864A (en) 2020-03-31 2020-03-31 Transaction processing method and device

Publications (1)

Publication Number Publication Date
CN111461864A true CN111461864A (en) 2020-07-28

Family

ID=71679383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010242682.2A Pending CN111461864A (en) 2020-03-31 2020-03-31 Transaction processing method and device

Country Status (1)

Country Link
CN (1) CN111461864A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113590410A (en) * 2021-06-20 2021-11-02 济南浪潮数据技术有限公司 Resource request method, system, device and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030065676A1 (en) * 2001-09-05 2003-04-03 Microsoft Corporation Methods and system of managing concurrent access to multiple resources
CN104090823A (en) * 2014-06-09 2014-10-08 中国建设银行股份有限公司 Flow control method and device for computer system
CN104217004A (en) * 2014-09-15 2014-12-17 中国工商银行股份有限公司 Monitoring method and device for database hot spot of transaction system
CN105389214A (en) * 2015-11-10 2016-03-09 中国建设银行股份有限公司 Monitoring method and system
CN105844521A (en) * 2016-03-22 2016-08-10 中国银行股份有限公司 Transaction concurrence quantity control method and device
CN106529962A (en) * 2016-11-18 2017-03-22 中国银联股份有限公司 Method and device used for enhancing hotspot account processing ability in trading system
CN106780034A (en) * 2016-12-26 2017-05-31 中国建设银行股份有限公司 Unilateral account scale domination method and system
CN107767264A (en) * 2017-10-27 2018-03-06 中国银行股份有限公司 Online transaction system focus account trading flow pressure real-time monitoring method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030065676A1 (en) * 2001-09-05 2003-04-03 Microsoft Corporation Methods and system of managing concurrent access to multiple resources
CN104090823A (en) * 2014-06-09 2014-10-08 中国建设银行股份有限公司 Flow control method and device for computer system
CN104217004A (en) * 2014-09-15 2014-12-17 中国工商银行股份有限公司 Monitoring method and device for database hot spot of transaction system
CN105389214A (en) * 2015-11-10 2016-03-09 中国建设银行股份有限公司 Monitoring method and system
CN105844521A (en) * 2016-03-22 2016-08-10 中国银行股份有限公司 Transaction concurrence quantity control method and device
CN106529962A (en) * 2016-11-18 2017-03-22 中国银联股份有限公司 Method and device used for enhancing hotspot account processing ability in trading system
CN106780034A (en) * 2016-12-26 2017-05-31 中国建设银行股份有限公司 Unilateral account scale domination method and system
CN107767264A (en) * 2017-10-27 2018-03-06 中国银行股份有限公司 Online transaction system focus account trading flow pressure real-time monitoring method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113590410A (en) * 2021-06-20 2021-11-02 济南浪潮数据技术有限公司 Resource request method, system, device and medium
CN113590410B (en) * 2021-06-20 2023-12-22 济南浪潮数据技术有限公司 Resource request method, system, equipment and medium

Similar Documents

Publication Publication Date Title
KR101559206B1 (en) Method of processing log data, and system operating the same
CN106952158A (en) Solve the problems, such as the bookkeeping methods and equipment of focus account
CN110060139A (en) Accounting processing method and device
CN111210323A (en) Enterprise tax risk monitoring method and system
CN112231070A (en) Data writing and reading method and device and server
CN107273378B (en) File storage method and device
CN110895537A (en) Method and device for freely inquiring authority control
CN108009223B (en) Method and device for detecting consistency of transaction data
CN111352753A (en) Accounting processing method and device
US9965355B2 (en) System and method for dynamic collection of system management data in a mainframe computing environment
CN111461864A (en) Transaction processing method and device
CN109472680A (en) A kind of accounting processing method and system
CN116977063A (en) Loan risk monitoring device, method, equipment and storage medium
US11816020B2 (en) Online query execution using a big data framework
CN107908697B (en) Automatic collection method and device for host batch processing operation results
CN114218303B (en) Transaction data processing system, processing method, medium and equipment
CN115114275A (en) Data acquisition method, device and medium
CN112035503B (en) Transaction data updating method and device
CN111708802B (en) Network request anti-reprocessing method and device
WO2016168509A1 (en) Fund recovery method and apparatus
CN109255702B (en) Method and device for changing account opening mechanism
US10032229B1 (en) Employing spillover tables for data updates
CN118093724A (en) Data processing method, device, equipment and medium
CN113918299A (en) Processing method and system for batch operation
CN115857938A (en) Method and device for resource audit of big data submission operation

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200728