BLOB Parallel Upload Control – Internal Process Flow Diagram


image

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BLOB Parallel Upload Control – Internal Process Flow Description


1. When user selects any file to upload, the code generates a shared access signature on the container for a specified time limit during which upload must be made.

2. The algorithm then splits-up the file into Blocks/Chunks each of size 1 MB and counts the total number of blocks/chunks generated.

3. For each upload block a TPL task is created:

3.1  Each of the TPL task is assigned an upload block and Thread Pool assigns assigns thread to each task as per availability. Each of the task uploads its allocated block through Block Blob request.

3.2  If all blocks get uploaded successfully, a put request with block IDs is sent to commit the block list. A successful file upload notification message gets displayed to the user.

3.3  If any of the block(s)/chunk(s) fail to upload on first attempt then the uploader will keep trying to upload the block(s)/chunk(s) again and again until the retry count reaches total number of retry attempts configured by the user in the code. The number of retry attempts for failed block(s) can be customized easily in the code.

3.4  If uploader fails to upload the block/chunk after the retry attempts then the upload process gets halted and an error message is displayed to the user.

4. If there exists only single Block/Chunk (i.e. total number of blocks = 1) then the uploader will simply upload file blob.

4.1  A single task is created with the file as payload and the file is uploaded through Blob request.

4.2  A successful File upload notification message gets displayed to the user on successful uploading of the file.

4.3  If the file fails to upload on first attempt then the uploader will keep trying to upload the file again and again until the retry count reaches total number of retry attempts configured by the user in the code. The number of retry attempts for failed block(s) can be customized easily in the code.

4.4  If uploader fails to upload the file after all the retry attempts then the upload process gets halted and an error message is displayed to the user.

Last edited Sep 14, 2011 at 7:38 PM by shalabh_dixit, version 6

Comments

No comments yet.