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:
- Use shedlock for job which will run every 1.6s
- 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