morphia icon indicating copy to clipboard operation
morphia copied to clipboard

Use MongoDB Reactive Streams internally to provide a sync and an async API

Open FabianKoder opened this issue 6 years ago • 4 comments

Is your feature request related to a problem? Please describe. I really want to use Morphia because of the clean API that the default MongoDB Java Driver does not provide. There is the "new" "POJO" feature, but you can't for instance update POJOs without writing manual queries. But Morphia does not support the "new" MongoDB Reactive Streams Java Driver, which can be used both for non-blocking and blocking requests.

Describe the solution you'd like It would be great if the MongoDB Reactive Streams Java Driver could be implemented internally. Afterwards, an asynchronous Morphia API could be added in addition to the synchronous one. This could be realized by just using different Subscribers.

Describe alternatives you've considered One alternative would be to use Morphia and deal with Threads by oneself but as I saw in other issues (#1289 and #829) I think I'm not the only one who would like an approach like this.

Additional context None

FabianKoder avatar Apr 16 '19 21:04 FabianKoder

probably will close either this one or #829 as a duplicate but for now i'll track both for 2.2

evanchooly avatar Nov 07 '20 01:11 evanchooly

Any updates?

Ve6om avatar Mar 27 '23 23:03 Ve6om

I haven't really taken a look at it. I don't typically use async APIs so it's been a lower priority for me vs other features/fixes but i'll pin it to 3.0.

evanchooly avatar Mar 28 '23 02:03 evanchooly

I haven't really taken a look at it. I don't typically use async APIs so it's been a lower priority for me vs other features/fixes but i'll pin it to 3.0.

Thank you, I appreciate that!

Ve6om avatar Mar 28 '23 02:03 Ve6om