CN110046199A - Synchronous method, device and the electronic equipment of transaction data - Google Patents

Synchronous method, device and the electronic equipment of transaction data Download PDF

Info

Publication number
CN110046199A
CN110046199A CN201910332388.8A CN201910332388A CN110046199A CN 110046199 A CN110046199 A CN 110046199A CN 201910332388 A CN201910332388 A CN 201910332388A CN 110046199 A CN110046199 A CN 110046199A
Authority
CN
China
Prior art keywords
synchronous
data
state
status indicator
transaction data
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
CN201910332388.8A
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.)
Financial Technologies Ltd Arxan Beijing
Original Assignee
Financial Technologies Ltd Arxan Beijing
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 Financial Technologies Ltd Arxan Beijing filed Critical Financial Technologies Ltd Arxan Beijing
Priority to CN201910332388.8A priority Critical patent/CN110046199A/en
Publication of CN110046199A publication Critical patent/CN110046199A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • G06F16/275Synchronous replication
    • 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

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

Abstract

The present invention provides a kind of synchronous method of transaction data, device and electronic equipment, method includes: to record current transaction data, sets first state mark for current data synchronous regime;First state identifies the state not kept accounts for characterizing transaction data;Data write instruction is sent to distributed account book destination node, so that destination node carries out data synchronization and returns to the first synchronous response, and first state mark is updated to the second status indicator;Second status indicator has kept accounts for characterizing transaction data, does not receive the state of synchronous response;Based on the first synchronous response that destination node returns, the second status indicator is updated.The present invention can specify the synchronous state of current data during transaction data synchronization, improve the synchronous accuracy of data.

Description

Synchronous method, device and the electronic equipment of transaction data
Technical field
The present invention relates to block chain technical fields, more particularly, to the synchronous method, device and electronics of a kind of transaction data Equipment.
Background technique
Application system can synchronize to obtain reading and writing data response results when docking centralization data-storage system.And it is distributed Formula account book system carries out data by single node docking application system and updates operation, and completing in each node can after data synchronize Whether confirmation data read-write operation succeeds.Application system docks with the distributed a certain node of account book system and carries out reading and writing data, obtains The sync response result arrived can not be updated as data operation whether successful foundation, data accuracy not can guarantee.
Summary of the invention
The purpose of the present invention is to provide a kind of synchronous method of transaction data, device and electronic equipments, in number of deals According to the synchronous state of current data in synchronizing process, is specified, the synchronous accuracy of data is improved.
The present invention provides a kind of synchronous method of transaction data, and this method is applied to application system server, this method packet It includes:
Current transaction data is recorded, sets first state mark for current data synchronous regime;First state mark is used In the state that characterization transaction data does not keep accounts;
Data write instruction is sent to distributed account book destination node, so as to carry out data synchronous and return to for destination node One synchronous response, and first state mark is updated to the second status indicator;Second status indicator is for having characterized transaction data It keeps accounts, does not receive the state of synchronous response;
Based on the first synchronous response that destination node returns, the second status indicator is updated.
Further, in the first synchronous response returned based on destination node, before the step of updating the second status indicator, Further include:
If do not receive within a preset time destination node return the first synchronous response, re-execute the steps: to point Cloth account book destination node sends data write instruction, so that destination node carries out data synchronization and returns to the first synchronous response, And current stateful transaction is updated to the second status indicator.
Further, the step of the first synchronous response returned based on destination node, the second status indicator of update, comprising:
Based on the first synchronous response that destination node returns, judge whether the result of the first synchronous response is to synchronize success;
If it is, the second status indicator is updated to third state mark;The third state is identified for characterizing number of deals According to having kept accounts, the state of synchronous successful respond is received;
If it is not, then the second status indicator is updated to the 4th status indicator;4th status indicator is for characterizing number of deals According to having kept accounts, the state of synchronization failure response is received.
Further, after the step of the second status indicator is updated to third state mark, further includes:
It is synchronous that internodal data is carried out in distributed account book destination node, and after the second synchronous response of asynchronous return, is based on Second synchronous response updates third state mark.
Further, the step of being based on the second synchronous response, updating third state mark, comprising:
Whether the result for judging the second synchronous response is to synchronize success;
If it is, third state mark is updated to the 5th status indicator;5th status indicator is for characterizing number of deals According to having kept accounts, the state of asynchronous and synchronous successful respond is received;
If it is not, then third state mark is updated to the 6th status indicator;6th status indicator is for characterizing number of deals According to having kept accounts, the state of asynchronous and synchronous failure response is received.
Further, this method further includes:
If the type of transaction data is that simple record deposits card, and current data synchronous regime is third state mark, then Transaction data synchronization success is determined, to carry out subsequent transaction process.
Further, this method further includes:
If the type of transaction data is that non-simple record deposits card, and current data synchronous regime is the 5th status indicator, Determine transaction data synchronization success, then to carry out subsequent transaction process.
The present invention also provides a kind of synchronizing device of transaction data, which is applied to application system server, the device Include:
Data recordin module sets first state mark for current data synchronous regime for recording current transaction data Know;First state identifies the state not kept accounts for characterizing transaction data;
Instruction sending module, for distributed account book destination node send data write instruction so that destination node into Row data are synchronous and return to the first synchronous response, and first state mark is updated to the second status indicator;Second status indicator It has kept accounts for characterizing transaction data, has not received the state of synchronous response;
State update module, the first synchronous response for being returned based on destination node update the second status indicator.
The present invention also provides a kind of electronic equipment, comprising: processor, storage medium and bus, the storage medium storage Have the machine readable instructions that the processor is executable, when electronic equipment operation, the processor and the storage medium it Between by bus communication, the processor executes the machine readable instructions, and the synchronization of above-mentioned transaction data is executed when executing The step of method.
The present invention also provides a kind of computer readable storage medium, computer is stored on the computer readable storage medium Program, when which is run by processor the step of the execution such as synchronous method of above-mentioned transaction data.
In the synchronous method of transaction data provided by the invention, application system server records current transaction data first, First state mark is set by current data synchronous regime;The first state identifies the shape not kept accounts for characterizing transaction data State;Then data write instruction is sent to distributed account book destination node, so as to carry out data synchronous and return to for destination node One synchronous response, and first state mark is updated to the second status indicator;Second status indicator is for characterizing transaction data It has been kept accounts that, do not receive the state of synchronous response;The first synchronous response finally returned based on destination node updates the second state mark Know.The present invention is set during application system server and distributed account book data synchronous interaction based on each step interactive operation Current data synchronous regime is set, the synchronous state of current data can be specified, monitor the progress of transaction data synchronization in real time, thus Improve the synchronous accuracy of data.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of method flow diagram of the synchronous method of transaction data provided in an embodiment of the present invention;
Fig. 2 is the method flow diagram of the synchronous method of another transaction data provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of the synchronizing device of transaction data provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of the synchronizing device of another transaction data provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Technical solution of the present invention is clearly and completely described below in conjunction with embodiment, it is clear that described reality Applying example is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, the common skill in this field Art personnel every other embodiment obtained without making creative work belongs to the model that the present invention protects It encloses.
The embodiment of the present invention provides a kind of synchronous method of transaction data, which includes that simple record deposits card data Two kinds of data of card is deposited with non-simple record, it is that the data updated on distributed account book have with context that non-simple record, which deposits card data, The data of pass.Shown in Figure 1, the synchronous method of above-mentioned transaction data is applied to application system server, specifically includes following Step:
Step S102 records current transaction data, sets first state mark for current data synchronous regime;First shape State identifies the state not kept accounts for characterizing transaction data.
In block chain technical field, after above-mentioned transaction data generates in application system, it will usually further be synchronized to point In each node of cloth account book.In concrete application, application system server, for example, bono contributions plateform system generates every Bono contributions deposit card data, that is, record the transaction data of every bono contributions, carry out distributed account book node in the data Before synchronization, first state mark, that is, the state that transaction data does not keep accounts are set by current data synchronous regime, In, status indicator can be using characters such as a variety of ways of realization, such as 01 or A.
Step S104 sends data write instruction to distributed account book destination node, so that destination node progress data are same The first synchronous response is walked and returned, and first state mark is updated to the second status indicator;Second status indicator is for characterizing Transaction data has kept accounts, and does not receive the state of synchronous response.
Application system server is connected with distributed account book node, server before record is easy to act as after transaction data, to point Some node in cloth account book, i.e. destination node send data write instruction, while application system server local will be current Data synchronous regime is updated to the second status indicator by original first state mark, which can use 02 or other Character indicates that characterization transaction data has kept accounts, and does not receive the state of synchronous response.The destination node of distributed account book is receiving To after above-mentioned data write instruction, data synchronization is carried out to above-mentioned transaction data, and by data synchronization as a result, namely above-mentioned First synchronous response returns to server, so that server further determines that current data synchronous regime.
Step S106 updates the second status indicator based on the first synchronous response that destination node returns.
Server continues true according to the result of the synchronous response after the first synchronous response for receiving destination node return Determine the synchronous state of current data, and current data synchronous regime is updated.Updated status indicator is handed over for characterizing Easy data have kept accounts, and receive the state of synchronous successful respond or synchronization failure response.
Such as: the first synchronous response returned based on destination node judges whether the result of the first synchronous response is synchronous Success;If it is, the second status indicator is updated to third state mark;The third state is identified for having characterized transaction data It keeps accounts, receives the state of synchronous successful respond;If it is not, then the second status indicator is updated to the 4th status indicator;4th shape State mark has kept accounts for characterizing transaction data, receives the state of synchronization failure response.
Transaction data synchronization method provided by the embodiment of the present invention, can be in application system server and distributed account book During data synchronous interaction, current data synchronous regime is arranged based on each step interactive operation, it is same current data can be specified The state of step, monitors the progress of transaction data synchronization in real time, to improve the synchronous accuracy of data.
It should be noted that if the type of transaction data deposits card for simple record, for example, bono contributions deposit card information, So determining above-mentioned current data synchronous regime as third state mark, that is, transaction data kept accounts, receive it is synchronous at When function response, so that it may transaction data synchronization success is determined, to carry out subsequent transaction process.
The transaction data that card type is deposited for non-simple record, needs the data in each node of distributed account book all same Transaction data synchronization success can be just determined after walking successfully.Card data are deposited below with non-simple record to be synchronized in distributed account book For, illustrate a kind of process of specific method of data synchronization, it is shown in Figure 2, comprising the following steps:
Step S202 records current transaction data, sets first state mark for current data synchronous regime;First shape State identifies the state not kept accounts for characterizing transaction data.It indicates that first state identifies with 01 in the present embodiment, system is facilitated to know Not.
Step S204 sends data write instruction to distributed account book destination node, so that destination node progress data are same The first synchronous response is walked and returned, and first state mark is updated to the second status indicator;Second status indicator is for characterizing Transaction data has kept accounts, and does not receive the state of synchronous response.The second status indicator is indicated with 02 in the present embodiment, and system is facilitated to know Not.
In concrete application, step S202 is similar with step S104 with step S204 with above-mentioned steps S102, in the present embodiment Transaction data is the data that non-simple record deposits card type, and detailed process repeats no more.
Step S206, based on destination node return the first synchronous response, judge the first synchronous response result whether be Synchronize success.
If so, thening follow the steps S208, the second status indicator is updated to third state mark, such as 03, the third state Mark has kept accounts for characterizing transaction data, receives the state of synchronous successful respond.
If not, thening follow the steps S210, the second status indicator is updated to the 4th status indicator, such as 04, the 4th state Mark has kept accounts for characterizing transaction data, receives the state of synchronization failure response.
Further, in the first synchronous response returned based on destination node, judge the first synchronous response result whether Before synchronizing successful step, include the case where that the first synchronous response does not receive, in this case, executes following step It is rapid:
Step S212 is re-executed if not receiving the first synchronous response of destination node return within a preset time Step S204 sends data write instruction to distributed account book destination node, so that destination node carries out data synchronization and returns First synchronous response, and current stateful transaction is updated to the second status indicator.
For the data of distributed account book are synchronous, after destination node is to transaction data synchronization success, that is, will Second status indicator is updated to after third state mark, further includes the data synchronization process between node, and by node data Synchronized result is fed back to application system server specified interface, specially following steps:
It is synchronous to carry out internodal data in distributed account book destination node by step S214, and asynchronous return second is synchronized and answered After answering, judge whether the result of the second synchronous response is to synchronize success.If so, S216 is thened follow the steps, by third state mark Knowledge is updated to the 5th status indicator, and the 5th status indicator has kept accounts for characterizing transaction data, receives asynchronous and synchronous successful respond State.If not, thening follow the steps S218, third state mark is updated to the 6th status indicator, the 6th status indicator is used It has kept accounts in characterization transaction data, has received the state of asynchronous and synchronous failure response.
Specifically, application system server updates current data after receiving the other node data synchronized results of distributed account book Synchronous regime.Success is such as returned to, then state is updated to 05;Failure is such as returned to, then state is updated to 06.After synchronizing successfully, own Distributed account book node will all have above-mentioned non-simple record and deposit the transaction data for demonstrate,proving type.
For synchronous for the data for the transaction data that above-mentioned non-simple record deposits card type, if going to above-mentioned steps When S216, that is, current data synchronous regime be five status indicators when, can determine transaction data synchronization success, at this time this The transaction data that the non-simple record of pen deposits card type is present on all distributed account book nodes, can carry out subsequent transaction mistake Journey.
In the synchronous method of transaction data provided in an embodiment of the present invention, not according to application system transaction data type Together, different processing can be carried out based on current data synchronous regime.As the data that are updated on distributed account book and context without It closes, the transaction data of card type is deposited for simple record, as card data are deposited in contribution.Then when data synchronous regime is the second status indicator 02, the 4th status indicator 04, the 6th status indicator 06, or for a long time in the third state mark 03 when, can check distribution Account book failure of data synchronization reason, and transaction repeating transmission is carried out according to the actual situation.
If the data and context-sensitive that distributed account book updates, such as wallet account class data change, then when data synchronization State is 02,04,06, or when being in 03 state for a long time, need to check distributed account book failure of data synchronization reason, such as really same Step failure, then be considered as this data more New Transaction and fall flat.
In the prior art, each node of distributed account book is completed to return the result to application system server again after data synchronize, The longer response time is needed, trading processing speed is unable to get guarantee.And processing result is updated when there are single node data When inconsistent with multinode data synchronization result, application system server can not carry out subsequent transaction processing.
And in the application, according to application system type of transaction, it is poor to be formulated according to distinct data states in conjunction with the above method The subsequent processing mode of alienation.Card class transaction is deposited for general context-free, if card data are deposited in the contribution in present case, is answered It can think that transaction is completed when data synchronous regime is third state mark 03 with system server, and need to trade after handling, Distributed account book internodal data synchronizing process asynchronous can carry out, and system transactions velocity is greatly improved whereby.For context phase The application system of pass is traded, if wallet account changes, when to need data synchronous regime be five status indicators 05, be considered as transaction at Function.By the control of data synchronous regime, can strict control trading processing process, and quick lock in is asked extremely when trading abnormal Topic point.
Based on above method embodiment, the embodiment of the present invention also provides a kind of synchronizing device of transaction data, such as Fig. 3 institute Show, which is applied to application system server, which includes:
Data recordin module 302 sets first state for current data synchronous regime for recording current transaction data Mark;First state identifies the state not kept accounts for characterizing transaction data;Instruction sending module 304 is used for distributed account This destination node sends data write instruction, so as to carry out data synchronous and return to the first synchronous response for destination node, and by the One status indicator is updated to the second status indicator;Second status indicator has kept accounts for characterizing transaction data, does not receive to synchronize and answer The state answered;State update module 306, the first synchronous response for being returned based on destination node update the second status indicator.
Shown in Figure 4 in another Installation practice, above-mentioned apparatus is in addition to including the number similar with a upper embodiment Outside according to logging modle 402, instruction sending module 404 and state update module 406, further includes:
Callback module 408, if the first synchronous response for not receiving destination node return within a preset time, weighs It is new to execute step: data write instruction to be sent to distributed account book destination node, so that destination node carries out data synchronization and returns The first synchronous response is returned, and current stateful transaction is updated to the second status indicator.
Further, above-mentioned state update module 406 is also used to: the first synchronous response returned based on destination node is sentenced Whether the result of disconnected first synchronous response is to synchronize success;If it is, the second status indicator is updated to third state mark; Third state mark has kept accounts for characterizing transaction data, receives the state of synchronous successful respond;If it is not, then by the second state Mark is updated to the 4th status indicator;4th status indicator has kept accounts for characterizing transaction data, receives synchronization failure response State.
Further, above-mentioned apparatus further include: asynchronous mode update module 410, in distributed account book destination node It is synchronous to carry out internodal data, and after the second synchronous response of asynchronous return, be based on the second synchronous response, updates third state mark Know.
Further, above-mentioned asynchronous mode update module 410 is also used to: whether the result for judging the second synchronous response is same It walks successfully;If it is, third state mark is updated to the 5th status indicator;5th status indicator is for characterizing transaction data It has been kept accounts that, receive the state of asynchronous and synchronous successful respond;If it is not, then third state mark is updated to the 6th status indicator; 6th status indicator has kept accounts for characterizing transaction data, receives the state of asynchronous and synchronous failure response.
Further, above-mentioned apparatus further include: determining module 412 is synchronized successfully, if the type for transaction data is Simple record deposits card, and current data synchronous regime is third state mark, it is determined that transaction data synchronization success, after carrying out Continuous process of exchange.
Further, above-mentioned to synchronize successfully determining module 412, if the type for being also used to transaction data is non-simple record Card is deposited, and current data synchronous regime is the 5th status indicator, it is determined that transaction data synchronization success, to carry out subsequent transaction mistake Journey.
The synchronizing device of transaction data provided in an embodiment of the present invention, in application system server and distributed account book data During synchronous interaction, current data synchronous regime is arranged based on each step interactive operation, can specify what current data synchronized State, monitors the progress of transaction data synchronization in real time, to improve the synchronous accuracy of data.
Above-mentioned module can be connected to each other or communicate via wired connection or wireless connection.Wired connection may include metal Cable, optical cable, mixing cable etc., or any combination thereof.Wireless connection may include by LAN, WAN, bluetooth, ZigBee or The connection of the forms such as NFC, or any combination thereof.Two or more modules can be combined into individual module, and any one Module is segmented into two or more units.
For ease of understanding, Fig. 5 is shown sets according to the electronics that the application thought may be implemented of some embodiments of the present application Standby 500 example hardware and the schematic diagram of component software.For example, processor 520 can be used on electronic equipment 500, and For executing the function in the application.
Electronic equipment 500 can be the computer of general purpose computer or specific use, both can be used to implement this Shen The synchronous method of transaction data please.The application, for convenience's sake, can be more although illustrating only a computer Function described herein is realized in a distributed way on a similar platform, is loaded with equilibrium treatment.
For example, electronic equipment 500 may include the network port 510 for being connected to network, one for executing program instructions A or multiple processors 520, communication bus 530 and various forms of storage mediums 540, for example, disk, ROM or RAM or its Any combination.Illustratively, computer platform can also include being stored in ROM, RAM or other kinds of non-transitory storage Jie Program instruction in matter or any combination thereof.The present processes may be implemented according to these program instructions.Electronic equipment 500 is also Including input/output (Input/Output, the I/ between computer and other input-output equipment (such as keyboard, display screen) O) interface 550.
For ease of description, a processor is only described in electronic equipment 500.It should be noted, however, that in the application Electronic equipment 500 can also include multiple processors, therefore a processor described in this application execute the step of can also It executes or is individually performed to be combined by multiple processors.For example, if the processor of electronic equipment 500 executes step A and step B, Then it should be understood that step A and step B can also be executed jointly by two different processors or in a processor individually It executes.For example, first processor executes step A, second processor executes step B or first processor and second processor It is common to execute step A and B.
The embodiment of the present application also provides a kind of computer readable storage medium, is stored on the computer readable storage medium Computer program, when which is run by processor the step of the execution such as synchronous method of above-mentioned transaction data.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description With the specific work process of device, the corresponding process in embodiment of the method can be referred to, is repeated no more in the application.In the application In provided several embodiments, it should be understood that disclosed systems, devices and methods, it can be real by another way It is existing.The apparatus embodiments described above are merely exemplary, for example, the division of the module, only a kind of logic function It can divide, there may be another division manner in actual implementation, in another example, multiple module or components can combine or can collect At another system is arrived, or some features can be ignored or not executed.Another point, shown or discussed mutual coupling Conjunction or direct-coupling or communication connection can be the indirect coupling or communication connection by some communication interfaces, device or module, It can be electrical property, mechanical or other forms.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in the executable non-volatile computer-readable storage medium of a processor.Based on this understanding, the application Technical solution substantially the part of the part that contributes to existing technology or the technical solution can be with software in other words The form of product embodies, which is stored in a storage medium, including some instructions use so that One computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment institute of the application State all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk Etc. the various media that can store program code.
In the description of the present application, it should be noted that term " first ", " second ", " third " are used for description purposes only, It is not understood to indicate or imply relative importance.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (10)

1. a kind of synchronous method of transaction data, this method is applied to application system server, which is characterized in that the method packet It includes:
Current transaction data is recorded, sets first state mark for current data synchronous regime;The first state mark is used In the state that characterization transaction data does not keep accounts;
Data write instruction is sent to distributed account book destination node, so as to carry out data synchronous and return to for the destination node One synchronous response, and first state mark is updated to the second status indicator;Second status indicator is handed over for characterizing Easy data have kept accounts, and do not receive the state of synchronous response;
Based on the first synchronous response that the destination node returns, second status indicator is updated.
2. being answered the method according to claim 1, wherein being synchronized in first returned based on the destination node Before the step of answering, updating second status indicator, further includes:
If not receiving first synchronous response that the destination node returns within a preset time, it re-execute the steps: Data write instruction is sent to distributed account book destination node, data are synchronous and return first is same so that the destination node carries out Response is walked, and the current stateful transaction is updated to the second status indicator.
3. the method according to claim 1, wherein based on the destination node return the first synchronous response, The step of updating second status indicator, comprising:
Based on the destination node return the first synchronous response, judge first synchronous response result whether be synchronization at Function;
If it is, second status indicator is updated to third state mark;The third state mark is for characterizing It states transaction data to have kept accounts, receives the state of synchronous successful respond;
If it is not, then second status indicator is updated to the 4th status indicator;4th status indicator is for characterizing institute It states transaction data to have kept accounts, receives the state of synchronization failure response.
4. according to the method described in claim 3, it is characterized in that, second status indicator is updated to third state mark After the step of knowledge, further includes:
It is synchronous that internodal data is carried out in the distributed account book destination node, and after the second synchronous response of asynchronous return, is based on Second synchronous response updates the third state mark.
5. according to the method described in claim 4, it is characterized in that, updating the third shape based on second synchronous response The step of state identifies, comprising:
Whether the result for judging second synchronous response is to synchronize success;
If it is, third state mark is updated to the 5th status indicator;5th status indicator is for characterizing institute It states transaction data to have kept accounts, receives the state of asynchronous and synchronous successful respond;
If it is not, then third state mark is updated to the 6th status indicator;6th status indicator is for characterizing institute It states transaction data to have kept accounts, receives the state of asynchronous and synchronous failure response.
6. according to the method described in claim 3, it is characterized by further comprising:
If the type of the transaction data is that simple record deposits card, and the current data synchronous regime is third state mark Know, it is determined that the transaction data synchronization success, to carry out subsequent transaction process.
7. according to the method described in claim 5, it is characterized by further comprising:
If the type of the transaction data is that non-simple record deposits card, and the current data synchronous regime is the 5th state mark Know, it is determined that the transaction data synchronization success, to carry out subsequent transaction process.
8. a kind of synchronizing device of transaction data, which is applied to application system server, which is characterized in that described device packet It includes:
Data recordin module sets first state mark for current data synchronous regime for recording current transaction data;The One status indicator is for characterizing the state that transaction data does not keep accounts;
Instruction sending module, for distributed account book destination node send data write instruction so that the destination node into Row data are synchronous and return to the first synchronous response, and first state mark is updated to the second status indicator;Second state Mark has kept accounts for characterizing transaction data, does not receive the state of synchronous response;
State update module, the first synchronous response for being returned based on the destination node update second status indicator.
9. a kind of electronic equipment characterized by comprising processor, storage medium and bus, the storage medium storage is The executable machine readable instructions of processor are stated, when electronic equipment operation, are led between the processor and the storage medium Bus communication is crossed, the processor executes the machine readable instructions, executes as described in claim 1 to 7 is any when executing Transaction data synchronous method the step of.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer journey on the computer readable storage medium Sequence executes when the computer program is run by processor such as the synchronous method of the transaction data as described in claim 1 to 7 is any Step.
CN201910332388.8A 2019-04-24 2019-04-24 Synchronous method, device and the electronic equipment of transaction data Pending CN110046199A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910332388.8A CN110046199A (en) 2019-04-24 2019-04-24 Synchronous method, device and the electronic equipment of transaction data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910332388.8A CN110046199A (en) 2019-04-24 2019-04-24 Synchronous method, device and the electronic equipment of transaction data

Publications (1)

Publication Number Publication Date
CN110046199A true CN110046199A (en) 2019-07-23

Family

ID=67278982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910332388.8A Pending CN110046199A (en) 2019-04-24 2019-04-24 Synchronous method, device and the electronic equipment of transaction data

Country Status (1)

Country Link
CN (1) CN110046199A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110930607A (en) * 2019-10-30 2020-03-27 浙江大搜车软件技术有限公司 Transaction result judgment method and device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4432057A (en) * 1981-11-27 1984-02-14 International Business Machines Corporation Method for the dynamic replication of data under distributed system control to control utilization of resources in a multiprocessing, distributed data base system
CN102098342A (en) * 2011-01-31 2011-06-15 华为技术有限公司 Transaction level-based data synchronizing method, device thereof and system thereof
CN107147735A (en) * 2017-05-12 2017-09-08 北京博晨技术有限公司 A kind of distributed account book system based on hierarchy
CN109034769A (en) * 2018-07-03 2018-12-18 中国银行股份有限公司 Transaction data processing method, device, storage medium and electronic equipment
WO2019028130A1 (en) * 2017-08-01 2019-02-07 Salesforce.Com, Inc. High availability database through distributed store
US20190108268A1 (en) * 2017-10-06 2019-04-11 The Boeing Company Distributed data management system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4432057A (en) * 1981-11-27 1984-02-14 International Business Machines Corporation Method for the dynamic replication of data under distributed system control to control utilization of resources in a multiprocessing, distributed data base system
CN102098342A (en) * 2011-01-31 2011-06-15 华为技术有限公司 Transaction level-based data synchronizing method, device thereof and system thereof
CN107147735A (en) * 2017-05-12 2017-09-08 北京博晨技术有限公司 A kind of distributed account book system based on hierarchy
WO2019028130A1 (en) * 2017-08-01 2019-02-07 Salesforce.Com, Inc. High availability database through distributed store
US20190108268A1 (en) * 2017-10-06 2019-04-11 The Boeing Company Distributed data management system and method
CN109034769A (en) * 2018-07-03 2018-12-18 中国银行股份有限公司 Transaction data processing method, device, storage medium and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110930607A (en) * 2019-10-30 2020-03-27 浙江大搜车软件技术有限公司 Transaction result judgment method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110597925B (en) Cross-chain data processing method and device based on block chain
CN105446827B (en) Date storage method and equipment when a kind of database failure
CN105468302B (en) A kind of method, apparatus and system of processing data
CN105808374B (en) A kind of snap processing method and relevant device
CN110363663A (en) Batch data processing method, device, equipment and storage medium based on block chain
CN108696581A (en) Caching method, device, computer equipment and the storage medium of distributed information
CN109656599A (en) The method and system updated for client release
CN110069346A (en) Resource share method, device, electronic equipment between multi-process
CN111431730B (en) Service processing method, system, computer equipment and readable medium
CN106155775A (en) Message treatment method, equipment and system
CN109814917A (en) Micro services dissemination method, device, computer equipment and storage medium
CN106970845A (en) Remote application connection is shared
CN108765083A (en) Routing order configuration and processing method and system
CN110046199A (en) Synchronous method, device and the electronic equipment of transaction data
CN113596107A (en) Data synchronization method and device based on block chain
CN110764911A (en) Resource scheduling method, device and control system based on order
CN110233791A (en) Data duplicate removal method and device
CN107066315B (en) Service calling method and device
CN100502318C (en) Method for detecting compatibility of network element equipment accessing to network management system and network management system
CN115361382A (en) Data processing method, device, equipment and storage medium based on data group
CN109224451A (en) Development of games method, equipment and storage medium based on block chain subchain
CN110266610B (en) Traffic identification method and device and electronic equipment
CN114693131A (en) Fault processing method and device for accessory robot
CN107844492A (en) A kind of method and apparatus for carrying out object order and showing object search
CN106453441B (en) A kind of communication preprocess method and management system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190723