I want to send a huge dataset to the WCF service. Data can consist of thousands of od records (entities), depending on the input file analyzed.
Now the question arises: what is the most optimal way to send this data?
a. Recording by recording?
Thus, I will be sure that I will not exceed the maximum permissible message size, and I can recover from a network problem at the las position to successfully send the entity, but, on the other hand, there will be many associated with the overhead of connecting to the same service thousands of times and pass SOAP headers (really big overhead) with each record.
b. All at once?
This will save me some overhead, but on the other hand, if the message size reaches, say 500 MB or 2 GB, I block the machine, I exceed the maximum message quota and say that after downloading 490 MB of 500 MB, a network connection occurred, then I You need to resend 490 MB.
from. Parts?
By this I mean sending data, but in part. I break the data after every 100 records and load it in parts. Some savings on overhead.
Is there a better way to accomplish this? Any ideas? Which one is the most optimal?
Thanks in advance.
source
share