-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!

joeyfb
  • 99
  • 4

1 Answers1

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.

John Mahowald
  • 30,009
  • 1
  • 17
  • 32
  • 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 07 '19 at 21:36