Skip to main content

SynchronizerService

Listen to activities sent to the local relay actor (or to the Pod owner, in a Pod provider) and keep the local cached data in sync with the remote data.

caution

This service is automatically initialized by the MirrorService and the AggregatorService

Dependencies

Usage

const { SynchronizerService } = require('@semapps/sync');

module.exports = {
mixins: [SynchronizerService],
settings: {
podProvider: false,
mirrorGraph: true,
synchronizeContainers: true,
attachToLocalContainers: false
},
};

Settings

PropertyTypeDefaultDescription
podProviderBooleanfalseSet to true if your instance is a Pods provider
mirrorGraphBooleantrueStore all remote data in the mirror named graph
synchronizeContainersBooleantrueSynchronize also the remote containers
attachToLocalContainersBooleanfalseAttach remote resources to local containers (if the same type is found)