You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/media-services/latest/scale-streaming-cdn.md
+23-14Lines changed: 23 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ The concept of prefetching strives to position objects at the "edge of the inter
65
65
To achieve this goal, a streaming endpoint (origin) and CDN need to work hand in hand in a couple ways:
66
66
67
67
- The Media Services origin needs to have the "intelligence" (Origin-Assist) to inform CDN the next object to prefetch.
68
-
- CDN does the prefetch and caching (CDN-Prefetch part). CDN also needs to have the "intelligence" to inform the origin whether it's a prefetch or a regular fetch, handle the 404 responses, and a way to avoid endless prefetch loop.
68
+
- CDN does the prefetch and caching (CDN-prefetch part). CDN also needs to have the "intelligence" to inform the origin whether it's a prefetch or a regular fetch, handle the 404 responses, and a way to avoid endless prefetch loop.
69
69
70
70
### Benefits
71
71
@@ -106,33 +106,42 @@ The `Origin-Assist CDN-Prefetch` feature supports the following streaming protoc
106
106
107
107
### FAQs
108
108
109
-
* What if a prefetch path URL is invalid so that CDN prefetch gets a 404?
109
+
* What if a prefetch path URL is invalid so that CDN prefetch gets a 404?
110
110
111
111
CDN will only cache a 404 response for 10 seconds (or other configured value).
112
-
* Suppose you have an on-demand video. If CDN-prefetch is enabled, does this feature implies that once a client requests the first video segment, prefetch will start a loop to prefetch all subsequent video segments at the same bitrate?
113
112
114
-
No, CDN-prefetch is performed only after a client-initiated request/response. CDN-prefetch is never triggered by a prefetch, to avoid a prefetch loop.
115
-
* Is Origin-Assist CDN-Prefetch feature always on? How can it be turned on/off?
113
+
* Suppose you have an on-demand video. If CDN-prefetch is enabled, does this feature imply that once a client requests the first video segment, prefetch will start a loop to prefetch all subsequent video segments at the same bitrate?
114
+
115
+
No, CDN-prefetch is performed only after a client-initiated request/response. CDN-prefetch is never triggered by a prefetch, to avoid a prefetch loop.
116
+
117
+
* Is Origin-Assist CDN-Prefetch feature always on? How can it be turned on/off?
116
118
117
119
This feature is off by default. Customers need to turn it on via Akamai API.
118
-
* For live streaming, what would happen to Origin-Assist if the next segment or fragment is not yet available?
119
120
120
-
In this case the Media Services origin will not provide CDN-Origin-Assist-Prefetch-Path header and CDN-prefetch will not occur.
121
-
* How does *Origin-Assist CDN-Prefetch* work with dynamic manifest filters?
121
+
* For live streaming, what would happen to Origin-Assist if the next segment or fragment isn't yet available?
122
+
123
+
In this case, the Media Services origin won't provide `CDN-Origin-Assist-Prefetch-Path` header and CDN-prefetch will not occur.
124
+
125
+
* How does `Origin-Assist CDN-Prefetch` work with dynamic manifest filters?
126
+
127
+
This feature works independently of manifest filter. When the next fragment is out of a filter window, its URL will still be located by looking into the raw client manifest and then returned as CDN prefetch response header. So CDN will get the URL of a fragment that's filtered out from DASH/HLS/Smooth manifest. However, the player will never make a GET request to CDN to fetch that fragment, because that fragment isn't included in the DASH/HLS/Smooth manifest held by the player (the player doesn't know that fragment's existence).
122
128
123
-
This feature works independently of manifest filter. When the next fragment is out of a filter window, its URL will still be located by looking into the raw client manifest, and then returned as CDN prefetch response header. This means, CDN will get the URL of a fragment that is filtered out from DASH/HLS/Smooth manifest. However, the player will never make a GET request to CDN to fetch that fragment, because that fragment is not included in the DASH/HLS/Smooth manifest held by the player (the player doesn't know that fragment's existence).
124
129
* Can DASH MPD/HLS playlist/Smooth manifest be prefetched?
125
130
126
-
No, DASH MPD, HLS master playlist, HLS variant playlist or smooth manifest URL is not added to prefetch header.
127
-
* Are prefetch URLs relative or absolute?
131
+
No, DASH MPD, HLS master playlist, HLS variant playlist, or smooth manifest URL isn't added to the prefetch header.
132
+
133
+
* Are prefetch URLs relative or absolute?
134
+
135
+
While Akamai CDN allows both, the Media Services origin only provides relative URLs for prefetch path because there's no apparent benefit in using absolute URLs.
128
136
129
-
While Akamai CDN allows both, the Media Services origin only provides relative URLs for prefetch path because there is no apparent benefit in using absolute URLs.
130
137
* Does this feature work with DRM-protected contents?
131
138
132
-
Yes, since this feature works at HTTP level, it neither decodes nor parses any segment/fragment. It does not care whether the content is encrypted or not.
139
+
Yes, since this feature works at the HTTP level, it doesn't decode or parse any segment/fragment. It doesn't care whether the content is encrypted or not.
140
+
133
141
* Does this feature work with Server Side Ad Insertion (SSAI)?
134
142
135
-
For original/main content (the original video content before ad insertion) works, since SSAI does not change the timestamp of the source content from the Media Services origin. Whether this feature works with ad contents, depends on whether ad origin supports Origin-Assist. For example, if ad contents are also hosted in Azure Media Services (same or separate origin), ad contents will also be prefetched.
143
+
It does for original/main content (the original video content before ad insertion) works, since SSAI doesn't change the timestamp of the source content from the Media Services origin. Whether this feature works with ad contents depends on whether ad origin supports Origin-Assist. For example, if ad contents are also hosted in Azure Media Services (same or separate origin), ad contents will also be prefetched.
0 commit comments