Unlock instant, AI-driven research and patent intelligence for your innovation.

Method, related equipment and system for processing transactions in a distributed system

A distributed system and transaction processing technology, which is applied in the direction of transmission system, transaction processing, multi-program device, etc., can solve problems such as writing conflicts, complex transaction logic implementation, and large communication overhead, and achieve the effect of avoiding conflicts

Active Publication Date: 2017-12-12
HUAWEI CLOUD COMPUTING TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] However, in the above-mentioned prior art, the introduction of third-party distributed locks in the first implementation of transaction operations has the following defects: the implementation of transaction logic is complex, and distributed lock facilities need to be deployed. For example, zookeeper requires at least 3 nodes in theory. , and it is not suitable for scenarios where small data is frequently operated, and the communication overhead increased for lock operations is relatively large; in the second implementation of transaction operations, in scenarios with high data volumes in large-scale distributed systems, multiple clients may write have the same version number, causing write conflicts

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, related equipment and system for processing transactions in a distributed system
  • Method, related equipment and system for processing transactions in a distributed system
  • Method, related equipment and system for processing transactions in a distributed system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] Embodiments of the present invention provide a transaction processing method in a distributed system, related equipment and a system, which are used to execute user-defined transaction execution functions to process transactions and avoid conflicts when clients process concurrent transactions. Detailed descriptions are given below respectively. The distributed system in the embodiment of the present invention takes the K-V distributed system as an example, and is also applicable to other distributed systems with the same or similar functions.

[0022] see figure 1 , an embodiment of a method for processing transactions in a distributed system in an embodiment of the present invention includes:

[0023] 101. The client sends a request for registering the user-defined function to the server of the distributed system, and the request is used to request the server to register the user-defined function;

[0024] The client calls the registration interface to send a request...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a transaction processing method in a distributed system, related equipment and a system, which are used to execute a user-defined transaction execution function to process transactions and avoid conflicts generated by clients when processing concurrent transactions. The method in the embodiment of the present invention includes: the client sends a request for registering a user-defined function to the server of the distributed system, requests the server to register the user-defined function, and the user-defined function is used to process the pointed transaction, when the user-defined When the function registration is successful, call the user-defined function to process the pointed transaction.

Description

technical field [0001] The present invention relates to the communication field, in particular to a method for processing transactions in a distributed system, related equipment and a system. Background technique [0002] With the introduction of Distributed Hash Table (DHT, Distributed Hash Table) technology, a large number of commercially available key-value (K-V, Key-Value) distributed storage systems have emerged, such as Cassandra and memcached. Without the ability to provide transactions, it is very difficult for customers to implement transaction operations. Therefore, transaction operations are very necessary in business development. [0003] In the prior art, there are mainly two ways to implement transaction operations: [0004] The first method: In traditional non-distributed systems, lock mechanisms are used to solve transaction problems in concurrent scenarios. In distributed systems, there are solutions for distributed locks, which provide transaction control ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/46H04L29/06
CPCG06F9/466
Inventor 张克星刘文宇
Owner HUAWEI CLOUD COMPUTING TECH CO LTD