<@UL1A5BA2X> <@UCEU5NT0Q> Do you use any non-block...
# kvision
r
@Big Chungus @Diogo Ribeiro Do you use any non-blocking database access libraries (kotlin or java) with Ktor (with KVision or even without it)
b
Nope 😕 I'm mainly playing around with MPP architecture rather than connecting backends to external services these days.
d
When do you say, "non-blocking database access libraries", it means that the framework should handler the access in another Thread? Like a suspension function?
r
I mean some non-blocking library like
spring-r2dbc
or
jasync-sql
ktor is fully non-blocking so there should be something to work in a non-blocking way with database for ktor
but Exposed from JB is not as far as I know
b
Well you can always wrap exposed into koroutines
To make them non blocking
r
you can, but it wont make them non-blocking, it will still use thread for every statement under the hood
it just let's you use it with non-blocking ktor without killing the server 🙂
I'm just asking because I've spend last three days integrating kvision + spring boot webflux + spring r2dbc and it really starts to work very nice in a fully non-blocking way with kotlin coroutines
b
Correct, but if you use dedicated thread pool for it blocking code will be fully isolated
r
I would really like to have similar stack for ktor 🙂
b
Would definitely be nice. Take a break from kvision and implement your own 😄
r
no more spare time unfortunately 😉