Distributed type queue scheduling method and device based on Redis

A queue scheduling and distributed technology, applied in the computer field, can solve problems such as deadlocks, and achieve the effect of avoiding deadlocks and reducing dependencies

Inactive Publication Date: 2014-05-14
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF7 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, when each asynchronous task handler (worker) reads task queue data from Redis, deadlock may occur due to competition for data among workers

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
  • Distributed type queue scheduling method and device based on Redis
  • Distributed type queue scheduling method and device based on Redis
  • Distributed type queue scheduling method and device based on Redis

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The present invention will be described in more detail and complete below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only parts related to the present invention are shown in the drawings but not all content.

[0021] figure 1 It is an implementation flowchart of a Redis-based distributed queue scheduling method provided in an embodiment of the present invention. The method provided by the embodiment of the present invention can be executed by the apparatus for distributed queue scheduling based on Redis provided by the embodiment of the present invention, and the apparatus can be implemented by software and / or hardware. Such as figure 1 As shown, the method provided by the embodiment of the present invention inc...

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 relates to the technical field of computers, in particular to a distributed type queue scheduling method and device based on a Redis. The method comprises the steps that the names of task data queues, to be processed, in the Redis at the current moment are acquired; the information of asynchronous task processing programs connected with the Redis is acquired; according to the names of the task data queues and the information of the asynchronous task processing programs, the asynchronous task processing programs are distributed for the task data queues. According to the method, the situation that asynchronous task processing programs fight for data, and deadlock is caused is avoided.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a Redis-based distributed queue scheduling method and device. Background technique [0002] When there are multiple distributed tasks to be processed and multiple asynchronous task handlers (workers) capable of responding to the distributed tasks, how to implement the scheduling of the distributed tasks is an important factor affecting the execution efficiency of the distributed tasks. [0003] In the existing distributed queue scheduling method, the scheduling device uses Redis to store task queue data, and utilizes the feature that Redis supports linked list (list) data type, and stores the task queue data into the Redis queue for processing by an asynchronous task handler (worker). The asynchronous task handler (worker) acquires task data from the task data queue as required, and then executes the task according to the acquired task data. [0004] However, when each...

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/48G06F17/30
Inventor 戴晨
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products