Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for realizing distributed transaction

A distributed transaction and implementation method technology, applied in the field of distributed transaction implementation, to speed up adaptation and reduce the work of developers

Active Publication Date: 2021-07-20
ADVANCED NEW TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In many application scenarios, the specific operations to be performed by a certain branch office may be adjusted as the business status changes. How to flexibly and quickly adapt to business needs has become a challenge for the implementation of distributed transactions

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 and device for realizing distributed transaction
  • Method and device for realizing distributed transaction
  • Method and device for realizing distributed transaction

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] The embodiment of this specification proposes a new implementation method of distributed transactions. Several participants who realize the specific operations of branch transactions use general interfaces to provide services, and use participant identifiers to distinguish participants belonging to the same general interface. The initiator and the transaction manager use the participant ID to call the general interface to enable the participant with the ID to perform the first-phase operation and the second-phase operation of the branch transaction, so that the specific operation of the branch transaction in the distributed transaction can be changed based on the configuration parameters. Instead of writing code and launching new modules, it can match changes in business requirements at a faster speed and reduce the workload of developers.

[0045]In the embodiments of this specification, a general interface is used to access at least two participants, that is, a general...

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

This specification provides a method for implementing distributed transactions, which is applied to branch transaction service providers. The branch transaction service provider provides a common interface for accessing at least two participants, each of which has its own identity. The method includes: publishing branch transaction services for each participant based on the common interface and their respective identifiers; after receiving a one-phase invocation instruction for the general interface from the initiator using a certain participant identifier, the party with the identifier The participant executes the first-stage service according to the one-stage call instruction, and returns the first-stage execution result carrying the participant ID to the initiator; after receiving the second-stage call of the general interface by the transaction manager using a certain participant ID After the instruction, the participant with the identifier executes the second-stage service according to the second-stage call instruction, and returns the second-stage execution result carrying the participant identifier to the transaction manager.

Description

technical field [0001] This description relates to the technical field of network communication, and in particular to a method and device for realizing distributed transactions. Background technique [0002] A transaction refers to a series of operations (branch transactions) performed by a single logical unit of work, either completely executed or not executed at all. Transaction processing can ensure that all branch transactions within the scope of the transaction are all successful, otherwise the data will not be updated. Through transactions, the process of error recovery can be simplified, and the operation of the program can be made more stable and reliable. [0003] When the initiator, participant, and transaction manager of the transaction are located on different system nodes, the transaction is a distributed transaction. A distributed transaction is initiated by the initiator, each branch transaction of the transaction is executed by multiple participants, and th...

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/46G06F9/54
CPCG06F9/466G06F9/542
Inventor 湛滨瑜于君泽
Owner ADVANCED NEW TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products