Spring Boot 是 @Scheduled &多POD部署
对于调度程序作业,我们在方法级别使用@Scheduled,如下所示。
@scheduled(fixedRateString = 120)
public void performUpdate(){
}
由于我也在使用多 POD 部署,我猜它会导致 RACE 条件,因为从每个 POD 中,相同的请求将发送到每个 POD 和 POD。执行 SQL 更新&删除操作。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论