E-commerce architectural overview
This article presents an architectural overview of Microsoft Dynamics 365 Commerce.
The Dynamics 365 Commerce online extensibility software development kit (SDK) lets partners easily extend their website so that it includes additional business logic and user experience (UX) logic. Partners can do this extension by using open-source technologies that are freely available.
This architectural overview will focus on the "Web Storefront" box highlighted in the following Commerce architecture illustration.
Web storefront component-based architecture
The architecture of the platform takes advantage of a reuse-based approach to define, implement, and compose loosely coupled independent components. In this approach, the emphasis is on separation of concerns.
High-level design
The extensibility design avoids dependency between the platform and the application by running the application as a microservice that is built on Node.js and that uses React as an underlying UX framework. The platform is run as a separate service, and handles all routing, integration with the content management system (CMS), and security.
Request flow
Here is a typical architectural flow when a customer requests a page from an online store that uses the Dynamics 365 Commerce platform.
- The platform gets a request, and does authentication, routing, and locale detection.
- The platform generates a hydrated page object that contains page configuration data and data from external services that use data actions.
- Data actions allow for batching, aggregation, and chaining of multiple service calls, including deduplication.
- The platform provides a set of core data actions that provide connections to Dynamics 365 Commerce services (for example, the catalog and ratings).
- After the hydrated page object is generated, the platform calls the React application that is running on a node express server.
- The React application parses the view model, runs the React views on the server side, and generates HTML.
- The React application consists of core SDK modules, module library modules, and custom modules.
- The platform sends back the HTML together with the appropriate cookies, headers, and so on.
- The React script initializes the components, takes over client-side execution on the browser, and renders the modules.
- Node.js supports tool pages and other developer productivity tools that are provided by the platform.
Partner application
The compiled partner package contains both the SDK and a module library. The SDK isn't extensible, but module library modules can be cloned and completely customized. Partner customizations (modules, data actions, and themes) can be packaged by using a command-line interface (CLI) command. The package can then be uploaded by using Microsoft Dynamics Lifecycle Services (LCS). In this way, the customizations are incorporated into the partner's e-Commerce site.
Additional resources
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for