Updated on 2026-11-02 GMT+08:00

Buckets

A bucket is a container for storing objects in OBS. OBS uses a flat structure based on buckets and objects. This structure enables all objects to be stored at the same logical layer, rather than in a hierarchy.

Why Buckets Matter

During digital transformation, unstructured data such as images, videos, and logs grows rapidly. Traditional file systems rely on hierarchical directory trees. When the number of files reaches tens of millions or even billions, directory traversal and path resolution cause performance bottlenecks, and hardware expansion becomes challenging. To store massive amounts of data and support high-concurrency access, object storage uses buckets and a flat namespace instead of complex directory hierarchies. Each object is accessed directly through a unique identifier over standard network protocols. This design makes read and write operations low-overhead and efficient and meets the needs of large-scale data management.

Advantages

  • Flat architecture: Object storage uses a flat namespace, rather than traditional hierarchical file-system directories. All objects sit at the same logical level and are located through a unique key. This reduces path-resolution bottlenecks.
  • Virtually unlimited storage: A bucket is a logical container backed by a distributed cluster. Storage capacity and object count have no fixed upper limit, and resources can be expanded on demand.
  • Easy access: Object storage provides REST APIs over standard HTTP/HTTPS and fits mainstream Internet application architectures. You can read and write data globally without mounting a file system.

Bucket Use Cases

  • Static website hosting: Store static website assets in a bucket and expose them through public URLs. You can pair the bucket with Content Delivery Network (CDN) to accelerate delivery. This reduces load on backend servers, makes pages load faster, and improves user experience.
  • Enterprise backup and archiving: Periodically archive database snapshots and historical logs to buckets for long-term retention. This meets compliance requirements, enhances data security and reliability, and reduces the long-term storage costs of cold data.

For more bucket use cases, see Application Scenarios.

Bucket Storage Classes

Based on data access frequency, OBS provides four bucket storage classes: Standard, Infrequent Access, Archive, and Deep Archive.

  • Standard: The Standard storage class offers low latency and high throughput. It is ideal for frequently accessed data (multiple times a month on average) or small files (less than 1 MB). Typical use cases include mobile apps, hot videos, and social-media workloads.
  • Infrequent Access: The Infrequent Access storage class is ideal for data that is infrequently accessed (less than 12 times a year on average), but when needed, the access has to be fast. Typical use cases include file synchronization, file sharing, and enterprise backups.
  • Archive: The Archive storage class is ideal for data that is rarely accessed (once a year on average). Typical use cases include data archiving and long-term backups. Archive storage is secure, durable, and cost-effective. However, data must be restored before it can be accessed, and it may take minutes to hours to restore data.
  • Deep Archive: The Deep Archive storage class is ideal for data that is hardly ever accessed (once every few years on average). It costs even less than the Archive storage class, but it also takes longer time (usually several hours) to restore data.

Related Features and Operations

After learning the core concepts and use cases of buckets, you can explore this part to see the basic operations and advanced features of buckets. If you want to go deeper and apply these functions in your services, follow the related links to access the detailed Huawei Cloud official documentation.

Basic bucket operations:

  • Bucket creation: Create a bucket as a logical container for storing massive amounts of data. You can specify the storage region and storage class as needed. For details, see Creating a Bucket.
  • Object uploads: Upload local files, images, or service logs to a bucket. For GB- or TB-level large files, you can use multipart upload to improve network throughput and increase the success rate of data transfer. For details, see Uploading an Object.
  • Object downloads: You can download objects from a bucket to your local computer or application server through the console, APIs, or a URL. For details, see Downloading an Object.

Permissions configuration:

To enhance the security of cloud data assets, you can configure ACLs or bucket policies to control the read, write, and management permissions for different users, IAM users, or IP addresses on buckets. For details, see Introduction to OBS Access Control.

More operations:

  • Lifecycle management: You can configure lifecycle rules to automatically move cold data to lower-cost Archive or Deep Archive storage or delete it on a scheduled basis. This helps optimize long-term storage costs. For details, see Lifecycle Management.
  • Static website hosting: You can host a lightweight website without purchasing compute servers. Simply upload static page files (such as HTML, CSS, and JS) to a bucket and configure static website hosting for the bucket. For details, see Static Website Hosting.
  • Cross-region replication: You can use cross-region replication to meet remote disaster recovery and backup requirements, or to provide nearby access for multiple branches. OBS automatically and securely replicates data from the source bucket to a destination bucket in another region. For details, see Cross-Region Replication.