It's not a secret anymore!
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
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "parallel download" Watch "parallel download" New topic

parallel download

Alessandro Brawerman

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.
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

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

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

Joined: Jan 23, 2002
Posts: 11962
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:
subject: parallel download
It's not a secret anymore!