Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RxJava Support #326

Closed
MRezaNasirloo opened this issue Jun 22, 2018 · 7 comments
Closed

RxJava Support #326

MRezaNasirloo opened this issue Jun 22, 2018 · 7 comments

Comments

@MRezaNasirloo
Copy link

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

@Tapac
Copy link
Contributor

Tapac commented Jun 25, 2018

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

@MRezaNasirloo
Copy link
Author

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

Why not have both?

@Tapac
Copy link
Contributor

Tapac commented Jul 22, 2018

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

@fabriziofortino
Copy link

fabriziofortino commented Nov 12, 2018

@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.

@GrishinSergey
Copy link

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)

@BrianEstrada
Copy link

Supporting some way of subscribing to table changes would be fantastic whether it's RxJava or not

@MRezaNasirloo
Copy link
Author

@BrianEstrada Yep at the time RxJava was still hot on the subject (pun intended), with the introduction of kotlin.flow I think it's easier more than ever to have something like that, nonetheless I'm closing this since it's not relevant anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants