CN111597256A - Transaction asynchronous processing method - Google Patents
Transaction asynchronous processing method Download PDFInfo
- Publication number
- CN111597256A CN111597256A CN202010370424.2A CN202010370424A CN111597256A CN 111597256 A CN111597256 A CN 111597256A CN 202010370424 A CN202010370424 A CN 202010370424A CN 111597256 A CN111597256 A CN 111597256A
- Authority
- CN
- China
- Prior art keywords
- transaction
- information
- processing
- asynchronous
- service
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 18
- 238000012163 sequencing technique Methods 0.000 claims abstract description 4
- 230000015654 memory Effects 0.000 claims description 14
- 238000000034 method Methods 0.000 claims description 8
- 238000004891 communication Methods 0.000 claims description 7
- 239000004973 liquid crystal related substance Substances 0.000 claims description 6
- 238000007781 pre-processing Methods 0.000 claims description 3
- 230000000007 visual effect Effects 0.000 claims description 3
- 238000005516 engineering process Methods 0.000 abstract description 2
- 238000004590 computer program Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 238000000926 separation method Methods 0.000 description 2
- 238000004904 shortening Methods 0.000 description 2
- 238000000638 solvent extraction Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F16/273—Asynchronous replication or reconciliation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F16/278—Data partitioning, e.g. horizontal or vertical partitioning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- General Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Computing Systems (AREA)
- Accounting & Taxation (AREA)
- Finance (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 relates to the technical field of information technology, in particular to a transaction asynchronous processing method, which comprises the following steps: the service terminal receives transaction requests sent by a plurality of transaction personnel through a plurality of transaction service interfaces, the transaction information creating module carries out asynchronous business processing on the current processing information queue according to the transaction requests, and the transaction information asynchronous processing module carries out asynchronous business processing → the transaction information updating module updates the current processing information queue according to the sequencing results of the plurality of information queues. The invention receives the transaction requests of a plurality of users through a multi-transaction service interface simultaneously, carries out asynchronous data processing, effectively improves the processing efficiency of the transaction flow while considering the data processing grade, generates transaction addresses by using preset rules, and carries out warehouse division and table division; and a preset asynchronous processing mode is utilized for processing, and results are fed back, so that the transaction processing time is shortened, and the user experience is improved.
Description
Technical Field
The invention relates to the technical field of information technology, in particular to a transaction asynchronous processing method.
Background
With the popularization of the internet, online transactions become an indispensable part of people's lives. Particularly in the case of a promotion on holidays, the number of online transactions may increase explosively. In order to maintain the stability of a transaction system with high flow and high concurrency, the method mainly solves the problem by two means at present: capacity expansion, read-write separation, database division and table division of the upgrading hardware and the application system, and the like. However, the cost of hardware upgrade is too high, and the expansion, read-write separation, database partitioning and table partitioning of the application system and the like need to redundantly share data according to a plurality of application scenes, so that the service processing efficiency is low.
Disclosure of Invention
It is an object of the present invention to provide an asynchronous transaction processing method that addresses one or more of the deficiencies set forth in the background above.
In order to achieve the purpose, the invention provides the following technical scheme:
a transaction asynchronous processing method comprises the following steps:
s1, the service terminal receives transaction requests sent by a plurality of transaction personnel through a plurality of transaction service interfaces, the transaction information creating module generates transaction information addresses according to the transaction requests and by using preset generating rules, and the transaction data are subjected to database division and table division according to the transaction information addresses;
s2, analyzing the database operation log in real time, sending change information when analyzing that the status field of the log changes, generating a change instruction according to the change information and issuing the change instruction;
s3, according to the issued change instruction, carrying out asynchronous service preprocessing on the transaction information by using a preset asynchronous processing mode;
s4, acquiring asynchronous service requests, acquiring transaction data according to the asynchronous service requests, and generating a plurality of information queues of the transaction data;
s5, the information sorting processing module sorts the plurality of information queues to determine the current processing information queue, and the transaction information asynchronous processing module carries out asynchronous service processing on the current processing information queue;
and S6, the transaction information updating module updates the current processing information queue according to the sequencing results of the plurality of information queues and returns to execute the step of carrying out asynchronous service processing on the current processing information queue.
Preferably, the service terminal comprises one or more processors, one or more memories, one or more input devices, one or more output devices, a display, a network interface, a communication bus for enabling connection communication between these components, and a transaction asynchronous processing unit stored in the memory and operable on the processor for processing implementation of the method steps described above.
Preferably, the processor includes a central processing unit, a general purpose processor, a digital signal processor, an application specific integrated circuit, an off-the-shelf programmable gate array, discrete gate or transistor logic, discrete hardware components.
Preferably, the memory includes read only memory and random access memory and provides instructions and data to the processor.
Preferably, the display is an LED display, a liquid crystal display, a touch-control liquid crystal display or an organic light emitting diode touch display, and the display is used for displaying information processed in the service terminal and displaying a visual work interface.
Preferably, the transaction information creation module includes a data classification unit and an information generation unit.
Preferably, the data classifying unit is configured to classify the service data according to the service data attribute to obtain service data of multiple classes, and the information generating unit is configured to generate an information queue of each class of service data.
Preferably, the information sorting processing module includes a number obtaining unit and a sorting processing unit.
Preferably, the number obtaining unit is configured to obtain the number of the transaction information to be processed in each information queue, and the sorting processing unit is configured to perform sorting processing on the plurality of information queues according to the number of the transaction information to be processed in each information queue, and determine the currently processed information queue.
Compared with the prior art, the invention has the beneficial effects that: the transaction asynchronous processing method receives transaction requests of a plurality of users through a plurality of transaction service interfaces simultaneously, carries out asynchronous data processing, effectively improves the processing efficiency of a transaction flow while considering data processing grades, generates transaction addresses by using preset rules, and carries out database division and table division. And finally, generating a change instruction according to the change message, processing by using a preset asynchronous processing mode, and feeding back a result, thereby shortening the transaction processing time and improving the user experience.
Drawings
FIG. 1 is a schematic flow diagram of the process of the present invention;
FIG. 2 is a schematic flow diagram of the principle of the present invention;
FIG. 3 is a schematic diagram of the service terminal according to the present invention;
FIG. 4 is a schematic diagram of the components of the transaction information creation module of the present invention;
FIG. 5 is a schematic diagram of the information sorting processing unit according to the present invention;
in the figure: a transaction service interface 11; a transaction information creation module 12; a data sorting unit 121; an information generation unit 122; an information sorting processing unit 13; a number acquisition unit 131; a sorting processing unit 132; a transaction information asynchronous processing module 14; a transaction information update module 15; a service terminal 16; a processor 161; a memory 162; a transaction asynchronous processing unit 163; a display 164; a communication bus 165; an input device 166; an output device 167; a network interface 168.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to 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.
Example 1
A transaction asynchronous processing method, as shown in fig. 1 and fig. 2, comprising the following steps:
s1, the service terminal receives transaction requests sent by a plurality of transaction personnel through a plurality of transaction service interfaces, the transaction information creating module generates transaction information addresses according to the transaction requests and by using preset generating rules, and the transaction data are subjected to database division and table division according to the transaction information addresses;
s2, analyzing the database operation log in real time, sending change information when analyzing that the status field of the log changes, generating a change instruction according to the change information and issuing the change instruction;
s3, according to the issued change instruction, carrying out asynchronous service preprocessing on the transaction information by using a preset asynchronous processing mode;
s4, acquiring asynchronous service requests, acquiring transaction data according to the asynchronous service requests, and generating a plurality of information queues of the transaction data;
s5, the information sorting processing module sorts the plurality of information queues to determine the current processing information queue, and the transaction information asynchronous processing module carries out asynchronous service processing on the current processing information queue;
and S6, the transaction information updating module updates the current processing information queue according to the sequencing results of the plurality of information queues and returns to execute the step of carrying out asynchronous service processing on the current processing information queue.
Specifically, as shown in fig. 3, the service terminal 16 includes one or more processors 161, one or more memories 162, one or more input devices 166, one or more output devices 167, a display 164, a network interface 168, a communication bus 165 for enabling connection communications between these components, and a transaction asynchronous processing unit 163 stored in the memory 162 and operable on the processor 161, the transaction asynchronous processing unit 163 for processing a computer program implementing the method steps of claim 1, the transaction asynchronous processing unit 163 for generating asynchronous transaction processing, the computer program when executed by the processor implementing the method steps described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like.
Further, the processor 161 includes a central processing unit, a general purpose processor, a digital signal processor, an application specific integrated circuit, an off-the-shelf programmable gate array, discrete gate or transistor logic, discrete hardware components; memory 162 includes both read-only memory and random access memory and provides instructions and data to processor 161; the display 164 is an LED display, a liquid crystal display, a touch-controlled liquid crystal display or an organic light emitting diode touch panel, and the display 164 is used for displaying information processed in the service terminal 16 and displaying a visual work interface, for example, displaying a transaction information processing result; the input device 166 includes a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), and a microphone.
It should be noted that, as shown in fig. 4, the transaction information creating module 12 includes a data classifying unit 121 and an information generating unit 122, where the data classifying unit 121 is configured to classify the service data according to the service data attribute to obtain service data of multiple categories, and the information generating unit 122 is configured to generate an information queue of each category of service data.
Specifically, as shown in fig. 5, the information sorting processing module 13 includes a quantity obtaining unit 131 and a sorting processing unit 132, where the quantity obtaining unit 131 is configured to obtain the quantity of the transaction information to be processed in each information queue, and the sorting processing unit 132 is configured to perform sorting processing on a plurality of information queues according to the quantity of the transaction information to be processed in each information queue, and determine a currently processed information queue.
It should be noted that each functional unit in this embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The transaction asynchronous processing method of the invention receives transaction requests of a plurality of users through the multi-transaction service interface at the same time, carries out asynchronous data processing, effectively improves the processing efficiency of the transaction flow while considering the data processing grade, generates the transaction address by using the preset rule, and carries out database division and table division. And analyzing the database operation log in real time, and sending a change message according to the change of the log. And finally, generating a change instruction according to the change message, processing by using a preset asynchronous processing mode, and feeding back a result, thereby shortening the transaction processing time and improving the user experience.
The foregoing shows and describes the general principles, essential features, and advantages of the invention. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, and the preferred embodiments of the present invention are described in the above embodiments and the description, and are not intended to limit the present invention. The scope of the invention is defined by the appended claims and equivalents thereof.
Claims (9)
1. A transaction asynchronous processing method, characterized by: the method comprises the following steps:
s1, the service terminal receives transaction requests sent by a plurality of transaction personnel through a plurality of transaction service interfaces, the transaction information creating module generates transaction information addresses according to the transaction requests and by using preset generating rules, and the transaction data are subjected to database division and table division according to the transaction information addresses;
s2, analyzing the database operation log in real time, sending change information when analyzing that the status field of the log changes, generating a change instruction according to the change information and issuing the change instruction;
s3, according to the issued change instruction, carrying out asynchronous service preprocessing on the transaction information by using a preset asynchronous processing mode;
s4, acquiring asynchronous service requests, acquiring transaction data according to the asynchronous service requests, and generating a plurality of information queues of the transaction data;
s5, the information sorting processing module sorts the plurality of information queues to determine the current processing information queue, and the transaction information asynchronous processing module carries out asynchronous service processing on the current processing information queue;
and S6, the transaction information updating module updates the current processing information queue according to the sequencing results of the plurality of information queues and returns to execute the step of carrying out asynchronous service processing on the current processing information queue.
2. The asynchronous transaction processing method of claim 1, wherein: the service terminal (16) comprises one or more processors (161), one or more memories (162), one or more input devices (166), one or more output devices (167), a display (164), a network interface (168), a communication bus (165) for enabling connection communication between these components, and a transaction asynchronous processing unit (163) stored in the memory (162) and operable on the processor (161), the transaction asynchronous processing unit (163) being configured to process the method steps of implementing claim 1.
3. The asynchronous transaction processing method of claim 2, wherein: the processor (161) includes a central processing unit, a general purpose processor, a digital signal processor, an application specific integrated circuit, an off-the-shelf programmable gate array, discrete gate or transistor logic, discrete hardware components.
4. The asynchronous transaction processing method of claim 2, wherein: the memory (162) includes read only memory and random access memory and provides instructions and data to the processor (161).
5. The asynchronous transaction processing method of claim 2, wherein: the display (164) adopts an LED display, a liquid crystal display, a touch liquid crystal display or an organic light emitting diode touch device, and the display (164) is used for displaying information processed in the service terminal (16) and displaying a visual work interface.
6. The asynchronous transaction processing method of claim 1, wherein: the transaction information creation module (12) includes a data classification unit (121) and an information generation unit (122).
7. The asynchronous transaction processing method of claim 6, wherein: the data classification unit (121) is used for classifying the service data according to the service data attribute to obtain a plurality of classes of service data, and the information generation unit (122) is used for generating an information queue of each class of service data.
8. The asynchronous transaction processing method of claim 1, wherein: the information sorting processing module (13) includes a number acquisition unit (131) and a sorting processing unit (132).
9. The asynchronous transaction processing method of claim 8, wherein: the quantity obtaining unit (131) is used for obtaining the quantity of the transaction information to be processed in each information queue, and the sorting processing unit (132) is used for sorting the information queues according to the quantity of the transaction information to be processed in each information queue and determining the current processing information queue.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010370424.2A CN111597256A (en) | 2020-05-06 | 2020-05-06 | Transaction asynchronous processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010370424.2A CN111597256A (en) | 2020-05-06 | 2020-05-06 | Transaction asynchronous processing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111597256A true CN111597256A (en) | 2020-08-28 |
Family
ID=72190953
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010370424.2A Pending CN111597256A (en) | 2020-05-06 | 2020-05-06 | Transaction asynchronous processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111597256A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112669158A (en) * | 2021-01-06 | 2021-04-16 | 深圳市金证科技股份有限公司 | Transaction system and control method and device of transaction service thereof |
CN112954004A (en) * | 2021-01-26 | 2021-06-11 | 广州华多网络科技有限公司 | Second-killing activity service response method and device, equipment and medium thereof |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108765087A (en) * | 2018-05-31 | 2018-11-06 | 康键信息技术(深圳)有限公司 | Order asynchronous processing method, server and storage medium |
CN110069353A (en) * | 2019-03-18 | 2019-07-30 | 中科恒运股份有限公司 | Business asynchronous processing method and device |
CN110633320A (en) * | 2018-05-30 | 2019-12-31 | 北京京东尚科信息技术有限公司 | Processing method, system, equipment and storage medium of distributed data service |
CN111028009A (en) * | 2019-12-10 | 2020-04-17 | 中国银行股份有限公司 | Method and device for processing retrievable service entity |
-
2020
- 2020-05-06 CN CN202010370424.2A patent/CN111597256A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110633320A (en) * | 2018-05-30 | 2019-12-31 | 北京京东尚科信息技术有限公司 | Processing method, system, equipment and storage medium of distributed data service |
CN108765087A (en) * | 2018-05-31 | 2018-11-06 | 康键信息技术(深圳)有限公司 | Order asynchronous processing method, server and storage medium |
CN110069353A (en) * | 2019-03-18 | 2019-07-30 | 中科恒运股份有限公司 | Business asynchronous processing method and device |
CN111028009A (en) * | 2019-12-10 | 2020-04-17 | 中国银行股份有限公司 | Method and device for processing retrievable service entity |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112669158A (en) * | 2021-01-06 | 2021-04-16 | 深圳市金证科技股份有限公司 | Transaction system and control method and device of transaction service thereof |
CN112669158B (en) * | 2021-01-06 | 2023-12-15 | 深圳市金证科技股份有限公司 | Transaction system and control method and device of transaction service thereof |
CN112954004A (en) * | 2021-01-26 | 2021-06-11 | 广州华多网络科技有限公司 | Second-killing activity service response method and device, equipment and medium thereof |
CN112954004B (en) * | 2021-01-26 | 2022-05-24 | 广州华多网络科技有限公司 | Second-killing activity service response method and device, equipment and medium thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11816100B2 (en) | Dynamically materialized views for sheets based data | |
CN111666490B (en) | Information pushing method, device, equipment and storage medium based on kafka | |
CN108073429B (en) | Payment mode configuration method, device, equipment and storage medium | |
CN111597256A (en) | Transaction asynchronous processing method | |
CN112017062B (en) | Resource quota distribution method and device based on guest group subdivision and electronic equipment | |
CN110942392A (en) | Service data processing method, device, equipment and medium | |
CN112667770A (en) | Method and device for classifying articles | |
CN112162922A (en) | Method, device, server and storage medium for determining difference of new and old systems | |
CN113760521A (en) | Virtual resource allocation method and device | |
CN115657968B (en) | Storage method, device, equipment and medium of boundary representation model | |
CN111753203A (en) | Card number recommendation method, device, equipment and medium | |
CN115578170A (en) | Financial batch certificate making method, device, equipment and storage medium | |
CN112506800B (en) | Method, apparatus, device, medium and program product for testing code | |
CN114611929A (en) | Method, device and equipment for configuring business process and storage medium | |
CN110472055B (en) | Method and device for marking data | |
KR20230059364A (en) | Public opinion poll system using language model and method thereof | |
CN113779239A (en) | Hotspot information acquisition method and device | |
CN111046894B (en) | Method and device for identifying waistcoat account number | |
CN112862554A (en) | Order data processing method and device | |
CN113485804B (en) | Data scheduling method, device, equipment and storage medium | |
CN113360765B (en) | Event information processing method and device, electronic equipment and medium | |
US11488123B2 (en) | Blockchain payment notification system | |
CN116339733B (en) | Application page generation method, system, electronic device and medium | |
CN114267115B (en) | Bill identification method and system | |
CN116308770A (en) | Data information processing method, device, terminal and medium |
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 |