When using groupBy
in a stream flow definition with some max capacity of n
:
source.groupBy(Int.MaxValue, _.key).to(Sink.actorRef)
If I hook up the subflows that result to say, an Actor sink, and purposefully cause the subflows to terminate on some message, will that free up the groupBy
capacity? Will it go from n
to n-1
back to n
if a subflow is ended by the sink? Is this a viable way to set up a dynamic-ish graph?