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

Asynchronous processing framework based on task scheduling and implementation method thereof

A technology of task scheduling and asynchronous processing, which is applied in the field of Java multi-threading and multi-task execution, and can solve problems such as complex interface functions

Inactive Publication Date: 2019-10-08
SUNING CONSUMER FINANCE CO LTD
View PDF16 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, the business process of the Internet industry is becoming more and more complicated, which makes the interface functions provided by the system more and more complicated.

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
  • Asynchronous processing framework based on task scheduling and implementation method thereof
  • Asynchronous processing framework based on task scheduling and implementation method thereof
  • Asynchronous processing framework based on task scheduling and implementation method thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0060] The present invention is described in further detail now in conjunction with accompanying drawing.

[0061] The present invention proposes an asynchronous processing framework based on task scheduling, which mainly includes the following parts.

[0062] 1. Task scheduling system design

[0063] a. Design a task policy table to save the execution strategy of each task, including fields including: task type, time period for task execution, execution strategy, maximum number of execution items, maximum number of groups allowed by the task, System address and interface name of the called interface. The following is a detailed description of each data field:

[0064] Task type: which type of task is identified and must be unique;

[0065] Running time period: configure a certain type of task to be executed within a certain time range within a day, and not executed within this time range;

[0066] Execution strategy: specify the maximum number of times a certain type of tas...

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 an asynchronous processing framework based on task scheduling and an implementation method thereof. The asynchronous processing framework comprises a task scheduling system, ahigh-concurrency execution thread and an anti-repetition code module. A service provider system generates a unique service serial number after accepting the service, a task creation interface providedby a task scheduling system is called, and the task scheduling system creates a task of the service according to the transmitted task type and the service serial number and triggers to execute the task; the task scheduling system calls an interface of a specified machine with a service system interface address, the high-concurrency execution thread operates a service execution interface method onthe specified machine to processes the service logic and returns an execution result of the task of the task scheduling system after processing, the task scheduling system decides whether to continueschedule or not according to the execution result, and the anti-repetition code module is used for preventing the task from being repeatedly executed. According to the invention, the scheduling of the plurality of types of tasks can be managed in a unified manner, the high-concurrency execution of the plurality of tasks is realized, and the tasks are ensured not to be executed repeatedly.

Description

technical field [0001] The invention belongs to the field of Java multi-thread and multi-task execution, and in particular relates to an asynchronous processing framework based on task scheduling and an implementation method thereof. Background technique [0002] At present, the business process of the Internet industry is becoming more and more complex, which makes the interface functions provided by the system more and more complex. When the interface needs to process too many processes (the interface may also need to interact with other systems, and the situation is even worse if it is an external system), the response time of the interface will be particularly long. At this time, it is often necessary to decompose the interface tasks and synchronize some tasks After completing the return, most of the remaining time to be done will be completed in the system through task scheduling, which avoids the long waiting of the caller, shields the responsible business process in a...

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/48G06F9/54
CPCG06F9/4881G06F9/547G06F2209/5018G06F2209/544
Inventor 单园庆贾建华郑梦久
Owner SUNING CONSUMER FINANCE CO LTD
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More