CN111612464A - Mass online transaction processing method - Google Patents

Mass online transaction processing method Download PDF

Info

Publication number
CN111612464A
CN111612464A CN202010463135.7A CN202010463135A CN111612464A CN 111612464 A CN111612464 A CN 111612464A CN 202010463135 A CN202010463135 A CN 202010463135A CN 111612464 A CN111612464 A CN 111612464A
Authority
CN
China
Prior art keywords
transaction request
transaction
processing
sets
requests
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
CN202010463135.7A
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.)
Beiyin Financial Technology Co ltd
Original Assignee
Beiyin Financial 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 Beiyin Financial Technology Co ltd filed Critical Beiyin Financial Technology Co ltd
Priority to CN202010463135.7A priority Critical patent/CN111612464A/en
Publication of CN111612464A publication Critical patent/CN111612464A/en
Pending legal-status Critical Current

Links

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

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

Abstract

The invention discloses a processing method of mass online transactions, which relates to the technical field of online payment, and comprises the steps of generating a plurality of transaction request sets of different types by obtaining transaction requests sent by a client in different time periods and in the same time period, utilizing a distributed counting technology to obtain the number of the transaction requests in the transaction request sets, classifying the transaction request sets according to the number of the transaction requests to obtain corresponding classification results, respectively marking corresponding labels for the transaction requests in the transaction request sets according to the classification results and processing the transaction requests in the transaction request sets, eliminating the conditions of breakdown and paralysis of an online transaction processing platform caused by sudden high-flow impact, reducing the waiting time of a transaction request initiator and solving the problem of accumulation of a large number of transaction requests caused by waiting of a requester, the efficiency is improved.

Description

Mass online transaction processing method
Technical Field
The invention relates to the technical field of online payment, in particular to a massive online transaction processing method.
Background
With the rapid development of the third party payment industry, more and more terminal users experience the change brought by convenient payment to people. The online transaction processing platform helps the third-party payment industry to realize quick and safe payment, the development requirement of the third-party payment industry is met, the number of received transaction requests is increased, the online transaction processing platform is broken down and paralyzed due to sudden high-flow impact, and a large number of transaction requests are accumulated due to waiting of a requesting party. At present, a leaky bucket algorithm is mainly adopted to ensure the stability of an online transaction processing platform, namely, all transaction requests are put into a leaky bucket, the leaky bucket leaks the transaction requests according to a certain rate, a real logic processing system is called to complete the transaction request processing, and the transaction requests exceeding the capacity part of the leaky bucket are directly discarded, so that the scheme has the following defects:
(1) there are limitations on capacity;
(2) all the request flows either pass through the leaky bucket or do not pass through the leaky bucket, so that the two modes cannot be combined for use, and the mode is single;
(3) the conversion of the transaction request from synchronous to asynchronous is not realized, and the efficiency is low.
Disclosure of Invention
In order to solve the defects of the prior art, the embodiment of the invention provides a massive online transaction processing method, which comprises the following steps:
acquiring transaction requests sent by a client in different time periods and in the same time period, and generating a plurality of transaction request sets of different types;
acquiring the number of transaction requests in the transaction request sets by utilizing a distributed counting technology;
classifying the transaction request sets according to the number of the transaction requests to obtain corresponding classification results;
and according to the classification result, marking a corresponding label for each transaction request in the transaction request sets respectively and processing each transaction request in the transaction request sets.
Preferably, classifying the plurality of sets of transaction requests according to the number of transaction requests comprises:
and classifying the transaction request sets with the number larger than the first threshold and not larger than the second threshold into a first transaction request set.
Preferably, classifying the plurality of transaction request sets according to the number of transaction requests further comprises:
and classifying the transaction request sets with the number larger than the second threshold and not larger than the third threshold into a second type transaction request set.
Preferably, classifying the plurality of transaction request sets according to the number of transaction requests further comprises:
and classifying the transaction request sets with the number larger than the third threshold value into a third type transaction request set.
Preferably, according to the classification result, labeling each transaction request in the transaction request sets with a corresponding label and processing the transaction request sets respectively includes:
and respectively labeling each transaction request in the first type transaction request set with a normal processing label and directly sending each transaction request to a transaction request processing system.
Preferably, according to the classification result, labeling each transaction request in the transaction request sets with a corresponding label and processing the transaction request sets respectively includes:
and respectively marking a 'pool processing' label on each transaction request in the second type transaction request set and sending each transaction request to a transaction buffer pool.
Preferably, according to the classification result, labeling each transaction request in the transaction request sets with a corresponding label and processing the transaction request sets respectively includes:
and respectively marking each transaction request in the third type transaction request set with a 'reject processing' label to reject processing of each transaction request.
Preferably, the method further comprises:
and sending the processing condition of each transaction request to the request initiator through a pre-configured simulated response mechanism.
The massive online transaction processing method provided by the embodiment of the invention has the following beneficial effects:
(1) by adopting a distributed counting technology and processing a large amount of transaction requests through a buffer pool, the method can be combined with the use of a leaky bucket algorithm, the mode is more flexible and diversified, and the situations of breakdown and paralysis of an online transaction processing platform caused by sudden high-flow impact are eliminated;
(2) the transaction request marked as 'in-pool processing' is persisted to a database, and the problem of capacity limitation existing in 'leaky bucket' can be solved through the database with horizontally expandable capacity;
(3) by means of a pre-configured simulated response mechanism, responses are synchronously returned, processing of transaction requests is asynchronously completed, waiting time of a transaction request initiator is reduced, the problem that a large number of transaction requests are accumulated due to waiting of a requester is solved, and efficiency is high.
Detailed Description
The present invention will be described in detail with reference to the following embodiments.
The method for processing the massive online transactions provided by the embodiment of the invention comprises the following steps:
s101, transaction requests sent by clients in different time periods and the same time period are obtained, and a plurality of transaction request sets of different types are generated.
As a specific example, the different time periods include 9-11AM, 14-16PM, 18-20PM per day for a period of 2 hours.
S102, acquiring the number of the transaction requests in the transaction request sets by using a distributed counting technology.
S103, classifying the transaction request sets according to the number of the transaction requests to obtain corresponding classification results.
And S104, marking corresponding labels for the transaction requests in the transaction request sets respectively according to the classification result, and processing the transaction requests in the transaction request sets.
Optionally, classifying the plurality of transaction request sets according to the number of transaction requests includes:
and classifying the transaction request sets with the number larger than the first threshold and not larger than the second threshold into a first transaction request set.
Optionally, classifying the plurality of transaction request sets according to the number of transaction requests further comprises:
and classifying the transaction request sets with the number larger than the second threshold and not larger than the third threshold into a second type transaction request set.
Optionally, classifying the plurality of transaction request sets according to the number of transaction requests further comprises:
and classifying the transaction request sets with the number larger than the third threshold value into a third type transaction request set.
Optionally, the labeling each transaction request in the plurality of transaction request sets and processing the plurality of transaction request sets according to the classification result includes:
and respectively labeling each transaction request in the first type transaction request set with a normal processing label and directly sending each transaction request to a transaction request processing system.
As a specific embodiment, each transaction request in the transaction request set with the transaction request number between 0 and 100 is labeled with 'normal processing'.
Optionally, the labeling each transaction request in the plurality of transaction request sets and processing the plurality of transaction request sets according to the classification result includes:
and respectively marking each transaction request in the second type transaction request set with a 'pool processing' label and sending each transaction request to a transaction buffer pool.
As a specific embodiment, each transaction request in the transaction request set with the transaction request number between 100 and 500 is labeled as "pooling processing".
Optionally, the labeling each transaction request in the plurality of transaction request sets and processing the plurality of transaction request sets according to the classification result includes:
and respectively marking each transaction request in the third type transaction request set with a 'reject processing' label to reject processing each transaction request.
As a specific example, each transaction request in the transaction request set with the transaction request number exceeding 500 is marked with a 'reject handling' label.
Optionally, the method further comprises:
and sending the processing condition of each transaction request to the request initiator through a pre-configured simulated response mechanism.
As a specific embodiment, for a transaction request labeled as "normal processing", a real transaction processing system is called to process and send a final transaction result to a transaction request initiator in real time; for the transaction request with the label of 'entering pool processing', the transaction state of 'accepted' or 'processing' is sent to the transaction request initiator in real time; for the transaction request labeled as 'reject processing', directly feeding back 'the information that the system is busy and the request is requested to be reinitiated later' to the transaction request initiator.
The massive online transaction processing method provided by the embodiment of the invention generates a plurality of transaction request sets of different types by acquiring transaction requests sent by clients in different time periods and in the same time period, acquires the number of the transaction requests in the transaction request sets by using a distributed counting technology, classifies the transaction request sets according to the number of the transaction requests to obtain corresponding classification results, respectively marks corresponding labels for the transaction requests in the transaction request sets and processes the transaction requests in the transaction request sets according to the classification results, eliminates the conditions of breakdown and paralysis of an online transaction processing platform caused by sudden high-flow impact, reduces the waiting time of a transaction request initiator, solves the problem of accumulation of a large number of transaction requests caused by waiting of a requester, and improves the efficiency.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It will be appreciated that the relevant features of the method and apparatus described above are referred to one another. In addition, "first", "second", and the like in the above embodiments are for distinguishing the embodiments, and do not represent merits of the embodiments.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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 above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (8)

1. A method for processing massive online transactions, comprising:
acquiring transaction requests sent by a client in different time periods and in the same time period, and generating a plurality of transaction request sets of different types;
acquiring the number of transaction requests in the transaction request sets by utilizing a distributed counting technology;
classifying the transaction request sets according to the number of the transaction requests to obtain corresponding classification results;
and according to the classification result, marking a corresponding label for each transaction request in the transaction request sets respectively and processing each transaction request in the transaction request sets.
2. The mass online transaction processing method of claim 1, wherein classifying the plurality of transaction request sets according to the number of transaction requests comprises:
and classifying the transaction request sets with the number larger than the first threshold and not larger than the second threshold into a first transaction request set.
3. The mass online transaction processing method of claim 2, wherein classifying the plurality of transaction request sets according to the number of transaction requests further comprises:
and classifying the transaction request sets with the number larger than the second threshold and not larger than the third threshold into a second type transaction request set.
4. The mass online transaction processing method of claim 3, wherein classifying the plurality of transaction request sets according to the number of transaction requests further comprises:
and classifying the transaction request sets with the number larger than the third threshold value into a third type transaction request set.
5. The mass online transaction processing method according to claim 1 or 2, wherein the labeling each transaction request in the transaction request sets and processing the transaction request sets according to the classification result comprises:
and respectively labeling each transaction request in the first type transaction request set with a normal processing label and directly sending each transaction request to a transaction request processing system.
6. The mass online transaction processing method according to claim 1 or 3, wherein the labeling each transaction request in the transaction request sets and processing the transaction request sets according to the classification result comprises:
and respectively marking a 'pool processing' label on each transaction request in the second type transaction request set and sending each transaction request to a transaction buffer pool.
7. The mass online transaction processing method according to claim 1 or 4, wherein the labeling each transaction request in the transaction request sets and processing the transaction request sets according to the classification result comprises:
and respectively marking each transaction request in the third type transaction request set with a 'reject processing' label to reject processing of each transaction request.
8. The mass online transaction processing method of claim 1, wherein after processing each transaction request of the plurality of sets of transaction requests, the method further comprises:
and sending the processing condition of each transaction request to the request initiator through a pre-configured simulated response mechanism.
CN202010463135.7A 2020-05-27 2020-05-27 Mass online transaction processing method Pending CN111612464A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010463135.7A CN111612464A (en) 2020-05-27 2020-05-27 Mass online transaction processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010463135.7A CN111612464A (en) 2020-05-27 2020-05-27 Mass online transaction processing method

Publications (1)

Publication Number Publication Date
CN111612464A true CN111612464A (en) 2020-09-01

Family

ID=72200588

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010463135.7A Pending CN111612464A (en) 2020-05-27 2020-05-27 Mass online transaction processing method

Country Status (1)

Country Link
CN (1) CN111612464A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112767160A (en) * 2021-01-21 2021-05-07 中国工商银行股份有限公司 Online transaction processing method and device based on memory

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927314A (en) * 2013-01-16 2014-07-16 阿里巴巴集团控股有限公司 Data batch processing method and device
US20160180339A1 (en) * 2014-12-18 2016-06-23 Mastercard International Incorporated Method and system for industry-based suppression of payment transactions
CN107707488A (en) * 2017-10-25 2018-02-16 北京数码视讯支付技术有限公司 Pay on-line transaction flow control methods, current limliting service end and client
CN107819696A (en) * 2017-11-22 2018-03-20 中国银行股份有限公司 A kind of transaction flow control method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927314A (en) * 2013-01-16 2014-07-16 阿里巴巴集团控股有限公司 Data batch processing method and device
US20160180339A1 (en) * 2014-12-18 2016-06-23 Mastercard International Incorporated Method and system for industry-based suppression of payment transactions
CN107707488A (en) * 2017-10-25 2018-02-16 北京数码视讯支付技术有限公司 Pay on-line transaction flow control methods, current limliting service end and client
CN107819696A (en) * 2017-11-22 2018-03-20 中国银行股份有限公司 A kind of transaction flow control method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
方积乾: "《医学统计学手册》", 中国统计出版社, pages: 305 - 308 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112767160A (en) * 2021-01-21 2021-05-07 中国工商银行股份有限公司 Online transaction processing method and device based on memory

Similar Documents

Publication Publication Date Title
CN111814910B (en) Abnormality detection method, abnormality detection device, electronic device, and storage medium
CN111461776A (en) Resource distribution method, device, equipment and storage medium
CN110347888A (en) Processing method, device and the storage medium of order data
CN111612464A (en) Mass online transaction processing method
CN114860742A (en) Artificial intelligence-based AI customer service interaction method, device, equipment and medium
CN111813902B (en) Intelligent response method, system and computing device
CN101534319B (en) Method, system and proxy server for canceling inter-instruction dependency relationship
CN110990007A (en) Bank software function interface generation method and device
CN111597256A (en) Transaction asynchronous processing method
CN111709769A (en) Data processing method and device
CN111242762A (en) Financial product purchasing method, device and system
CN111159355A (en) Customer complaint order processing method and device
CN116361571A (en) Artificial intelligence-based merchant portrait generation method, device, equipment and medium
CN110472055B (en) Method and device for marking data
CN111709767B (en) Data processing method and device
CN109391738B (en) Method for carrying out early warning according to mobile terminal information
CN114757729A (en) Transaction request processing method and device, terminal equipment and storage medium
CN113344642A (en) Method, device, electronic equipment and readable storage medium for predicting return on investment of advertisement
CN110046898B (en) Account information grouping method and device and payment method and device
CN111507787A (en) Commodity transaction method, commodity transaction system, computer device and readable storage medium
CN113434523B (en) Service data updating method, device, equipment and storage medium based on big data
CN109150996A (en) A kind of block chain method of reseptance and system
CN113997294B (en) Office robot control method and related equipment
CN111967960A (en) Batch adjustment method and device for account data
US20220366425A1 (en) Service management system for processing a request

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