What are the best practices for reasonably-performant audio streaming user uploaded content on a website?
I understand just putting MP3 in a SQL-like database is a bad idea. There are ways to just upload those files to a directory but that might not be best for streaming content.
Would something like Redis which acts as an in-memory key value store be adequate to reasonably quickly serve streaming music?
Any pointers to additional reading would be helpful, thanks!
Just because you can stuff a few MB into an object in a in-memory datastore, doesn’t mean it is a good idea. Persistence, the size of the media library relative to your RAM, scalability to many clients, and random access for seeking are all issues.
Research open source CDNs and broadcasting software and study how they do it.