Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

If flux can deal with 0-N elements then why there is mono in project reactor?

Pardon my silly question. I am very new to project reactor. And this question is bugging me a lot.

If flux can deal with 0….N elements and Mono can deal with 0….1 element then why there is mono? Isn’t flux is dealing with 0….1 element also? So what is the requirement for mono? Can we not do the work of mono with just flux?

I tried to find the question on the internet. But could not find it. If you can elaborate a little bit I will be very grateful. Thanks in advance.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

The answer to this question is the same as the answer to the question "Why we use a single int if an int array can deal with arbitrary amount of ints".

(That is, it can, but you don’t want to.)

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading