CloudBlob 子类之间有什么区别?
What is the difference between CloudBlob subclasses?
看起来 CloudBlob 有 3 个子类 可用于将数据传入和传出 Azure 存储。这是(非常稀疏的)文档:
- Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob
Represents a blob that is uploaded as a set of blocks.
- Microsoft.WindowsAzure.Storage.Blob.CloudAppendBlob:
Represents an append blob, a type of blob where blocks of data are always committed to the end of the blob.
- Microsoft.WindowsAzure.Storage.Blob.CloudPageBlob
Represents a Microsoft Azure page blob.
我一直在使用 CloudBlockBlob
到 upload/download pdf 和图像,似乎一切正常。我似乎找不到解释这些 类 功能的页面。
什么情况下应该使用CloudAppendBlob
和CloudPageBlob
?
找到我要找的页面:https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blobs-introduction
- CloudBlockBlob:
-
Block blobs are ideal for storing text or binary files, such as documents and media files.
- CloudAppendBlob:
-
Append blobs are similar to block blobs in that they are made up of blocks, but they are optimized for append operations, so they are useful for logging scenarios.
- CloudPageBlob:
-
Page blobs can be up to 1 TB in size, and are more efficient for frequent read/write operations. Azure Virtual Machines use page blobs as OS and data disks.
看起来 CloudBlob 有 3 个子类 可用于将数据传入和传出 Azure 存储。这是(非常稀疏的)文档:
- Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob
Represents a blob that is uploaded as a set of blocks.
- Microsoft.WindowsAzure.Storage.Blob.CloudAppendBlob:
Represents an append blob, a type of blob where blocks of data are always committed to the end of the blob.
- Microsoft.WindowsAzure.Storage.Blob.CloudPageBlob
Represents a Microsoft Azure page blob.
我一直在使用 CloudBlockBlob
到 upload/download pdf 和图像,似乎一切正常。我似乎找不到解释这些 类 功能的页面。
什么情况下应该使用CloudAppendBlob
和CloudPageBlob
?
找到我要找的页面:https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blobs-introduction
- CloudBlockBlob:
-
Block blobs are ideal for storing text or binary files, such as documents and media files.
-
- CloudAppendBlob:
-
Append blobs are similar to block blobs in that they are made up of blocks, but they are optimized for append operations, so they are useful for logging scenarios.
-
- CloudPageBlob:
-
Page blobs can be up to 1 TB in size, and are more efficient for frequent read/write operations. Azure Virtual Machines use page blobs as OS and data disks.
-