OSS is a cost-effective storage service. Alibaba Cloud CDN can accelerate the delivery of static resources. You can store static content, such as scripts, audio files, video files, images, and attachments in OSS and use Alibaba Cloud CDN to accelerate the delivery of content in OSS buckets. This reduces storage costs, accelerates content delivery, and reduces loads on origin servers.

Billing rule

If the origin server is an OSS bucket, you are charged for Alibaba Cloud CDN service fees and OSS service fees.

Notice Alibaba Cloud CDN and OSS are separately billed. For example, data transfer generated by Alibaba Cloud CDN and by OSS is separately billed. The pricing of Alibaba Cloud CDN is different from that of OSS. For more information, see the pricing details of Alibaba Cloud CDN and OSS.

The billable items and billing rules are:

  • Billable items
    Billable item Description
    Alibaba Cloud CDN service fee In most cases, Alibaba Cloud CDN is billed for outbound data transfer.

    In some cases, Alibaba Cloud CDN is also billed for other items, such as HTTPS requests for static content. For more information, see Billing overview.

    OSS service fee In most cases, OSS is billed fordata storage.

    In some cases, OSS is also billed for other items, such as requests. For more information, see Overview.

  • Billing rules for data transfer
    If the origin server is an OSS bucket, you may be charged for outbound data transfer from Alibaba Cloud CDN (charged by Alibaba Cloud CDN) and back-to-origin data transfer to Alibaba Cloud CDN (charged by OSS).
    • Outbound data transfer from Alibaba Cloud CDN refers to the amount of data transfer that is generated when users send requests to CDN edge nodes and the nodes return the requested content to the users. In this case, data is transmitted from CDN edge nodes to clients. The data transfer is charged by Alibaba Cloud CDN. For more information, see CDN pricing - Pay-By-Traffic.
    • Back-to-origin data transfer to Alibaba Cloud CDN refers to the amount of data transfer that is generated when CDN edge nodes redirect requests to OSS and retrieve content from OSS. In this case, data is transmitted from OSS to CDN edge nodes. The data transfer is charged by OSS. For more information, see OSS pricing - Traffic fees - Unit price for CDN back-to-origin traffic.
      Note Discounts for data transfer between Alibaba Cloud CDN and OSS:
      • If you want OSS to identify network traffic sent from Alibaba Cloud CDN and apply for a discount on the data transfer, you must set the origin server type to OSS Domain in the Alibaba Cloud CDN console.
      • If you set the origin server type to Site Domain in the Alibaba Cloud CDN console, OSS identifies network traffic sent from Alibaba Cloud CDN as outbound data transfer over the Internet. In this case, the discounts do not apply.
    OSS pricing

Resource plans

OSS and Alibaba Cloud CDN provide resource plans. If you use Alibaba Cloud CDN to accelerate content delivery from OSS, you can use these resource plans to reduce costs.
Resource plan Description
Alibaba Cloud CDN outbound data transfer plans You can use this type of data transfer plan to offset data transfer fees that are generated when CDN edge nodes distribute content to clients. Data transfer overages are billed on a pay-as-you-go basis.
OSS standard locally redundant storage (LRS) storage plans You can use this type of storage plan to offset standard LRS fees and Elastic Compute Service (ECS) snapshot storage fees. Data transfer overages are billed on a pay-as-you-go basis.