Hello there Alexey,
I'm not sure I understand what you want to achieve, is it simply to connect 
such Sink to the Source?
That's simply: Source.actorPublisher(...).to(Sink.actorSubscriber(...)).run()

Or do you mean to put another processing stage between them?
If so then read about custom processing stages: 
doc.akka.io/docs/akka-stream-and-http-experimental/1.0/scala/stream-customize.html


-- 
Cheers,
Konrad Malawski
Akka @ Typesafe

On 20 August 2015 at 17:12:55, Alexey Shuksto (seig...@gmail.com) wrote:

Hello there,

I could not find answer to this particular question neither in docs nor in this 
group:

Is it possible to wire Sink.actorSubscriber(...) into 
Source.actorPublisher(...) in one (Partial-) Flow? And by 'wire' I mean to 
somehow send message from ActorSubscriber, instantiated from given props, to 
the 'same flow' instance of ActorPublisher?

I was thinking about giving some unique Id to both of them and then 
publish/subscribe events through `context.system.eventStream`, but then I 
realized that all materialized flows would have same Id and messages would mess 
up... :(

In fact, I'm interested in even more simple task -- create an Actor, that could 
act as PartialFlow[In, Out]: when you push a value into flow, actor receives 
it, processes and sends further down the line.

Of course, I always could do something like Flow[In] mapAsync (data => (actor ? 
data).mapTo[classOf[Out]]) -- but I would really, really prefer to do this 
message way.
--
>>>>>>>>>> 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.

-- 
>>>>>>>>>>      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