Commerce Engine overview

Version:

The Commerce Engine is a thin ASP.NET Core application that serves as a host for a group of micro-services that enable commerce functionality. These services are loosely coupled with each other and together, they provide a robust, extensible set of commerce-enabling services.

Services exposed from the engine are exposed as OData/REST based APIs. This enables either direct REST calls to the services, or calls through a generated smart proxy, which examines OData metadata and generates a strongly typed experience for accessing the service.

The initial out-of-the-box Commerce Engine is provided as part of the Sitecore XC SDK. It enables a developer to extend their solution by choosing which plugins are enabled in their solution. Plugins can be retrieved from:

  • the set of plugins provided with the product

  • Sitecore partners

  • Public plugins downloaded from a NuGet feed

The Commerce Engine provided in the SDK is called the Customer.Sample.Solution. You can open the Commerce solution in Visual Studio 2017. The SDK contains the Commerce Engine project itself and some sample plugins that demonstrate a typical extension of the solution.

When you extend the Sitecore XC solution, you:

  1. Open the Customer.Sample.Solution.

  2. Rename the solution to something more appropriate for your needs.

  3. Click F5 to refresh the solution to ensure that the initial solution runs.

  4. Exercise the solution through the Postman samples or using the sample Console app.

  5. Extend the solution by creating additional plugins as separate projects within the solution using a strong separation of concerns.

  6. Test your plugin using a combination of unit tests and functional tests.

  7. When the solution meets requirements, create a new deployment for the solution

  8. Send the new deployment through any QA or DevOps process to get the deployment deployed to production.

If you have suggestions for improving this article, let us know!