We have an vertical scaling application (Say there are 5 instances) and application do have one schedular job which executes every hour to send an email to customer. due to multiple instances it will send a multiple emails.
Is there any framework in java/spring by which only any one instance at a time only one schedular will run?how it can be handled in a multi instances.