You are here: Helix Administrator > Content Management > Content Caching > Content Caching Basics

Content Caching Basics

This section provides an overview of the content caching feature. You should understand how publishers and subscribers function before you attempt to set up the caching feature.

Publishers and Subscribers

In a caching network, you typically manage the bulk of your on-demand media from one or more Helix Mobile Servers configured as caching publishers. Other Helix Mobile Servers, called caching subscribers, contact the publishers for on-demand content. Each subscriber maintains a portion of physical disk space for caching on-demand content originally deployed on the publisher.

When a media player requests on-demand content from a subscriber, the subscriber attempts to fulfill the request from its cache. If the content is not cached, the subscriber forwards the request to the publisher. As the publisher fulfills the request, the subscriber loads the content into its cache and streams it to the media player.

The following illustration shows a cluster of publishers behind a load balancing solution, delivering content to subscribers in different locations.

Content Caching

Load Balancing

RealNetworks recommends that you implement a load balancing solution for Helix Mobile Servers acting as publishers. The minimum requirement is DNS rotation, sometimes known as round robin DNS. This technique involves associating multiple IP addresses to a single host name in the DNS record of the host.

When the DNS server receives a request for the host name, it rotates through the IP addresses. Thus, the load for the host name is distributed between the IP addresses. Load balancing solutions often use a virtual IP address scheme.

For more information: For recommendations about placing a cluster of Helix Mobile Servers behind a virtual IP address, refer to Helix Mobile Systems Integration Guide.

Content Loading and Removal

Once publishers and subscribers are set up, content caching requires little administration. Initial setup can include preloading the cache (see "Populating a Cache Manually").

Subscribers then prune their caches with a "least recently used" (LRU) mechanism, which removes first those files that have not been requested for the longest time when the cache fills. This way, popular content remains readily available.

Removing content from the publisher stops the content from being streamed throughout the network. A subscriber streams only the content that resides on the publisher, even if the content is still available in the subscriber's cache.

Security

Only trusted subscriber Helix Mobile Servers may cache content from the publisher. During installation, Helix Mobile Server sets up a content caching realm used on the publisher. The person who administers the publisher adds a unique user name and password to the content caching realm, distributing these credentials to any subscribers set up to access the publisher.

In addition to maintaining a secure channel between publisher and subscriber, the administrator of the publisher retains some control over the files served by the subscriber, even if those files already exist in the subscriber's cache.

For more information: For information on the search logic between subscriber and publisher, see "Search Logic for Caching Rules".

Bandwidth Conservation

Content caching ensures that only those portions of media files needed to fulfill a request are transferred from the publisher to the subscriber. In the case of SureStream media, only the client-requested bit rates are transferred.

For example, if a media player requests a multi-rate SureStream clip at 100 Kbps, the subscriber requests from the publisher only the portion of the clip that best matches the request. This keeps the connection between subscriber and publisher efficient, and populates the data cache only with requested data.

If a subsequent client requests this content at a different streaming rate, the subscriber adds the new stream data to the cached file. However, if the subscriber administrator preloads the SureStream clip, the entire file is loaded in the cache.

Links to Cached Content

Links to cached content use the same structure as links to regular on-demand content, with the following exceptions:

The subdirectory structure in the link pointing to the subscriber must match the directory structure on the publisher

A rule that defines the publisher's subdirectory structure must appear on the subscriber.

For more information: For more information as well as specific examples of links, see the section "Defining Subscriber Rules".

 


Helix Universal Mobile Server Version 14.2 Online Help
Revision Date: Tuesday, March 15, 2011
©2011 RealNetworks, Inc., http://www.realnetworks.com