A typical video on-demand application usually adopts a three-tier architecture: presentation layer, business logic layer, and data layer.