I am setting up a online video playing web site (like Youtube). My technical challenge is to serve a lot of hits and still maintain performance.
My current solution is to set up several back-end servers, having each server cache a part of the video which could save the time to read the video file from disk I/O.
Another front-end server will hash the request video ID
to find out which server the video resides on, and then ask the client browser to redirect to the specific server.
My solution is simple, and I want to know whether anyone else have any better ideas or any technical considerations for my solution?
Please note: I want to set up the site to work locally (and not rely on providers like Alakami) as the content is for local students from my school. This will essentially be an 'intranet' solution.