Quantcast
Channel: Akka Libraries - Discussion Forum for Akka technologies
Viewing all articles
Browse latest Browse all 1362

Backpressure with Actors

$
0
0

Hi there, I am having trouble wrapping my head around the various actorRefWithBackpressure options.

Let’s say I have the following:

  1. A fast source
  2. An actor that consumes and processes that source but is somewhat slow.

Is the following the correct way to hook these up? And if so, where am I supposed to be emitting and/or handling the Ack message? Is this somehow wired up by this construction:

fastSource.runWith(ActorRef.actorRefWithBackpressure(slowActor???, Ack, …))

I have read all the online docs, but they seem to be a few steps short of what I need to really grok what is going on, so any more extensive examples would be much appreciated.

Thanks.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1362