Hi, I wrote a video-stream caching app that serves a video stream and its cache hit-miss ratio query. If I reduce the size of stream chunks for smoother client video-streaming experience, Glitch throttles the accesses by 404 status. Then I increase stream chunk size from 64kB to 2MB. But now bandwidth increases much higher than small chunk version, video streams data much faster and uses more data per second.
I wonder if I am doing anything wrong in terms of consuming available bandwidth. Am I expected to use only simple query like 1kB at most? Or is it ok to stream a megabyte per second? If its against some rules, I understand you if you remove my project or disable it. But I couldn’t find any rules about it.
My project is free-tier, so there is no boost anywhere. This is how I managed to serve the video manually:
- uploaded video to assets,
- entered console command
- wrote wget “cdn-url”
- now app can use it directly from root of project to test the caching algorithm
Hit/miss query:
http://simplefastvideostreamcache.glitch.me/
Video stream:
http://simplefastvideostreamcache.glitch.me/test.mp4
It also streams its own nodejs source code from /index.js, /lrucache.js and /simplefastvideostreamcache.js.