This question has been asked for older versions of Akka Streams & Akka HTTP. akka-http: complete request with flow the problem with this answer is for each flow you need to materialise a new flow for each request which is not cheap.
A year later in the latest version what is the best way to integrate a flow with the routes DSL?
Again I have a complex Flow
I'd like to add to a route, if I map the flow to a Flow[HttpRequest, HttpResponse, _]
could I complete a route with this flow? Is there a better way or is the only way to use the low level API?
If thats the case whats the best way to do route mapping?