Quartz、fixedRate、fixedDelay 排程方式的差異
Java 排程常見三種做法:Quartz、ScheduledExecutorService 的 scheduleAtFixedRate,以及 scheduleWithFixedDelay,它們在「上一次還沒跑完時要怎麼辦」的行為上不一樣。這篇整理三者的差異與適用情境:Quartz 適合在固定時間點執行(例如每天中午),並說明 Job 加上 @DisallowConcurrentExecution 才不會重疊執行;fixedRate 依固定頻率觸發,fixedDelay 則是上一次結束後再等一段時間。