Use Amazon CloudFront CDN with Bloomreach Cloud - BloomReach Experience - Open Source CMS

Use Amazon CloudFront CDN with Bloomreach Cloud

This documentation applies to Bloomreach Cloud 2 only

Introduction

Goal

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.

Background

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:

https:/hfhgi8l76rwcsl.cloudfront.net/binaries/content/gallery/image.png

It requires some configuration on both the CloudFront and the Bloomreach Experience Manager side:

  1. Using the CloudFront console or API, create a CloudFront web distribution. CloudFront will assign a URL to the distribution (for example, hfhgi8l76rwcsl.cloudfront.net).
  2. Edit the default cache behavior and whitelist the Host header.
  3. 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.
  4. 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:

https://www.example.com/binaries/content/gallery/image.png

It requires configuration in CloudFront:

  1. Using the CloudFront console or API, create a CloudFront web distribution.
  2. Configure the distribution for using alternate domain names and HTTPS.
  3. Import the SSL certificate(s) for your domain(s) into the CloudFront distribution.
  4. 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/*
    
  5. 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.

Did you find this page helpful?
How could this documentation serve you better?
On this page
    Did you find this page helpful?
    How could this documentation serve you better?