I have been trying to send notifications to my customers once. I'm using kubernetes and I create multiple spring boot applications because I have 2 replicas. This is all fine but when the scheduler runs, each one of them can send notifications. I have looked a little bit at quartz but the config seems to be a little complicated. Is there an easy way to do so?
@Scheduled(fixedDelayString = "300000")
public void sendFlowerNotification() {
//Code
}