Task processing method, device and equipment and computer readable storage medium

A technology for task processing and transaction processing, which is applied in the field of financial technology, and can solve problems such as inability to process tasks, increase coding costs, deployment costs, and operation and maintenance costs, and inapplicability to TiDB databases, etc.
CN111400330APending Publication Date: 2020-07-10WEBANK (CHINA)

Patent Information

Authority / Receiving Office
CN Β· China
Patent Type
Applications(China)
Current Assignee / Owner
WEBANK (CHINA)
Publication Date
2020-07-10

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a task processing method, device and equipment and a computer readable storage medium, and relates to the technical field of financial science and technology. The task processing method comprises the steps: starting a first transaction through a polling thread every first preset time; sending a query command to a target database to obtain a first return result, and judgingwhether a mutual exclusion lock of a specified type and in an idle state exists or not according to the first return result; if the mutual exclusion lock of the specified type and in the idle state exists, sending a first updating command to the target database to obtain a second return result, and judging whether the mutual exclusion lock is locked or not according to the second return result; ifit is judged that the mutual exclusion lock is not locked, submitting the first transaction to the target database to compete for obtaining the mutual exclusion lock, and performing task processing.According to the method, the competition and mutual exclusion of tasks can be realized based on the TiDB optimistic lock on the basis of not introducing extra infrastructure software, so the cost canbe saved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present invention relates to the technical field of financial technology (Fintech), in particular to a task processing method, device, equipment and computer-readable storage medium. Background technique

[0002] With the development of computer technology, more and more technologies are applied in the financial field, and the traditional financial industry is gradually transforming into Fintech. However, due to the security and real-time requirements of the financial industry, higher requirements are placed on technology. requirements.

[0003] At present, the task processing system of Internet banks is usually faced with a large number of tasks and massive data to be processed. However, traditional relational databases, due to their poor horizontal scalability, have gradually been unable to meet the needs of task processing systems for massive data processing. As a new distributed database that combines the characteristics of traditional relati...

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