Click here to Skip to main content
12,077,333 members (46,170 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# Asynchronous FTP
Hello,

Currently I have an FTP process that grabs as many files that exist on the specific FTP file location and then pulls them down and downloads them. Based on specs changing instead of sending multiple files they are going to send one big file. Is there any suggestions on how to pull these files using threading for asynchronous processing for a certain amount of line items/records, for example 5000 records

any help would be appreciated
Posted 7-Feb-13 9:51am
bobb024396

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

You cannot really improve throughput by parallel downloading of the files from the same server. (From different servers, yes, a separate thread per service could help, to certain extent. It depends where is the bottleneck. If you have low local bandwidth, even this may not help.)

But of course, if you have it in some UI, your download code should be executed in a separate thread, not the UI thread.

—SA
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web03 | 2.8.160212.1 | Last Updated 7 Feb 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100