Frequent scheduler across multiple instances

52 views Asked by At

I need to code scheduler which will be run every 1.6s and have access to database across two instances of microservices written on java 11 with use of Spring Boot Framework.

I have two possible realiazation in my mind:

  1. Use shedlock for job which will run every 1.6s
  2. Run job every 16s with shedlock and inside such job small async taks.

Can you help with choice of implementation? Maybe you can offer better variant

0

There are 0 answers