-2

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!

closed as off-topic by user9517, womble May 8 at 2:37

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center." – user9517, womble
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    That's not even what redis does! – Michael Hampton May 7 at 19:56
  • Sorry, new to this sort of thing! It's an in memory key value store, so theoretically couldn't it host an MP3 and serve it to users on request? – joeyfb May 7 at 19:58
  • 1
    No, because it isn't a web server. You still need one of those. – Michael Hampton May 7 at 21:15
2

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.

  • Thanks for the reply to what I'm sure seemed a silly question. Never thought much about media streaming before so just knowing a few terms gives me a good place to start – joeyfb May 7 at 21:36

Not the answer you're looking for? Browse other questions tagged or ask your own question.