简体   繁体   English

CloudBlob 子类之间有什么区别?

[英]What is the difference between CloudBlob subclasses?

Looks like CloudBlob has 3 subclasses you can use to get data in and out of Azure Storage.看起来CloudBlob有 3 个子类,可用于将数据传入和传出 Azure 存储。 Here's the (very sparse) documentation:这是(非常稀疏的)文档:

  • Microsoft.WindowsAzure.Storage.Blob. Microsoft.WindowsAzure.Storage.Blob。 CloudBlockBlob 云块Blob
    • Represents a blob that is uploaded as a set of blocks.表示作为一组块上传的 blob。

  • Microsoft.WindowsAzure.Storage.Blob. Microsoft.WindowsAzure.Storage.Blob。 CloudAppendBlob : 云AppendBlob :
    • Represents an append blob, a type of blob where blocks of data are always committed to the end of the blob.表示追加 blob,这是一种 blob,其中数据块始终提交到 blob 的末尾。

  • Microsoft.WindowsAzure.Storage.Blob. Microsoft.WindowsAzure.Storage.Blob。 CloudPageBlob 云页面块
    • Represents a Microsoft Azure page blob.表示 Microsoft Azure 页 blob。

I've been using CloudBlockBlob to upload/download pdfs and images, and everything seems to be working.我一直在使用CloudBlockBlob上传/下载 pdf 和图像,一切似乎都在工作。 I can't seem to find a page that explains what these classes do.我似乎找不到解释这些类的作用的页面。

Under what circumstances should I use CloudAppendBlob and CloudPageBlob ?在什么情况下我应该使用CloudAppendBlobCloudPageBlob

Found the page I was looking for: https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blobs-introduction找到了我正在寻找的页面: https : //docs.microsoft.com/en-us/azure/storage/blobs/storage-blobs-introduction

  • CloudBlockBlob:云块Blob:
    • Block blobs are ideal for storing text or binary files, such as documents and media files.块 blob 非常适合存储文本或二进制文件,例如文档和媒体文件。

  • CloudAppendBlob: 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.追加 Blob 与块 Blob 的相似之处在于它们由块组成,但它们针对追加操作进行了优化,因此它们对于日志记录场景很有用。

  • CloudPageBlob: CloudPageBlob:
    • Page blobs can be up to 1 TB in size, and are more efficient for frequent read/write operations.页 blob 的大小最高可达 1 TB,对于频繁的读/写操作更有效。 Azure Virtual Machines use page blobs as OS and data disks. Azure 虚拟机使用页 Blob 作为操作系统和数据磁盘。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM