• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

parallel download

 
Alessandro Brawerman
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Alessandro Brawerman
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic