Reputation: 3294
I have made an Spring Task Scheduler services for sending e-mails at particular condition. This service is running on multiple machines.
If one machine service sends the e-mail then I have to stop the other service for sending the email.
How can I detect this without using persistent storage flag that one machine service has executed its e-mail code?
Upvotes: 4
Views: 737
Reputation: 23535
You have basically 3 options:
Upvotes: 2