I have an internal framework using spring webflux for API development, which is working fine.
General flow: Few WebFilters for authentication/authorization —>
Framework specific code execution -> Actual business logic which developers would write implementing few interfaces from the framework, again fully reactive.
Question: Is it possible to use the same framework in non reactive way through blocking and executing them on a servlet container?
General flow: Servlet Filters for authentication/authorization -> Reuse reactive framework code with a block without rewriting them in Nonreactive way -> Actual business logic which developers would write implementing new set of interfaces.
Please let me know if you need any other information?
We tested this approach already and the app seem to work fine, however, is this the right approach if I would to leverage the framework to build both reactive and non reactive apps?
Nuaz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.