Hi,

I think you're confusing some things here. Both mapAsync and 
mapAsyncUnordered limit the parallelism level in a similar way, the 
difference is whether or not they emit the results in the order they were 
received.
In other words, mapAsyncUnordered(8) will read 8 messages and start 
processing them. Once it has demand from the downstream, it will emit the 
results of any completed future, and then read another message and start 
processing it.

Tal


On Sunday, September 25, 2016 at 5:59:34 PM UTC+3, sirpy wrote:
>
> The parallelism argument to mapasyncunordered doesn't seem to be effective.
> According to the docs it seems like it will backpressure only if 
> downstream also backpressures and futures count > parallelism.
> On the other hand mapasync is limited by parallelism but it must wait for 
> the first future in line to finish before starting the next one.
> So my question is how can i achieve the same effect as with mapasync but 
> using mapasyncunordered that the total amount of futures currently active 
> by mapasyncunordered is limited by the parallelism argument and as soon as 
> one future is done the next one will start (ie unordered).
>
> Thanks
> Hadar
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to