How to Run a Method Asynchronously in a Reactive Chain in Spring WebFlux?
I’m trying to execute a method asynchronously within an existing reactive chain in my Project Reactor-based application. The method doUpdateLayoutInAsync is intended to perform a heavy background task, but it seems like my approach isn’t working as expected. Here’s my current implementation:
How to run a specific method in a reactive chain as a background process in Webflux
I wanted to run a method async. The method is part of an existing reactive chain that does a heavy task. I want to do that heavy task in the background so the user doesn’t need to wait until it finishes. I tried the following way, but it’s not working as expected.