Search code examples
azureatomicazure-blob-storage

Are append operations on an AppendBlob atomic?


I am using append blob to store a large binary file. I've got the file in parts (every part is less than 4 MB) and append them to make it whole again. If an append operation fails during the process, are there any remains on the file from this failed append attempt? Or this append operation is atomic?


Solution

  • If the storage service returns a failure code, nothing remains from the failed attempt. This assumes 'attempt' means a single storage service call (ex append 4MB block).