Did everything about RxJava / R2dbc end up dying? ...
# kotest-contributors
e
Did everything about RxJava / R2dbc end up dying? Feels like no one talks about that stuff anymore. Did people give up on it in favor of fibers / virtual threads? Wondering if it's worthwhile adding similar support for R2dbc containers as we have for JDBC, but it looks abandoned even in the testcontainers-java repo..
s
from my viewpoint it never really caught up, the programming style is ugly. We have virtual threads and coroutines that allow us to write things in a typical view, so what's the point.
e
Yeah I agree.. the mental/programming model was shit.. but for database interaction, there's no streaming support outside of R2dbc, so wouldn't people still want to use it w/ coroutines?
s
I just wrap spring jdbc in runInteruptible
and we do 10m requests a minute
e
lol, I didn't know
runInteruptible
was a thing.. Think that's gonna simplify/fix some things at work.
We're not using r2dbc either.. but we had issues with blocking calls being run in
runBlocking
and (unsurprisingly) not responding to cancellation. đŸ™ƒ
s
jdbc doesn't actually respond to interruption properly
you can set a timeout though on the statement level that will interrupt the thread
s
I totally agree with Sam about the R2DBC. I learned the spring library and man that’s some ugly code that really is just not very kotlin native. Was so clunky and the APIs just so different for such little benefit