title: Stream mp3s From Firebase Storage
body: <h1>Issue</h1>
  
  <p>I am building a backend service that creates mp3s for an Android client to stream via <a href="https://github.com/google/ExoPlayer" rel="nofollow noreferrer">ExoPlayer</a>. </p>
  
  <p>Looking at <a href="https://firebase.google.com/pricing/" rel="nofollow noreferrer">Firebase's Storage Pricing</a> in the long term, if there are <em>10 gbs</em> stored and <em>10,000 users</em> there would be <em>100,000 gb</em> to transfer which is very expensive (<em>$11,600</em>).</p>
  
  <p><strong>What would be the best solution to stream mp3s on the cloud in order to avoid data transfer fees?</strong> </p>
  
  <h1>Possible Solutions</h1>
  
  <ol>
  <li>Use ExoPlayer to stream mp3s directly from the cloud without downloading.</li>
  <li>Use a separate API to download the <em>10gb</em> from Cloud Storage one time, and stream the mp3s to the mobile client from the separate API.</li>
  </ol>