Creating custom routing strategies

Once you have activated at least two CDNs activated for a domain, the Smart Load Balancing should be working automatically. You also have the option to create/customize your routing strategy, however, we usually recommend leaving it as is, unless you have special requirements.

Creating a strategy

To create a routing strategy, click the ‘CDN’ tab on the navigation bar, and navigate to 'Smart Load Balancing', then go to '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 (Business and Enterprise plan only): 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 (Business and Enterprise plan only): 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.

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