How to Use Object Storage Service (OSS) More Economically

Image for post
Image for post

Background

Mr. Wang is an entrepreneur; he and his team have developed a mobile application for image sharing. They hope to store the images on Alibaba Cloud. The total size of the images is about 1 TB, and they process about 15 million requests per month for a total downstream traffic of 2 TB. Mr. Wang wants to know which Alibaba Cloud products to use to achieve optimal cost effectiveness.

Case Analysis

The dominant charges for a mobile image sharing app are from traffic and storage. Unfortunately, these charges cannot be avoided, as these two elements are essential for mobile apps. Instead, we can try out different payment options to minimize expenditure. Three methods of payment are analyzed below:

  1. OSS subscription (purchasing resource package)
  2. Combination of OSS subscription + CDN Pay-As-You-Go

1. OSS Pay-As-You-Go

Assuming that Mr. Wang’s storage bucket is in Hangzhou, and it is charged based on OSS Pay-As-You-Go, then the average cost per month includes:

2. OSS Subscription (Purchasing Resource Package)

Assuming that Mr. Wang’s storage bucket is in Hangzhou, and it is charged based on OSS subscription, then the average cost per month includes:

3. OSS subscription + CDN Pay-As-You-Go

As the dominant charges for a mobile image sharing app are from traffic and storage, we recommend using a combination of OSS + CDN. CDN (Content Delivery Network) delivers hotspot data stored in your OSS to nodes across the country. Users can access the nearest CDN nodes to read files without accessing the original files in OSS for hotspot data, saving OSS Internet traffic. Through this method, the access rate and experience of your edge users are improved. Additionally, the cost of CDN Internet traffic is lower than the cost of OSS Internet traffic, which can effectively reduce the network traffic cost for the entire application.

Summary

The details of each purchase option can be seen in the table below.

Image for post
Image for post

Follow me to keep abreast with the latest technology news, industry insights, and developer trends.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store