Re: [akka-user] GraphStage instead of ActorPublisher/ActorSubscriber

2017-04-18 Thread Konrad Malawski
I would not call it a stub... it's basically all you need.
I see however that you're asking for extend documentation with examples in
that section - would you mind opening a ticket on
http://github.com/akka/akka about that (Add more examples for integrating
with Actors in docs section ...)?

Thanks in advance for the ticket :)

-- 
Konrad `ktoso` Malawski
Akka  @ Lightbend 

On 19 April 2017 at 12:46:23, Richard Rodseth (rrods...@gmail.com) wrote:

I've read that ActorPublisher and ActorSubscriber are deprecated in favour
of GraphStage, but haven't found examples of how to accomplish this. This
section of the documentation is a stub:

http://doc.akka.io/docs/akka/2.5/scala/stream/stream-customize.html#Integration_with_actors

I have several scenarios where I need to thread a stream through an actor,
but still want to take advantage of backpressure.

So far I'm using mapAsync() and ask()


--
>> 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 https://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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


Re: [akka-user] GraphStage instead of ActorPublisher/ActorSubscriber

2017-04-18 Thread Konrad Malawski
Implement the logic within the GraphStage.
It basically behaves like an Actor (but can be fused too).

-- 
Konrad `ktoso` Malawski
Akka  @ Lightbend 

On 19 April 2017 at 12:46:23, Richard Rodseth (rrods...@gmail.com) wrote:

I've read that ActorPublisher and ActorSubscriber are deprecated in favour
of GraphStage, but haven't found examples of how to accomplish this. This
section of the documentation is a stub:

http://doc.akka.io/docs/akka/2.5/scala/stream/stream-customize.html#Integration_with_actors

I have several scenarios where I need to thread a stream through an actor,
but still want to take advantage of backpressure.

So far I'm using mapAsync() and ask()


--
>> 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 https://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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


[akka-user] GraphStage instead of ActorPublisher/ActorSubscriber

2017-04-18 Thread Richard Rodseth
I've read that ActorPublisher and ActorSubscriber are deprecated in favour
of GraphStage, but haven't found examples of how to accomplish this. This
section of the documentation is a stub:

http://doc.akka.io/docs/akka/2.5/scala/stream/stream-customize.html#Integration_with_actors

I have several scenarios where I need to thread a stream through an actor,
but still want to take advantage of backpressure.

So far I'm using mapAsync() and ask()

-- 
>>  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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.