Quantcast
Viewing all articles
Browse latest Browse all 1367

Separate instance of Flow per substream when using groupBy

Hi!
I have a question about akka-streams , especially groupBy and state in substream
I have a stream

source
  .groupBy(maxNumberOfSubstreams, _.hashingId)
  .mapAsyncUnordered(config.parallelismPerSubstream)(processEvent)
  .map(processResult)
  .via(throughputLimiterFlow(throughputLimiterConfig))
  .to(Sink.ignore)

I noticed that even I have many substreams from groupBy , throughputLimiterFlow(throughputLimiterConfig) is initialised only once, is there possibility to instantiate it for each substream - this flow contains some processing stats (ratio of processing errors/successes)

Thanks for any suggestions

2 posts - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1367

Trending Articles