Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use CloudFlare as a video provider? [closed]

Tags:

I'm creating a website where people can upload and watch videos. I'm expecting 1000 simultaneous viewers at all times (on average). The problem is that all the CDNs I've looked at charges about $0.06/GB. This means that 0,17 MB/s (720p) x 1000 users x 60 seconds x 60 minutes / 1024 = $36 an hour to host!

Am I missing something?

Over at CloudFlare you don't pay for the bandwith. Does this mean that I can get it really cheap at CloudFlare. Isn't that too good to be true?

like image 979
Student of Hogwarts Avatar asked Sep 02 '12 16:09

Student of Hogwarts


1 Answers

UPDATE FOR 2018!
Cloudflare now has a streaming video service to complement their CDN, so that would definitely be the first place to look. But if you just want to host a few MP4 files on your site and save a bit of bandwidth, the following post might still be relevant.


Assuming your video content is simply a file downloaded over HTTP/HTTPS (and not streamed over some other protocol) then it appears that CloudFlare might actually support this.

I just tested an MP4 video file on a client's website and it appeared to be cached by CloudFlare correctly.

My CloudFlare settings page rule:

enter image description here

The request (which shows a cache hit):

enter image description here

like image 177
Simon East Avatar answered Oct 09 '22 15:10

Simon East