How do I split a flow?
For example if I have a Source of ints that I want to split in even and
uneven. Do I have to connect it to a graph(Broadcast.create(2)) and then
filter on each of out channels?
--
Read the docs: http://akka.io/docs/
Check the FAQ:
Hi there,
you could do it like you mention (pseudocode):
Broadcast ~ Flow[].filter(even) ~
Broadcast ~ Flow[].filter(odd) ~
However we have a built-in that serves those kinds of route things depending
on something situations well: FlexiRoute
Here are the docs for it: