kingyml
kingyml6mo ago

File Bandwith Help

I created a music app following a tutorial on youtube and I've already hit the file bandwith limit on the free tier. I have no users on the app, just me, all I do is listen to the songs over and over. At the moment I have uploaded a few of my own songs that I have produced so its basically acting like a streaming app for me.... That being said I guess thats the approach I need to have going forward with this app. How would I implement a streaming app using convex? or would I have to figure out a way to serve audio from files from a different service? like at the moment I'm afraid to even share this with my fans or other producers due to the cost I will incur. The tutorial I followed is here -> https://www.youtube.com/watch?v=zfAb95tJvZQ&t=18020s
JavaScript Mastery
YouTube
Build and Deploy a Saas Podcast Platform in Next.js
Build a unique Software-as-a-Service app with AI-powered features like text-to-multiple-voices functionality and AI-generated images with Next.js 14 and Convex. ⭐ Convex - https://convex.dev/c/jsmastery 🌟 Clerk - https://go.clerk.com/VFH8CMR 🎨 AI Podcast App Figma Design - https://resource.jsmastery.pro/ai-podcast-app 📘 Ultimate ChatGPT Handbo...
No description
No description
2 Replies
ballingt
ballingt6mo ago
Sounds cool. Streaming apps are tough, video or audio; e.g. Twitch has trouble making money and Netflix spends a building their CDNs. Back of the envelope, does this amount of usage sound right? at say roughly 1MB/minute mp3s. If you can share the code there may be some suggestions. Make sure your streaming is only loading data you use (not issuing too many range requests), not loading the data multiple times. But eventually you want to use a CDN. You can use AWS, Cloudflare, Fastly, or one of many others. The math works out especially well for Cloudflare because data egress is free. AWS S3 + AWS Cloudfront is what I personally use to push lots of data. In the future there will be tighter integrations here with Convex, e.g. a backend "component" that you enter your AWS credentials into that ensures all files uploaded to Convex are synced to S3 storage with some basic CDN capabilities enabled via Cloudfront. But you can do this yourself now.
kingyml
kingymlOP6mo ago
Yes, 1MB/minute mp3 is about right. Looking into it now, I had no idea that’s what it takes to power those apps. I’m still learning so I’m glad you were able to teach me something there. I need to look into all those optimization techniques you mentioned and then I’ll circle back later. Thanks Tom, this was actually really helpful! You motivated me to keep going and optimize it so I can learn all that stuff.

Did you find this page helpful?