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

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.

Pending Publication Date: 2020-07-10
WEBANK (CHINA)
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, since the lock type of TiDB is an optimistic lock, while the lock type of a traditional relational database is a pessimistic lock, the task competition and mutual exclusion methods of a traditional relational database are not applicable to the TiDB database during task processing.
At present, in order to achieve task competition and mutual exclusion based on the TiDB database, the mutual exclusion lock is usually migrated to a distributed cache, such as Redis (Remote Dictionary Server, a remote dictionary service, a distributed memory database), but this This method has the following disadvantages: 1) the introduction of additional deployment units will increase the cost of coding, deployment and operation and maintenance; 2) when the Redis service is down, or when the network line of Redis is blocked, the task will not be processed

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
  • Task processing method, device and equipment and computer readable storage medium
  • Task processing method, device and equipment and computer readable storage medium
  • Task processing method, device and equipment and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0046] refer to figure 1 , figure 1 It is a schematic diagram of the device structure of the hardware operating environment involved in the solution of the embodiment of the present invention.

[0047] The task processing device in this embodiment of the present invention may be a server, or a terminal device such as a PC (Personal Computer, personal computer), a tablet computer, a portable computer, or a virtual machine.

[0048] Such as figure 1As shown, the task processing device may include: a processor 1001 , such as a CPU, a communication bus 1002 , a user interface 1003 , a network interface 1004 , and a memory 1005 . Wherein, the communication bus 1002 is used to realize connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such...

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 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.

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

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/23G06F9/52
CPCG06F16/2343G06F9/526
Inventor 刘建波黄蔚
Owner WEBANK (CHINA)
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