2

I'm using Project Reactor with Spring boot in Java. I would like to know if there is an easy way to get the elements intersection between a couple of Flux objects using Project Reactor without blocking.

Thank you!

august0490
  • 777
  • 1
  • 9
  • 15
  • if those are not infinite streams (or very large), you can collect all elements into a `Mono>` then zip the collections together. You will get couple of list. After that you can find those elements in the strandard way – zlaval Aug 21 '20 at 21:19
  • @zlaval I think you misunderstood the intersection concept.I need to get the common elements between two groups of elements (2 Flux). https://en.wikipedia.org/wiki/Intersection_(set_theory) – august0490 Aug 23 '20 at 23:33
  • No, flux is a stream, you have two flux for example. So you have to create 2 mono list from flux to find the elements. – zlaval Aug 24 '20 at 06:20

0 Answers0