Re: [akka-user] Apply different functions on SubFlows

2017-04-26 Thread Vishal John
Thanks a lot!! On Tuesday, 25 April 2017 18:39:58 UTC+7, Akka Team wrote: > > Partition allows you to look at a message and decide which of its outlets > to pass the element to, this way you can design the logic of each sub > stream independently. Something like this: > > val flow: Flow[Int,

Re: [akka-user] Apply different functions on SubFlows

2017-04-25 Thread Akka Team
Partition allows you to look at a message and decide which of its outlets to pass the element to, this way you can design the logic of each sub stream independently. Something like this: val flow: Flow[Int, Int, NotUsed] = Flow.fromGraph(GraphDSL.create() { implicit builder => import

[akka-user] Apply different functions on SubFlows

2017-03-21 Thread Vishal John
Hello all, I have defined my application flow like this, *val flow = Flow[StringConsumerRecord].* * map(tup => new Ticket(tup.value.toLong)).* * mapConcat(applyBusinessLogic(_)).* * groupBy(4, _._1).* * groupedWithin(100, 5.second).* * mergeSubstreams.* * throttle(1, 1.second, 1,