Design help for parallel processing Azure blob and bulk copy to SQL database. C#
问题 I have a requirement to fetch blob files from Azure storage, read through them, get the data and process it, and store it into a database. The number of data fetched from blob is high, i.e. around 40K records per file. There are 70 files like this in a folder. This is how I designed it: I use Parallel.Foreach on list of blob files with max parallelism 4. In each loop, I fetch stream a blob ( OpenRead method), read through it and fill a datatable. If the datatable size is 10000, I will call