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:
| Match | What it targets |
|---|---|
| File Extension | Requests for a specific file type |
| Filename | Requests for a specific file |
| Path | Content under a specific origin path |
| Time Interval | Requests received during a time window |
| User Location Data | Requests 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
- Add a rule from the Blank Rule Template.
- Add a match from the list above and configure it.
- Repeat if you want to combine criteria.
- 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 aggressiveEnable 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
| Goal | Match criteria | Behavior settings |
|---|---|---|
| Limit segment file delivery | File Extension is one of ts, mp4, m4s | 10 Mbps after 60 seconds of transfer |
| Limit specific files from specific regions | Filename for the target files, plus User Location Data for the Western US states | 5 Mbps after 20 MB (20000000 bytes) |
| Limit by local time in one country | User Location Data for Germany, plus Time Interval of 18:00–20:00 local | 6 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
- Tailor manifests per device and network — removes renditions rather than throttling transfer
- Encrypt media segments at the edge
Updated about 1 hour ago
