if I dont use the reactive extensions for Quarkus Is the I/O op going to be non-blocking or blocking? I am asking this because I didnt like the reactive programming style, I wish I could have something like c# async await for java
CodePudding user response:
The fact that Quarkus is reactive under the hood, does not force users to do any reactive programming.
Users are free (and in most cases encouraged) to use regular blocking APIs. When that is done, Quarkus will delegate the work to worker threads
CodePudding user response:
The I/O operations in Quarkus are non-blocking by default, regardless of whether or not you use the reactive extensions. The asynchronous programming model in Java is based on the Future interface, which allows for non-blocking operations. If you prefer the C# async/await style, there are libraries such as CompletableFuture and RxJava that provide similar functionality.