I do not see a problem when using @Async
, as this will free up the flow of requests. But this is a simple approach, and it has many limitations. Please note: if you want to deal with reactive threads, you do not have an API capable of this. For example, if a method @Async
calls another, the second will not be asynchronous.
Webflux will instead provide the most comprehensive API (in Java) to deal with in a reactive way. What you cannot do only with @Async. For example, with Flux, you can process or access multiple layers reactively, and you cannot achieve what you are doing.
, , , , , , .
, HTTP-, , , . JMS- (, ActiveMQ), .
, !