I have WCF service that I can upload files.
XElement upload = service.UploadFiles(id, File.ReadAllBytes(filePath));
This works, but I am just wondering if it is the best way to upload each of them one by one when you have many (about a thousand) small files (15~20K). How can we compare "Chunky" versus "Chatty" approaches?
1) Is it better to send each of them, or zip them all in one file to save the latency time for acknowledgment of each of them.
2) Having said that, I need to increase the maximum size of array or other settings as I want to zip them all together. Is this recommended? Cause I read that this acknowledgment for each of them could be more expensive comparing to the sending one big file and one acknowledgment at the end?
thanks,