Cap the rate at which content is served

By default, edge servers deliver media as fast as the connection allows. For a player with a healthy buffer, that means downloading far ahead of playback — bandwidth you pay for and the viewer may never watch. Bit Rate Limiting caps the delivery rate, optionally varying it by how much has already been transferred or how long the transfer has been running.

When to use this

  • You want to stop downloads from running ahead of consumption.
  • You're building service tiers — a higher ceiling for premium paths, a lower one elsewhere.
  • You want to throttle delivery during peak hours or in specific regions.

This behavior can't go in the default rule set

The default rule set applies to all requests, but Bit Rate Limiting only supports these match criteria:

MatchWhat it targets
File ExtensionRequests for a specific file type
FilenameRequests for a specific file
PathContent under a specific origin path
Time IntervalRequests received during a time window
User Location DataRequests originating in a specific region

So you create a custom rule, set the criteria you need, and add the behavior there. You can combine criteria in one rule.

Add the behavior

  1. Add a rule from the Blank Rule Template.
  2. Add a match from the list above and configure it.
  3. Repeat if you want to combine criteria.
  4. Add the Bit Rate Limiting behavior and set:
    • Bit Rate Limiting: On
    • Bit Rate: the maximum rate to serve at once the threshold is crossed. Units: Kbps, Mbps, or Gbps.
    • Threshold: when the limit kicks in.
      • Bytes — the limit applies after this many bytes have transferred.
      • Seconds — the limit applies after delivery has run for this long.
📘

The defaults are aggressive

Enable the behavior without setting Bit Rate or Threshold and you get 15 Mbps from the first byte — the defaults are 15 Mbps with a threshold of 0 seconds. Set both explicitly.

Examples

GoalMatch criteriaBehavior settings
Limit segment file deliveryFile Extension is one of ts, mp4, m4s10 Mbps after 60 seconds of transfer
Limit specific files from specific regionsFilename for the target files, plus User Location Data for the Western US states5 Mbps after 20 MB (20000000 bytes)
Limit by local time in one countryUser Location Data for Germany, plus Time Interval of 18:00–20:00 local6 Mbps after 1 MB (1000000 bytes)

Caveats

  • Not supported with media encryption for DASH. Buffer issues. See Encrypt media segments at the edge.
  • Measure before you tune. A threshold that's too low starves the player's buffer and causes rebuffering; too high and you don't save anything. Base the rate on your highest rendition plus headroom.

Related


Did this page help you?