--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/61decb0a-4dc5-4394-9a0e-89ba7a1578c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On 28 May 2018, at 21:14, Manikanta G <go4...@gmail.com> wrote:Oh, my. Thanks Julien for detailed write up.So, can I assume that I need to use RxJava 2 if I want to use Flux & Mono from Project Reactor? If yes, how do I get Flux/Single ? is it possible to get from Flow/Single ?
My requirement: Basically I need back pressure and batching of records from database: I m getting records from a table, say emp, using SQLClient.queryStreamWithParams(). Once I got the emp records, I need to load their addresses, say from address table. To do this, instead of querying each employee address individually, I want to query addresses of several employees in batch. Using batches at query level (ex: using MySQL LIMIT x) is not possible as needs to store the state of previous batch end and I don't want that). So, the Reactor API seems to offering this solution (ex: take(200) ). Instead of writing my custom solution, I want to use of existing solution to get the batching of the stream of DB records.
Please suggest if this can be achieved using any other alternate possible solution.Thanks,Manikanta G
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/8d6fcbc1-5dfc-4e15-81ca-d65344814f2c%40googlegroups.com.
On 29 May 2018, at 14:17, Manikanta G <go4...@gmail.com> wrote:Yes, I could use RxJava2's take(). But as I read from the mentioned links, seems like Reactor is recommended unless Java 6 support is required, which in my case not. So, I thought why not use Reactor?I'll skip that idea for now. I'll go with RxJava2.And for now, I've implemented micro batching using queryStream and List myself by with just few lines of code, and it is working fine.Thanks,Manikanta G
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/4f69f9db-c3d0-4d00-a95e-4b033f984476%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/08042449-2452-4B36-880E-55C5032BAA77%40julienviet.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/98ABC559-230A-4AFE-B61B-F6F6226F72ED%40gmail.com.
On 5 Jun 2018, at 09:12, Julien Viet <jul...@julienviet.com> wrote:yes you are right, it's not deprecate since it's the same interfaces.I meant that they will need a new version or implementation that will be usable OOTB with Java 9 flow and creating backward incompatibility with the previous versions.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/2FD52267-1349-44D9-8552-CBA27D975E23%40julienviet.com.