Use Amazon CloudFront CDN with Bloomreach Cloud
Use Amazon's CloudFront CDN service to speed up delivery of gallery images, assets, web files, and static webapp files from your Bloomreach Cloud environment.
Amazon's CloudFront is a popular CDN service which can be used to speed up delivery of web content. There are two methods to integrate CloudFront with Bloomreach Cloud. This page describes both.
Method 1: Configure CloudFront CDN Host in Bloomreach Experience Manager
Using this method, gallery images, assets, web files, and static webapp files are delivered using your CloudFront distribution domain name in their URLs, for example:
It requires some configuration on both the CloudFront and the Bloomreach Experience Manager side:
- Using the CloudFront console or API, create a CloudFront web distribution. CloudFront will assign a URL to the distribution (for example, hfhgi8l76rwcsl.cloudfront.net).
- Edit the default cache behavior and whitelist the Host header.
- Contact the Bloomreach Cloud operations team and provide the CloudFront CDN URL. The team will make sure requests from CloudFront are routed to the correct environment.
Using the CMS Console, configure this URL as CDN host for the applicable HST virtual host(s) as described in Serve Gallery Images, Assets, Web Files, and Static Webapp Files from a CDN.
For example, if CloudFront provides the URL hfhgi8l76rwcsl.cloudfront.net, configure the hst:cdnhost property on the top level hst:virtualhost node in your virtual host group as follows:
/hst:hst/hst:hosts/production/com: jcr:primaryType: hst:virtualhost hst:cdnhost: //hfhgi8l76rwcsl.cloudfront.net
Bloomreach Experience Manager's delivery tier will then automatically use the configured CDN host in all resolved URLs for gallery images, assets, web files, and static webapp files.
Method 2: Configure Alternate Domain Names in CloudFront
Using this method, gallery images, assets, web files, and static webapp files are delivered using your website's domain name in their URLs, for example:
It requires configuration in CloudFront:
- Using the CloudFront console or API, create a CloudFront web distribution.
- Configure the distribution for using alternate domain names and HTTPS.
- Import the SSL certificate(s) for your domain(s) into the CloudFront distribution.
- Create cache behaviors to configure which objects should be cached. For example, behaviours for a typical Bloomreach Experience Manager implementation may include:
binaries/* webfiles/* css/* js/* fonts/* images/*
- In each behavior, whitelist the Host header.
All visitor requests to your website are then routed through the CloudFront CDN to Bloomreach Cloud. CloudFront parses and analyzes each request and, depending on your configuration, caches the requested object.