title: How to configure frequency (Once in a day) to read message from Kafka topic in Spring Boot
body: <p>I am trying to handle failures and writing the message into failure-Q in case if message is failed during db persist due to db is down or any other issue.</p>
  
  <p>We need to re-try the messages from failure-Q once in a day. as we are using properties file to configure the consumer configuration:</p>
  
  <pre><code># KAFKA
  spring.kafka.bootstrap-servers=localhost:9092
  
  ## CONSUMER
  kafka.topic.consumer.boot: tink_boot.j
  kafka.consumer.group-id: tink_boot.j-001
  ### Kafka from 5000 to 60000
  spring.kafka.consumer.auto-commit-interval: 5000
  spring.kafka.consumer.client-id: service
  ### start reading from earliest messages
  spring.kafka.consumer.auto-offset-reset: earliest
  </code></pre>
  
  <p>KafkaListener:</p>
  
  <pre><code>@KafkaListener(topics = "${kafka.topic.consumer.boot}", groupId = "${kafka.consumer.group-id}")
      public void receiveEvent(Event e){
       log.info("message received: " + e);
      }
  </code></pre>
  
  <p>So how to read the messages from Kafka-Q based on particular time once per day in Spring Boot? </p>