1

Am trying to give a portal for download using Java - Spring where the file may be about 1 GB and the application will be hosted in a Server and can be accessed throughout the world.

Can I make that download to be multithreaded or make it much faster?

4
  • Multithreading lets you parallelize your processing. For a file download, that's most likely not where your bottleneck is; it's more likely to be network communication or disk IO. Jul 12, 2018 at 12:06
  • @RobbyCornelissen do u have any smaple code for that in java or procedure to achieve that ? Jul 12, 2018 at 12:10
  • Achieve what? Multithreading a file download? I don't think there's a point: speed of sending bytes over network < speed of reading bytes from disk < speed of processing bytes. You're trying to optimize what's already the fastest link in the chain. Jul 12, 2018 at 12:12
  • Having another doubt where the client uploads a File of 1 GB and whether the upload can be made multithreaded and can we make it fast? Jul 13, 2018 at 5:14

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.