Exposed: RxJava Support

Created on 22 Jun 2018  路  5Comments  路  Source: JetBrains/Exposed

It would be nice to have RxJava support, maybe a wrapper at least.

enhancement

Most helpful comment

We don't plan to support RxJava. We want to support kotlin coroutines instead.

All 5 comments

We don't plan to support RxJava. We want to support kotlin coroutines instead.

I'm talking about reactive streams, I don't see how coroutines would replace RxJava!

Why not have both?

Could you provide any examples of what kind of support do you expect?

@Tapac @MRezaNasirloo
I'd love to have something like that in Exposed.
In the past, I have worked with Slick (a Scala FRM) that supports async reactive operations http://slick.lightbend.com/doc/3.2.0/introduction.html#reactive-applications

This is pretty handy for data-intensive applications. Supporting back-pressure on read/write operations is not trivial from a developer point of view. If the library could support that it would open a number of new scenarios where Exposed could be used.

I know, that this thread is pretty old, but I have some use cases for rx java & Exposed orm:

  • will be cool to subscribe to data, and, when something changed in table, receive update via rx observable,
  • Flowable's back-pressure is cool, as for me also will be cool, to manage threads for database, like in rxJava (subscribeOn , observeOn) (ok, it's also possible via coroutines)
Was this page helpful?
0 / 5 - 0 ratings

Related issues

michele-grifa picture michele-grifa  路  4Comments

BugsBunnyBR picture BugsBunnyBR  路  3Comments

blackmo18 picture blackmo18  路  3Comments

raderio picture raderio  路  4Comments

mgmeiner picture mgmeiner  路  3Comments