Hi Ori,

The answer is: it is allowed for the materializer, dispatcher, JVM, OS
Scheduler to allow for elements produced by the mapAsyncUnordered to be
reordered—it doesn't mean that they will sometimes, will always, will
never, etc.

If you don't want possible reordering, use mapAsync.

Cheers,
√

On Sat, 26 Aug 2017 at 17:11, Ori Popowski <[email protected]> wrote:

>
> Hi,
>
> Say that I have a stream with a consecutive integers source (1, 2, 3 ...),
> and assume that toString returns a Future[String]:
>
> source ~> bcast ~> toString.mapAsyncUnordered(8)(identity) ~> zip.in0
>           bcast ~>                                            zip.in1
>                                                               zip.out ~>
> sink
>
> My question is if mapAsyncUnordered will cause a shuffling, or will every
> integer will be paired with its own toString representation?
>
> Will the result be this:
>
> "1" -> 1
> "2" -> 2
> "3" -> 3
> ...
>
>
>
> or more like this:
>
> "1" -> 7
> "2" -> 1
> "3" -> 3
> ...
>
>
>
> --
> >>>>>>>>>> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Cheers,
√

-- 
>>>>>>>>>>      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 [email protected].
To post to this group, send email to [email protected].
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