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

Database transaction processing method and device based on message queue

A message queue and transaction processing technology, which is applied in the field of database transaction processing based on message queues, can solve problems such as high fault tolerance requirements, high performance requirements, and execution failures, so as to save system resources, save system resources, and ensure accuracy Effect

Active Publication Date: 2016-04-20
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF9 Cites 42 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] 1. The existing method requires the transaction coordinator to actively confirm the status of each transaction executor, so it involves multiple network communications between nodes, which takes a long time and consumes a lot of system performance;
[0007] 2. The existing method requires each transaction executor to execute the assigned tasks synchronously, so it is not suitable for a high-concurrency system, and the more database instances, the worse the availability;
[0008] 3. The existing method has high requirements for the fault tolerance of the online environment. Once a problem occurs on a machine, the entire transaction will fail to execute, and partial retrying is not possible.
[0009] To sum up, it is precisely because the existing methods of processing distributed transactions have serious performance problems that most high-concurrency servers are trying to avoid using them, especially those that do not have high time requirements but have high performance requirements. system

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
  • Database transaction processing method and device based on message queue
  • Database transaction processing method and device based on message queue
  • Database transaction processing method and device based on message queue

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0033] figure 1 It is a schematic diagram of main steps of a method for implementing database transaction processing based on a message queue according to an embodiment of the present invention. Such as figure 1 As shown, the method for implementing database transaction processing based on the message queue of the present invention mainly includes the following steps S11...

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 provides a database transaction processing method and device based on a message queue, and the method allows an assigned server to asynchronously consume and process the message; the method comprises the following steps: receiving a database access request; generating an ordered message queue according to the database access request; using a monitor mechanism to execute the message queue processing by sequence until all messages in the message queue are successfully processed or a retry frequency of abnormity messages in the message queue excess a preset threshold; backspacing the executed messages in the message queue when the retry frequency of abnormity messages in the message queue excess the preset threshold.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for implementing database transaction processing based on message queues. Background technique [0002] In a relational database, when the bottleneck of a single table or single database is reached due to a particularly large amount of data, it is mostly necessary to perform database and table operations on the database. The specific implementation method is to deploy multiple database instances, and at the same time, split the data table horizontally in one database server, thus forming a structure with multiple databases and multiple tables to store multiple types of data. [0003] Generally, the principle of operating a split database or data table is to avoid operating data of several databases at the same time. However, with the gradual increase in business volume, in many cases, some businesses need to operate on multiple databases or data tables at t...

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): G06F17/30G06F9/50
CPCG06F9/5083G06F16/2365
Inventor 魏亚文
Owner BEIJING JINGDONG SHANGKE INFORMATION 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