Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 323687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:03:14+00:00 2026-05-12T09:03:14+00:00

I have WCF service that I can upload files. XElement upload = service.UploadFiles(id, File.ReadAllBytes(filePath));

  • 0

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,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T09:03:15+00:00Added an answer on May 12, 2026 at 9:03 am

    As you seem to know, you’ll generally want your services to be “chunky” as opposed to “chatty”. The answer in your specific scenario will depend on:

    • How large the total of all the files is.
    • If and how you use the acknowledgments you’re currently getting. If you need to update a UI a each file is uploaded you’ll find it difficult to keep level of detail if you send them all at once.
    • What type of reliability/retryability you need. Right now, if your service or connection dies you can simply resend the files that didn’t get sent. If you batch all the files together you’ll have to start all over again, which may or may not be a big issue.

    If you can, you might want to look at the support for sending Streams with WCF:

    • http://msdn.microsoft.com/en-us/library/ms731913.aspx
    • http://www.haveyougotwoods.com/archive/2008/04/14/wcf-message-streaming.aspx

    By sending a Stream you get the size benefits of zipping up the entire batch of files, while still retaining the ability to know your progress within the upload.

    I’m not sure of any specific issues regarding increasing the maximum message size, beyond the impact it has on memory usage. Lastly, I would say that you should be zipping up these files regardless of if you send them all together.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to create a single .svc file (WCF Service) that I can
I have a WCF restful service that I'm trying to upload an image to.
I am trying to write a WCF service that can send mp3 files to
I have a WCF service that I would like to host in IIS 7.5.
Please help...I'm going crazy....I have a wcf service that exists on a few different
I have a WCF web service that is accepting some custom objects and a
Is this posible? If i have a wcf service running + mex,wsHttpBinding or netTcp
I have a WCF Rest service: [WebHelp(Comment = Sample description for GetData)] [WebInvoke(Method=POST, UriTemplate
I have a scenario where I need to upload a file from one web
I was looking at this thread: How to handle large file uploads via WCF?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.