node.js - Video Delivery Performance of Node+Express vs Apache -
i'm using nodejs+express server deploy website. on website, i'll have hundreds of videos (mp4) want users load , view.
right now, i'm delivering videos putting them public directory of node, data piped through node , express. i'm wondering whether practice alright, or if should set separate apache webserver deliver videos. how performance compare? else should taken consideration, caching?
i've tried find data on that, not successful. see people indeed streaming videos using node (eg here), haven't found performance comparisons. kind of expect there not difference because server has read , output file contents, , i/o operations should happen @ similar speed. forgetting something?
thanks lot!
thats sounds quite big video service. if have many users in many different locations viewing videos , worried user experience, may want use sort of cdn service.
in case not familiar these cache copy of content near 'edge' users in locations distant server not delayed. tend dynamically adjust cater more , less popular videos.
you still need origin server, 1 have described above - once user in particular area has accessed video, should cached in area next visitor not need load server.
there many cdn networks available , there node.js specific modules use them (although yourself) - e.g.:
Comments
Post a Comment