cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Hybris Integration with Datahub

Former Member
0 Likes
994

Hello All, Use case SAP ERP (IDOCS)--> Hybris DataHub --> Hybris (Backoffice 2 instances)

for the above use case would you need an external Load Balancer to integrate datahub with Hybris backoffice ? if not where would we need to specify the multiple instances of backoffice for Datahub to publish ?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

cieslo
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi,

When DataHub publishes data to Commerce it only creates a task on the Commerce side. Then Task Engine picks this task, downloads the ImpEx file from DataHub and processes it. Task Engine can run on multiple backend nodes (backoffice) and ImpExes from DataHub can be processed on different backend nodes. In such case you don't need Load Balancer, just set the DataHub to communicate with one backend instance (this will only create the task on this particular node) and the processing by Task Engine should be done on all the configured nodes in cluster. Of course you can always use Load Balancer if you want to (just make sure that whenever DataHub calls Commerce for oauth token the next request with information about publication should also go to the same node). This applies to scenario when 2 backoffice instances are 2 nodes in cluster using one database.

kneuhaus
Explorer
0 Likes

Hi all,

same scenario here - 2 Nodes of Commerce, 1 datahub.
1 Node backoffice, 1 Node FrontEnd.

As datahub initialize the tasks, the import cronjob starts randomly on 1 of the 2 nodes - but we don't want to start import-Cronjobs on the FrontendNode.
btw: The both nodes have all services (BackOffice / FrontEnd, ...) enabled, so it's configured for a failover only. Loadbalancer moves all FrontEnd Users to the 2nd node, just for understanding.


How can i define:

a) Datahub-initiated Imports should only start on node 0 (is there a datahub.configuration i could not find) ?

b) configure 1 Node only to communicate with datahub

Thanks for any advice.

Answers (1)

Answers (1)

tino_kissig
Active Participant
0 Likes

We ended up introducing an own implementation of "itemImportTaskRunningFacade" be implementing ItemImportTaskRunningFacade.

Please have a look into the OOTB implementation "DefaultItemImportTaskRunningFacade". Only thing you need is to call "setNodeGroup" with the node group that should executed the tasks.