Azure Stack Hub 存储简介Introduction to Azure Stack Hub storage


Azure Stack Hub 存储是一组与 Azure 存储提供的服务一致的云存储服务。Azure Stack Hub Storage is a set of cloud storage services consistent with the services provided by Azure Storage. 这些服务包括 Blob、表和队列。These services include blobs, tables, and queues.

Azure Stack Hub 存储服务Azure Stack Hub Storage services

Azure Stack Hub 存储提供以下三个服务:Azure Stack Hub Storage provides the following three services:

  • Blob 存储Blob storage

    Blob 存储用于存储非结构化对象数据。Blob storage stores unstructured object data. Blob 可以是任何类型的文本或二进制数据,例如文档、媒体文件或应用安装程序。A blob can be any type of text or binary data, such as a document, media file, or app installer.

  • 表存储Table storage

    表存储可存储结构化数据集。Table storage stores structured datasets. 表存储是一个 NoSQL“键-属性”数据存储,可以用于实现快速开发以及快速访问大量数据。Table storage is a NoSQL key-attribute data store, which allows for rapid development and fast access to large amounts of data.

  • 队列存储Queue storage

    队列存储为云服务的各个组件之间的工作流处理和通信提供可靠的消息传送。Queue storage provides reliable messaging for workflow processing and for communication between components of cloud services.

Azure Stack Hub 存储帐户是可让你访问 Azure Stack Hub 存储的安全帐户。An Azure Stack Hub Storage account is a secure account that gives you access to services in Azure Stack Hub Storage. 存储帐户为存储资源提供唯一的命名空间。Your storage account provides the unique namespace for your storage resources. 下图显示了存储帐户中 Azure Stack Hub 存储资源之间的关系:The following diagram shows the relationships between the Azure Stack Hub Storage resources in a storage account:

Azure Stack Hub 存储概述

Blob 存储Blob storage

对于有大量非结构化对象数据要存储在云中的用户,Blob 存储提供有效且可缩放的解决方案。For users with a large amount of unstructured object data to store in the cloud, blob storage offers an effective and scalable solution. 使用 Blob 存储来存储如下内容:Use blob storage to store content such as:

  • 文档Documents
  • 社交数据,例如照片、视频、音乐和博客Social data such as photos, videos, music, and blogs
  • 文件、计算机、数据库和设备的备份Backups of files, computers, databases, and devices
  • Web 应用的图像和文本Images and text for web apps
  • 云应用的配置数据Configuration data for cloud apps
  • 大数据,例如日志和其他大型数据集Big data, such as logs and other large datasets

每个 Blob 都组织到一个容器中。Every blob is organized into a container. 容器还提供了一种有用的方式来向对象组分配安全策略。Containers also provide a useful way to assign security policies to groups of objects. 一个存储帐户可以包含任意数目的容器,一个容器可以包含任意数目的 Blob(最高可达存储帐户的限制)。A storage account can contain any number of containers and a container can contain any number of blobs (up to the limit of storage account).

Blob 存储提供三种类型的 blob:Blob storage offers three types of blobs:

  • 块 blobBlock blobs

    块 Blob 进行了相应的优化来流化和存储云对象,Block blobs are optimized for streaming and storing cloud objects. 是用于存储文档、媒体文件、备份以及其他类似文件的不错选择。They're a good choice for storing documents, media files, backups, and other similar files.

  • 追加 blobAppend blobs

    追加 Blob 类似于块 Blob,但针对追加追加操作进行了优化。Append blobs are similar to block blobs, but are optimized for append operations. 追加 Blob 仅可以通过将新的块添加到末尾来进行更新。An append blob can be updated only by adding a new block to the end. 对于需要新数据只能写入到 Blob 结尾的情况,例如日志记录,追加 Blob 是一个不错的选择 。Append blobs are a good choice for scenarios such as logging, where new data needs to be written only to the end of the blob.

  • 页 blobPage blobs

    页 Blob 已针对表示 IaaS 磁盘和支持随机写入进行优化,且大小可以高达 1 TB。Page blobs are optimized for representing IaaS disks and supporting random writes up to 1 TB in size. Azure Stack Hub 虚拟机连接的 IaaS 磁盘是以页 blob 方式存储的 VHD。An Azure Stack Hub virtual machine attached IaaS disk is a VHD stored as a page blob.

表存储Table storage

与前几代的必需软件相比,现代应用通常要求数据存储具有更高的可伸缩性和灵活性。Modern apps often demand data stores with greater scalability and flexibility than previous generations of software required. 表存储提供了具有高可用性且可大规模伸缩的存储,因此应用可以自动伸缩以满足用户需求。Table storage offers highly available, massively scalable storage, so that your app can automatically scale to meet user demand. 表存储是 Microsoft 的 NoSQL 键/属性存储 - 它的无架构设计让它不同于传统的关系数据库。Table storage is Microsoft's NoSQL key/attribute store-it has a schemaless design, making it different from traditional relational databases. 采用无模式的数据存储,可以很容易地随着应用需求的发展使数据适应存储。With a schemaless data store, it's easy to adapt your data as the needs of your app evolve. 表存储易于使用,因此开发人员可以快速创建应用。Table storage is easy to use, so developers can create apps quickly.

表存储是一种“键-属性”存储,这意味着表中的每个值都是随所键入的一个属性名称存储的。Table storage is a key-attribute store, which means that every value in a table is stored with a typed property name. 属性名称用来筛选和指定选择条件。The property name is used for filtering and specifying selection criteria. 属性集合及其值构成了实体。A collection of properties and their values comprise an entity. 由于表存储是无模式的,因此同一表中的两个实体可以包含不同的属性集合,并且这些属性可以属于不同的类型。Since table storage is schemaless, two entities in the same table can contain different collections of properties, and those properties can be of different types.

可以使用表存储来存储灵活的数据集,例如 Web 应用的用户数据、通讯簿、设备信息,以及服务需要的任何其他类型的元数据。You can use table storage to store flexible datasets, such as user data for web apps, address books, device information, and any other type of metadata that your service requires. 对于当前的基于 Internet 的应用,NoSQL 数据库(例如表存储)提供了一种用于替代传统的关系数据库的主流方式。For today's internet-based apps, NoSQL databases like table storage offer a popular alternative to traditional relational databases.

一个存储帐户可以包含任意数目的表,一个表可以包含任意数目的实体,最高可达存储帐户的容量限制。A storage account can contain any number of tables, and a table can contain any number of entities, up to the capacity limit of the storage account.

队列存储Queue storage

在设计应用以实现可伸缩性时,通常要将各个应用组件分离,使其可以独立地进行伸缩。In designing apps for scale, app components are often decoupled, so that they can scale independently. 队列存储为在应用组件之间进行异步通信提供了一种可靠的消息传送解决方案,无论这些应用组件是在云中、在桌面上、在本地服务器上运行还是在移动设备上运行。Queue storage provides a reliable messaging solution for asynchronous communication between app components, whether they're running in the cloud, on the desktop, on an on-premises server, or on a mobile device. 队列存储还支持管理异步任务以及构建过程工作流。Queue storage also supports managing asynchronous tasks and building process workflows.

一个存储帐户可以包含任意数目的队列,一个队列可以包含任意数目的消息(最高可达存储帐户的容量限制)。A storage account can contain any number of queues and a queue can contain any number of messages (up to the capacity limit of the storage account). 每条消息最大可以为 64 KB。Individual messages may be up to 64 KB in size.

后续步骤Next steps