Home > Software design >  What is considered as data transfer in firebase hosting?
What is considered as data transfer in firebase hosting?

Time:09-05

What I considerd data transfare in firebase hosting according to docs

Data transfer (GB/month) — The amount of data transferred to end users from our CDN. Every Hosting site is automatically backed by our global CDN at no charge

So is when a user go to my domain and firebase send the user my web site that lets say for the sake of argument has 100mb so each 10 requests will cost me 0.15 usd according the pricing on fire base ?

Data transfer $0.15/GB

My current concern that my react build folder has the size of 3mb since it has too many pngs in it … so will I pay for the transfare of this build folder to end client each time a Client call this site ?

CodePudding user response:

Lets say for the sake of argument has 100 MB so each 10 requests will cost me 0.15 USD

Yes, you are charged on the data downloaded from CDN/server.

My current concern that my react build folder has the size of 3mb since it has too many pngs in it

It'll be best to optimise and compress your images to reduce costs and also loading speed.

so will I pay for the transfer of this build folder to end client each time a Client call this site

Some static assets should get cached locally so the next time user loads the site it might load them from cache instead of the server. So it won't be 3 MB always.

You can get rough estimate of the data being loaded in the network tab of browser console.

  • Related