Looking for guidance on reactor schedulers.
I want to run certain IO tasks in background, i.e. send emails to the tech team. To make it asynchronous I use Mono.fromRunnable subscribed to a scheduler.
I have a choice to either use Schedulers.elastic() or Schedulers.newElastic(). I prefer the latter because it allows me to give it a unique name which would help in the logs analysis.
Is it ok to make a static variable e.g.
Scheduler emailSched = Schedulers.newElastic("email");
and subscribeOn my Mono to it versus should I create a new Scheduler instance every time?
I found only What is the difference between Schedulers.newElastic and Schedulers.elastic methods? and that did not help my question much.