Fork me on GitHub

Is there a clojure wrapper for what oracle calls - Asynchronous Database Access API (ADBA). Or is there a mature java implementation, the one from oracle seems experimental.


No, and Oracle just stopped working on that.


They've abandoned it in favor of waiting for fibers (Project Loom) to land in the JVM for everyone (JDK 14 at the earliest).


thanks and on the same lines what is the best technology to do non blocking db access, I was just scanning golang, and their db access libs are also blocking, I assume that leaves just node.js ?


JDBC is inherently synchronous. Some DBs have proprietary async drivers but you're mostly on your own in Java interop land at that point.


If you want to do JDBC access in a "non-blocking" way, you need to wrap the code in something like a completable future.


For some situations at work, where we need to run several heavy queries, gather up the results of all of them to process data and respond to the user, we simply wrap each one in future and then deref those as part of the final processing. Not ideal -- uses a heavy JVM thread for each -- but a good-enough compromise for those situations.