Solutionunvalidated
reactorService.method(ip).subscribe(); // executes async — PostMapping("/mymethod") public ResponseEntity myMethod(InputParams ip). Tension: This made the http response sync awaiting the reactor response and cancelling it upon http timeout. Outcome: The issue was resolved by invoking the reactor and subscribing to it from the controller and returning a dummy http success response.
23340015-fe3f-4c3e-a170-bd388920b4e5
reactorService.method(ip).subscribe(); // executes async — PostMapping("/mymethod") public ResponseEntity myMethod(InputParams ip). Tension: This made the http response sync awaiting the reactor response and cancelling it upon http timeout. Outcome: The issue was resolved by invoking the reactor and subscribing to it from the controller and returning a dummy http success response.