Next.js Discord

Discord Forum

Query with what scheduler to use

Unanswered
Router Renegade posted this in #help-forum
Open in Discord
Avatar
In one of my enterprise application, I am using next js with app router where I want to use a scheduler that keeps running every X Hours as specified in one of the colmns of the db (MySQL) and the task is to send emails every X hours. From the pov of a production env, is it better to use node-cron or should i use AWS lambda [AWS EventBridge Scheduler](https://docs.aws.amazon.com/lambda/latest/dg/with-eventbridge-scheduler.html) ?


Assume that Deployment will be made on Linux (Ubuntu) server

6 Replies

Avatar
Avatar
no timeout? seriously?
Avatar
yeah?
Avatar
thats nice
thanks @Yi Lon Ma
Avatar
you're most welcome