CN115375313A - Multi-account high-speed transaction method and device, storage medium and electronic device - Google Patents

Multi-account high-speed transaction method and device, storage medium and electronic device Download PDF

Info

Publication number
CN115375313A
CN115375313A CN202211314404.9A CN202211314404A CN115375313A CN 115375313 A CN115375313 A CN 115375313A CN 202211314404 A CN202211314404 A CN 202211314404A CN 115375313 A CN115375313 A CN 115375313A
Authority
CN
China
Prior art keywords
transaction
account
balance
deduction
record
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.)
Granted
Application number
CN202211314404.9A
Other languages
Chinese (zh)
Other versions
CN115375313B (en
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.)
Nanjing Xinmi Network Technology Co ltd
Original Assignee
Nanjing Xinmi Network Technology Co 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 Nanjing Xinmi Network Technology Co ltd filed Critical Nanjing Xinmi Network Technology Co ltd
Priority to CN202211314404.9A priority Critical patent/CN115375313B/en
Publication of CN115375313A publication Critical patent/CN115375313A/en
Application granted granted Critical
Publication of CN115375313B publication Critical patent/CN115375313B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3827Use of message hashing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a multi-account high-speed transaction method and device, a storage medium and an electronic device. The multi-account high-speed transaction method comprises the following steps: receiving high-frequency transaction transactions defined by a plurality of high-frequency hotspot accounts when the same transaction is carried out; acquiring account balance records related to each transaction item in the high-frequency transaction; executing a consistency regulating operation on each transaction item; and adding deduction to account balance corresponding to the transaction items with regular consistency, and recording balance adding deduction and flow records. The method and the device solve the technical problem that the transaction rate cannot be guaranteed due to long response time of transaction processing.

Description

Multi-account high-speed transaction method and device, storage medium and electronic device
Technical Field
The present application relates to the field of online transactions, and in particular, to a multi-account high-speed transaction method, apparatus, storage medium, and electronic apparatus.
Background
The inventor finds that when a plurality of high-frequency hotspot accounts are transacted simultaneously based on a relational database, the transaction processing response time is long and the transaction rate cannot be guaranteed due to the fact that the accounts are processed one by one.
Aiming at the problem that the transaction rate cannot be ensured due to long response time of transaction processing in the related technology, an effective solution is not provided at present.
Disclosure of Invention
The present application provides a method, an apparatus, a storage medium, and an electronic apparatus for multi-account high-speed transaction, so as to solve the problem that the transaction rate cannot be guaranteed due to a long response time of transaction processing.
To achieve the above object, according to one aspect of the present application, there is provided a multi-account high-speed transaction method.
The multi-account high-speed transaction method comprises the following steps: receiving high-frequency transaction transactions defined by a plurality of high-frequency hotspot accounts when the same transaction is carried out; acquiring account balance records related to each transaction item in the high-frequency transaction; executing a consistency regulation operation on each transaction item; and deducting the account balance corresponding to the transaction items with regular consistency, and recording balance deduction and flow records.
Further, after performing the consistency normalization operation on each transaction item, the method further includes: judging whether the parallel feedback value of the transaction items with regular consistency meets a preset parallel transaction rate or not; and if so, carrying out balance deduction on the account balance corresponding to the transaction item meeting the preset parallel transaction rate, and recording the balance deduction and the flow record.
Further, after judging whether the parallel feedback value of the transaction items after the consistency normalization meets the preset parallel transaction rate, the method further comprises the following steps: if not, recording balance plus deduction and flow record; and synchronously deducting the balance of the account corresponding to the transaction items which do not meet the preset parallel transaction rate in batches according to the balance deduction record and the running record.
Further, the obtaining of the parallel feedback value includes: the method comprises the steps of firstly recording a parallel characteristic value of each high-frequency hotspot account, then generating a parallel feedback value in real time based on the parallel characteristic value, and finally storing the parallel feedback value in a high-speed storage device.
Further, performing a consistency normalization operation on each transaction item comprises: and extracting the feature marks of the core feature values of the transaction items through a hash algorithm, and carrying out sequential processing on the transaction items based on the feature marks.
Further, after the recording of the balance deduction and the running record, the method further comprises the following steps: and storing the account balance record, the balance deduction and the running water record into a relational database.
Further, after the storing of the account balance record, the balance deduction and the running water record in the relational database, the method further comprises the following steps: receiving a balance inquiry request of a user to an account to be inquired; and responding to the balance inquiry request, calculating the account balance of the account to be inquired according to the account balance record and the account deduction record, and returning the account balance to the user.
To achieve the above object, according to another aspect of the present application, there is provided a multi-account high-speed transaction apparatus.
The multi-account high-speed transaction device comprises: the transaction receiving unit is used for receiving high-frequency transaction transactions defined by a plurality of high-frequency hotspot accounts when the same transaction is carried out; the record acquisition unit is used for acquiring an account balance record related to each transaction item in the high-frequency transaction; the consistency regulating unit is used for executing consistency regulating operation on each transaction item; and the deduction recording unit is used for deducting the account balance corresponding to the transaction items with regular consistency, recording running water and updating the account balance record according to the running water.
To achieve the above object, according to another aspect of the present application, there is provided a computer-readable storage medium.
A computer-readable storage medium according to the present application having stored therein a computer program, wherein the computer program is arranged to execute the multi-account high-speed transaction method when executed.
In order to achieve the above object, according to another aspect of the present application, there is provided an electronic device.
An electronic device according to the present application includes: a memory having a computer program stored therein, and a processor, wherein the processor is configured to execute the computer program to perform the multi-account high-speed transaction method.
In the embodiment of the application, a multi-account high-speed transaction mode is adopted, and high-frequency transaction transactions defined when a plurality of high-frequency hotspot accounts perform the same transaction are received; acquiring account balance records related to each transaction item in the high-frequency transaction; executing a consistency regulation operation on each transaction item; adding a deduction to account balances corresponding to the transaction items with regular consistency, and recording the balance adding deduction and the flow record; the aim of greatly shortening the response time of transaction processing is fulfilled, so that the technical effect of effectively improving the transaction rate is realized, and the technical problem that the transaction rate cannot be ensured due to long response time of transaction processing is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, serve to provide a further understanding of the application and to enable other features, objects, and advantages of the application to be more apparent. The drawings and the description of the exemplary embodiments of the present application are provided for explaining the present application and do not constitute an undue limitation on the present application. In the drawings:
FIG. 1 is a schematic flow diagram of a multi-account high-speed transaction method according to an embodiment of the application;
FIG. 2 is a schematic diagram of a multi-account high-speed transaction apparatus according to an embodiment of the present application;
fig. 3 is a schematic diagram of a multi-account high-speed transaction apparatus according to an alternative embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all 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 application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances in order to facilitate the description of the embodiments of the application herein. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In this application, the terms "upper", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outer", "middle", "vertical", "horizontal", "lateral", "longitudinal", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings. These terms are used primarily to better describe the invention and its embodiments and are not intended to limit the indicated devices, elements or components to a particular orientation or to be constructed and operated in a particular orientation.
Moreover, some of the above terms may be used to indicate other meanings besides the orientation or positional relationship, for example, the term "on" may also be used to indicate some kind of attachment or connection relationship in some cases. The specific meanings of these terms in the present invention can be understood by those skilled in the art as appropriate.
Furthermore, the terms "mounted," "disposed," "provided," "connected," and "coupled" are to be construed broadly. For example, it may be a fixed connection, a removable connection, or a unitary construction; can be a mechanical connection, or an electrical connection; may be directly connected, or indirectly connected through intervening media, or may be in internal communication between two devices, elements or components. The specific meanings of the above terms in the present invention can be understood by those of ordinary skill in the art according to specific situations.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
According to an embodiment of the present invention, there is provided a multi-account high-speed transaction method, as shown in fig. 1, the method includes the following steps S101 to S104:
step S101, receiving high-frequency transaction transactions defined by a plurality of high-frequency hotspot accounts when the same transaction is carried out;
the high-frequency hot account is an account which can generate multiple transactions in unit time; this results in a situation where the balance is deducted several times in a short time. Therefore, when a plurality of high-frequency hotspot accounts are in the same transaction, each account can possibly deduct balance, and the deduction of the account balance can be carried out only one by using the queue, but the whole transaction processing response time is very long and the transaction rate cannot be guaranteed. In order to solve the problem, in this embodiment, all high-frequency hotspot accounts in the same transaction are defined as one high-frequency transaction, where each transaction item corresponds to one account transaction, so as to provide guarantee for subsequent parallel processing of all transaction items in the high-frequency transaction.
In this embodiment, a high-speed transaction execution module is used to receive high-frequency transaction transactions defined by multiple high-frequency hotspot accounts when the same transaction is performed.
Step S102, obtaining an account balance record related to each transaction item in the high-frequency transaction;
when deducting the balance, deducing the balance to be deducted from each account according to the amount to be paid by two or more transaction parties; but does not know how much balance is left on the account itself, which is not conducive to subsequent real-time responses to account inquiries. Therefore, the corresponding account balance record needs to be extracted from each transaction item in the high-frequency transaction, so as to ensure the smooth proceeding of subsequent balance deduction.
In this embodiment, the acquisition of the account balance record related to each transaction item is performed simultaneously in the high-speed transaction execution module.
Step S103, executing consistency regulation operation on each transaction item;
by the consistency regulating operation, the global consistency can be regulated when all transaction items in the high-frequency transaction are executed, and the guarantee is provided for the subsequent parallel processing of deduction.
In this embodiment, a consistency regulating operation is performed on each transaction item in the high-speed transaction execution module.
Preferably, the performing the consistency regulating operation on each transaction item comprises:
and extracting the feature marks of the core feature values of the transaction items through a hash algorithm, and carrying out sequential processing on the transaction items based on the feature marks.
The deduction property and the transaction property of each transaction item, the global unique mark related to the balance account, the account property and other core characteristic values are subjected to feature mark extraction through a hash algorithm, and the transaction items are sequentially processed based on the feature marks, so that the aim of global consistency regulation during the execution of all transaction items in the transaction is fulfilled.
And step S104, deducting the account balance corresponding to the transaction items with regular consistency, and recording balance deducting and flow records.
The transaction items with regular consistency can be directly deducted from account balances, specifically, a parallel processing mode is adopted in a high-speed transaction execution module to deduct from each account balance corresponding to each transaction item, and balance deduction and running water record are recorded. And when deducting, each account balance is simultaneously carried out, and the obtained balance deducting and running records correspond to the previously obtained account balance records so as to provide a correlation basis for subsequent storage.
The high-speed transaction execution module is adopted to realize the parallel processing of account balance deduction and record, and replace the processing one by one, thereby greatly reducing the response time of transaction processing and effectively improving the transaction rate.
From the above description, it can be seen that the present invention achieves the following technical effects:
in the embodiment of the application, a multi-account high-speed transaction mode is adopted, and high-frequency transaction transactions defined when a plurality of high-frequency hotspot accounts perform the same transaction are received; acquiring account balance records related to each transaction item in the high-frequency transaction; executing a consistency regulation operation on each transaction item; adding a deduction to account balances corresponding to the transaction items with regular consistency, and recording the balance adding deduction and the flow record; the aim of greatly shortening the response time of transaction processing is fulfilled, so that the technical effect of effectively improving the transaction rate is realized, and the technical problem that the transaction rate cannot be ensured due to long response time of transaction processing is solved.
According to the embodiment of the present invention, after performing the consistency normalization operation on each transaction item, the method further includes:
judging whether the parallel feedback value of the transaction items with regular consistency meets a preset parallel transaction rate or not;
if so, carrying out balance deduction on the account balance corresponding to the transaction item meeting the preset parallel transaction rate, and recording the balance deduction and the running water record;
and if the balance is not satisfied, recording balance deduction and flow record, and carrying out batch balance synchronous deduction on account balance corresponding to the transaction items which do not satisfy the preset parallel transaction rate according to the balance deduction record and the flow record.
And judging whether the parallel feedback value of the transaction items after consistency normalization is lower than or equal to a preset parallel transaction rate, if so, indicating that the transaction items accord with the parallel processing conditions of the high-speed transaction execution module, directly carrying out balance deduction on the account balance corresponding to the transaction items meeting the preset parallel transaction rate on the high-speed transaction execution module, and recording the balance deduction and the running water record. If the transaction items exceed the preset parallel transaction rate and are not in accordance with the parallel processing conditions of the high-speed transaction execution module, balance deduction and flow record are recorded, and batch balance synchronous deduction is performed on account balances corresponding to the transaction items which do not meet the preset parallel transaction rate according to the balance deduction record and the flow record through a high-speed balance synchronous processing timer.
In this embodiment, each timer device operates at a high speed based on a timing cycle (a millisecond cycle or a second cycle may be used according to a demand and an actual condition cycle, etc.), and performs batch balance synchronization on the balance of the account exceeding the parallel transaction rate based on the account balance record and the deduction record of the account balance record.
The transaction rate which can be carried out in a period is not influenced by the transaction control of the database, and the processing speed is effectively accelerated by judging the items which respectively meet and do not meet the transaction rate in parallel processing.
Preferably, the obtaining of the parallel feedback value includes: the method comprises the steps of firstly recording a parallel characteristic value of each high-frequency hotspot account, then generating a parallel feedback value in real time based on the parallel characteristic value, and finally storing the parallel feedback value in a high-speed storage device. The parallel transaction control feedback module is used for monitoring, and a parallel feedback value can be generated based on the monitored parallel characteristic value, so that the normal operation of the judgment process is ensured.
According to the embodiment of the present invention, preferably, after the recording of the balance deduction and the journal recording, the method further includes:
and storing the account balance record, the balance deduction and the running record into a relational database.
Receiving a balance inquiry request of a user to an account to be inquired;
and responding to the balance inquiry request, calculating the account balance of the account to be inquired according to the account balance record and the account deduction record, and returning the account balance to the user.
The high-speed transaction execution module, the parallel transaction control feedback module and the timer are matched, so that the transaction processing speed is increased, the transaction processing speed can be rapidly stored in the relational database according to the processed account balance record, balance deduction and flow record, and when an inquiry request for acquiring the balance of the high-frequency hotspot account in real time exists, the high-frequency hotspot account balance inquiry module can rapidly respond, so that the real-time property and the accuracy of inquiring the balance are effectively ensured.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
According to an embodiment of the present invention, there is further provided a rotor for implementing the above-mentioned multi-account high-speed transaction method, as shown in fig. 2 and 3, the apparatus includes:
the transaction receiving unit 10 is configured to receive high-frequency transaction transactions defined by multiple high-frequency hotspot accounts when the same transaction is performed;
the high-frequency hot account is an account which can generate multiple transactions in unit time; this results in a situation where the balance is deducted several times in a short time. Therefore, when a plurality of high-frequency hotspot accounts are in the same transaction, each account can possibly deduct balance, and the deduction of the account balance can be carried out only one by using the queue, but the whole transaction processing response time is very long and the transaction rate cannot be guaranteed. In order to solve the problem, in this embodiment, all high-frequency hotspot accounts in the same transaction are defined as one high-frequency transaction, where each transaction item corresponds to one account transaction, so as to provide guarantee for subsequent parallel processing of all transaction items in the high-frequency transaction.
In this embodiment, a high-speed transaction execution module is used to receive high-frequency transaction transactions defined by multiple high-frequency hotspot accounts when the same transaction is performed.
The record obtaining unit 20 is configured to obtain an account balance record related to each transaction item in the high-frequency transaction;
when adding the deduction balance, the deduction balance of each account can be calculated according to the amount paid out by two or more transaction parties; but does not know how much balance is on the account, which is not beneficial to the real-time response of the account inquiry. Therefore, the corresponding account balance record needs to be extracted from each transaction item in the high-frequency transaction, so as to ensure the smooth proceeding of subsequent balance deduction.
In this embodiment, the acquisition of the account balance record related to each transaction item is performed simultaneously in the high-speed transaction execution module.
A consistency regulating unit 30, configured to perform a consistency regulating operation on each transaction item;
by the consistency regulating operation, the global consistency can be regulated when all transaction items in the high-frequency transaction are executed, and the guarantee is provided for the subsequent parallel processing of deduction.
In this embodiment, a consistency regulating operation is performed on each transaction item in the high-speed transaction execution module.
Preferably, the performing the consistency regulating operation on each transaction item comprises:
and extracting the feature marks of the core feature values of the transaction items through a hash algorithm, and carrying out sequential processing on the transaction items based on the feature marks.
The deduction property and the transaction property of each transaction item, the global unique mark related to a balance account, the account property and other core characteristic values are subjected to characteristic mark extraction through a hash algorithm, and the transaction items are sequentially processed based on the characteristic marks, so that the aim of global consistency regulation during the execution of all the transaction items in the transaction is fulfilled.
And the deduction recording unit 40 is used for recording the running water after deducting the account balance corresponding to the transaction items with regular consistency and updating the account balance record according to the running water.
The transaction items with regular consistency can be directly deducted from account balances, specifically, a parallel processing mode is adopted in a high-speed transaction execution module to deduct from each account balance corresponding to each transaction item, and balance deduction and running water record are recorded. And when deducting, each account balance is simultaneously carried out, and the obtained balance deducting and running records correspond to the previously obtained account balance records so as to provide a correlation basis for subsequent storage.
The high-speed transaction execution module is adopted to realize the parallel processing of account balance deduction and record, and replace the processing one by one, thereby greatly reducing the response time of transaction processing and effectively improving the transaction rate.
From the above description, it can be seen that the present invention achieves the following technical effects:
in the embodiment of the application, a multi-account high-speed transaction mode is adopted, and high-frequency transaction transactions defined when a plurality of high-frequency hotspot accounts perform the same transaction are received; acquiring account balance records related to each transaction item in the high-frequency transaction; executing a consistency regulating operation on each transaction item; adding a deduction to account balances corresponding to the transaction items with regular consistency, and recording the balance adding deduction and the flow record; the aim of greatly shortening the response time of transaction processing is fulfilled, so that the technical effect of effectively improving the transaction rate is realized, and the technical problem that the transaction rate cannot be ensured due to long response time of transaction processing is solved.
According to the embodiment of the present invention, after performing the consistency normalization operation on each transaction item, the method further includes:
judging whether the parallel feedback value of the transaction items with regular consistency meets a preset parallel transaction rate or not;
if so, carrying out balance deduction on the account balance corresponding to the transaction item meeting the preset parallel transaction rate, and recording the balance deduction and the running water record;
and if the balance is not satisfied, recording balance deduction and flow records, and carrying out batch balance synchronous deduction on the account balance corresponding to the transaction item which does not satisfy the preset parallel transaction rate according to the balance deduction records and the flow records.
And judging whether the parallel feedback value of the transaction items after consistency normalization is lower than or equal to a preset parallel transaction rate, if so, indicating that the transaction items accord with the parallel processing conditions of the high-speed transaction execution module, directly carrying out balance deduction on the account balance corresponding to the transaction items meeting the preset parallel transaction rate on the high-speed transaction execution module, and recording the balance deduction and the running water record. If the transaction items exceed the preset parallel transaction rate and are not in accordance with the parallel processing conditions of the high-speed transaction execution module, balance deduction and flow record are recorded, and batch balance synchronous deduction is performed on account balances corresponding to the transaction items which do not meet the preset parallel transaction rate according to the balance deduction record and the flow record through a high-speed balance synchronous processing timer.
In this embodiment, each timer device operates at a high speed based on a timing cycle (a millisecond cycle or a second cycle, etc. may be used according to a demand and an actual condition cycle), and performs batch balance synchronization on the balance of the account exceeding the parallel transaction rate based on the account balance record and the deduction record of the account balance record.
The transaction rate which can be carried out in a period is not influenced by the transaction control of the database, and the processing speed is effectively accelerated by judging the items which respectively meet and do not meet the transaction rate in parallel processing.
Preferably, the obtaining of the parallel feedback value includes: the method comprises the steps of firstly recording a parallel characteristic value of each high-frequency hotspot account, then generating a parallel feedback value in real time based on the parallel characteristic value, and finally storing the parallel feedback value in a high-speed storage device. The parallel transaction control feedback module is used for monitoring, and a parallel feedback value can be generated based on the monitored parallel characteristic value, so that the normal operation of a judgment process is ensured.
According to the embodiment of the present invention, preferably, after the recording of the balance deduction and the journal recording, the method further includes:
and storing the account balance record, the balance deduction and the running water record into a relational database.
Receiving a balance inquiry request of a user to an account to be inquired;
and responding to the balance inquiry request, calculating the account balance of the account to be inquired according to the account balance record and the account deduction record, and returning the account balance to the user.
The high-speed transaction execution module, the parallel transaction control feedback module and the timer are matched, so that the transaction processing speed is increased, the transaction processing speed can be rapidly stored in the relational database according to the processed account balance record, balance deduction and flow record, and when an inquiry request for acquiring the balance of the high-frequency hotspot account in real time exists, the high-frequency hotspot account balance inquiry module can rapidly respond, so that the real-time property and the accuracy of inquiring the balance are effectively ensured.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may alternatively be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, or fabricated separately as individual integrated circuit modules, or fabricated as a single integrated circuit module from multiple modules or steps. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A multi-account high-speed transaction method, comprising:
receiving high-frequency transaction transactions defined by a plurality of high-frequency hotspot accounts when the same transaction is carried out;
acquiring account balance records related to each transaction item in the high-frequency transaction;
executing a consistency regulation operation on each transaction item;
and adding deduction to account balance corresponding to the transaction items with regular consistency, and recording balance adding deduction and flow records.
2. The multi-account high-speed transaction method according to claim 1, further comprising, after performing the consistency-leveling operation on each transaction item:
judging whether the parallel feedback value of the transaction items with regular consistency meets a preset parallel transaction rate or not;
and if so, carrying out balance deduction on the account balance corresponding to the transaction item meeting the preset parallel transaction rate, and recording the balance deduction and the flow record.
3. The multi-account high-speed transaction method according to claim 2, wherein after determining whether the parallel feedback value of the transaction items after the consistency normalization meets a preset parallel transaction rate, the method further comprises:
if not, recording balance plus deduction and flow record;
and synchronously deducting the balance of the account corresponding to the transaction items which do not meet the preset parallel transaction rate in batches according to the balance deduction record and the running record.
4. The multi-account high-speed transaction method according to claim 2, wherein the obtaining of the parallel feedback value comprises:
the method comprises the steps of firstly recording a parallel characteristic value of each high-frequency hotspot account, then generating a parallel feedback value in real time based on the parallel characteristic value, and finally storing the parallel feedback value in a high-speed storage device.
5. The multi-account high-speed transaction method according to claim 1, wherein performing a consistency-warping operation on each transaction item comprises:
and extracting the feature marks of the core feature values of the transaction items through a hash algorithm, and carrying out serialization processing on the transaction items based on the feature marks.
6. The multi-account high-speed transaction method according to any one of claims 1 to 3, wherein after recording the balance deduction and the journal recording, further comprising:
and storing the account balance record, the balance deduction and the running water record into a relational database.
7. The multi-account high-speed transaction method according to claim 6, wherein after storing the account balance record, the balance deduction and the running water record in the relational database, further comprising:
receiving a balance inquiry request of a user to an account to be inquired;
and responding to the balance inquiry request, calculating the account balance of the account to be inquired according to the account balance record and the account deduction record, and returning the account balance to the user.
8. A multi-account high-speed transaction apparatus, comprising:
the transaction receiving unit is used for receiving high-frequency transaction transactions defined by a plurality of high-frequency hotspot accounts when the same transaction is carried out;
the record acquisition unit is used for acquiring an account balance record related to each transaction item in the high-frequency transaction;
the consistency regulating unit is used for executing consistency regulating operation on each transaction item;
and the deduction recording unit is used for deducting the account balance corresponding to the transaction items with regular consistency, recording running water and updating the account balance record according to the running water.
9. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to execute the multi-account high-speed transaction method according to any one of claims 1 to 7 when executed.
10. An electronic device, comprising: memory and a processor, wherein the memory has stored therein a computer program, wherein the processor is configured to execute the computer program to perform the multi-account high speed transaction method of any one of claims 1 to 7.
CN202211314404.9A 2022-10-26 2022-10-26 Multi-account high-speed transaction method and device, storage medium and electronic device Active CN115375313B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211314404.9A CN115375313B (en) 2022-10-26 2022-10-26 Multi-account high-speed transaction method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211314404.9A CN115375313B (en) 2022-10-26 2022-10-26 Multi-account high-speed transaction method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN115375313A true CN115375313A (en) 2022-11-22
CN115375313B CN115375313B (en) 2023-06-02

Family

ID=84073296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211314404.9A Active CN115375313B (en) 2022-10-26 2022-10-26 Multi-account high-speed transaction method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115375313B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005107578A (en) * 2003-09-26 2005-04-21 Mizuho Bank Ltd Account withdrawal management method and account withdrawal management program
US20170039565A1 (en) * 2014-04-22 2017-02-09 Plemicor Holdings Canada Inc. Method and system for transferring funds data
CN111061748A (en) * 2019-12-12 2020-04-24 吉林亿联银行股份有限公司 Hot account accounting method and device
CN114202334A (en) * 2021-12-09 2022-03-18 兴业银行股份有限公司 Method and system suitable for asynchronously updating balance of hotspot account in batch

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005107578A (en) * 2003-09-26 2005-04-21 Mizuho Bank Ltd Account withdrawal management method and account withdrawal management program
US20170039565A1 (en) * 2014-04-22 2017-02-09 Plemicor Holdings Canada Inc. Method and system for transferring funds data
CN111061748A (en) * 2019-12-12 2020-04-24 吉林亿联银行股份有限公司 Hot account accounting method and device
CN114202334A (en) * 2021-12-09 2022-03-18 兴业银行股份有限公司 Method and system suitable for asynchronously updating balance of hotspot account in batch

Also Published As

Publication number Publication date
CN115375313B (en) 2023-06-02

Similar Documents

Publication Publication Date Title
CN107272876A (en) Method and apparatus for managing the global chip power on multinuclear on-chip system
CN109146653B (en) Distributed environment-based accounting daily cutting checking method and device
CN107544853A (en) It is a kind of to interact the method and system retried with bank
CN111680085A (en) Data processing task analysis method and device, electronic equipment and readable storage medium
CN111062602A (en) Method, device and storage medium for enterprise credit risk assessment
CN111475532A (en) Data processing optimization method and device, storage medium and terminal
CN106407013B (en) Method and device for dynamically scheduling resources, resource scheduling server and system
CN117406844B (en) Display card fan control method and related device based on neural network
CN117112701B (en) Node switching method in distributed database, computer equipment and storage medium
CN115174686B (en) Method and device for dynamically adjusting weights of multiple service channels based on service efficiency
CN115375313A (en) Multi-account high-speed transaction method and device, storage medium and electronic device
CN111754330A (en) Interest-counting device and method for regular account to be paid in advance
CN110069565A (en) A kind of method and device of distributed data base batch data processing
CN116249186A (en) Data processing method and device of wireless network equipment, storage medium and electronic equipment
CN107943902B (en) Call bill collection method and device
CN114118488A (en) Offline self-service repayment reservation method, electronic equipment and storage medium
CN111179060A (en) Transaction path selection method and device in transfer processing process
CN111062603A (en) Enterprise life cycle analysis method and device and storage medium
CN112925650A (en) Resource cost calculation method and resource cost calculation system for calculation task
CN112803427A (en) Regional power grid dispatching method, system, terminal and storage medium based on demand
EP3800603A1 (en) Payment collection control method and device, server, and readable storage medium
CN111932356A (en) Method and device for determining credit risk level of enterprise
CN110288469A (en) A kind of token automatic distributing method, apparatus and computer equipment
CN109656796A (en) A kind of task selection method and device
CN114844901B (en) Big data cleaning task processing method based on artificial intelligence and cloud computing system

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
GR01 Patent grant
GR01 Patent grant