• 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:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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
Posts: 24203
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
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!