Creating custom routing strategies

Once you have activated at least two CDNs for a domain, the Smart Load Balancing will start to work automatically. 

You also have the option to create or customize your own routing strategy.

Creating a strategy

To create a routing strategy, go to ‘ DEM’ > 'Routing strategies'.

At first, you'll see a built-in strategy labeled as ‘Default’ which cannot be removed. This is the default intelligent traffic routing strategy powered by the Mlytics decision engine which will route your domain traffic to the best performing CDN.

You can click 'Add strategy' to create a new strategy.

Currently, there are three types of strategies available:

  • Static routing: select single or multiple target locations and tell the system to always use a selected CDN for it. You can specify the country, or even down to the city and network level for the target location.

  • Best latency (Need to be enabled): always choose the CDN with the best latency, but you can also set an availability threshold to prevent the system from selecting a CDN with bad availability

  • Best availability (Need to be enabled): always choose the CDN with the best availability, but you can also set a latency threshold to prevent the system from selecting a CDN with bad latency.

To enable ‘Best latency’ and ‘Best availability’, go to ‘Marketplace’ > ‘DEM’. Then enable the ‘Dynamic routing’ Add-on. 

After you create several routing strategies, you can assign the order of priorities of your strategies by following this article