'Is Spring Boot @Scheduled & multi POD deployment

for scheduler job we used @Scheduled at method level like below.

@scheduled(fixedRateString = 120)
public void performUpdate(){
}

Since I am also using the multi POD deployment it will cause RACE condition I guess because from each POD, same request will go to each POD & perform SQL update & delete operations.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source