Deploying a React Store on Oracle CX Commerce

Deliver a sub-second React website on Oracle CX Commerce with Layer0

Created and developed by Facebook, React is one of the most popular open-source JavaScript libraries for building user interfaces or UI components quickly and easily, using a component-based approach. React offers great runtime performance and is fit to be the backbone of complex, revenue-generating websites with heavy traffic, such as eCommerce and Travel websites..

React offers some benefits compared to the other popular frontend frameworks, including:

  • Virtual DOM: Nodes are re-rendered only as needed. React compares new data to original DOM and updates the View automatically. This enhances the performance of all-sizes of applications that need regular content updates.
  • One-way data binding: React uses one-way data binding with an application architecture called Flux controls. React helps update the View for the user and Flux controls the application workflow.
  • Support for bundling and tree-shaking: This helps minimize the end user’s resource load.
  • Built-in server-side rendering (SSR) support

Oracle CX Commerce is a cloud-native, extensible SaaS commerce solution built with an API-first architecture and has an extensive REST API that can be used to implement shopping, checkout, and storefront administration in a portable frontend, such as a progressive web app or single-page application. CX Commerce comes with three modular options: fully integrated, non-integrated and integrated. A fully integrated storefront tightly connects the UI layer and the commerce services layer, whereas a non-integrated approach is akin to a headless one where the UI layer is separated from the backend commerce platform. The third approach is a hybrid, where the UI layer is separate from the backend but still has CX Commerce capabilities, such as site design tools, personalization, and A/B testing.

Unfortunately, Oracle CX Commerce Cloud does not support SSR, PWA or AMP out of he box, significantly hindering website performance. The platform can run JavaScript server-side, however, this capability is partitioned to custom paths that do not line up with the URLs of the existing commerce experience and are built for supporting server side extensions and not SSR. To add these capabilities on your own, you'll need a backend for frontends and a fleet of Node.js servers, but this still won't get a site down to sub-second speeds.

Layer0 lets you deliver your React website on Oracle CX Commerce in sub-seconds. The average website on Layer0 sees median page loads of 320ms, as measured by Largest Contentful Paint. Bear in mind though that Layer0 is much more than a website accelerator. It is a Jamstack platform for dynamic websites / eCommerce websites. Layer0 makes websites faster for users and simpler for frontend developers to maintain.

Layer0was built specifically for large-scale, database-driven, revenue-generating websites and provides the following key benefits: 

  • Jamstack for eCommerce with pre-rending and just-in-time rendering
  • Zero latency networking via prefetching of data from your product catalog APIs
  • An edge that can be configured natively in your React app (CDN-as-JavaScript)
  • Edge rules that can run locally, in pre-prod and production  
  • Automated, full-stack preview URLs from GitHub, GitLab, or Bitbucket with every new branch and push
  • Performant split tests at the edge and A/B tests that do not slow down the site, canary deploys, and personalization
  • Serverless JavaScript that is much easier and more reliable than AWS Lambda

With Layer0, your React CX Commerce storefront will run in sub-second speeds and your developers will be empowered to control edge caching and reduce rework using the various developer productivity tools that come with the platform.

Layer0 is also a main contributor to React Storefront, an open source eCommerce PWA framework built, which powers over billion dollars in eCommerce revenue a year. Check it out if you are looking to re-write your eCommerce site into a blazingly fast site. Or if you're currently using React for your frontend, use the this guide to deploy your React application on Layer0 and get sub-second loads in as little as 1 hour of work. 

Deploy in minutes

Moovweb XDN works with all frontends
Deploy freeTakes 2 minutes