A Generic Use Case

A typical Data Hub integration consists of several components, including adapters, data models, data handlers, and configuration files. Take all of these components into account when considering your needs for a successful Data Hub deployment.

Careful planning is required to undertake a successful data integration project using SAP Commerce Cloud Data Hub. Understanding what components are required for the needs of your project is the first step in this planning. Certain components are mandatory, and for some SAP Commerce Cloud provides an out-of-the-box solution. These out-of-the-box components are shipped together with the SAP Commerce Cloud software package. Other components are purely optional, their inclusion being dictated solely by the needs of your project.

The following figure provides a complete end-to-end overview of a Data Hub integration. Use this overview and subsequent explanations to gain some insight into which components may be relevant to you. If a component is optional, it is indicated in the description. You can find links to further information after each description.

A Complete Data Integration Use Case Overview
  1. Source System Adapter - The source system adapter provides an integration between the source system and Data Hub. The source system adapter is an essential part of your data integration solution. Itt is required to import raw, unprocessed data from the source system to Data Hub. The REST endpoint used to import data corresponds to the Data Hub integration channel and data feed. A more complex adapter may include event responses and data preprocessing capabilities. If your source system is SAP Commerce Cloud or SAP ERP, then you can use one of the provided, out-of-the-box adapters for this purpose. For more information, see:
  2. Inbound Channel - Data Hub provides a single inbound channel that is a Spring Integration channel. Spring Integration is the preferred method for importing data into Data Hub. The CSV inbound adapter provides a convenient method for data already in CSV format. It sends the data along to the Spring Integration channel.. For more information, see:
  3. Data Feeds and Pooling Strategy - Do you need more than one feed or pool for either concurrent processing or data segregation? Data Hub provides a single feed and a global pool by default. If you need more than one feed or pool, you can use either a named pool or new pool per input pooling strategy. Using a strategy other than the default feed and global pool is optional. For more information, see:
  4. Data Model - The data model defines how raw, canonical, and target data items are structured, and includes metadata that assists with composition and publication. Typically, you create separate XML files for RawItem, CanonicalItem, and TargetItem definitions. The target item XML also includes target system definitions. The data model is an essential component of your Data Hub integration project. For more information, see:
  5. Data Handlers - Data handlers are classes that are used to execute data transformations, including grouping, especially during the composition phase of the Data Hub workflow. Data Hub is shipped with a set of default grouping and composition handlers. You may develop your own dedicated handlers in addition to the provided defaults. Handlers can run in any order and you can insert as many handlers as you need. Publication grouping handlers are optional, but provide powerful data transformation possibilities during the publication phase. For more information, see:
  6. Target System Adapter - The target system adapter is a means to deliver data to target systems and gather results. The target system adapter is the normal endpoint for the Data Hub publication phase. It does the final packaging of target items for delivery, then forwards them to the target system. If your target system is SAP Commerce Cloud, or either SAP ERP or SAP C4C, then you can use one of the provided out-of-the-box adapters. For more information, see:
  7. Configuration - Data Hub provides a number of configuration possibilities, including parameters related to performance, the database, security, and integration with external systems through the adapters. Although not all configuration options are mandatory, you need to provide some essential basic configuration for your integration scenario. Essential configuration includes credentials for connecting to the Data Hub database, and for use with basic authentication. In addition to providing basic configuration for your project in the local.properties file, you may choose to create a custom Spring Security profile. This profile is used for the protection of Data Hub REST endpoints using HTTPS Basic Authentication. For more information, see:

In addition to the out-of-the-box solution described above, you may also find examples of solutions for specific test and real-world scenarios in the Solution Book.