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

Transaction implementation method and system based on zookeeper

An implementation method and system implementation technology, applied in the field of database transactions, can solve problems such as cumbersome business operations, inconsistent data, inability to apply transaction processing, etc., and achieve the effect of simplifying the business operation process

Pending Publication Date: 2021-06-29
北京思特奇信息技术股份有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in the existing technology, zookeeper cannot be applied to transaction processing. Moreover, due to the inaccurate judgment of nodes during the transaction operation process, data inconsistency may occur, and the problem of data reverse operation needs to be considered, and the business operation is cumbersome.

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
  • Transaction implementation method and system based on zookeeper
  • Transaction implementation method and system based on zookeeper
  • Transaction implementation method and system based on zookeeper

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0023] Below in conjunction with accompanying drawing, the present invention is described in further detail:

[0024] Such as figure 1 and figure 2 As shown, a kind of zookeeper-based transaction implementation method provided according to the present invention includes: zookeeper is encapsulated to form a zookeeperWrapper operation class ...

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 invention discloses a transaction implementation method and system based on zookeeper. The method comprises the following steps: packaging the zookeeper to form a zookeeper Wrapper operation class supporting a transaction, and providing a transaction operation function and a node operation packaging function; starting the transaction by utilizing a beginTransaction function of the transaction operation function; in the transaction processing process, operating the directory nodes according to the cached zookeeper operation list by utilizing a node operation packaging function; using a commit function of the transaction operation function to submit all operations as input parameters to zookeeper; and when the function operation is abnormal, carrying out rollback operation on all operations by utilizing a rollback function of the transaction operation function. By means of the technical scheme, operation based on zookeeper multiple directories is greatly facilitated, data inconsistency is avoided, and the service operation process is simplified.

Description

technical field [0001] The invention relates to the technical field of database affairs, in particular to a zookeeper-based transaction realization method and a zookeeper-based transaction realization system. Background technique [0002] The storage structure of Zookeeper is a directory structure. In order to ensure the consistency of business data, some applications need to simultaneously complete the operations of multiple zookeeper directories in one atomic operation. [0003] In Zookeeper's client API Curator package, a packaging function is provided. In one call, the modification of multiple directories can be submitted at the same time, and it is guaranteed to be atomic. [0004] However, in the prior art, zookeeper cannot be applied to transaction processing. Moreover, due to inaccurate judgment of nodes during the transaction operation process, data inconsistency may occur, and the problem of data reverse operation needs to be considered, and business operations ar...

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 Applications(China)
IPC IPC(8): G06F9/46G06F16/21
CPCG06F9/466G06F16/21
Inventor 鹿国照
Owner 北京思特奇信息技术股份有限公司
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