Hello Soumya!
For materializing a stream from within another Actor you should use the 
ImplicitFlowMaterializer helper trait we provide:
https://github.com/akka/akka/blob/release-2.3-dev/akka-stream/src/main/scala/akka/stream/scaladsl/ImplicitFlowMaterializer.scala
This saves you from a number of pitfals around closing over “not the 
materializer I expected” etc.

As for actually running - I wouldn’t use the wording “inside an actor”, as the 
stream is a bunch of actors itself - and they’re not child actors of the actor,
but of the stream materializer. Instead let’s use the wording of “materializing 
a stream from within an actor”.

I just noticed we didn’t (yet!) document this trait. We’ll add it to the docs 
which we will be still improving after the holiday-break..

Happy hakking!

-- 
Konrad 'ktoso' Malawski
hAkker @ typesafe
http://akka.io

On 26 December 2014 at 05:00:18, Soumya Simanta ([email protected]) 
wrote:

My understanding is that a "running" stream is a bunch of actors underneath 
executing the flow. Assuming this to be true, is there any restriction or 
concerns of running a stream inside a normal Akka actor ? 

Thanks
-Soumya


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