Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Azure Blob storage transactional?

As the title states is Azure Blob Storage transactional? I have a two scenarios:

1) I need to insert/modify two files. They need to be all or nothing so if one fails, none get inserted/updated.

2) When updating how is contention handled? Lets say I have file.txt. Two users at the same time want to update the content of that file. What happens in this situation?

like image 842
user2924127 Avatar asked Sep 18 '25 23:09

user2924127


1 Answers

If transaction context is what you are looking for, I don't think Azure Blob Storage supports it in nature. And it is common for most of the cloud storage.

We can confirm by looking at the API, there is no transaction context... https://msdn.microsoft.com/en-us/library/azure/dd179377.aspx

For concurrency, there is a detail blog post explain how it work, please refer to below link for details.

https://azure.microsoft.com/en-us/blog/managing-concurrency-in-microsoft-azure-storage-2/

like image 114
Xiaomin Wu Avatar answered Sep 22 '25 22:09

Xiaomin Wu