WO2019100598A1 - Procédé et dispositif de traitement de transaction, équipement informatique et support de stockage - Google Patents

Procédé et dispositif de traitement de transaction, équipement informatique et support de stockage Download PDF

Info

Publication number
WO2019100598A1
WO2019100598A1 PCT/CN2018/075501 CN2018075501W WO2019100598A1 WO 2019100598 A1 WO2019100598 A1 WO 2019100598A1 CN 2018075501 W CN2018075501 W CN 2018075501W WO 2019100598 A1 WO2019100598 A1 WO 2019100598A1
Authority
WO
WIPO (PCT)
Prior art keywords
transaction
node
current
transaction node
preliminary
Prior art date
Application number
PCT/CN2018/075501
Other languages
English (en)
Chinese (zh)
Inventor
刘雄文
Original Assignee
深圳壹账通智能科技有限公司
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 深圳壹账通智能科技有限公司 filed Critical 深圳壹账通智能科技有限公司
Publication of WO2019100598A1 publication Critical patent/WO2019100598A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/388Payment protocols; Details thereof using mutual authentication without cards, e.g. challenge-response

Definitions

  • the present application relates to a transaction processing method, apparatus, computer device, and storage medium.
  • a blockchain or a distributed trading system based on the PaxOS algorithm multiple trading nodes are required to participate in the transaction, and a consensus is reached based on a certain processing strategy.
  • the system needs to know which trading nodes. Available, the currently solution is to initiate a transaction between the trading nodes to monitor and synchronize data and to elect a leader of the trading node from the trading node during the transaction.
  • a transaction processing method, apparatus, computer device, and storage medium are provided.
  • a transaction processing method including:
  • a blockchain transaction processing device comprising:
  • a transaction request communication module configured to receive a transaction request, and acquire a current transaction node, and send the transaction request to the current transaction node, so that the current transaction node processes the transaction request;
  • a node parameter communication module configured to receive, when the current transaction node fails, a parameter of the switched transaction node that is switched after the current transaction node is in the same cluster
  • a replacement module configured to replace parameters of the current trading node with parameters of the switched trading node
  • a processing module configured to receive a preliminary transaction processing result returned by the switched transaction node, and calculate a target transaction processing result according to the preliminary transaction processing result.
  • a computer device comprising a memory and one or more processors having stored therein computer readable instructions, the computer readable instructions being executable by the processor to cause the one or more processors to execute The following steps: receiving a transaction request, and acquiring a current transaction node, sending the transaction request to the current transaction node, so that the current transaction node processes the transaction request; receiving a failure at the current transaction node And a parameter of the switched transaction node that is switched in the same cluster as the current transaction node;
  • One or more non-transitory computer readable instruction storage media storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the steps of:
  • FIG. 1 is an application environment diagram of a transaction processing method in accordance with one or more embodiments.
  • FIG. 2 is a flow diagram of a transaction processing method in accordance with one or more embodiments.
  • FIG. 3 is a block diagram of a blockchain transaction device in accordance with one or more embodiments.
  • FIG. 4 is a block diagram of a computer system in accordance with one or more embodiments.
  • FIG. 1 is an application environment diagram of a transaction processing method in an embodiment.
  • FIG. 1 shows a transaction server, a transaction node, and a sorting server, wherein the transaction nodes may exist in a cluster manner.
  • the transaction processing method can be applied to a blockchain or a distributed transaction system implemented based on a PaxOS algorithm.
  • the transaction server may store a configuration file or a database corresponding to the transaction server, where the configuration file or the database stores the IP address and port of the transaction node, the event address and port of the transaction node.
  • a nominal channel can be established based on the configuration file or database.
  • the channel contains all available trading nodes.
  • the trading server can accept the registration of new trading nodes in the channel, the logout of the original trading node, and the change of the attributes of the original trading node.
  • the change of the attribute of the original transaction node includes two ways: one is that the current transaction node in the transaction node cluster is faulty, and the transaction is continued by the replacement transaction node.
  • the trading node continues to work, only the address and port of the event change. The other is that the current trading node itself is down or the trading process of the current trading node is aborted or the storage process of the current trading node is aborted. In this case, the current trading node is no longer involved in subsequent transactions.
  • the transaction server may also register a transaction processing event with each available transaction node, receive an event notification after completion of each transaction node transaction, that is, receive the preliminary transaction processing result returned by each transaction node, and summarize the preliminary transaction processing result.
  • the target processing result is obtained, and the target processing result is stored to the sorting server.
  • the transaction server can achieve load balancing on a cluster basis, improving availability and efficiency.
  • the trading node is a data result function with calculation function and storage calculation, and each transaction node joins the trust verification of the transaction server.
  • Each transaction node exists as a master-slave node or a cluster of nodes.
  • the parameters may include the starting position of the data and the length of the data, and then the sorting server submits the data to the current node of the trading node. After the submission is completed, the trading node will sort the target transaction returned by the server. The results are stored in their own data storage device.
  • the trading node Before the trading process of the trading node is aborted, the trading node can send an event message to the trading server, and the trading server can update the configuration file or the database.
  • trading nodes can achieve load balancing on the basis of clusters, improving availability and efficiency.
  • the sorting server can receive the target transaction result of the transaction server, and sort and store the target transaction result in chronological order, so that when receiving the data acquisition request of the transaction node, the sorting server can return the correct target transaction result to the corresponding Trading node.
  • the sorting server can provide services out of data synchronization between the cluster and the cluster, providing data persistence and high throughput performance.
  • a transaction processing method is provided. This embodiment is exemplified by applying the method to the transaction server in FIG. 1 described above. The method specifically includes the following steps:
  • S202 Receive a transaction request, and acquire a current transaction node, and send the transaction request to the current transaction node, so that the current transaction node processes the transaction request.
  • the transaction server can verify the transaction request after receiving the external transaction request, for example, the transaction server pre-arranges the encryption and decryption method and algorithm, the signing and verification method and the algorithm, and the like, and receives the transaction request at the transaction server.
  • the verification is first performed according to the pre-agreed verification method, and then the decryption is performed according to a predetermined decryption method to obtain transaction data and the like.
  • the transaction server obtains the current transaction node, which may be a transaction server query configuration file or a database, etc., wherein the transaction server may establish a channel in the configuration file or the database, and the channel may be associated with the transaction type, so that the transaction server may be based on the configuration file or the database.
  • the attribute of the transaction node stored in the middle is acquired to the current transaction node, and the transaction request is sent to the current transaction node.
  • the transaction server may encrypt the decrypted transaction data, generate a corresponding transaction identifier, and then send the transaction identifier and the transaction data to the corresponding current transaction node, wherein the transaction identifier is an identifier that can uniquely determine the transaction. .
  • the transaction server may also prioritize changes to the configuration file or the database. For example, the configuration file or the database change caused by the change of the transaction node attribute has the highest priority, and the change of the configuration file or the database caused by the transaction node logout is prioritized. Secondly, the configuration file caused by the registration of the transaction node has the lowest priority, the same priority is queued in the manner of queue, and the update of the configuration file or database can only be performed by the transaction server. And the transaction server can establish the concept of the channel, the channel contains the available transaction nodes, and the channel can be associated with the transaction type.
  • the attributes of each transaction node include the identifier of the transaction node, which can be the number of the transaction node, and the execution of the transaction node.
  • the IP address and port of the transaction, the event address and port of the event registration for each trading node may be the same, and the ports may be different.
  • the properties of the trading node are recorded in the configuration file or database.
  • the transaction request is processed to generate a preliminary transaction processing result.
  • the current transaction node may, after obtaining the transaction request, perform verification and decryption on the transaction request to obtain the transaction identifier and the transaction data, and process the transaction data to obtain a preliminary transaction processing result, and the preliminary transaction is obtained.
  • the processing result is returned to the trading server.
  • S204 Receive parameters of the switched transaction node that is in the same cluster as the current transaction node when the current transaction node fails.
  • the transaction node cluster can replace the current transaction node with another non-failed transaction node in the cluster, so that the transaction can continue, and since all transaction nodes in the transaction node cluster share storage Space, so that the switched trading node can continue to process the current transaction request from the location where the current trading node fails, without reprocessing, which can save a lot of processing time.
  • the transaction node cluster sends the parameters of the switched transaction node to the transaction server, so that the transaction server can change the content in the configuration file or the database, so that the transaction service can be understood in real time. To the case where the properties of the trading node change.
  • the transaction server may first perform event registration to each currently available transaction node and perform RPC (remote procedure call) of the event; when the attribute of the transaction node changes, the transaction server may receive the event message and receive the message.
  • the mode can be asynchronous non-blocking, that is, the transaction server can still continue other event processing.
  • the return of the initial transaction processing result of the transaction node is also returned to the transaction server by means of the event message. Therefore, when the transaction server receives the event message, it may first determine that the event message is a normal transaction node to complete the transaction execution according to the type of the event message.
  • the event notification is also a failure of the transaction node itself, that is, an event message in which the transaction node itself changes.
  • the event message is a message that the transaction node itself is faulty
  • S206 The transaction server replaces the parameter of the current transaction node with the parameter of the switched transaction node.
  • the signature of the message of the event message is first validated. If it is valid, it is determined whether the IP address or port of the transaction node, or the event address or port is changed. , the configuration file or database will be updated. If not, that is, the message event is the status and execution result of the transaction node, the configuration file or database will not be updated, and the preliminary transaction processing result returned by the transaction node is saved.
  • S208 Receive a preliminary transaction processing result returned by the switched transaction node, and calculate a target transaction processing result according to the preliminary transaction processing result.
  • the transaction server stores according to the transaction identifier, and after all the transaction nodes or a preset number of transaction nodes return the preliminary transaction processing result, the target can be obtained according to the preset processing strategy.
  • Transaction processing results The transaction server controls the execution of the transaction, and ensures the consistency of the transaction result based on the processing strategy.
  • the transaction node is mainly used to complete the execution of the transaction and store the consistency processing result of the transaction, and the transaction node is related to the transaction before executing the transaction.
  • the parameters are initialized, and the sorting server sorts and stores the consistent results after the transaction, and provides the consistent result data of the transaction according to the request of the transaction node.
  • the transaction processing method if the current transaction node fails, directly switches to another transaction node in the same cluster as the current transaction node to continue processing the transaction request, and sends the parameter of the switched transaction node to the transaction server, so that the transaction server The transaction node after the switch is clearly understood, so that the transaction server can normally receive the initial transaction processing result returned by the transaction node, and does not need to monitor each transaction node in real time, thereby saving system resources and improving system performance.
  • the transaction processing method further includes: if the transaction node in the cluster corresponding to the current transaction node fails, receiving the transaction node failure information returned by the current transaction node; and the current transaction according to the information of the transaction node failure The node marks; if the current transaction node is processing the transaction request, the preliminary transaction processing result corresponding to the current transaction node is marked as a transaction failure.
  • the change of the transaction node includes three types, one is the registration of the transaction node, that is, the new transaction node is added to the system, and the other is the cancellation of the transaction node, that is, the existing transaction node exits the system, and one The change of the attributes of the transaction node, wherein the registration of the transaction node and the cancellation of the transaction node are performed by the transaction node actively sending a message to the transaction server, and the transaction server listens for and receives the message, and the transaction node attribute changes by the transaction.
  • the server first registers the event with the available trading node, and then when the transaction node property changes, the transaction server receives the event message of the change, and the message is signed by the transaction node and checked by the transaction server, and the signature verification is passed. Processing, and the processing results need to be confirmed by the transaction server to take effect.
  • the change of the attributes of the transaction node includes the change of the address and port of the transaction node, the event address and the port, and the change of the transaction process, the suspension of the storage process or the change of the transaction node itself. These three changes will lead to the connection. Errors, and these three errors indicate that the trading nodes in the cluster corresponding to the current trading node have failed. When the transaction server receives these three types of errors, the current trading node is directly marked, that is, marked as unavailable. So that the trading node will no longer be used later.
  • the transaction node when the transaction nodes in the cluster corresponding to the current transaction node all fail, the transaction node is marked, so that the transaction node is no longer used, and if the current transaction node is processing the transaction request, the token is directly marked.
  • the preliminary transaction processing result of this transaction corresponding to the current trading node is the transaction failure, which lays a foundation for the subsequent calculation of the target transaction result.
  • the transaction processing method may further include: if receiving the information of the current transaction node cancellation, determining whether the current transaction node is processing the transaction request; if the current transaction node is processing the transaction request, the asynchronous non-blocking After the mode continues to wait for the preliminary transaction processing result returned by the current trading node, the parameters of the current trading node are deleted.
  • the transaction processing method may further include: if the registration information of the new transaction node is received, verifying the registration information; and when the verification is passed, adding the parameters of the new transaction node.
  • the transaction server when the transaction server receives the information of the transaction node cancellation, it first determines whether the current transaction node is processing the transaction request, and if so, the transaction server continues to wait for the current transaction node to return the preliminary transaction processing result through the asynchronous non-blocking mode, and then The parameters of the current trading node are deleted, so that the cancellation of the current trading node can be completed without affecting the transaction request being processed by the current trading node.
  • the transaction server When the transaction server receives the registration information of the transaction node, it will perform verification to prevent the criminals from obtaining the transaction information by registering the transaction node.
  • the CA server can be introduced, and the CA server delivers the transaction server to the secure transaction node.
  • the key or the certificate, the transaction node encrypts the registration information by the key, and when the transaction server receives the registration information of the transaction node, the transaction server first decrypts, and only after the decryption is passed, the transaction server completes the registration of the new transaction node according to the registration information.
  • the transaction server when the transaction server processes the transaction, it performs different processing according to the dynamic change of the transaction node and the processing strategy.
  • the dynamic change of the transaction node occurs before the execution of the transaction, and the latest update is obtained because the configuration file or the database is updated.
  • the node information is traded so that the transaction request is sent to the available trading nodes for execution and the preliminary transaction processing results are obtained.
  • the dynamic change of the trading node occurs in the execution of the transaction, there are two cases. One is that the transaction server has sent the transaction request to all available trading nodes, and the other is that the transaction server is sending the transaction request. The end of the transaction has not been completely sent, and it is possible to decide whether to terminate the processing of the transaction request according to the processing strategy.
  • the dynamic change of the trading node occurs after the execution of the transaction, and will not affect and change the current transaction processing result.
  • the step of calculating the target transaction processing result according to the preliminary transaction processing result may include: determining whether the preliminary transaction processing result fed back by the current transaction node participating in the transaction indicates whether the number of successful transactions is greater than or equal to a preset value; If the number of successful preliminary transaction processing results is greater than or equal to the preset value, the target transaction result indicates that the transaction is successful; when the number of preliminary transaction processing results indicating that the transaction is successful is less than the preset value, the target transaction result indicates that the transaction has failed.
  • the transaction server After receiving the preliminary transaction processing result fed back by the transaction node, the transaction server queries the number of successful transaction results and obtains the target transaction result according to the transaction strategy.
  • the target transaction result is the transaction success. If there is a transaction node whose initial transaction processing result indicates that the transaction is unsuccessful, the target transaction result is obtained. It is a transaction failure. Under this trading strategy, the trading server queries the preliminary transaction processing result returned by the trading node, and when all the preliminary transaction processing results indicate that the transaction is successful, the target transaction result indicating that the transaction is successful is output, when there is a preliminary transaction processing result When the transaction is failed, the result of the target transaction indicating that the transaction failed is output.
  • the target trading result is the transaction success, if there is no preliminary transaction processing of n/2+1 trading nodes The result indicates success, then the target transaction result is a transaction failure, where n is the number of trading nodes.
  • the transaction server queries the preliminary transaction processing result returned by the trading node, and when at least n/2+1 preliminary transaction processing results indicate that the transaction is successful, the target transaction result indicating that the transaction is successful is output, when not When there are at least n/2+1 preliminary transaction processing results indicating that the transaction is successful, a target transaction result indicating that the transaction failed is output.
  • the transaction server obtains the target transaction result according to the preliminary transaction processing result returned by the transaction node, instead of relying on only one transaction node for processing, or the transaction nodes communicate with each other to obtain the target transaction result, and the processing procedure is simple and the result is reliable.
  • the transaction processing method may further include: the transaction server sends the target transaction result to the sorting server to cause the sorting server to sort the target transaction result in a preset order, and receive the data acquisition request of the current transaction node. And returning the target transaction result corresponding to the transaction request to the current transaction node according to the data acquisition request.
  • the transaction server sends the target transaction result to the sorting server for saving.
  • the sorting server sorts the target transaction results according to preset criteria, for example, it can be sorted and saved in chronological order.
  • the sorting server receives a data acquisition request of the current transaction node, where the data acquisition request includes a starting position of the data and a length of the data, and then the sorting server acquires the corresponding data according to the data obtaining request, and returns the data to the transaction node. Storage is fine.
  • the transaction node, the transaction server and the sorting server are designed and implemented based on secure communication, including encryption of sensitive data before sending, signing of general messages and event messages, and checking and decrypting when receiving messages. To obtain the message, it is also possible to secure the transport layer based on the secure transport protocol. And the flotation server design and implementation support a large number of trading nodes, can communicate with a large number of trading nodes and data transmission, data is stored persistently, using kafka cluster to achieve.
  • the large load amount of mutual monitoring and data synchronization between the transaction nodes is avoided, the transaction availability is reduced and the system performance is greatly reduced, the transaction server controls the execution of the transaction, and the transaction is guaranteed based on the processing strategy.
  • the consistency of the results; the trading node is mainly used to complete the execution of the transaction and store the consistent result of the transaction, the transaction node initializes the transaction-related data before executing the transaction; the sorting server sorts the consistency result after the transaction and Store and provide consistent result data for the transaction as required by the trading node.
  • steps in the flowchart of FIG. 2 are sequentially displayed as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Except as explicitly stated herein, the execution of these steps is not strictly limited, and the steps may be performed in other orders. Moreover, at least some of the steps in FIG. 2 may include a plurality of sub-steps or stages, which are not necessarily performed at the same time, but may be executed at different times, the execution of these sub-steps or stages The order is also not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of the other steps.
  • FIG. 3 is a schematic diagram of a blockchain transaction processing apparatus in accordance with one or more embodiments, the apparatus comprising:
  • the transaction request communication module 100 is configured to receive a transaction request, acquire a current transaction node, and send the transaction request to the current transaction node, so that the current transaction node processes the transaction request.
  • the transaction parameter communication module 200 is configured to receive a parameter of the switched transaction node that is in the same cluster as the current transaction node when the current transaction node fails.
  • the replacement module 300 is configured to replace the parameter of the current transaction node with the parameter of the switched transaction node.
  • the processing module 400 is configured to receive a preliminary transaction processing result returned by the switched transaction node, and calculate a target transaction processing result according to the preliminary transaction processing result.
  • the apparatus may further include a fault receiving module, configured to receive the transaction node fault information returned by the current transaction node when the transaction node in the cluster corresponding to the current transaction node fails.
  • a marking module configured to mark the current trading node according to the information of the trading node failure; and if the current trading node is processing the transaction request, mark the preliminary transaction processing result corresponding to the current trading node as a transaction failure.
  • the apparatus may further include a logout module, configured to determine, when receiving the information of the current transaction node logout, whether the current transaction node is processing the transaction request; if the current transaction node is processing the transaction request, The non-blocking mode continues to wait for the preliminary transaction processing result returned by the current trading node, and then deletes the parameters of the current trading node.
  • a logout module configured to determine, when receiving the information of the current transaction node logout, whether the current transaction node is processing the transaction request; if the current transaction node is processing the transaction request, The non-blocking mode continues to wait for the preliminary transaction processing result returned by the current trading node, and then deletes the parameters of the current trading node.
  • the apparatus may further include a registration module for verifying the registration information upon receiving the registration information of the new transaction node; and adding the parameters of the new transaction node when the verification is passed.
  • the processing module is further configured to determine whether the preliminary transaction processing result fed back by the current transaction node participating in the transaction indicates whether the number of successful transactions is greater than or equal to a preset value; and the number of preliminary transaction processing results indicating that the transaction is successful When the value is greater than or equal to the preset value, the target transaction result indicates that the transaction is successful; when the number of preliminary transaction processing results indicating that the transaction is successful is less than the preset value, the target transaction result indicates that the transaction has failed.
  • the apparatus further includes a sorting module, configured to send the target transaction result to the sorting server, so that the sorting server sorts the target transaction result in a preset order, and receives the data acquisition request of the current transaction node. Thereafter, the target transaction result corresponding to the transaction request is returned to the current trading node according to the data acquisition request.
  • a sorting module configured to send the target transaction result to the sorting server, so that the sorting server sorts the target transaction result in a preset order, and receives the data acquisition request of the current transaction node. Thereafter, the target transaction result corresponding to the transaction request is returned to the current trading node according to the data acquisition request.
  • Each of the above blockchain transaction processing devices may be implemented in whole or in part by software, hardware, and combinations thereof.
  • Each of the above modules may be embedded in or independent of the processor in the computer device, or may be stored in a memory in the computer device in a software form, so that the processor invokes the operations corresponding to the above modules.
  • a computer device which may be a server or a terminal.
  • the computer device is a server, such as a transaction server, its internal structure diagram can be as shown in FIG.
  • the computer device includes a processor, memory, and network interface coupled by a system bus.
  • the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-transitory computer readable instruction storage medium, an internal memory.
  • the non-transitory computer readable instruction storage medium stores an operating system and computer readable instructions.
  • the internal memory provides an environment for the operation of an operating system and computer readable instructions in a non-transitory computer readable instruction storage medium.
  • the network interface of the computer device is used to communicate with an external terminal via a network connection.
  • the computer readable instructions are executed by a processor to implement a transaction processing method.
  • FIG. 4 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device to which the solution of the present application is applied.
  • the specific computer device may It includes more or fewer components than those shown in the figures, or some components are combined, or have different component arrangements.
  • a computer device comprising a memory and one or more processors, the memory storing computer readable instructions, the computer readable instructions being executed by the processor, causing the one or more processors to perform the steps of: receiving a transaction request, And acquiring the current transaction node, sending the transaction request to the current transaction node, so that the current transaction node processes the transaction request; receiving the switched transaction after the current transaction node fails, and the switched transaction is in the same cluster as the current transaction node.
  • the parameter of the node; the parameter of the current transaction node is replaced with the parameter of the switched transaction node; the preliminary transaction processing result returned by the switched transaction node is received, and the target transaction processing result is calculated according to the preliminary transaction processing result.
  • the processor may also implement the following steps when executing the computer readable instructions:
  • the information transaction server that returns the transaction node failure to the transaction server receives the transaction node failure information returned by the current transaction node; the transaction server according to the transaction node failure information The current transaction node is marked; if the current transaction node is processing the transaction request, the transaction server marks the preliminary transaction processing result corresponding to the current transaction node as a transaction failure.
  • the processor may further implement the following steps: when receiving the information of the current transaction node logout, determining whether the current transaction node is processing the transaction request; if the current transaction node is processing the transaction The request deletes the parameters of the current transaction node after waiting for the preliminary transaction processing result returned by the current transaction node through the asynchronous non-blocking mode.
  • the processor may further implement the following steps when executing the computer readable instructions: verifying the registration information when the registration information of the new transaction node is received; adding a new transaction when the verification is passed The parameters of the node.
  • the processor may further implement the following steps when determining that the current transaction processing feedback of the current transaction node participating in the transaction indicates whether the number of successful transactions is greater than or equal to a preset value; If the number of successful preliminary transaction processing results is greater than or equal to the preset value, the target transaction result indicates that the transaction is successful; when the number of preliminary transaction processing results indicating that the transaction is successful is less than the preset value, the target transaction result indicates that the transaction has failed.
  • the processor may further implement the steps of: sending the target transaction result to the sorting server to cause the sorting server to sort the target transaction result in a preset order and receiving the current trading node when executing the computer readable instructions After the data acquisition request, the target transaction result corresponding to the transaction request is returned to the current transaction node according to the data acquisition request.
  • One or more non-volatile storage media storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the steps of: receiving a transaction request, and obtaining The current trading node sends the transaction request to the current trading node to cause the current trading node to process the transaction request; and receives the parameter of the switched trading node that is switched in the same cluster as the current trading node when the current trading node fails.
  • the parameter of the current transaction node is replaced with the parameter of the switched transaction node; the preliminary transaction processing result returned by the switched transaction node is received, and the target transaction processing result is calculated according to the preliminary transaction processing result.
  • the following steps may be further implemented: if the transaction nodes in the cluster corresponding to the current transaction node both fail, receiving the transaction node failure returned by the current transaction node Information; the current transaction node is marked according to the information of the transaction node failure; if the current transaction node is processing the transaction request, the preliminary transaction processing result corresponding to the current transaction node is marked as a transaction failure.
  • the following steps may be further implemented: if receiving the information of the current transaction node cancellation, determining whether the current transaction node is processing the transaction request; if the current transaction node is processing the transaction The request deletes the parameters of the current transaction node after waiting for the preliminary transaction processing result returned by the current transaction node through the asynchronous non-blocking mode.
  • the following steps may be further implemented: if the registration information of the new transaction node is received, the registration information is verified; when the verification is passed, a new one is added. The parameters of the trading node.
  • the step of calculating the target transaction processing result according to the preliminary transaction processing result implemented by the processor when the computer readable instruction is executed by the processor may include: determining that the preliminary transaction processing result fed back by the current transaction node participating in the transaction indicates the transaction Whether the number of success is greater than or equal to the preset value; when the number of preliminary transaction processing results indicating that the transaction is successful is greater than or equal to the preset value, the target transaction result indicates that the transaction is successful; when the number of preliminary transaction processing results indicating that the transaction is successful is less than the preset When the value is, the target transaction result indicates that the transaction failed.
  • the computer readable instructions when executed by the processor may further implement the steps of: transmitting the target transaction result to the sorting server to cause the sorting server to sort the target transaction results in a preset order, and receiving the current transaction After the data acquisition request of the node, the target transaction result corresponding to the transaction request is returned to the current transaction node according to the data acquisition request.
  • Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM is available in a variety of formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization chain.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • Synchlink DRAM SLDRAM
  • Memory Bus Radbus
  • RDRAM Direct RAM
  • DRAM Direct Memory Bus Dynamic RAM
  • RDRAM Memory Bus Dynamic RAM

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer And Data Communications (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

L'invention concerne un procédé de traitement de transaction consistant à : recevoir une demande de transaction, acquérir un nœud de transaction actuel et transmettre la demande de transaction au nœud de transaction actuel en vue d'un traitement ; en cas de commutation vers un nœud de transaction alternatif dans le même groupe que le nœud de transaction actuel suite à l'occurrence d'une défaillance dans le nœud de transaction actuel, recevoir un paramètre du nœud de transaction alternatif ; remplacer un paramètre du nœud de transaction actuel par le paramètre du nœud de transaction alternatif ; et recevoir, par le biais d'un serveur de transaction, un résultat de traitement de transaction préliminaire renvoyé par le nœud de transaction alternatif, puis effectuer, selon le résultat de traitement de transaction préliminaire, un calcul afin d'obtenir un résultat de traitement de transaction cible.
PCT/CN2018/075501 2017-11-23 2018-02-06 Procédé et dispositif de traitement de transaction, équipement informatique et support de stockage WO2019100598A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711180752.0A CN107886328B (zh) 2017-11-23 2017-11-23 交易处理方法、装置、计算机设备及存储介质
CN201711180752.0 2017-11-23

Publications (1)

Publication Number Publication Date
WO2019100598A1 true WO2019100598A1 (fr) 2019-05-31

Family

ID=61774690

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/075501 WO2019100598A1 (fr) 2017-11-23 2018-02-06 Procédé et dispositif de traitement de transaction, équipement informatique et support de stockage

Country Status (2)

Country Link
CN (1) CN107886328B (fr)
WO (1) WO2019100598A1 (fr)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108615195B (zh) * 2018-04-28 2021-12-07 腾讯科技(深圳)有限公司 资源转移信息的传输方法和装置、存储介质、电子装置
CN108830710B (zh) * 2018-05-02 2021-02-05 大国创新智能科技(东莞)有限公司 区块链交易平台及实现方法
CN108600383B (zh) * 2018-05-02 2022-08-19 大国创新智能科技(东莞)有限公司 区块链机器人系统及实现方法
CN108848054B (zh) * 2018-05-03 2021-01-15 京信通信系统(中国)有限公司 网络设备注册方法、装置、计算机设备和存储介质
CN108960822B (zh) * 2018-06-13 2021-04-27 创新先进技术有限公司 一种基于区块链的可用资源配额的兑换方法及装置
CN108920278B (zh) * 2018-07-02 2021-12-24 中国建设银行股份有限公司 资源分配方法及装置
CN110633804B (zh) * 2019-09-12 2022-06-24 简链科技(广东)有限公司 金融产品进件评价方法、服务器和存储介质
CN110852744A (zh) * 2019-10-08 2020-02-28 深圳汇商通盈科技有限公司 一种切换交易通道的方法、装置、终端设备及介质
CN115511486A (zh) * 2021-06-07 2022-12-23 腾讯科技(深圳)有限公司 交易处理方法、装置、介质及电子设备
CN114119241A (zh) * 2022-01-27 2022-03-01 通联支付网络服务股份有限公司 渠道交易系统
CN115271736B (zh) * 2022-07-11 2023-06-16 中电金信软件有限公司 验证事务一致性的方法、装置、设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101523355A (zh) * 2006-08-04 2009-09-02 多伦多证券交易所 故障切换系统和方法
CN101556679A (zh) * 2009-05-21 2009-10-14 中国建设银行股份有限公司 一种综合前端系统故障处理方法及计算机设备
US20120136778A1 (en) * 2009-02-05 2012-05-31 Oracle International Corporation Replicating data in financial systems
CN106970934A (zh) * 2017-01-16 2017-07-21 平安银行股份有限公司 交易处理控制方法及系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101986272A (zh) * 2010-11-05 2011-03-16 北京大学 一种云计算环境下的任务调度方法
CN105933391B (zh) * 2016-04-11 2019-06-21 聚好看科技股份有限公司 一种节点扩容方法、装置及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101523355A (zh) * 2006-08-04 2009-09-02 多伦多证券交易所 故障切换系统和方法
US20120136778A1 (en) * 2009-02-05 2012-05-31 Oracle International Corporation Replicating data in financial systems
CN101556679A (zh) * 2009-05-21 2009-10-14 中国建设银行股份有限公司 一种综合前端系统故障处理方法及计算机设备
CN106970934A (zh) * 2017-01-16 2017-07-21 平安银行股份有限公司 交易处理控制方法及系统

Also Published As

Publication number Publication date
CN107886328B (zh) 2021-01-26
CN107886328A (zh) 2018-04-06

Similar Documents

Publication Publication Date Title
WO2019100598A1 (fr) Procédé et dispositif de traitement de transaction, équipement informatique et support de stockage
US11496577B2 (en) Broker-based bus protocol and multi-client architecture
WO2019100597A1 (fr) Procédé et dispositif de traitement de données de transaction, équipement informatique et support de stockage
US10742395B2 (en) Hardware blockchain acceleration
WO2019119929A1 (fr) Procédé, appareil et système de consensus de chaîne de blocs, et procédé et appareil de traitement d'informations d'identification
US11057504B2 (en) System and method for ending view change protocol
US20210165891A1 (en) Systems and methods for providing multi-node resiliency for blockchain peers
WO2020216280A1 (fr) Procédés de traitement de blocs, nœud et système
WO2020125389A1 (fr) Procédé, appareil d'acquisition de fichier d'image, dispositif informatique et support de stockage
CN111343277B (zh) 分布式数据存储方法、系统、计算机设备和存储介质
US11917018B2 (en) Broker-based bus protocol and multi-client architecture
CN112929225B (zh) 会话异常处理方法、装置、计算机设备和存储介质
EP3850483A1 (fr) Système informatique distribué comportant des entités non fiables, procédé et appareil permettant des exécutions coordonnées d'actions
US20230128131A1 (en) Protecting Application Private Keys with Remote and Local Security Controllers and Local MPC Key Generation
JP2018014049A (ja) 情報処理システム、情報処理装置、情報処理方法及びプログラム
WO2020233086A1 (fr) Procédé et appareil de traitement de blocs, dispositif informatique et support de stockage
WO2019100596A1 (fr) Procédé et système d'exploitation d'un système distribué
US11050798B2 (en) Methods for establishing peer-to-peer communications using distributed call ledgers
US9154548B2 (en) Auditable distribution of a data file
CN112468453A (zh) 多协议设备的接入方法、系统、电子设备及存储介质
WO2020037607A1 (fr) Procédé et appareil de transmission de données
EP2739010B1 (fr) Procédé permettant d'améliorer la fiabilité de systèmes informatiques distribués basé sur une architecture orientée services
CN114338056B (zh) 基于云分发的网络访问方法及其系统、介质、设备
US11463422B1 (en) Decoupling secure communication sessions from transport mechanisms
US20230188597A1 (en) Systems and Methods for Establishing Consensus in Distributed Communications

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18880999

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22.09.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18880999

Country of ref document: EP

Kind code of ref document: A1