BetterCloud / vault-java-driver

Zero-dependency Java client for HashiCorp's Vault
https://bettercloud.github.io/vault-java-driver/
334 stars 224 forks source link

Support for non-blocking HTTP requests #249

Open lfrestrepog opened 2 years ago

lfrestrepog commented 2 years ago

Hello.

Just wondering, are there any plans to support non-blocking HTTP requests? It would be very interesting to have an async API, and the possibility of integrating with reactive applications.

It doesn't seem to be an easy change, specially considering we don't have external dependencies, but maybe if we targeted java 11 it should be possible to use the HttpClient class (although it would require an important refactoring of the Rest class, and maybe others, I'm not too familiar with the code base), which supports both synchronous and asynchronous interaction modes.

But, then I don't know how important it is to support java 8 (I believe it's still widely used in enterprise applications).

Please share your thoughts about this.