Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Pros and Cons of hosting a static website on GCS

I am reading this link on hosting a static website on GCS and I didn't know GCS has its own caching however CI/CD is not a direct integration that would be available if th same deployment happens on Cloud Run. Firebase hosting is another option i see

What is the best solution to host a static website on GCP Platform (from cost, scalability, performance and security perspective)?

 

Solved Solved
2 3 1,978
1 ACCEPTED SOLUTION

@dheerajpanyam most probably not. GCS could be used for static content web, like simple html pages. If you want to run react app, you must as you said host it with server which is not possible via GCS. You could utilize Cloud Run for that and pay only for traffic ( Cloud Run will scale down to zero if no traffic occur). Also you can use Firebase for such purposes : https://www.freecodecamp.org/news/how-to-deploy-a-react-app-with-firebase/

--
cheers,
DamianS
LinkedIn medium.com Cloudskillsboost

View solution in original post

3 REPLIES 3

Hello @dheerajpanyam  ,Welcome on Google Cloud Community.

my pick would be for Firebase. As per documentation " Firebase Hosting is production-grade web content hosting for developers. With a single command, you can quickly deploy web apps to a global CDN (content delivery network). Though Firebase Hosting is optimized for static and single-page web apps.."

Cost-effective - [1].Free tier for hosting
Scalability - [2]. Firebase Hosting automatically scales to handle traffic spikes, ensuring your website stays up even during peak demand
Performance - global CDN and optimization for static and single-page web apps
Security - Zero-configuration SSL is built into Firebase Hosting, so content is always delivered securely.

1. https://firebase.google.com/pricing

2. https://firebase.google.com/docs/hosting

--
cheers,
DamianS
LinkedIn medium.com Cloudskillsboost

Thanks @DamianS it makes sense. In the 1st place is it possible to host a react app from GCS. From what i know it comes with a DEV server that may not be suitable for production use cases. 

@dheerajpanyam most probably not. GCS could be used for static content web, like simple html pages. If you want to run react app, you must as you said host it with server which is not possible via GCS. You could utilize Cloud Run for that and pay only for traffic ( Cloud Run will scale down to zero if no traffic occur). Also you can use Firebase for such purposes : https://www.freecodecamp.org/news/how-to-deploy-a-react-app-with-firebase/

--
cheers,
DamianS
LinkedIn medium.com Cloudskillsboost