Actor stream to file

43 views
Skip to first unread message

Richard Rodseth

unread,
Jun 23, 2016, 2:53:41 PM6/23/16
to akka...@googlegroups.com
I have a stream which needs to output some progress/error text to a file and to console (different things to each).

I've implemented something using alsoTo(fileSink).alsoTo(consoleSink).

But now I'm considering funneling these messages through an actor intermediary instead. i.e. alsoTo(outputActor)

Wondering how I'd set things up to make the output actor stream some of its messages to a  file sink. Would it be an ActorPublisher that connected itself to the file sink? 

Patrik Nordwall

unread,
Jul 1, 2016, 9:26:22 AM7/1/16
to akka...@googlegroups.com
Have you looked at:
  • Sink.actorRef
  • Sink.actorRefWithAck
  • mapAsync + ask
/Patrik

--
>>>>>>>>>> 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+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.



--

Patrik Nordwall
Akka Tech Lead
Lightbend -  Reactive apps on the JVM
Twitter: @patriknw

Reply all
Reply to author
Forward
0 new messages