Decide which CDN to Use
You have three content delivery network (CDN) options to launch and route traffic to your Progressive Web App (PWA) Kit site:
- Use the Managed Runtime (MRT) CDN. All new PWA Kit projects use the MRT CDN by default.
- Use the Embedded CDN (eCDN), provided by Salesforce Commerce Cloud. For more information about routing traffic to Managed Runtime using eCDN, see this guide.
- Use a third-party CDN such as CloudFlare or Akamai.
This table summarizes the key differences between the various CDN options that you can use with your PWA Kit site.
Here are some key points in the table.
- If you have a hybrid storefront, stack eCDN or a third party CDN to facilitate traffic between your PWA Kit and SFRA sites.
- Using a third party CDN enables more features but requires more complexity, maintenance, and cost.
MRT CDN (default) | eCDN | Third-Party CDN | |
---|---|---|---|
Why use it |
Use the MRT CDN if:
|
Use eCDN if:
|
Use a third-party CDN if:
|
Use cases for which it's required | Not applicable | eCDN or a third-party CDN is required if either of these use cases applies to your site: a. You have a site that’s built 100% on Composable Storefront with multiple domains served from the same Managed Runtime environment; or b. You have a hybrid storefront with a single domain shared with SFRA. | |
Use cases for which it's optional | Not applicable | eCDN or a third-party CDN is optional if you have a site that’s built 100% on Composable Storefront with one domain served from a single Managed Runtime environment. | |
Summary of how to set it up |
To set up the MRT CDN:
|
To set up eCDN:
|
To set up a third-party CDN:
|