Better use of Schedulers Spring and Reactor (unlimited scheduler)

Hi im using Spring with Reactor (webflux). I have one question:

Supose I have one service A which needs the information of another 5 microservices to operate (B,C,D,E,F). I was calling this microservices in a synchronous way, i refactor my code and starting to calling them in a async way. Something like:

Mono.fromCalleable(() -> doCall()).subscribeOn(Schedulers.elastic()) //and then zipping for async call

this is because in Reactor documentation they said we should use elastic schedulers for IO operations.

Wen i tested on postman the async implementation the response time with this implementation was much...

Read More »

By: StackOverFlow - 5 days ago

Related Posts

  • Older News
  • Migrate HystrixCommands to Resilience4j StackOverFlow (Today) - Given Hystrix going into mainentance mode, I've been working on migrating a (rather large) codebase to Resilience4j.I make heavy use of the following pattern with Hystrix:new HystrixCommand(DependencyKeys.DEPENDENCY) {@Overrideprotected SomeReturnValue run()...
  • How do I guarantee that ThreadPoolTaskScheduler performs only one task at a time? StackOverFlow (Yesterday) - I have a Scheduler Bean for tasks, as follows:@Beanpublic TaskScheduler poolScheduler() {ThreadPoolTaskScheduler scheduler = new ThreadPoolTaskScheduler();scheduler.setThreadNamePrefix("sumarizacao_tasks_scheduler");scheduler.setPoolSize(1);scheduler.initialize();return scheduler;}And I have different tasks scheduled on it. As follows:scheduler.schedule(quickTask, new CronTrigger("0 * *...