Hey does anyone know a good AMQP library that work...
# server
f
Hey does anyone know a good AMQP library that works well with coroutines?
r
you could probably use something that integrates with CompletableFuture.await() extension function
if there is no native coroutine implementation
however that scales differently since the completablefutures probably run on normal threads so its a seam between threads and coroutines
m
Coroutines can also run on threads too I don't see your point @rrva.
r
what I meant was that with a coroutine-native implementation (where the library would be written in kotlin and exposes suspendable functions to the user) the callee would be guaranteed that the same resources in terms of thread pool size would be used when accessing the AMQP resource. With a solution where you call something that only returns CompletableFuture, you have to think about how those thread pools work
l
Vertx