How to set cron jobs to update documents at specific times? I have an app on NextJs and I am using mongoDB as my database. I have a collection of games that start and end at specific times. What is the best way to set cron jobs so that every time a game starts a function is called and everytime a game ends a function is called.
Here is what I am trying: to use AWS event bridge and set all these times in cron jobs so that the respective functions can be called.