Hi,

I've created a route in my application to download a large file. But I 
can't figure out how to make this route handles calls in parallel.

I've tried to read a different file on each request, tried with *mapAsync*, 
with *mapAsyncUnordered* and with a custom dispatcher, but none of the 
enumerated solutions works.

Is there something I've missed?

Here is the first version I've made:

Http().bindAndHandle(Flow[HttpRequest].map { _ => HttpResponse(entity = 
HttpEntity(ContentTypes.`application/octet-stream`, FileIO.fromPath(Paths.
get("file")))) }, "localhost", 8080)

Thanks for your help,
Victor

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to