Map VOD, live, and event traffic to the right edge map

Everything else in this section happens in your rule configuration. This one happens one layer earlier, when the edge hostname is generated — and it's the only use case here that you can't fix later by editing a rule.

When Akamai generates an edge hostname, it selects an edge map based on the delivery network, the product, and the IP version. Media delivery type adds a fourth input, segmented media mode, so the map is also chosen for the access pattern of the content:

ModeContent
VODPre-recorded media, movies, TV shows, evergreen content
LIVELive streaming — news, sport, live broadcasts
EVENTScheduled online events — product launches, webinars, conferences

In the Adaptive Media Delivery API, these appear as useCases.

When to use this

  • You're creating a new service hostname and you know which kind of content it will carry.
  • Your VOD and live traffic have genuinely different access patterns and you want each on an appropriate map.
🚧

Decide before you create the hostname

You can't change edge map usage on an existing edge hostname. See Changing an existing edge hostname.

Before you begin

  • Method 1 is available automatically if you've purchased Adaptive Media Delivery.
  • Method 2 needs Mixed Mode Configuration on your contract. Contact your account representative. See Serve live and on-demand traffic from one environment.
  • You can't combine this with Edge IP Binding on the same service hostname. If Edge IP Binding is on your contract it appears as an alternative mapping solution in the same step; pick one.

Enable media delivery type

Select a segmented media mode when you create a service hostname to edge hostname association:

  1. From the Edit dashboard, go to Property Hostnames.
  2. Click +Hostnames and select Add Hostname(s).
  3. Add your hostname and click Next.
  4. Choose your certificate details in the Domain and Certificate Security step and click Next.
  5. In the Mapping Solution step, make sure Media delivery type is selected.
  6. In the Segmented media mode dropdown, select VOD, LIVE, or EVENT.
  7. Click Next.
  8. In the Edge Hostnames step, review the generated edge hostname and verify the Delivery Optimization matches the mode you chose.
  9. Click Submit.

Method 1: one to one

One service hostname, one media mode. The simplest case — use it when a hostname carries exactly one kind of content.

Create the hostname as above with the mode you need, for example VOD for www.example.com. Requests to that edge hostname now use the optimal edge map for on-demand content.

Then configure your rules as normal. Activate on staging and test, then activate on production and update your DNS record to CNAME the service hostname to the generated edge hostname.

Method 2: many to one

Several service hostnames with different media modes, all served by a single environment. You combine media delivery type with Mixed Mode Configuration: each hostname gets its own optimized edge map, and each gets its own rule carrying the use case-based behaviors.

Step 1 — create the VOD edge hostname. Follow the steps above for vod.example.com with Segmented media mode set to VOD.

Step 2 — create the LIVE edge hostname. Same process for live.example.com with Segmented media mode set to LIVE.

Step 3 — configure the default rule set for LIVE.

  • Set Segmented Media Delivery Mode to Live, matching the LIVE edge hostname.

  • With Live selected, Show Advanced Options reveals settings for delivering live media through Media Services Live. See the Media Services Live documentation.

    🚧

    These advanced options apply only to Akamai Media Services Live. They can't be used with your own custom live media configuration.

  • In Origin Server, select Media Services Live as the Origin Type. You also need to create the live stream in Media Services Live, outside the rule configuration.

  • Review the rest of the default rule set. Anything set there applies to all requests unless the same behavior appears in a matching lower rule.

Step 4 — add a rule for VOD. Because lower rules take precedence, requests to the VOD hostname read this rule first, then pick up anything from the default rule set that this rule doesn't override.

  1. Add a rule from the Blank Rule Template and name it, for example, "VOD Media Delivery Rule".
  2. Add a match: Hostname / is one of / vod.example.com.
  3. Add Segmented Media Delivery Mode and set Mode to On demand.
  4. Add Origin Server — the default rule set points at Media Services Live, so on-demand needs its own origin. For example, Origin Type: NetStorage, with the NetStorage account holding your on-demand content.
  5. Add any other behaviors this traffic needs, including the Mixed Mode-capable ones: Origin Characteristics, Content Characteristics, and Client Characteristics. What you set here overrides the default rule set for the same behaviors.
  6. Save.

Then activate. Test on staging, activate on production, and CNAME each service hostname to its edge hostname. At that point:

  • Requests to the live hostname go to the LIVE edge map, skip the VOD rule, and use the default rule set.
  • Requests to the VOD hostname go to the VOD edge map, trigger the VOD rule, and additionally pick up applicable behaviors from the default rule set.

Keep the mapping and the behavior in sync

These are two different settings with similar names, and they have to agree.

SettingWhereWhat it controls
Segmented media mode delivery typeOn the service hostname, in the Mapping Solution stepWhich edge map serves requests to that edge hostname. Applies only to that hostname — another hostname without media delivery type gets no map optimization.
Segmented Media Delivery Mode behaviorIn the default rule set (mandatory), and optionally in lower rulesDelivery-related optimizations for the selected mode.

Match them like this:

Segmented media modeSegmented Media Delivery Mode option
VODOn demand
LIVELive
EVENTEvent

Resolving a mismatch

  1. Check the hostname-to-edge-hostname mapping first. It has to match the DNS CNAME record that resolves your service hostname to the generated edge hostname.
  2. Check that the delivery type and the behavior agree, per the table above.

Media delivery type versus Mixed Mode Configuration

They solve adjacent problems and are easy to confuse.

  • Mixed Mode Configuration lets you apply mode-based behaviors in additional rules with their own match criteria, so one configuration can handle several content types. Before it existed, those behaviors lived only in the default rule set and you needed a separate configuration per media format.
  • Media delivery type selects the optimal edge map for each mode.

Use both together: media delivery type picks the best map, Mixed Mode controls the delivery logic — all in one configuration. Watch for the mismatch condition above when you combine them.

Changing an existing edge hostname

You might want to add media delivery type to a configuration that doesn't have it, or change the mode on an existing edge hostname.

You can't modify anything related to edge map usage through Property Manager or the Edge Hostname Editor. Changing map usage can significantly affect performance for existing configurations. In special circumstances Akamai can modify media delivery type settings for you — contact your account representative.

🚧

Check for shared edge hostnames

If several configurations use the same edge hostname, review each one before requesting a change, so editing it doesn't harm the others.

Related


Did this page help you?