I am using Akka/Play(Java) in an system where an Actor needs to write data 
to outstream and read from blocking input stream. In my current 
implementation I am using a java thread which does the actual 
writing/reading to/from streams, the thread in constructed by the actor 
passing it a self reference. When writing data the actor simply calls

workerthread.write(...)

and upon reading data from blocking input stream the thread calls

actorRef.tell(message, null)

My testing looks ok, but I would like to know if there are better 
approaches/patterns or any potential problem I would need to be mindful of. 
I know introducing a worker thread is not optimal, however since the 
integration is with an stateful system I see no other option

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