Jack of all trades (Full-stack engineer).
Navigating my way through the world of tech.
Writing about my journey here.
Focusing on Java, Databases and Python.
Yes, if I add this code to a microservice that it has at least 3 instances, the event will be launched 3 times, so I suppose you should have an specific microservice to run this kind of "jobs" or do you know how to avoid this?
Jack of all trades (Full-stack engineer).
Navigating my way through the world of tech.
Writing about my journey here.
Focusing on Java, Databases and Python.
You are correct, the event will be launched 3 times if you have 3 instances running.
If you need distributed job scheduling have a look at: JobRunr or db-scheduler!
This is a great article, I only want to know if you know an alternative to avoid multiples instances problem.
Hi, thanks!
I'm not sure if I fully understand your question. Can you maybe rephrase it?
Yes, if I add this code to a microservice that it has at least 3 instances, the event will be launched 3 times, so I suppose you should have an specific microservice to run this kind of "jobs" or do you know how to avoid this?
You are correct, the event will be launched 3 times if you have 3 instances running.
If you need distributed job scheduling have a look at: JobRunr or db-scheduler!
thanks, for your article and the recomendations.