Introduction
A CDN service caches/mirrors origin content in our CDN network (on our CDN edge servers) and creates a fast CDN content. Let's take a loot at differences between origin and CDN.
Origin
For CDN Static and CDN Video services, there are two possible origins. Pull version - you host your origin content on your server (Origin Domain), or Push version - you host your origin content with CDNsun (Origin Storage).
For CDN HTTP Live services, there is only one possible origin - CDNsun Origin Publishing Point.
For CDN Live services, there are two possible origins. You use your streaming server (Origin URL) as Pull publishing point, or you use CDNsun streaming server (Origin PoP) as Push publishing point.
Please refer to Overview of CDN services for more details.
Examples:
- Origin Domain - www.mycompany.com, img.mycompany.com, 1.2.3.4, etc. (not www.mycompany.com/images and not https://www.mycompany.com), domain or IP address of your own.
- Origin Storage - My Storage (Storage label), My Storage 2, etc.
- Origin URL - rtmp://mycompany.com/, rtmp://1.2.3.4/stream/, etc. (not rtmp://mycompany.com/stream because Origin URL must end with a slash /, in other words, Origin URL must not contain a stream name)
- Origin PoP - Los Angeles (PoP label), New York, etc.
- Origin Publishing Point - My Publishing Point (Publishing Point label), My Publishing Point 2, etc.
CDN
- Service Domain - is a label of a CDN service in our system. Service Domain also defines a domain name (e.g. cdn.mycompany.com) for accessing the CDN content.
- Service Identifier - is an "ID" of a CDN service in our system, e.g. 123.r.cdnsun.net.
The Service Domain is the opposite of the Origin in the CDN context. Service Domain determines where (via what domain) you can access your CDN content. Every CDN service can be accessed via its Service Domain.
Differences between Service Domain and Service Identifier:
- Service Domain - can be (must be) set when you create a new CDN service, is editable.
- Service Identifier - can't be set when you create a new CDN service, is not editable.
Examples:
- Service Domain - cdn.mycompany.com, static.mycompany.com, video.mycompany.com, etc, a domain of your own.
- Service Identifier - 12345.r.cdnsun.net, 54321.r.cdnsun.net, etc.
Notes:
- Both Service Domain and Service Identifier must be unique. For example, you can not create two CDN services with the same Service Domain.
What next?
Read about the following topics.