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

Callback-based MongoDB Async Java Driver is deprecated since v3.9 #1

Closed
Tmpod opened this issue Oct 2, 2019 · 2 comments
Closed

Callback-based MongoDB Async Java Driver is deprecated since v3.9 #1

Tmpod opened this issue Oct 2, 2019 · 2 comments

Comments

@Tmpod
Copy link

Tmpod commented Oct 2, 2019

I was about to start using KMongo on a new project when I decided to check some documentation on the underlying client and noticed it's deprecated since MongoDB Async/Reactive Java Driver v3.9 (now on 3.11). Here's my source: https://mongodb.github.io/mongo-java-driver/3.11/driver-async/#what-s-new-in-3-9
Maybe this lib should change to wrapping reactive streams?

@fluidsonic
Copy link
Owner

Yes I've noticed that and unfortunately this is not trivial.
I agree that wrapping reactive streams makes most sense. At the same time the library should probably be updated to use Kotlin Flow rather than ReceiveChannel. I can't work on either at the moment but I have it on my list for when I've got some time for it :)

@fluidsonic
Copy link
Owner

1.0.0-beta.1 has been released, is based on the Reactive Streams driver and uses Kotlin Flows.

Interestingly the Reactive Streams driver uses the Asynchronous Driver under the hood.
I guess it will be refactored away over time.

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

No branches or pull requests

2 participants