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

Using CDN to Accelerate Access to OBS

Background

More and more companies in various industries use OBS to store static resource files such as images, videos, and software packages, and use OBS as the storage source for websites, forums, apps, and games. You can directly request these static resources from OBS using URLs. Figure 1 shows the request process. OBS can solve the problem of insufficient local storage. Generally, files are stored in only one region. The response speeds for users accessing OBS in different regions are different. In scenarios where frequent access is required, accessing OBS to obtain files consumes a large amount of traffic.

Figure 1 Process of obtaining data from OBS

Solution Description

OBS provides low-cost storage, and Huawei Cloud CDN provides website acceleration, file download acceleration, and on-demand service acceleration. Storing data on OBS and using CDN for service acceleration can both reduce costs and improve user experience. When a user initiates an access request, CDN searches for the CDN PoP with the fastest response speed and checks whether the content requested by the user is cached on the CDN PoP.

If the CDN PoP does not cache the requested data or the cached data expires, CDN retrieves the content from OBS, as shown in Figure 2.

Figure 2 Accessing OBS with CDN acceleration (without cached data on the CDN PoP)

When another user accesses the same data, CDN directly returns the cached data to the user without sending another access request to OBS. Figure 3 shows the process of accessing OBS using CDN when the CDN PoP caches the desired content.

Figure 3 Accessing OBS with CDN acceleration (with cached data on the CDN PoP)

Solution Advantages

  • Low cost: OBS provides pull traffic packages with preferential prices for CDN to pull content from OBS. When data is cached on CDN PoPs, subsequent requests are charged based on the pull traffic consumed by CDN, which reduces OBS costs.
  • High efficiency: The CDN service on Huawei Cloud has sufficient acceleration resources and widely distributed nodes. It ensures that user requests are precisely scheduled to the optimal edge node to provide effective and stable acceleration effects.

Application Scenarios

  • Applications or services that provide file download services through OBS. For example, websites, game clients, and app stores that provide file download services based on HTTP or HTTPS.
  • Applications or services that provide audio on demand (AOD) or video on demand (VOD) services through OBS. For example, online education websites, online video sharing websites, Internet VOD platforms, and AOD or VOD apps.

Constraints

Only buckets of version 3.0 or later support CDN acceleration. To check the version of a bucket, you need to go to the Basic Information area on the Overview page of the bucket on OBS Console.

Using CDN to Accelerate OBS-Based VOD

The following describes the CDN acceleration solution for OBS-based VOD and covers the scenarios, architecture, advantages, constraints, resource planning, and procedures.