Should I move my static resources from App Engine to Google Cloud Storage?

前端 未结 3 1959
清酒与你
清酒与你 2021-02-20 04:25

We have a web application in App Engine. I was wondering whether it is a good idea to move my static resources (i.e Images, CSS files, and JS files) out from App Engine and serv

3条回答
  •  忘掉有多难
    2021-02-20 04:56

    You are right, and the answer you accepted is wrong. The answer to your question from the official docs:

    https://cloud.google.com/storage/docs/website-configuration

    Hosting static assets for a dynamic website

    You can use a Google Cloud Storage to host static assets for a dynamic website hosted, for example, in Google App Engine or in Google Compute Engine. Some benefits of hosting your static assets, like images or Javascript files, in a bucket include:

    • Google Cloud Storage behaves essentially like a Content Delivery Network (CDN) with no work on your part because publicly readable objects are, by default, cached in the Google Cloud Storage network.
    • Bandwidth charges for accessing content will typically cost less with Google Cloud Storage.
    • The load on your web servers is lessened when serving the static content from Google Cloud Storage.

提交回复
热议问题