Some messages belong in more than one sub-stream - how would I accomplish 
that using groupBy?

On Sunday, November 16, 2014 1:42:48 AM UTC+1, Oscar Broman wrote:
>
> Hello!
>
> I've been messing around with akka-streams lately and ran into some 
> problems. I'm not sure where to go from this point.
>
> I have a TCP connection to an external data feed, in which I can subscribe 
> to a wide variety of real-time data. What exactly will be subscribed to 
> changes during runtime.
>
> Messages from the external feed can land in one or many actors, and these 
> actors have varying lifespans. Where the messages end up depend on their 
> type and different types of information inside them.
>
> How would I do this? From what I gather, using a FlexiRoute means I cannot 
> add output ports after it has been materialized.
>
> At one point the stream could look like this:
>
>          tcp io
>            |
>   transform(chop at LF)
>            |
>     map(_.utf8String)
>            |
>   map(FeedMessageParser(_)) // data is now Option(FeedMessage)
>            |
>    filter(_ != None)
>            |
>           /|\
>          / | \
>         /  |  \
>        /   |   \
>       /    |    \
>      /     |     \
>     /      |      \
>  TYPE=1  ID=3   TYPE=4,ID=4 // different prerequisites decide where the 
> data flows next
>    |       |      / \
>    |       |     /   \
>    |       |     |   |
>    |       |     |   |
>    |       |     |   |
>   sub1     |     |   |
>          sub2    |   |
>                sub3 sub4
>
>
> How do I do this best? Should I take a step back and look over my options, 
> or is there a way to tame the river?
>

-- 
>>>>>>>>>>      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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to