Hi All,
Good Evening.
Below is the current implementation for uploading the files to Amazon storage via WCF service(Concurrency Mode - Multiple & Instance Mode - Single).
- Right now I am retrieving all the documents from Sql Data Storage & push the document one by one to Amazon via service.
- Totally we have 2 lakhs records that have to push from local to Amazon.
- We start the operation 5 days back & now its working file.
Day by day the records has pushed to Amazon gets low.
1 day - 4500
2 day - 3500
3 day - 2800
4 day - 2400
5 day - 2200
I don't know why its push the records very slowly day by day. Please assist me.
Now I am planning create different thread for pushing the records to Amazon service.
I have two solution solution with me
1) Creating 10 individual thread & divide records to each threads.
2) Parallel.ForEach to push the records to Amazon.
What would be the good approach ?
Kindly advise me.
Also if there is any other approach do you know, kindly share with me.
If you know any sample link please share with me.
Advance Thanks
Murugan Krishnan