I have a nestjs cron service that is deployed to two nodes in uat/production.
If i have record that is scheduled to be created at 3 pm, both nodes will fire off at the same time, resulting in a duplicate record in the db.
I am unable to use redis as it would cost money to provision.
I have considered locking the table as well.
Anyone have ideas on how i can solve this issue?
Thank you!