Font Size: a A A

The Design And Implementation Of A Scheduling Module For Distributed Timing Tasks Based On Quartz

Posted on:2020-09-22Degree:MasterType:Thesis
Country:ChinaCandidate:K ZhangFull Text:PDF
GTID:2428330575952536Subject:Engineering
Abstract/Summary:PDF Full Text Request
With the rapid development of information technology and the growing scale of enterprise development,more and more enterprise application systems are required to perform specified business operations at the planned time due to business scenario requirements.This is a "timed task".Originally,only a single server node was needed to meet the requirements of the scheduled task.However,as the demand for the scheduled task increased,a single server could not meet the normal enterprise operation.Thus,a distributed system composed of multiple server nodes came into being.However,the ensuing problem is how to configure,schedule,trigger,and execute scheduled tasks to ensure proper operation in the case of distributed deployment.This article investigates the distributed timing task solutions commonly used in the industry,including Taobao's TBSchedule,Dangdang Elastic-job and Vipshop's Saturn,It is found that these solutions solve some of the distributed deployment problems.However they also have their own shortcomings.Based on the research,this thesis designs and implements a distributed timing task scheduling system based on Quartz.Quartz is used first because it is a classic framework for scheduling timed tasks,providing powerful timing scheduling functions and simple development at the same time.On the basis of Quartz-based development,the entire system is divided into three modules:the scheduling module,the execution module,and the service registry center module.The scheduling module is responsible for the scheduling logic of the distributed timing tasks,while the execution module is only responsible for the execution of the timing tasks,ie the business logic.In this way,the configuration scheduling of the timing task can be decoupled from the system business logic,and the reliability and scalability of the system can be improved.The scheduling module is the main module triggered by the task configuration scheduling,and mainly includes the task management sub-module,the log monitoring sub-module and the actuator management sub-module.The technical route of this article is:the front end uses the FreeMarker template engine,the back end uses the Java language,is developed based on the Spring Boot framework,and uses MyBatis to interact with the database.The scheduling module is developed based on the high performance development framework,which has certain advantages compared with the traditional distributed timed task scheduling system,including strong scalability and usability,so it can provide strong support for the realization of timed task scheduling,and effectively help enterprises to meet the requirements of most timed tasks' scheduling.
Keywords/Search Tags:Timed Task, Distributed Timed Task Scheduling System, Quartz, Spring Boot
PDF Full Text Request
Related items