DEV Community

Shweta Kadam
Shweta Kadam

Posted on • Updated on

Which would you go for? Spring boot cron job,scheduled tasks vs Events in Mysql.

I was recently studying about using cron jobs in spring boot for a particular use case for my small side project. I ended up not using the cron job but rather went the SQL way(will explain this in detail below). However,in the process I learnt a lot about cron jobs and scheduling in spring boot so this is just a small article about my learnings

https://www.codeklutz.com/scheduling/java/spring/spring%20boot/events/sql/mysql/Spring-boot-cron-job-scheduled-tasks-vs-Events-in-Mysql/

Discussion (0)