2

I'm new to firebase as well as programming, Now I'm working on a music app that streams data from cloud storage and plays music. it's around 100 to 120 songs only, I just played 10 - 12 songs only, but already my bandwidth level reached to 1GB, What is bandwidth, and how to reduce it?

prakash M
  • 23
  • 4

1 Answers1

3

The bandwidth measured is the number of bytes that are read from the bucket, so typically files you application code downloads (uploads are not charged). So if you check the file size of each file, and multiply each by the number of times it was read, you'll end up with the bandwidth that you used.

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
  • Sir, how can I contact you personally, and also do you have any idea to reduce it? – prakash M Jan 22 '21 at 04:01
  • Given how the calculation works, your options are to serve fewer files, serve them to fewer users, or somehow make the files smaller. That last one is the most common options, so you might want to search for how to resize the songs so that they're smaller. – Frank van Puffelen Jan 22 '21 at 04:17