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

Task processing method and device in distributed system

A distributed system and task processing technology, applied in multi-programming devices, electrical digital data processing, program control design, etc., can solve the problem that business data does not meet idempotency, and achieve the effect of ensuring idempotency

Inactive Publication Date: 2016-03-30
ALIBABA GRP HLDG LTD
View PDF5 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to solve the above technical problems, the embodiment of the present application provides a task processing method and device in a distributed system to solve the problem of business data inconsistency caused by multiple task servers (or task processes) repeatedly processing the same task in the prior art. The problem of satisfying idempotence

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 and device in distributed system
  • Task processing method and device in distributed system
  • Task processing method and device in distributed system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052]Embodiments of the present application provide a task processing method and device in a distributed system. The core of the technical solution involved in the embodiment of the present application is to indicate to the task processor (or task process) whether a certain task is being processed by other task processors (or task processes) by using the survival status (the survival status includes survival and death). Based on the survival state, when a task processor (or task process) in the distributed system is processing a task, the survival status of the task will be marked as alive. At this time, if there are other task processors (or task processes) ) also wants to process the task, and the task can be determined to be alive according to the survival status, and then the task will not be processed again. When the task processor (or task process) has finished processing the task, the survival status of the task will be marked as dead. At this time, if other task proce...

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 application embodiment discloses a task processing method and device in a distributed system; the method comprises the following steps: a random task processor of a plurality of task processors determines a present survival status of the task after the task is started and before the task is processed; if the task is in survival status, the task is not processed; if the task is dead, first the present survival status of the task is labelled to be survival, then the task is processed; after the task is processed, the present survival status of the task is labelled to be dead. In the prior art, many task servers (task processes) repeatedly process one task, so business data cannot satisfy idempotence property; the novel method and device can solve the said technical problems.

Description

technical field [0001] This application relates to the field of distributed computing, in particular to a task processing method and device in a distributed system. Background technique [0002] Whether in large-scale Internet applications or in enterprise-level architectures, distributed service frameworks are increasingly used to provide various services. For example, in a large-scale Internet application, it is inevitable to split an "application" into multiple "businesses" (or, it can also be called "services"), and the task corresponding to each "business" is ultimately Processed by servers in a distributed system. [0003] In general, there may be dependencies between various "businesses" under an "application", and the dependencies may be complicated. Therefore, for each "business", it may be forced to be interrupted due to abnormalities in other "businesses" it depends on. At this time, it is necessary to perform exception handling on the interruption "business". ...

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/48
CPCG06F9/485G06F9/5072G06F9/4881
Inventor 江建明程冬杨晓芬
Owner ALIBABA GRP HLDG 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