CN109598611A - A kind of processing method of transaction, transaction gateway, trading server and transaction system - Google Patents

A kind of processing method of transaction, transaction gateway, trading server and transaction system Download PDF

Info

Publication number
CN109598611A
CN109598611A CN201811174212.6A CN201811174212A CN109598611A CN 109598611 A CN109598611 A CN 109598611A CN 201811174212 A CN201811174212 A CN 201811174212A CN 109598611 A CN109598611 A CN 109598611A
Authority
CN
China
Prior art keywords
transaction
trading
trading card
server
candidate
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
CN201811174212.6A
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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201811174212.6A priority Critical patent/CN109598611A/en
Publication of CN109598611A publication Critical patent/CN109598611A/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
    • 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)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

This specification embodiment discloses processing method, transaction gateway, trading server and the transaction system of a kind of transaction, which comprises obtains from trading server and requests the candidate trading card to match with received trade matching;It is chosen from the candidate trading card and meets the trade matching and request the corresponding target transaction list for brining rule together;Transaction confirmation message is sent to the target transaction server for being stored with the target transaction list, so that the target transaction server reaches the trade matching and requests corresponding transaction;If receiving the notification message for failing to reach the transaction that the target transaction server is sent, the target transaction server that control is stored with the target transaction list carries out transaction rollback processing.

Description

A kind of processing method of transaction, transaction gateway, trading server and transaction system
Technical field
This specification is related to field of computer technology more particularly to a kind of processing method of transaction, transaction gateway, transaction clothes Business device and transaction system.
Background technique
With the continuous development of computer technology, financial transaction by and computer technology combination, realize electronization Transaction, promotes the fast development of current financial industry.As transaction number, number of transaction are continuously increased, transaction system is born Pressure it is also increasing, if transaction system breaks down during transaction, caused by lose it is often inestimable, because This, oneself becomes the major issue for needing to solve in financial transaction field by warp to more reliable more efficient financial transaction system, and is based on This, trade matching plays very important role in financial transaction system.
In financial transaction system, for including the case where that more trading servers, every trading server therein are Stateless, in the initial state, the data in every trading server are consistent, during trade matching, if All Activity server all returns to consistent transaction results, then it represents that data are consistent, if there is some transaction results and its Its transaction results is inconsistent, then needs re-synchronization data even manpower intervention, so that the processing of transaction is more complex, very To needing to interrupt transaction etc., as such, it is desirable to provide a kind of data of transaction system during electronic transaction or trade matching The scheme of consistency, so that electronic transaction or trade matching are more quickly, safely, conveniently.
Summary of the invention
The purpose of this specification embodiment is to provide processing method, transaction gateway, trading server and the friendship of a kind of transaction Easy system, to provide a kind of scheme of the data consistency of transaction system during electronic transaction or trade matching, so that Electronic transaction or trade matching are more quickly, safely, conveniently.
In order to realize that above-mentioned technical proposal, this specification embodiment are achieved in that
A kind of processing method for transaction that this specification embodiment provides, which comprises
It is obtained from trading server and requests the candidate trading card to match with received trade matching;
It is chosen from the candidate trading card and meets the trade matching and request the corresponding target transaction list for brining rule together;
Transaction confirmation message is sent to the target transaction server for being stored with the target transaction list, so that the target is handed over Easy server, which reaches the trade matching, requests corresponding transaction;
If receiving the notification message for failing to reach the transaction that the target transaction server is sent, control is deposited The target transaction server for containing the target transaction list carries out transaction rollback processing.
Optionally, include in trade matching request to trade matching list, the method also includes:
If being had not been obtained from the trading server to received trade matching and requesting the candidate trading card to match, Multiple trading servers then are given to trade matching single-shot by described, so that each trading server will be described wait scoop up Trading card is closed to be stored in trading card queue.
Optionally, described choose from the candidate trading card meets the trade matching and requests corresponding rule of brining together Target transaction list, comprising:
Obtain the trading resources numerical value in the candidate trading card;
According to the size of the trading resources numerical value, the candidate trading card is ranked up;
According to ranking results, the trade matching is chosen from the candidate trading card and requests corresponding trading card quantity Target transaction list.
It optionally, further include exchange hour in the candidate trading card,
The size according to the trading resources numerical value is ranked up the candidate trading card, comprising:
The size according to the trading resources numerical value is ranked up the candidate trading card, obtains pre- sequence knot Fruit;
According to the exchange hour, to the candidate trading card of same transaction resource numerical value in the pre- ranking results Sequence is adjusted, and obtains the ranking results.
Optionally, the method also includes:
If the quantity of candidate's trading card is less than the trade matching and requests corresponding trading card quantity, the is obtained One trading card, the quantity of first trading card are the quantity friendship corresponding with trade matching request of the candidate trading card The easily difference of odd number amount, the trading resources numerical value in trading resources numerical value and the candidate trading card in first trading card It is equal;
First trading card is sent to the trading server to store.
Optionally, described obtain from trading server requests the candidate trading card to match, packet with received trade matching It includes:
The trade matching request that receiving terminal apparatus is sent;
Trade matching request is sent to the trading server, so that the trading server obtains and described pinch Close the candidate trading card that transaction request matches;
Receive the candidate trading card that the trading server is sent.
Optionally, the target transaction server that the control is stored with the target transaction list carries out transaction rollback processing, Include:
Transaction rollback request is sent to the target transaction server for being stored with the target transaction list, so that the mesh Mark trading server carries out transaction rollback processing.
A kind of processing method for transaction that this specification embodiment provides, which comprises
The trade matching sent with transaction gateway is obtained from trading card queue requests the candidate trading card to match;
The candidate trading card is sent to the transaction gateway, so that the transaction gateway is from the candidate trading card Selection, which meets the trade matching, requests the corresponding target transaction list for brining rule together;
When receiving the transaction confirmation message that the transaction gateway is sent, modify to the trading card queue;
If the modification to the trading card queue fails, transaction rollback processing is executed.
Optionally, if described modify the trading card queue fails, transaction rollback processing is executed, comprising:
If the modification to the trading card queue fails, fail to reach the transaction to transaction gateway transmission Notification message;
When receiving the transaction rollback request that the transaction gateway is sent, transaction rollback processing is executed.
Optionally, the method also includes:
If the quantity of candidate's trading card is less than the trade matching and requests corresponding trading card quantity, the is generated One trading card, the quantity of first trading card are the quantity friendship corresponding with trade matching request of the candidate trading card The easily difference of odd number amount, the trading resources numerical value in trading resources numerical value and the candidate trading card in first trading card It is equal;
The target transaction list in the trading card queue is replaced using first trading card.
Optionally, the trading card in the trading card queue is ranked up according to the size of the trading resources numerical value It arrives, also, wherein the trading card of same transaction resource numerical value is ranked up to obtain by exchange hour.
A kind of transaction gateway that this specification embodiment provides, the transaction gateway include:
Trading card obtains module, hands over for obtaining the candidate to match with the request of received trade matching from trading server Yi Dan;
Module is chosen, meets that the trade matching request is corresponding to bring rule together for choosing from the candidate trading card Target transaction list;
Message transmission module disappears for sending trade confirmation to the target transaction server for being stored with the target transaction list Breath, so that the target transaction server reaches the trade matching and requests corresponding transaction;
Roll-back module, if the notice for failing to reach the transaction sent for receiving the target transaction server Message, then the target transaction server that control is stored with the target transaction list carry out transaction rollback processing.
It optionally, include to trade matching list, the transaction gateway in the trade matching request further include:
Trading card sending module, if requested for being had not been obtained from the trading server to received trade matching The candidate trading card to match then gives multiple trading servers to trade matching single-shot for described, so that each described Trading server is stored in described in trading card queue to trade matching list.
Optionally, the selection module, comprising:
Resource value acquiring unit, for obtaining the trading resources numerical value in the candidate trading card;
Sequencing unit is ranked up the candidate trading card for the size according to the trading resources numerical value;
Selection unit, for choosing the trade matching request from the candidate trading card and corresponding to according to ranking results Trading card quantity target transaction list.
It optionally, further include exchange hour in the candidate trading card,
The sequencing unit carries out the candidate trading card for the size according to the trading resources numerical value Sequence, obtains pre- ranking results;According to the exchange hour, to described in same transaction resource numerical value in the pre- ranking results The sequence of candidate trading card is adjusted, and obtains the ranking results.
Optionally, the transaction gateway further include:
First trading card obtains module, if the quantity for the candidate trading card is less than trade matching request pair The trading card quantity answered, then obtain the first trading card, the quantity of first trading card be the candidate trading card quantity with The trade matching requests the difference of corresponding trading card quantity, the trading resources numerical value in first trading card and the time Select the trading resources numerical value in trading card equal;
Memory module is stored for first trading card to be sent to the trading server.
Optionally, the trading card obtains module, comprising:
Bring request reception unit together, the trade matching request sent for receiving terminal apparatus;
Request transmitting unit, for trade matching request to be sent to the trading server, so that the transaction Server, which is obtained, requests the candidate trading card to match with the trade matching;
Trading card receiving unit, the candidate trading card sent for receiving the trading server.
Optionally, the roll-back module, for being sent out to the target transaction server for being stored with the target transaction list Easy rollback request is delivered, so that the target transaction server carries out transaction rollback processing.
A kind of trading server that this specification embodiment provides, the trading server include:
Trading card obtains module, requests phase for obtaining the trade matching sent with transaction gateway from trading card queue The candidate trading card matched;
Trading card sending module, for the candidate trading card to be sent to the transaction gateway, so that the transaction net Pass selection from the candidate trading card, which meets the trade matching, requests the corresponding target transaction list for brining rule together;
Modified module, for when receiving the transaction confirmation message that the transaction gateway is sent, to the trading card team Column are modified;
Roll-back module, if executing transaction rollback processing for the modification failure to the trading card queue.
Optionally, the roll-back module, comprising:
Transmission unit is notified, if sent for the modification failure to the trading card queue to the transaction gateway Fail the notification message for reaching the transaction;
Rollback unit, for executing at transaction rollback when receiving the transaction rollback request that the transaction gateway is sent Reason.
Optionally, the trading server further include:
First trading card generation module, if the quantity for the candidate trading card is less than trade matching request pair The trading card quantity answered, then generate the first trading card, the quantity of first trading card be the candidate trading card quantity with The trade matching requests the difference of corresponding trading card quantity, the trading resources numerical value in first trading card and the time Select the trading resources numerical value in trading card equal;
Replacement module, for replacing the target transaction list in the trading card queue using first trading card.
Optionally, the trading card in the trading card queue is ranked up according to the size of the trading resources numerical value It arrives, also, wherein the trading card of same transaction resource numerical value is ranked up to obtain by exchange hour.
A kind of transaction gateway that this specification embodiment provides, the transaction gateway include:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed Manage device:
It is obtained from trading server and requests the candidate trading card to match with received trade matching;
It is chosen from the candidate trading card and meets the trade matching and request the corresponding target transaction list for brining rule together;
Transaction confirmation message is sent to the target transaction server for being stored with the target transaction list, so that the target is handed over Easy server, which reaches the trade matching, requests corresponding transaction;
If receiving the notification message for failing to reach the transaction that the target transaction server is sent, control is deposited The target transaction server for containing the target transaction list carries out transaction rollback processing.
A kind of trading server that this specification embodiment provides, the trading server include:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed Manage device:
The trade matching sent with transaction gateway is obtained from trading card queue requests the candidate trading card to match;
The candidate trading card is sent to the transaction gateway, so that the transaction gateway is from the candidate trading card Selection, which meets the trade matching, requests the corresponding target transaction list for brining rule together;
When receiving the transaction confirmation message that the transaction gateway is sent, modify to the trading card queue;
If the modification to the trading card queue fails, transaction rollback processing is executed.
A kind of transaction system that this specification embodiment provides, the transaction system includes at least one such as above-described embodiment The transaction gateway of offer and multiple such as trading servers provided by the above embodiment, in which:
The transaction gateway is connected with each trading server respectively.
The technical solution that is there is provided by above this specification embodiment as it can be seen that this specification embodiment by from trading server It obtains and requests the candidate trading card to match with received trade matching, then, choose to meet from candidate trading card and bring friendship together The corresponding target transaction list for brining rule together is easily requested, and sends transaction to the target transaction server for being stored with target transaction list Confirmation message so that target transaction server reaches trade matching and requests corresponding transaction, and is receiving target transaction service When failing the notification message for reaching the transaction of device transmission, the target transaction server that control is stored with target transaction list is handed over Easy rollback processing, requests the candidate trading card to match with trade matching in this way, first being provided by trading server, then, from Middle selection meets the target transaction list of trade matching request, carries out trade matching with this, and can not reach trade matching request When corresponding transaction, corresponding trading server can carry out transaction rollback processing in time, so that the state of trading server is extensive Last status is arrived again, to guarantee the data consistency in trading server, realizes the data consistency of transaction system, into And allow electronic transaction or trade matching more quickly, safely, conveniently.
Detailed description of the invention
In order to illustrate more clearly of this specification embodiment or technical solution in the prior art, below will to embodiment or Attached drawing needed to be used in the description of the prior art is briefly described, it should be apparent that, the accompanying drawings in the following description is only The some embodiments recorded in this specification, for those of ordinary skill in the art, in not making the creative labor property Under the premise of, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of processing method embodiment of transaction of this specification;
Fig. 2 is the processing method embodiment of this specification another kind transaction;
Fig. 3 is a kind of trading card queue schematic diagram of this specification;
Fig. 4 is the processing method embodiment of another transaction of this specification;
Fig. 5 is a kind of structural schematic diagram of the processing system of transaction of this specification;
Fig. 6 is a kind of transaction gateway embodiment of this specification;
Fig. 7 is a kind of trading server embodiment of this specification;
Fig. 8 is this specification another kind transaction gateway embodiment;
Fig. 9 is this specification another kind trading server embodiment.
Specific embodiment
This specification embodiment provides processing method, transaction gateway, trading server and the transaction system of a kind of transaction.
In order to make those skilled in the art more fully understand the technical solution in this specification, below in conjunction with this explanation Attached drawing in book embodiment is clearly and completely described the technical solution in this specification embodiment, it is clear that described Embodiment be only this specification a part of the embodiment, instead of all the embodiments.The embodiment of base in this manual, Every other embodiment obtained by those of ordinary skill in the art without making creative efforts, all should belong to The range of this specification protection.
Embodiment one
As shown in Figure 1, this specification embodiment provides a kind of processing method of transaction, the executing subject of this method can be Transaction gateway, wherein the transaction gateway can be made of one or more gateways.This method can be used for carrying out electronics friendship In the processing such as easy or trade matching.This method can specifically include following steps:
In step s 102, it is obtained from trading server and requests the candidate trading card to match with received trade matching.
Wherein, trading server can be the server where the engine or transaction match mechanism that transaction is brought together, transaction clothes Business device can be the core in transaction system, can be used for receiving trading card, and can be according to the business in transaction system Logic realize the trading card or reach the trading card it is corresponding transaction etc., trading server carry out transaction bring together during, Corresponding transaction record can be generated, and can be corresponding transaction results of user feedback etc., trading server may include more It is a.Trade matching request can be for requesting to carry out the message brought together of trading, and may include wait bring together in trade matching request Trading card, trading card can be seller transaction list or buyer transaction list etc..Candidate trading card may include one or more, wait Selecting trading card may include seller transaction list and/or buyer transaction list etc..
In an implementation, with information technology make rapid progress and financial business fast development, financial transaction field for The requirement of core technology is also constantly enhancing, and domestic and international financial transaction mode becomes from the mode of traditional artificial asked price By the mode of height e-transaction system trade matching list.Traditional financial transaction usually occurs in the financial transaction city for having type In, the both parties for carrying out financial transaction carry out price negotiation by way of asked price, until both sides finally achieve unanimously, from And a transaction is formed, corresponding trading card is generated, then carries out physical delivery to specified delivery points according to trading card, from And complete the transaction.It is executed since the whole process of transaction relies primarily on manually, trading efficiency is low, speed is slow, hands over Easy time restriction is larger, trading space limitation is also larger, transaction cost is high, transaction scalability is poor, error-prone, fund security of trading Property is poor, justice of exchange is poor (being easy to produce insider trading etc.).
With the continuous development of computer technology, financial transaction by and computer technology combination, realize electronization Transaction, in this way, not only eliminating various drawbacks of traditional financial transaction, further promotes the fast development of current financial industry.Electricity Sub- financial transaction can make trading efficiency is high, speed is fast, trading transparency is high, transaction cost is low, high system safety, not by The limitation of exchange hour is not limited by trading space, can carry out multi-faceted extension etc..Therefore, electronic finance trade oneself Through the mainstream mode of doing business for becoming financial trading market.As transaction number, number of transaction are continuously increased, transaction system is born Pressure it is also increasing, if transaction system breaks down during transaction, caused by lose it is often inestimable, because This, oneself becomes the major issue for needing to solve in financial transaction field by warp to more reliable more efficient financial transaction system, and is based on This, trade matching plays very important role in financial transaction system.
It may include terminal device, transaction gateway, trading server (brining engine together) and data in financial transaction system Library etc..Wherein, terminal device can be the terminal device that user uses, such as mobile phone, tablet computer, terminal device are available The consignment trade and its quantity of user's input, and generate corresponding trading card and be sent to transaction gateway.Transaction gateway can be used for The trading card of collection terminal equipment, and trading server can be distributed to.Database can be used for during store transaction Trading card and transaction record, to realize the persistence of data.Trading server in financial transaction system may include more It is a, so that transaction gateway and trading server may be constructed distributed system.
Trade matching can be stylus pin seller financial trading market consignment of sales trading card (or for sales order etc.), Purchaser is financial trading market authority to purchase trading card (or being purchase order etc.), and financial trading market is according to scheduled original It then determines the trading resources numerical value (such as price) that both sides strike a bargain, and electronic transaction contract can be generated, specified by trading card Complete a business transaction the transaction that warehouse carries out physical delivery.Trade matching can be applied under a variety of different scenes, such as shopping at network Scene and equal business scenarios of transferring accounts are inferior.
When needing to carry out trade matching, user or trade company can be generated by corresponding application triggers terminal device Trade matching request, may include in the trade matching request user or trade company choose or determine to trade matching list, wherein It can be above-mentioned sales transactions list to trade matching list, be also possible to above-mentioned purchase-transaction list etc..This can be brought together to friendship Easily request is sent to each trading server, after trading server receives trade matching request, can therefrom extract to Trade matching list etc..Trading card queue is can store in trading server, i.e. sales transactions list queue (or sells trading card team Column) and purchase-transaction list queue (or buying in trading card queue).Trading server extracts after trade matching list, can be upper It states to search in trading card queue and is used as candidate trading card with to the single-phase matched trading card of trade matching, for example, if wait bring together Trading card is sales transactions list, then trading server can be searched in purchase-transaction list queue and to the single-phase matching of trade matching Purchase-transaction nonoculture be candidate trading card, if being purchase-transaction list to trade matching list, trading server can be in pin It sells and is searched in trading card queue and be candidate trading card etc. to the single-phase matched sales transactions nonoculture of trade matching.Then, it trades Obtained candidate trading card can be sent to transaction gateway by server.
In practical applications, in addition to candidate transaction can be sent by requests transaction server by way of above-mentioned data interaction It is single outer, candidate trading card etc. can also be pulled from trading server in such a way that transaction gateway directly carries out data pull.
In step S104, is chosen from above-mentioned candidate trading card and meet that above-mentioned trade matching request is corresponding to bring rule together Target transaction list.
Wherein, it brings regular can be together and the rule traded for one is brought together to certain sales transactions list and certain purchase-transaction list, Brining rule together can be varied, specifically may be set according to actual conditions, and this specification embodiment does not limit this.
In an implementation, it is contemplated that trading server may be more, in this way, the candidate trading card that trading server provides Quantity may be more, in order to trade to be matched to preferably candidate trading card to trade matching list in trade matching request Can be set in gateway trade matching request it is corresponding bring rule together, this bring together rule can be carried by trade matching request In, it can also be and be pre-set in transaction gateway, can also be a kind of and general bring rule etc. together.Transaction gateway gets time After selecting trading card, available above-mentioned trade matching request is corresponding to bring rule together, it is then possible in above-mentioned candidate trading card It is chosen, meets the candidate trading card for brining rule together so as to obtain one or more, and can be by one of selection Or multiple candidate trading cards are as target transaction list.
In step s 106, transaction confirmation message is sent to the target transaction server for being stored with target transaction list, so that Target transaction server, which reaches above-mentioned trade matching, requests corresponding transaction.
In an implementation, transaction gateway can determine the target transaction server for being stored with target transaction list, it is then possible to The target transaction server for being stored with target transaction list sends transaction confirmation message, and target transaction server receives trade confirmation After message, it can modify to the trading card queue that it is stored, it can the delete target trading card from trading card queue, together When, brining together in target transaction list and the request of above-mentioned trade matching to trade matching list can also be one by target transaction server Transaction.If target transaction server completes the modification of the trading card queue stored to it, show that above-mentioned trade matching is asked It asks corresponding transaction to reach, the notification message that transaction is reached can be sent to transaction gateway at this time, if target transaction service Device does not complete the modification (such as modifying unsuccessfully) of the trading card queue stored to it, then can execute the place of following step S108 Reason.
In step S108, if the notice for failing to reach above-mentioned transaction for receiving the transmission of target transaction server disappears Breath, then the target transaction server that control is stored with target transaction list carry out transaction rollback processing.
In an implementation, if target transaction server does not complete the modification of the trading card queue stored to it (as modification is lost Lose), then the notification message for failing to reach above-mentioned trade matching and requesting corresponding transaction, net of trading can be sent to transaction gateway After pass receives the notification message, in order to guarantee the data consistency in trading server, can respectively to be stored with target hand over The target transaction server of Yi Dan sends control instruction, so that its stateful transaction is rolled back to upper one by each target transaction server Under a consistent state of data, after completing above-mentioned transaction rollback processing, it can notify target transaction server or user later again Secondary trial carries out trade matching.
As shown in Fig. 2, this specification embodiment provides a kind of processing method of transaction, the executing subject of this method can be Trading server, wherein the trading server can be the server cluster being made of multiple servers, which can To be to have the server for brining engine together in transaction system, moreover, the trading server can be a certain financial business or shopping The background server of business etc. is also possible to the background server etc. of certain website (such as websites or payment application). This method can be used for carrying out in the processing such as electronic transaction or trade matching.This method can specifically include following steps:
In step S202, the trade matching sent with transaction gateway is obtained from trading card queue and requests the time to match Select trading card.
In an implementation, it is desirable to reach a transaction, need a purchase-transaction list and a sales transactions list, and the purchase Trading card is mutually matched with the sales transactions list.As shown in figure 3, in the memory of trading server, it can save that there are two teams Column, i.e. sales transactions list queue (or selling trading card queue or seller's consignment trade list queue etc.) and purchase-transaction list queue (or buying in trading card queue or buyer's consignment trade list queue etc.), wherein the trading card for failing to reach a transaction is ok It is temporarily held in above-mentioned two queue, the trading card in above-mentioned two queue (can such as pass through according to certain ordering rule Size (such as price) of trading resources numerical value etc.) it is arranged.In practical applications, the trading card in the queue of purchase-transaction list Can be arranged according to commission price sequence from low to high, the trading card in sales transactions list queue can according to commission price from Low to high sequence arrangement.Loss of data caused by trading server delay machine in order to prevent, every transaction related data (including Trading card etc.) it can be stored in simultaneously in the memory of more trading servers.
If in trade matching request is purchase-transaction list to trade matching list, trading server can be handed in sale The head of easily list queue searches whether there is the sales transactions list for meeting trade matching request (or price discipline etc.), if deposited Above-mentioned sales transactions list is then being taken out from sales transactions list queue, as the candidate transaction to match with trade matching request It is single.If sales transactions list queue is empty or sales transactions list queue head, there is no meet trade matching request (or price rule Sales transactions list then etc.) can will be then inserted into the queue of purchase-transaction list, due to purchase-transaction list queue to trade matching list It is the presence of sequence, therefore, the corresponding of purchase-transaction list queue can be inserted by minor sort processing to trade matching list Position.
If in trade matching request is sales transactions list to trade matching list, trading server can be handed in purchase The head of easily list queue searches whether there is the purchase-transaction list for meeting trade matching request (or price discipline etc.), if deposited Above-mentioned purchase-transaction list is then being taken out from purchase-transaction list queue, as the candidate transaction to match with trade matching request It is single.If purchase-transaction list queue is empty or purchase-transaction list queue head, there is no meet trade matching request (or price rule Purchase-transaction list then etc.) can will be then inserted into the queue of sales transactions list, due to sales transactions list queue to trade matching list It is the presence of sequence, therefore, the corresponding of sales transactions list queue can be inserted by minor sort processing to trade matching list Position.
In step S204, above-mentioned candidate trading card is sent to transaction gateway, so that transaction gateway is from candidate trading card Middle selection, which meets above-mentioned trade matching, requests the corresponding target transaction list for brining rule together.
In step S206, when receive transaction gateway transmission transaction confirmation message when, to above-mentioned trading card queue into Row modification.
In step S208, if the modification to above-mentioned trading card queue fails, transaction rollback processing is executed.
This specification embodiment provides a kind of processing method of transaction, is brought together by obtaining from trading server with received Then the candidate trading card that transaction request matches is chosen from candidate trading card and meets trade matching request and corresponding bring together The target transaction list of rule, and transaction confirmation message is sent to the target transaction server for being stored with target transaction list, so that mesh Mark trading server reaches trade matching requests corresponding transaction, and fails to reach receiving the transmission of target transaction server When the notification message of the transaction, the target transaction server that control is stored with target transaction list carries out transaction rollback processing, in this way, It is first provided by trading server and requests the candidate trading card to match with trade matching, then, bring friendship together therefrom choosing to meet The target transaction list easily requested carries out trade matching with this, and when that can not reach the trade matching corresponding transaction of request, accordingly Trading server can carry out transaction rollback processing in time so that the state of trading server is restored to Last status, from And guarantee the data consistency in trading server, realize the data consistency of transaction system so that electronic transaction or Trade matching can more quickly, safely, conveniently.
Embodiment two
As shown in figure 4, this specification embodiment provides a kind of processing method of transaction, this method can by transaction gateway and Trading server executes jointly, and the structure of the processing system of transaction may refer to Fig. 5.Wherein, which can be by one Or multiple gateways are constituted.The trading server can be the server cluster being made of multiple servers, the transactional services Device, which can be, has the server for brining engine together in transaction system, moreover, the trading server can be a certain financial business or The background server of shopping service etc. is also possible to the background server of certain website (such as websites or payment application) Deng.This method can be used for carrying out in the processing such as electronic transaction or trade matching.This method can specifically include following steps:
In the present embodiment, the process of exchange of trade matching can be divided into two stages, the first stage can be determination The process for meeting the target transaction list of trade matching request, specifically may refer to following step S402~step S414 processing, Second stage can be the process of trade confirmation, specifically may refer to following step S416~step S424 processing.
In step S402, the trade matching that transaction gateway receiving terminal apparatus is sent is requested.
Wherein, the equipment that terminal device can be user or trade company uses, or the terminal device etc. that transaction is initiated, should Terminal device can be mobile phone, tablet computer, personal computer or server etc..
In an implementation, certain application program, such as shopping application or financial class application can be installed in terminal device.When with When certain financial business (such as transferred account service) is done shopping or handled at family, it can star the application program, pass through the application The information that program provides, user, which can choose, needs the article or corresponding ingress for service bought, and after the completion of selection, user can be with It is generated corresponding trading card (or order) by terminal device, and trade matching request can be generated based on the trading card, wherein The trading card can be for trade matching list.Then, terminal device can send trade matching request, transaction to transaction gateway Gateway can receive trade matching request.
In step s 404, the request of above-mentioned trade matching is sent to trading server by transaction gateway.
In an implementation, trading server may include multiple, and in practical applications, which can be accordingly Multiple servers in business cluster, then above-mentioned trade matching can be requested to be transmitted in above-mentioned business cluster by transaction gateway Each trading server, alternatively, above-mentioned trade matching can be requested the given transaction service being transmitted in above-mentioned business cluster Device etc..
In step S406, trading server obtains the candidate friendship to match with trade matching request from trading card queue Yi Dan.
Wherein, at a time, it may include trading card in trading card queue, trading card can also not included, if transaction Include trading card in single queue, then can specifically include one or more trading cards in trading card queue, in trading card queue Trading card can be ranked up to obtain according to the size of trading resources numerical value.It is specified that trading resources numerical value therein can be certain The numerical value etc. of the parameters such as the numerical value, such as price of one or more parameters relevant to trading resources.Want to reach a transaction, A purchase-transaction list and a sales transactions list are needed, and the purchase-transaction list is mutually matched with the sales transactions list.It is handing over It in the memory of easy server, can save there are two queue, i.e. sales transactions list queue (or sells trading card queue or seller committee Hold in the palm trading card queue etc.) and purchase-transaction list queue (or buying in trading card queue or buyer's consignment trade list queue etc.), purchase Trading card in trading card queue can be arranged according to the sequence of commission price from low to high, the transaction in sales transactions list queue List can be arranged according to the sequence of commission price from low to high.
For example, including trading card 1, trading card 2, trading card 3, trading card 4 and trading card 5 in trading card queue, wherein.It hands over Easily single 1 price is 100, the price of trading card 2 is 120, the price of trading card 3 is 150, the price of trading card 4 is 120 and is handed over Easily single 5 price is 200, if the trading card queue is the queue of purchase-transaction list, purchase-transaction list queue are as follows: trading card 1, Trading card 2, trading card 4, trading card 3 and trading card 5, if the trading card queue is the queue of sales transactions list, sales transactions Single queue are as follows: trading card 5, trading card 3, trading card 4, trading card 2 and trading card 1.It include identical friendship in above-mentioned trading card queue The trading card of easy resource numerical value, i.e. trading card 2 and trading card 4, during above-mentioned sequence, the transaction of same transaction resource numerical value List can be sorted by way of random alignment, and in practical applications, the trading card of same transaction resource numerical value can pass through friendship The easy time is ranked up to obtain, it can the exchange hour for obtaining trading card 2 and trading card 4, can be according to exchange hour before Afterwards, putting in order for the trading card of same transaction resource numerical value is adjusted, by taking sales transactions list queue as an example, if trading card 2 Exchange hour is earlier than the exchange hour of trading card 4, then above-mentioned sales transactions list queue becomes: trading card 5, trading card 3, trading card 2, trading card 4 and trading card 1.
The concrete processing procedure of above-mentioned steps S406 may refer to the related content of step S202 in above-described embodiment one, This is repeated no more.
In step S408, candidate trading card is sent to transaction gateway by trading server.
The candidate trading card to match is requested in addition, if being had not been obtained from trading server to trade matching, then will Multiple trading servers are given to trade matching single-shot, so that each trading server will be stored in trading card to trade matching list In queue.
In an implementation, the candidate trading card to match is requested if had not been obtained from trading server to trade matching, Then show in trading server there is no with to the single-phase matched trading card of trade matching, at this point it is possible to will be to trade matching list Multiple trading servers are sent to, each trading server will be stored in trading card queue to trade matching list, in this way can be with Guarantee the high availability of operation system, i.e., when some trading server delay machine in multiple trading servers, then operation system Subsequent trade matching can also be completed by other trading servers.
It should be noted that during to the storage to trading card queue of trade matching list, it can be according to trade matching Single trading resources numerical value and exchange hour, waits for the corresponding position that trade matching list is inserted into trading card queue for this.
In step S410, transaction gateway obtains the trading resources numerical value in candidate trading card.
Wherein, trading resources numerical value can be the numerical value of certain specified one or more parameter relevant to trading resources, Such as the numerical value etc. of the parameters such as price can be not limited to the numerical value of price parameter in practical applications, can also be other fingers The numerical value of fixed parameter, this specification embodiment do not limit this.
In step S412, transaction gateway is ranked up candidate trading card according to the size of above-mentioned trading resources numerical value.
The concrete processing procedure of above-mentioned steps S410 and step S412 may refer to above-mentioned steps S406 and above-described embodiment Related content in one, details are not described herein.
In practical applications, it is contemplated that may have the candidate friendship with same transaction resource numerical value in candidate trading card Yi Dan, in this case, random alignment can be carried out to the candidate trading card with same transaction resource numerical value, in addition to can be with Outside being handled by way of random alignment, it can also be handled by other various ways, a kind of feasible processing is provided again below Mode can specifically include following steps one and step 2.
Step 1 is ranked up candidate trading card according to the size of above-mentioned trading resources numerical value, obtains pre- sequence knot Fruit.
In an implementation, sequence that can be descending according to trading resources numerical value (such as price), successively to corresponding candidate Trading card is ranked up, and obtains pre- sequence as a result, wherein, according to the size of above-mentioned trading resources numerical value to candidate trading card into When row sequence, for the candidate trading card of same transaction resource numerical value, its row can be determined by randomly ordered mode Column sequence.
Step 2, according to the exchange hour of candidate trading card, to described in same transaction resource numerical value in pre- ranking results The sequence of candidate trading card is adjusted, and obtains ranking results.
In step S414, according to ranking results, transaction gateway chooses trade matching request from above-mentioned candidate trading card The target transaction list of corresponding trading card quantity.
In an implementation, trade matching request in may include such as transaction commodity quantity, such as trade matching request In include user's quantity of commodity for needing to buy be 5000, and can at most be accommodated in the trading card that trade company provides The quantity of commodity is 1000, as such, it is desirable to which the trading card quantity for carrying out trade matching should be 5, then transaction gateway can be from time Select the candidate trading card that the quantity of the commodity of 5 receivings of selection in trading card is 1000 as target transaction list.
In addition, if the quantity of candidate trading card, which is less than trade matching, requests corresponding trading card quantity, shown based on above-mentioned Example, if the quantity for the candidate trading card that the quantity of the commodity accommodated is 1000 only has 4, the candidate that can be will match to trades Singly it is determined as target transaction list, and trade matching can be carried out based on target transaction list, and carry out following step S416~step The processing of rapid S424.Meanwhile available first trading card of transaction gateway (or one new trading card of application), wherein first The quantity of trading card is that the quantity of candidate trading card requests the difference of corresponding trading card quantity (to be shown based on above-mentioned with trade matching Example, as 5-4=1), the trading resources numerical value in the first trading card and the trading resources numerical value in candidate's trading card are equal (i.e. The trading resources numerical value for the trading card that the quantity of the commodity of receiving is 1000).Then, transaction gateway can be by the first transaction single-shot Trading server is given to be stored.
Correspondingly, for trading server, if the quantity of candidate trading card is corresponding less than trade matching request Trading card quantity, then generate the first trading card, and the quantity of the first trading card is that the quantity of candidate trading card and trade matching are requested The difference of corresponding trading card quantity, the trading resources numerical value in trading resources numerical value and candidate trading card in the first trading card It is equal, it is then possible to use the target transaction list in the replacement trading card queue of the first trading card.
In addition, trading server can recorde above-mentioned bring together as the transaction in a transaction in the trading server It is single, to carry out data rewind processing in the failure of subsequent trade matching.
In step S416, transaction gateway sends trade confirmation to the target transaction server for being stored with target transaction list and disappears Breath.
In step S418, when receiving transaction confirmation message, trading server repairs above-mentioned trading card queue Change.
If can determine that having reached above-mentioned trade matching request corresponds to the successfully modified of above-mentioned trading card queue Transaction, at this point it is possible to send the notification message reached of transaction to transaction gateway.Transaction gateway receives the notice that transaction is reached After message, successful notification message of trading can be sent to the terminal device of user.
In the step s 420, if the modification to above-mentioned trading card queue fails, trading server is sent out to transaction gateway Send the notification message for failing to reach above-mentioned transaction.
In step S422, transaction gateway sends transaction rollback to the target transaction server for being stored with target transaction list and asks It asks.
In step S424, when receiving the transaction rollback request of transaction gateway transmission, trading server executes transaction Rollback processing.
In an implementation, transaction rollback request in may include to trade matching list and trade matching during from friendship The trading card etc. of easy server may include odd numbers in each trading card.It, can after trading server receives transaction rollback request To obtain the odd numbers for including in transaction rollback request, it is then possible to for any odd numbers in transaction rollback request, in its storage Trading card queue in search whether to include the odd numbers, if comprising, can by during trade matching from transaction The trading card of server is added in trading card queue, if do not included, according to trade matching during from transaction The trading resources numerical value and exchange hour of the trading card of server, insert it into the corresponding position in trading card queue.
This specification embodiment provides a kind of processing method of transaction, is brought together by obtaining from trading server with received Then the candidate trading card that transaction request matches is chosen from candidate trading card and meets trade matching request and corresponding bring together The target transaction list of rule, and transaction confirmation message is sent to the target transaction server for being stored with target transaction list, so that mesh Mark trading server reaches trade matching requests corresponding transaction, and fails to reach receiving the transmission of target transaction server When the notification message of the transaction, the target transaction server that control is stored with target transaction list carries out transaction rollback processing, in this way, It is first provided by trading server and requests the candidate trading card to match with trade matching, then, bring friendship together therefrom choosing to meet The target transaction list easily requested carries out trade matching with this, and when that can not reach the trade matching corresponding transaction of request, accordingly Trading server can carry out transaction rollback processing in time so that the state of trading server is restored to Last status, from And guarantee the data consistency in trading server, realize the data consistency of transaction system so that electronic transaction or Trade matching can more quickly, safely, conveniently.
Embodiment three
The above are the processing methods for the transaction that this specification embodiment provides, and are based on same thinking, and this specification is implemented Example also provides a kind of transaction gateway, as shown in Figure 6.
The transaction gateway includes: that trading card obtains module 601, chooses module 602, message transmission module 603 and rollback mould Block 604, in which:
Trading card obtains module 601, requests the time to match with received trade matching for obtaining from trading server Select trading card;
Module 602 is chosen, meets that the trade matching request is corresponding to bring together for choosing from the candidate trading card The target transaction list of rule;
Message transmission module 603, it is true for sending transaction to the target transaction server for being stored with the target transaction list Message is recognized, so that the target transaction server reaches the trade matching and requests corresponding transaction;
Roll-back module 604, if reaching the transaction for failing of receiving that the target transaction server sends Notification message, then the target transaction server that control is stored with the target transaction list carry out transaction rollback processing.
It include to trade matching list in the trade matching request, the transaction gateway also wraps in this specification embodiment It includes:
Trading card sending module, if requested for being had not been obtained from the trading server to received trade matching The candidate trading card to match then gives multiple trading servers to trade matching single-shot for described, so that each described Trading server is stored in described in trading card queue to trade matching list.
In this specification embodiment, the selection module 602, comprising:
Resource value acquiring unit, for obtaining the trading resources numerical value in the candidate trading card;
Sequencing unit is ranked up the candidate trading card for the size according to the trading resources numerical value;
Selection unit, for choosing the trade matching request from the candidate trading card and corresponding to according to ranking results Trading card quantity target transaction list.
It further include exchange hour in candidate's trading card in this specification embodiment,
The sequencing unit carries out the candidate trading card for the size according to the trading resources numerical value Sequence, obtains pre- ranking results;According to the exchange hour, to described in same transaction resource numerical value in the pre- ranking results The sequence of candidate trading card is adjusted, and obtains the ranking results.
In this specification embodiment, the transaction gateway further include:
First trading card obtains module, if the quantity for the candidate trading card is less than trade matching request pair The trading card quantity answered, then obtain the first trading card, the quantity of first trading card be the candidate trading card quantity with The trade matching requests the difference of corresponding trading card quantity, the trading resources numerical value in first trading card and the time Select the trading resources numerical value in trading card equal;
Memory module is stored for first trading card to be sent to the trading server.
In this specification embodiment, the trading card obtains module 601, comprising:
Bring request reception unit together, the trade matching request sent for receiving terminal apparatus;
Request transmitting unit, for trade matching request to be sent to the trading server, so that the transaction Server, which is obtained, requests the candidate trading card to match with the trade matching;
Trading card receiving unit, the candidate trading card sent for receiving the trading server.
In this specification embodiment, the roll-back module 604, for the target for being stored with the target transaction list Trading server sends transaction rollback request, so that the target transaction server carries out transaction rollback processing.
This specification embodiment provides a kind of transaction gateway, is asked by obtaining from trading server with received trade matching Seek the candidate trading card to match, then, from candidate trading card choose meet trade matching request it is corresponding bring together rule Target transaction list, and transaction confirmation message is sent to the target transaction server for being stored with target transaction list, so that target transaction Server, which reaches trade matching, requests corresponding transaction, and receive the transmission of target transaction server fail reach the transaction Notification message when, control be stored with target transaction list target transaction server carry out transaction rollback processing, in this way, first by handing over Easy server, which is provided, requests the candidate trading card to match with trade matching, then, meets trade matching request therefrom choosing Target transaction list, trade matching is carried out with this, and when that can not reach trade matching and request corresponding transaction, it is corresponding to trade Server can carry out transaction rollback processing in time, so that the state of trading server is restored to Last status, to guarantee Data consistency in trading server realizes the data consistency of transaction system, so that electronic transaction or brining friendship together It easily can more quickly, safely, conveniently.
Example IV
Based on same thinking, this specification embodiment also provides a kind of trading server, as shown in Figure 7.
The trading server includes: that trading card obtains module 701, trading card sending module 702, modified module 703 and returns Roll module 704, in which:
Trading card obtains module 701, requests for obtaining the trade matching sent with transaction gateway from trading card queue The candidate trading card to match;
Trading card sending module 702, for the candidate trading card to be sent to the transaction gateway, so that the transaction Gateway selection from the candidate trading card, which meets the trade matching, requests the corresponding target transaction list for brining rule together;
Modified module 703, for when receiving the transaction confirmation message that the transaction gateway is sent, to the trading card Queue is modified;
Roll-back module 704, if executing transaction rollback processing for the modification failure to the trading card queue.
In this specification embodiment, the roll-back module 704, comprising:
Transmission unit is notified, if sent for the modification failure to the trading card queue to the transaction gateway Fail the notification message for reaching the transaction;
Rollback unit, for executing at transaction rollback when receiving the transaction rollback request that the transaction gateway is sent Reason.
In this specification embodiment, the trading server further include:
First trading card generation module, if the quantity for the candidate trading card is less than trade matching request pair The trading card quantity answered, then generate the first trading card, the quantity of first trading card be the candidate trading card quantity with The trade matching requests the difference of corresponding trading card quantity, the trading resources numerical value in first trading card and the time Select the trading resources numerical value in trading card equal;
Replacement module, for replacing the target transaction list in the trading card queue using first trading card.
In this specification embodiment, trading card in the trading card queue according to the size of the trading resources numerical value into Row sequence obtains, also, wherein the trading card of same transaction resource numerical value is ranked up to obtain by exchange hour.
This specification embodiment provides a kind of trading server, by obtaining and received trade matching from trading server The candidate trading card that matches is requested, then, is chosen from candidate trading card and meets that trade matching request is corresponding to bring rule together Target transaction list, and to be stored with target transaction list target transaction server send transaction confirmation message so that target hand over Easy server, which reaches trade matching, requests corresponding transaction, and receive the transmission of target transaction server fail reach the friendship When easy notification message, the target transaction server that control is stored with target transaction list carries out transaction rollback processing, in this way, first by Trading server, which is provided, requests the candidate trading card to match with trade matching, then, meets trade matching in therefrom selection and asks The target transaction list asked carries out trade matching with this, and when that can not reach the trade matching corresponding transaction of request, corresponding to hand over Easy server can carry out transaction rollback processing in time, so that the state of trading server is restored to Last status, to protect The data consistency in trading server is demonstrate,proved, the data consistency of transaction system is realized, so that electronic transaction or brining together Transaction can more quickly, safely, conveniently.
Embodiment five
The above are the trading servers that this specification embodiment provides, and are based on same thinking, this specification embodiment is also A kind of transaction gateway is provided, as shown in Figure 8.
Transaction gateway can generate bigger difference because configuration or performance are different, may include one or more Processor 801 and memory 802 can store one or more storage application programs or data in memory 802.Its In, memory 802 can be of short duration storage or persistent storage.Be stored in memory 802 application program may include one or More than one module (diagram is not shown), each module may include refer to executable to the series of computation machine in transaction gateway It enables.Further, processor 801 can be set to communicate with memory 802, execute in memory 802 on transaction gateway Series of computation machine executable instruction.Transaction gateway can also include one or more power supplys 803, one or one with Upper wired or wireless network interface 804, one or more input/output interfaces 805, one or more keyboards 806.
Specifically in the present embodiment, transaction gateway includes memory and one or more program, wherein one A perhaps more than one program is stored in memory and one or more than one program may include one or more Module, and each module may include and being configured to by one to the series of computation machine executable instruction in transaction gateway It includes for carrying out following computer executable instructions that either more than one processor, which executes this or more than one program:
It is obtained from trading server and requests the candidate trading card to match with received trade matching;
It is chosen from the candidate trading card and meets the trade matching and request the corresponding target transaction list for brining rule together;
Transaction confirmation message is sent to the target transaction server for being stored with the target transaction list, so that the target is handed over Easy server, which reaches the trade matching, requests corresponding transaction;
If receiving the notification message for failing to reach the transaction that the target transaction server is sent, control is deposited The target transaction server for containing the target transaction list carries out transaction rollback processing.
It include to trade matching list in the trade matching request in this specification embodiment, further includes:
If being had not been obtained from the trading server to received trade matching and requesting the candidate trading card to match, Multiple trading servers then are given to trade matching single-shot by described, so that each trading server will be described wait scoop up Trading card is closed to be stored in trading card queue.
In this specification embodiment, it is corresponding that the selection from the candidate trading card meets the trade matching request Bring the target transaction list of rule together, comprising:
Obtain the trading resources numerical value in the candidate trading card;
According to the size of the trading resources numerical value, the candidate trading card is ranked up;
According to ranking results, the trade matching is chosen from the candidate trading card and requests corresponding trading card quantity Target transaction list.
It further include exchange hour in candidate's trading card in this specification embodiment,
The size according to the trading resources numerical value is ranked up the candidate trading card, comprising:
The size according to the trading resources numerical value is ranked up the candidate trading card, obtains pre- sequence knot Fruit;
According to the exchange hour, to the candidate trading card of same transaction resource numerical value in the pre- ranking results Sequence is adjusted, and obtains the ranking results.
In this specification embodiment, further includes:
If the quantity of candidate's trading card is less than the trade matching and requests corresponding trading card quantity, the is obtained One trading card, the quantity of first trading card are the quantity friendship corresponding with trade matching request of the candidate trading card The easily difference of odd number amount, the trading resources numerical value in trading resources numerical value and the candidate trading card in first trading card It is equal;
First trading card is sent to the trading server to store.
In this specification embodiment, described obtain from trading server requests the candidate to match with received trade matching Trading card, comprising:
The trade matching request that receiving terminal apparatus is sent;
Trade matching request is sent to the trading server, so that the trading server obtains and described pinch Close the candidate trading card that transaction request matches;
Receive the candidate trading card that the trading server is sent.
In this specification embodiment, the target transaction server that the control is stored with the target transaction list is traded Rollback processing, comprising:
Transaction rollback request is sent to the target transaction server for being stored with the target transaction list, so that the mesh Mark trading server carries out transaction rollback processing.
This specification embodiment provides a kind of transaction gateway, is asked by obtaining from trading server with received trade matching Seek the candidate trading card to match, then, from candidate trading card choose meet trade matching request it is corresponding bring together rule Target transaction list, and transaction confirmation message is sent to the target transaction server for being stored with target transaction list, so that target transaction Server, which reaches trade matching, requests corresponding transaction, and receive the transmission of target transaction server fail reach the transaction Notification message when, control be stored with target transaction list target transaction server carry out transaction rollback processing, in this way, first by handing over Easy server, which is provided, requests the candidate trading card to match with trade matching, then, meets trade matching request therefrom choosing Target transaction list, trade matching is carried out with this, and when that can not reach trade matching and request corresponding transaction, it is corresponding to trade Server can carry out transaction rollback processing in time, so that the state of trading server is restored to Last status, to guarantee Data consistency in trading server realizes the data consistency of transaction system, so that electronic transaction or brining friendship together It easily can more quickly, safely, conveniently.
Embodiment six
Based on same thinking, this specification embodiment also provides a kind of trading server, as shown in Figure 9.
Trading server can generate bigger difference because configuration or performance are different, may include one or more Processor 901 and memory 902, can store one or more storage application programs or data in memory 902. Wherein, memory 902 can be of short duration storage or persistent storage.The application program for being stored in memory 902 may include one Or more than one module (diagram is not shown), each module may include executable to the series of computation machine in trading server Instruction.Further, processor 901 can be set to communicate with memory 902, and memory is executed on trading server Series of computation machine executable instruction in 902.Trading server can also include one or more power supplys 903, one Or more than one wired or wireless network interface 904, one or more input/output interfaces 905, one or more Keyboard 906.
Specifically in the present embodiment, trading server includes memory and one or more program, wherein One perhaps more than one program be stored in memory and one or more than one program may include one or one with Upper module, and each module may include to the series of computation machine executable instruction in trading server, and be configured to by It includes executable for carrying out following computer that one or more than one processor, which execute this or more than one program, Instruction:
The trade matching sent with transaction gateway is obtained from trading card queue requests the candidate trading card to match;
The candidate trading card is sent to the transaction gateway, so that the transaction gateway is from the candidate trading card Selection, which meets the trade matching, requests the corresponding target transaction list for brining rule together;
When receiving the transaction confirmation message that the transaction gateway is sent, modify to the trading card queue;
If the modification to the trading card queue fails, transaction rollback processing is executed.
In this specification embodiment, if described modify the trading card queue fails, transaction rollback processing is executed, Include:
If the modification to the trading card queue fails, fail to reach the transaction to transaction gateway transmission Notification message;
When receiving the transaction rollback request that the transaction gateway is sent, transaction rollback processing is executed.
In this specification embodiment, further includes:
If the quantity of candidate's trading card is less than the trade matching and requests corresponding trading card quantity, the is generated One trading card, the quantity of first trading card are the quantity friendship corresponding with trade matching request of the candidate trading card The easily difference of odd number amount, the trading resources numerical value in trading resources numerical value and the candidate trading card in first trading card It is equal;
The target transaction list in the trading card queue is replaced using first trading card.
In this specification embodiment, trading card in the trading card queue according to the size of the trading resources numerical value into Row sequence obtains, also, wherein the trading card of same transaction resource numerical value is ranked up to obtain by exchange hour.
This specification embodiment provides a kind of trading server, by obtaining and received trade matching from trading server The candidate trading card that matches is requested, then, is chosen from candidate trading card and meets that trade matching request is corresponding to bring rule together Target transaction list, and to be stored with target transaction list target transaction server send transaction confirmation message so that target hand over Easy server, which reaches trade matching, requests corresponding transaction, and receive the transmission of target transaction server fail reach the friendship When easy notification message, the target transaction server that control is stored with target transaction list carries out transaction rollback processing, in this way, first by Trading server, which is provided, requests the candidate trading card to match with trade matching, then, meets trade matching in therefrom selection and asks The target transaction list asked carries out trade matching with this, and when that can not reach the trade matching corresponding transaction of request, corresponding to hand over Easy server can carry out transaction rollback processing in time, so that the state of trading server is restored to Last status, to protect The data consistency in trading server is demonstrate,proved, the data consistency of transaction system is realized, so that electronic transaction or brining together Transaction can more quickly, safely, conveniently.
Embodiment seven
Based on same thinking, this specification embodiment also provides a kind of transaction system, as shown in Figure 5.
The transaction system includes at least one transaction gateway and multiple trading servers, in which:
The transaction gateway is connected with each trading server respectively.
Wherein, the transaction gateway requests the time to match with received trade matching for obtaining from trading server Select trading card;It is chosen from the candidate trading card and meets the trade matching and request the corresponding target transaction for brining rule together It is single;Transaction confirmation message is sent to the target transaction server for being stored with the target transaction list, so that the target transaction takes Business device, which reaches the trade matching, requests corresponding transaction;If receive that the target transaction server sends fails to reach The notification message of the transaction, then the target transaction server that control is stored with the target transaction list carry out at transaction rollback Reason.
The transaction gateway is requested if being also used to have not been obtained from the trading server to received trade matching The candidate trading card to match then gives multiple trading servers to trade matching single-shot for described, so that each described Trading server is stored in described in trading card queue to trade matching list.
The transaction gateway is also used to obtain the trading resources numerical value in the candidate trading card;It is provided according to the transaction The size of source numerical value is ranked up the candidate trading card;According to ranking results, from the candidate trading card described in selection Trade matching requests the target transaction list of corresponding trading card quantity.
In addition, further including exchange hour in candidate's trading card, the transaction gateway is also used to described according to the friendship The size of easy resource numerical value is ranked up the candidate trading card, obtains pre- ranking results;It is right according to the exchange hour The sequence of the candidate trading card of same transaction resource numerical value is adjusted in the pre- ranking results, obtains the sequence knot Fruit.
The transaction gateway, if the quantity for being also used to the candidate trading card is corresponding less than trade matching request Trading card quantity, then obtain the first trading card, the quantity of first trading card be the candidate trading card quantity with it is described Trade matching requests the difference of corresponding trading card quantity, the trading resources numerical value in first trading card and the candidate friendship The trading resources numerical value of Yi Danzhong is equal;First trading card is sent to the trading server to store.
The transaction gateway is also used to the trade matching request of receiving terminal apparatus transmission;The trade matching is requested It is sent to the trading server, so that the trading server obtains the candidate transaction to match with trade matching request It is single;Receive the candidate trading card that the trading server is sent.
The transaction gateway is also used to send transaction to the target transaction server for being stored with the target transaction list Rollback request, so that the target transaction server carries out transaction rollback processing.
Wherein, the trading server is asked for obtaining the trade matching sent with transaction gateway from trading card queue Seek the candidate trading card to match;The candidate trading card is sent to the transaction gateway, so that the transaction gateway is from institute State in candidate trading card choose meet the trade matching request it is corresponding bring together rule target transaction list;It is described when receiving When the transaction confirmation message that transaction gateway is sent, modify to the trading card queue;If to the trading card queue Modification failure then executes transaction rollback processing.
The trading server, if the failure of the modification to the trading card queue is also used to, to the transaction gateway Send the notification message for failing to reach the transaction;When receiving the transaction rollback request that the transaction gateway is sent, execute Rollback of trading is handled.
The trading server corresponds to if the quantity for being also used to the candidate trading card is less than trade matching request Trading card quantity, then generate the first trading card, quantity and institute of the quantity of first trading card for the candidate trading card The difference that trade matching requests corresponding trading card quantity is stated, the trading resources numerical value in first trading card and the candidate Trading resources numerical value in trading card is equal;The target in the trading card queue is replaced using first trading card to hand over Yi Dan.
Wherein, the trading card in the trading card queue is ranked up to obtain according to the size of the trading resources numerical value, Also, wherein the trading card of same transaction resource numerical value is ranked up to obtain by exchange hour.
This specification embodiment provides a kind of processing system of transaction, is brought together by obtaining from trading server with received Then the candidate trading card that transaction request matches is chosen from candidate trading card and meets trade matching request and corresponding bring together The target transaction list of rule, and transaction confirmation message is sent to the target transaction server for being stored with target transaction list, so that mesh Mark trading server reaches trade matching requests corresponding transaction, and fails to reach receiving the transmission of target transaction server When the notification message of the transaction, the target transaction server that control is stored with target transaction list carries out transaction rollback processing, in this way, It is first provided by trading server and requests the candidate trading card to match with trade matching, then, bring friendship together therefrom choosing to meet The target transaction list easily requested carries out trade matching with this, and when that can not reach the trade matching corresponding transaction of request, accordingly Trading server can carry out transaction rollback processing in time so that the state of trading server is restored to Last status, from And guarantee the data consistency in trading server, realize the data consistency of transaction system so that electronic transaction or Trade matching can more quickly, safely, conveniently.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can With or may be advantageous.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example, Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit. Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device (Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " is patrolled Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development, And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language (Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL (Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL (Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language) etc., VHDL (Very-High-Speed is most generally used at present Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also answer This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages, The hardware circuit for realizing the logical method process can be readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can Read medium, logic gate, switch, specific integrated circuit (Application Specific Integrated Circuit, ASIC), the form of programmable logic controller (PLC) and insertion microcontroller, the example of controller includes but is not limited to following microcontroller Device: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320 are deposited Memory controller is also implemented as a part of the control logic of memory.It is also known in the art that in addition to Pure computer readable program code mode is realized other than controller, can be made completely by the way that method and step is carried out programming in logic Controller is obtained to come in fact in the form of logic gate, switch, specific integrated circuit, programmable logic controller (PLC) and insertion microcontroller etc. Existing identical function.Therefore this controller is considered a kind of hardware component, and to including for realizing various in it The device of function can also be considered as the structure in hardware component.Or even, it can will be regarded for realizing the device of various functions For either the software module of implementation method can be the structure in hardware component again.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment The combination of equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit can be realized in the same or multiple software and or hardware when specification one or more embodiment.
It should be understood by those skilled in the art that, the embodiment of this specification can provide as method, system or computer journey Sequence product.Therefore, complete hardware embodiment, complete software embodiment or knot can be used in this specification one or more embodiment The form of embodiment in terms of conjunction software and hardware.Moreover, this specification one or more embodiment can be used at one or more A wherein includes computer-usable storage medium (the including but not limited to magnetic disk storage, CD- of computer usable program code ROM, optical memory etc.) on the form of computer program product implemented.
The embodiment of this specification is referring to the method, equipment (system) and computer journey according to this specification embodiment The flowchart and/or the block diagram of sequence product describes.It should be understood that flow chart and/or box can be realized by computer program instructions The combination of the process and/or box in each flow and/or block and flowchart and/or the block diagram in figure.It can provide this A little computer program instructions are to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices Processor to generate a machine so that the finger executed by the processor of computer or other programmable data processing devices It enables and generates to specify in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
It will be understood by those skilled in the art that the embodiment of this specification can provide as the production of method, system or computer program Product.Therefore, this specification one or more embodiment can be used complete hardware embodiment, complete software embodiment or combine software With the form of the embodiment of hardware aspect.Moreover, this specification one or more embodiment can be used it is one or more wherein It include computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, the light of computer usable program code Learn memory etc.) on the form of computer program product implemented.
This specification one or more embodiment can computer executable instructions it is general on It hereinafter describes, such as program module.Generally, program module includes executing particular task or realization particular abstract data type Routine, programs, objects, component, data structure etc..Can also practice in a distributed computing environment this specification one or Multiple embodiments, in these distributed computing environments, by being executed by the connected remote processing devices of communication network Task.In a distributed computing environment, the local and remote computer that program module can be located at including storage equipment is deposited In storage media.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The foregoing is merely the embodiments of this specification, are not limited to this specification.For art technology For personnel, this specification can have various modifications and variations.It is all made any within the spirit and principle of this specification Modification, equivalent replacement, improvement etc., should be included within the scope of the claims of this specification.

Claims (25)

1. a kind of processing method of transaction, which comprises
It is obtained from trading server and requests the candidate trading card to match with received trade matching;
It is chosen from the candidate trading card and meets the trade matching and request the corresponding target transaction list for brining rule together;
Transaction confirmation message is sent to the target transaction server for being stored with the target transaction list, so that the target transaction takes Business device, which reaches the trade matching, requests corresponding transaction;
If receiving the notification message for failing to reach the transaction that the target transaction server is sent, control is stored with The target transaction server of the target transaction list carries out transaction rollback processing.
2. according to the method described in claim 1, including to trade matching list in trade matching request, the method is also wrapped It includes:
It, will if being had not been obtained from the trading server to received trade matching and requesting the candidate trading card to match It is described to give multiple trading servers to trade matching single-shot, so that each trading server is handed over described wait bring together Yi Dan is stored in trading card queue.
3. according to the method described in claim 1, described choose from the candidate trading card meets the trade matching request The corresponding target transaction list for brining rule together, comprising:
Obtain the trading resources numerical value in the candidate trading card;
According to the size of the trading resources numerical value, the candidate trading card is ranked up;
According to ranking results, the target that the trade matching requests corresponding trading card quantity is chosen from the candidate trading card Trading card.
4. according to the method described in claim 3, it is described candidate trading card in further include exchange hour,
The size according to the trading resources numerical value is ranked up the candidate trading card, comprising:
The size according to the trading resources numerical value is ranked up the candidate trading card, obtains pre- ranking results;
Sequence according to the exchange hour, to the candidate trading card of same transaction resource numerical value in the pre- ranking results It is adjusted, obtains the ranking results.
5. according to the method described in claim 3, the method also includes:
If the quantity of candidate's trading card, which is less than the trade matching, requests corresponding trading card quantity, obtains first and hand over Yi Dan, the quantity of first trading card are the quantity trading card corresponding with trade matching request of the candidate trading card The difference of quantity, the trading resources numerical value phase in trading resources numerical value and the candidate trading card in first trading card Deng;
First trading card is sent to the trading server to store.
6. according to the method described in claim 1, described obtain from trading server matches with the request of received trade matching Candidate trading card, comprising:
The trade matching request that receiving terminal apparatus is sent;
Trade matching request is sent to the trading server, so that the trading server, which is obtained, brings friendship together with described Easily request the candidate trading card to match;
Receive the candidate trading card that the trading server is sent.
7. according to the method described in claim 1, it is described control be stored with the target transaction server of the target transaction list into Row transaction rollback processing, comprising:
Transaction rollback request is sent to the target transaction server for being stored with the target transaction list, so that the target is handed over Easy server carries out transaction rollback processing.
8. a kind of processing method of transaction, which comprises
The trade matching sent with transaction gateway is obtained from trading card queue requests the candidate trading card to match;
The candidate trading card is sent to the transaction gateway, so that the transaction gateway is chosen from the candidate trading card Meet the trade matching and requests the corresponding target transaction list for brining rule together;
When receiving the transaction confirmation message that the transaction gateway is sent, modify to the trading card queue;
If the modification to the trading card queue fails, transaction rollback processing is executed.
If 9. according to the method described in claim 8, it is described to the trading card queue modify fail, execute transaction rollback Processing, comprising:
If the modification to the trading card queue fails, the notice for failing to reach the transaction is sent to the transaction gateway Message;
When receiving the transaction rollback request that the transaction gateway is sent, transaction rollback processing is executed.
10. according to the method described in claim 8, the method also includes:
If the quantity of candidate's trading card, which is less than the trade matching, requests corresponding trading card quantity, generates first and hand over Yi Dan, the quantity of first trading card are the quantity trading card corresponding with trade matching request of the candidate trading card The difference of quantity, the trading resources numerical value phase in trading resources numerical value and the candidate trading card in first trading card Deng;
The target transaction list in the trading card queue is replaced using first trading card.
11. the method according to any one of claim 8-10, the trading card in the trading card queue is according to the friendship The size of easy resource numerical value is ranked up to obtain, also, wherein the trading card of same transaction resource numerical value by exchange hour into Row sequence obtains.
12. a kind of transaction gateway, the transaction gateway include:
Trading card obtains module, trades for obtaining the candidate to match with the request of received trade matching from trading server It is single;
Module is chosen, meets the trade matching for being chosen from the candidate trading card and requests the corresponding mesh for brining rule together Mark trading card;
Message transmission module, for sending transaction confirmation message to the target transaction server for being stored with the target transaction list, So that the target transaction server reaches the trade matching and requests corresponding transaction;
Roll-back module, if disappeared for receiving the notice for failing to reach the transaction that the target transaction server is sent Breath, then the target transaction server that control is stored with the target transaction list carry out transaction rollback processing.
It include to trade matching list, the friendship in the trade matching request 13. transaction gateway according to claim 12 Easy gateway further include:
Trading card sending module, if requesting phase for being had not been obtained from the trading server to received trade matching The candidate trading card matched then gives multiple trading servers to trade matching single-shot for described, so that each transaction Server is stored in described in trading card queue to trade matching list.
14. transaction gateway according to claim 12, the selection module, comprising:
Resource value acquiring unit, for obtaining the trading resources numerical value in the candidate trading card;
Sequencing unit is ranked up the candidate trading card for the size according to the trading resources numerical value;
Selection unit, for choosing the trade matching from the candidate trading card and requesting corresponding friendship according to ranking results The easily target transaction list of odd number amount.
It further include exchange hour in candidate's trading card 15. transaction gateway according to claim 14,
The sequencing unit is ranked up the candidate trading card for the size according to the trading resources numerical value, Obtain pre- ranking results;According to the exchange hour, to the candidate of same transaction resource numerical value in the pre- ranking results The sequence of trading card is adjusted, and obtains the ranking results.
16. transaction gateway according to claim 14, the transaction gateway further include:
First trading card obtains module, if the quantity for the candidate trading card is corresponding less than trade matching request Trading card quantity, then obtain the first trading card, the quantity of first trading card be the candidate trading card quantity with it is described Trade matching requests the difference of corresponding trading card quantity, the trading resources numerical value in first trading card and the candidate friendship The trading resources numerical value of Yi Danzhong is equal;
Memory module is stored for first trading card to be sent to the trading server.
17. transaction gateway according to claim 12, the trading card obtains module, comprising:
Bring request reception unit together, the trade matching request sent for receiving terminal apparatus;
Request transmitting unit, for trade matching request to be sent to the trading server, so that the transactional services Device, which is obtained, requests the candidate trading card to match with the trade matching;
Trading card receiving unit, the candidate trading card sent for receiving the trading server.
18. transaction gateway according to claim 12, the roll-back module, for being stored with the target transaction to described Single target transaction server sends transaction rollback request, so that the target transaction server carries out transaction rollback processing.
19. a kind of trading server, the trading server include:
Trading card obtains module, what the trade matching request for obtaining from trading card queue and transaction gateway is sent matched Candidate trading card;
Trading card sending module, for the candidate trading card to be sent to the transaction gateway so that the transaction gateway from It is described candidate trading card in choose meet the trade matching request it is corresponding bring together rule target transaction list;
Modified module, for when receiving the transaction confirmation message that the transaction gateway is sent, to the trading card queue into Row modification;
Roll-back module, if executing transaction rollback processing for the modification failure to the trading card queue.
20. trading server according to claim 19, the roll-back module, comprising:
Transmission unit is notified, if failed for the modification failure to the trading card queue to transaction gateway transmission Reach the notification message of the transaction;
Rollback unit, for executing transaction rollback processing when receiving the transaction rollback request that the transaction gateway is sent.
21. trading server according to claim 19, the trading server further include:
First trading card generation module, if the quantity for the candidate trading card is corresponding less than trade matching request Trading card quantity, then generate the first trading card, the quantity of first trading card be the candidate trading card quantity with it is described Trade matching requests the difference of corresponding trading card quantity, the trading resources numerical value in first trading card and the candidate friendship The trading resources numerical value of Yi Danzhong is equal;
Replacement module, for replacing the target transaction list in the trading card queue using first trading card.
22. trading server described in any one of 9-21 according to claim 1, trading card in the trading card queue according to The size of the trading resources numerical value is ranked up to obtain, also, wherein the trading card of same transaction resource numerical value passes through transaction Time is ranked up to obtain.
23. a kind of transaction gateway, the transaction gateway include:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the processing when executed Device:
It is obtained from trading server and requests the candidate trading card to match with received trade matching;
It is chosen from the candidate trading card and meets the trade matching and request the corresponding target transaction list for brining rule together;
Transaction confirmation message is sent to the target transaction server for being stored with the target transaction list, so that the target transaction takes Business device, which reaches the trade matching, requests corresponding transaction;
If receiving the notification message for failing to reach the transaction that the target transaction server is sent, control is stored with The target transaction server of the target transaction list carries out transaction rollback processing.
24. a kind of trading server, the trading server include:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the processing when executed Device:
The trade matching sent with transaction gateway is obtained from trading card queue requests the candidate trading card to match;
The candidate trading card is sent to the transaction gateway, so that the transaction gateway is chosen from the candidate trading card Meet the trade matching and requests the corresponding target transaction list for brining rule together;
When receiving the transaction confirmation message that the transaction gateway is sent, modify to the trading card queue;
If the modification to the trading card queue fails, transaction rollback processing is executed.
25. a kind of transaction system, the transaction system includes at least one transaction as described in any one of claim 12-18 Gateway and multiple trading servers as described in any one of claim 19-22, in which:
The transaction gateway is connected with each trading server respectively.
CN201811174212.6A 2018-10-09 2018-10-09 A kind of processing method of transaction, transaction gateway, trading server and transaction system Pending CN109598611A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811174212.6A CN109598611A (en) 2018-10-09 2018-10-09 A kind of processing method of transaction, transaction gateway, trading server and transaction system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811174212.6A CN109598611A (en) 2018-10-09 2018-10-09 A kind of processing method of transaction, transaction gateway, trading server and transaction system

Publications (1)

Publication Number Publication Date
CN109598611A true CN109598611A (en) 2019-04-09

Family

ID=65957201

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811174212.6A Pending CN109598611A (en) 2018-10-09 2018-10-09 A kind of processing method of transaction, transaction gateway, trading server and transaction system

Country Status (1)

Country Link
CN (1) CN109598611A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110135988A (en) * 2019-04-26 2019-08-16 阿里巴巴集团控股有限公司 A kind of processing method of information, device, equipment and system
CN110264347A (en) * 2019-05-06 2019-09-20 上海数据交易中心有限公司 Data trade method and device, platform are brought together automatically based on demand publication
CN110992038A (en) * 2020-03-03 2020-04-10 支付宝(杭州)信息技术有限公司 Transaction processing method, device and equipment
CN111445331A (en) * 2020-03-24 2020-07-24 中国工商银行股份有限公司 Transaction matching method and device
CN111708637A (en) * 2020-06-18 2020-09-25 深圳市金斧子网络科技有限公司 Data processing method and device and computer readable medium
CN112199213A (en) * 2020-09-30 2021-01-08 中国工商银行股份有限公司 Data interaction method and server for menu-hanging interaction data
CN113095930A (en) * 2021-04-13 2021-07-09 中国工商银行股份有限公司 Transaction matching method and device for banking loan
CN113127892A (en) * 2019-12-31 2021-07-16 华控清交信息科技(北京)有限公司 Data transaction method, device, system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075336A (en) * 2007-07-20 2007-11-21 中国建设银行股份有限公司 Foreign-currency trade system
CN103020862A (en) * 2012-12-26 2013-04-03 沈一钢 Online credit investment-financing method and system
CN105243550A (en) * 2015-10-10 2016-01-13 刘路 Order matching method
CN106530080A (en) * 2015-09-14 2017-03-22 成都娇子意航星科技有限公司 Dormant transaction matchmaking method based on queue dynamic change

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075336A (en) * 2007-07-20 2007-11-21 中国建设银行股份有限公司 Foreign-currency trade system
CN103020862A (en) * 2012-12-26 2013-04-03 沈一钢 Online credit investment-financing method and system
CN106530080A (en) * 2015-09-14 2017-03-22 成都娇子意航星科技有限公司 Dormant transaction matchmaking method based on queue dynamic change
CN105243550A (en) * 2015-10-10 2016-01-13 刘路 Order matching method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
叶德伟: "一个高性能多券种交易撮合系统设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
黄寅飞 等: "证券交易系统中的事务恢复方法", 《计算机工程》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110135988A (en) * 2019-04-26 2019-08-16 阿里巴巴集团控股有限公司 A kind of processing method of information, device, equipment and system
CN110264347A (en) * 2019-05-06 2019-09-20 上海数据交易中心有限公司 Data trade method and device, platform are brought together automatically based on demand publication
CN113127892A (en) * 2019-12-31 2021-07-16 华控清交信息科技(北京)有限公司 Data transaction method, device, system and storage medium
CN110992038A (en) * 2020-03-03 2020-04-10 支付宝(杭州)信息技术有限公司 Transaction processing method, device and equipment
CN112016921A (en) * 2020-03-03 2020-12-01 支付宝(杭州)信息技术有限公司 Transaction processing method, device and equipment
CN112016921B (en) * 2020-03-03 2022-08-19 支付宝(杭州)信息技术有限公司 Transaction processing method, device and equipment
CN111445331A (en) * 2020-03-24 2020-07-24 中国工商银行股份有限公司 Transaction matching method and device
CN111708637A (en) * 2020-06-18 2020-09-25 深圳市金斧子网络科技有限公司 Data processing method and device and computer readable medium
CN112199213A (en) * 2020-09-30 2021-01-08 中国工商银行股份有限公司 Data interaction method and server for menu-hanging interaction data
CN112199213B (en) * 2020-09-30 2024-02-20 中国工商银行股份有限公司 Data interaction method and server for hanging bill interaction data
CN113095930A (en) * 2021-04-13 2021-07-09 中国工商银行股份有限公司 Transaction matching method and device for banking loan

Similar Documents

Publication Publication Date Title
CN109598611A (en) A kind of processing method of transaction, transaction gateway, trading server and transaction system
CN107015882B (en) A kind of block data method of calibration and device
CN110992038B (en) Transaction processing method, device and equipment
CN110134668A (en) Data migration method, device and equipment applied to block chain
CN109615495A (en) A kind of account checking method of data, device, equipment and system
CN107644286A (en) Workflow processing method and device
CN110020427A (en) Strategy determines method and apparatus
CN110503435A (en) Transaction method for early warning, device and equipment based on block chain
CN108985869A (en) Resource processing method and device, server and terminal equipment
CN109003071A (en) Method of payment, device and equipment
CN110992040A (en) Transaction processing method, device and equipment
CN107784339A (en) Method, apparatus and equipment are performed applied to client, the business of service end
CN108830705A (en) A kind of method of summary of transaction data, device and equipment
CN110046301A (en) Object recommendation method and apparatus
CN110297955A (en) A kind of information query method, device, equipment and medium
CN109003090A (en) risk control method and device
CN109902077A (en) A kind of service request processing method, device and equipment
CN109389386A (en) A kind of barcode scanning control method, apparatus and system
CN110264213A (en) A kind of processing method of information, device and equipment
CN114708093A (en) Block chain-based digital resource processing method and device
CN110134860A (en) User's portrait generation method, device and equipment
CN109064282A (en) Method for processing business, apparatus and system
CN108563693A (en) A kind of processing method of affairs, device and equipment
CN108681962A (en) A kind of method, apparatus and equipment of business processing
CN109063967B (en) Processing method and device for wind control scene feature tensor and electronic equipment

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201010

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201010

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190409