• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

parallel download  RSS feed

 
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.
 
author and iconoclast
Sheriff
Posts: 24220
40
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.
 
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!