title: What's the difference between fixed rate and fixed delay in Spring Scheduled annotation?
body: <p>I am implementing scheduled tasks using Spring, and I see there are two types of config options for time that schedule work again from the last call. What is the difference between these two types?</p>
  <pre><code> @Scheduled(fixedDelay = 5000)
   public void doJobDelay() {
       // do anything
   }
  
   @Scheduled(fixedRate = 5000)
   public void doJobRate() {
       // do anything
   }
  </code></pre>