I am using Project Reactor and am using Flux.flatMapIterable. (I basically have a stream of object A; for each object A I flatmap it into a stream of object B and I make a new flux out of it.)
I am trying to understand what the prefetch setting does. In my case, each object A could potentially be converted into any number of object B (between 0 to N; N is large).
I just want to understand:
What is prefetch? Does it only apply to the initial request? (i.e. if I set it to 1, is Project Reactor intelligent enough to increase the request size if it finds out that 1 is too small?)
Is it relevant for my situation here? I was thinking about setting the prefetch to 1 in order to be conservative, since a single A object has the potential to be flatmapped into a large stream of B objects.