# Media Cache best practise between Origin and Edge

**URL:** <https://community.wowza.com/t/media-cache-best-practise-between-origin-and-edge/35397>\
**Category:** Wowza Streaming Engine\
**Created:** [September 10, 2015, 10:51pm UTC](https://community.wowza.com/t/media-cache-best-practise-between-origin-and-edge/35397 "2015-09-10T22:51:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Azril\_Nazli\_Alias](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@Azril\_Nazli\_Alias](https://community.wowza.com/u/Azril_Nazli_Alias)\
**Post date:** [September 10, 2015, 10:51pm UTC](https://community.wowza.com/t/media-cache-best-practise-between-origin-and-edge/35397/1 "2015-09-10T22:51:20Z")

</div>

Hi all,

Thank you for reading mmy post.

Here’s my current architecture

ORIGIN

==========

User use web based uploader, upload raw MP4 to storage server

Encoder will auto encode to H264/AAC using HandBrakeCLI

Video stored as file in /mbr/XXXXXX/500\_kbps.mp4

Alias the folder /mbr/\* as http:///mbr/\*

So the video can be seen as HTTP

And this is located on client datacenter

EDGE

===========

Using AWS:EC2, fired up a wowza 4 server

Setup up mediacache using http/ prefix and http protocol

Setup secureToken to protect the vod

setup HLS & HDS

So far so good with avg concurrent arounf 100 users. But is there a better practise than this ?

Should I install another WSE4 at ORIGIN and serve dvr chunks instead ?

Please guide me. Thank you

---

<div class="post-metadata">

**Author:** ![Zoran](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/zoran/32/385_2.png) [@Zoran](https://community.wowza.com/u/Zoran)\
**Post date:** [September 11, 2015, 2:02pm UTC](https://community.wowza.com/t/media-cache-best-practise-between-origin-and-edge/35397/2 "2015-09-11T14:02:32Z")

</div>

Hi,

Looking at your setup description, it looks like you are operating a video on demand platform. The nDVR feature is only available for live streams.

The MediaCache prefix name you are using is not linked to a specific protocol. You can name it to “myCoolPrefixName” and Wowza Streaming Engine will still use HTTP protocol to access the video files store on your origin web server.

You can find more resources by visiting the “[Scaling with Wowza Media Cache](https://www.wowza.com/docs/scaling-with-wowza-media-cache)” forum article.

Zoran
