title: Horizontal scaling for scheduled task
body: <p>There is a service (microservice in spring-boot):</p>
  <ul>
  <li>the service has a scheduled task (task1), which searches the database (mongodb) for tasks with state = READY and processes those tasks</li>
  <li>state = READY tasks are assigned according to the schedule in a separate scheduled task (task2)</li>
  </ul>
  <p>What we need:</p>
  <ul>
  <li>rework the service for the horizontal scaling (is there best practiсe?)</li>
  </ul>