alaisi / postgres-async-driver

Asynchronous PostgreSQL Java driver
Apache License 2.0
287 stars 38 forks source link

RxJava 2.0 or Project Reactor #47

Open RyanHoldren opened 7 years ago

RyanHoldren commented 7 years ago

I am currently experimenting with combining your library with Spring Webflux via RxJava2Interop. It's not going well. Actually, I am not even sure which library is misbehaving, but they are not working together well.

I am wondering if you have any plans to upgrade to RxJava 2.0 or even better (for me) Project Reactor.

Thanks for library!

Ryan

alaisi commented 7 years ago

Hi,

the current plan is to extract a "core" library that is built on Netty only (e.g. using Netty promises for async) and then create wrappers for RxJava1/2 and Reactor. On the short term, the current library will probably be ported just to RxJava 2.0.

PR:s welcome. :)

-Antti

leosilvadev commented 7 years ago

@alaisi the idea is good! I do not have much experience and do not so much free time now to help with this core feature, but would be for sure to help with this wrappers in the future.

bnorm commented 7 years ago

I've got a branch where I've completed this work as best as I knew how. If you want a pull-request to review the changes, let me know and I can set that up.

https://github.com/bnorm/postgres-async-driver/tree/bn/rxjava2

alaisi commented 7 years ago

@bnorm sounds great! Create a PR and I'll check it out.

fabienmoritz commented 7 years ago

the current plan is to extract a "core" library that is built on Netty only (e.g. using Netty promises for async) and then create wrappers for RxJava1/2 and Reactor.

That would be awesome ! I would like to use this lib with kotlin coroutines, so the reactivex layer is only painful for me (the learning curve is steep).