Asynchronous file upload in Java using Akka and Play Framework

I want to upload files asynchronously. I am using Play Framework with Java.

I have found several ways to download files asynchronously. These files are part of the multiline form data.

1) Akka way: provide file handling to the actor

2) Play path: use Promise to download

3) Java way: asynchronous file pipe

How should I proceed?

a) Use Akka actors only inside game controllers.

b) Use Akka actors inside asynchronous methods of the game framework that returns a Promise

  • with this, the async akka members are inside another async play method that might be overkill

What's the best way to use java and not scala?

+3


source to share





All Articles