Skip to content

Job scheduler, where you can define a job to be scheduled at a specific time

Notifications You must be signed in to change notification settings

buharov-alexander/job-scheduler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Job Scheduler

Job scheduler, where you can define a job to be scheduled at a specific time.

Designing a Job Scheduler

Version 0

Screenshot 2024-09-03 at 14 26 40
  • Schedule service handles API requests and schedules tasks (java.util.Timer)

Problems

Tasks are stored in memory and will be lost if reboot the schedule service.

Version 1

Screenshot 2024-08-31 at 20 00 11
  • API service handles API requests and save tasks to DB
  • Database stores task metadata and next execution time
  • Task runner retrieves tasks periodically and execute them

Problems

The task runner has multiple responsibility: scheduling and execution

Version 2

Screenshot 2024-10-27 at 23 17 27

Launch using docker-compose

You can use Docker Compose to fast deploy

docker-compose --profile stores --profile services up

Resources

About

Job scheduler, where you can define a job to be scheduled at a specific time

Resources

Stars

Watchers

Forks