[akka-user] akka http actor per request

2015-11-17 Thread RafaƂ Kowalski
Hi hakkers, I'm struggling with the same issue trying to port the spray code in https://github.com/NET-A-PORTER/spray-actor-per-request to akka http. It seems that the perRequest method in the PerRequest trait should return a Future[RouteResult] which will be completed in the newly created actor.

Re: [akka-user] akka http actor per request

2015-11-17 Thread Richard Rodseth
I ended up breaking down and doing an ask (to a request handler actor) in the route definition. The request handler creates a per-request actor with the requestor as a constructor parameter, and from then on I use no more asks, but pass replyTo in tell messages. So there is not a chain of asks, ju