I have a Spring boot application running in production. I am implementing an async feature that exports a certain metric that can run on its separate thread pool without blocking the main application thread. I’m just thinking how to decide how many threads would I need for this?
I’m using Java and using the ExecuterService for that.
ExecutorService executorService = Executors.newFixedThreadPool(5);