This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes parallel download Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "parallel download" Watch "parallel download" New topic
Author

parallel download

Alessandro Brawerman
Greenhorn

Joined: Sep 22, 2003
Posts: 22
Hi all,
I need to improve performance on one experiment I'm currently working on. I have a client that currently connects to a server (via HTTP connection) and downloads a certain file. I was wondering if it is possible to have this client connecting to say, at least, 2 servers and download half of the file from each server at the same time. Since the bottleneck in my scenario is not the network doing this would probably increase overall performance.
Thanks,
Alessandro.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Please stop posting the same question over and over. By my count this is the fifth version. Lasse Koskela has already given you one very good answer here.


[Jess in Action][AskingGoodQuestions]
Alessandro Brawerman
Greenhorn

Joined: Sep 22, 2003
Posts: 22
The questions are different. On the J2ME forum I was interested in one answer refarding mobile devices, here I'm asking if it is possible to do parallel downloads with Java (not J2ME). So please, let the people read and maybe answer this.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Is it possible to write a "ResumeDownloadServlet" which takes the resource name and a byte offset as request parameters, fast-forwards to the given position, and only then starts writing the data to the response stream?
If you can't do something like this, then I doubt you can speed up the download in any way.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: parallel download
 
Similar Threads
Do ServletOutputStreams block until client has acknowledged receipt?
DownLoading a PDF File
file downloading from the server
downloading a file
maintain single session from applet