DEV Community

Shweta Kadam
Shweta Kadam

Posted on • Edited on

1

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/

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay