Re: [akka-user] Long-running stream with groupBy resource usage

2014-12-11 Thread Björn Antonsson
Hi, Yes you are right that groupBy is probably not a good solution. The incoming connections have already been acepted and if you throttle them by delaying the decision about what to do with them, then you are vulnerable to a DOS attack. Also you are right that substreams that you cancel will

[akka-user] Long-running stream with groupBy resource usage

2014-12-06 Thread Denny
Hello, I have a long-running stream of HTTP requests and I want to group the requests by domain. I also want to implement request throttling on a per-domain basis. groupBy(_.domain) and then throttle each substream seems like the way to go, but I'm worried about the resource usage. There may