Expand my Community achievements bar.

SOLVED

1) What is the difference between Sling content distribution and Simple Replication. 2) How can we perform reverse replication from publisher to author (not sling content distribution)?

Avatar

Level 4
 
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @shikhasoni1, SCD (Sling Content Distribution) is an API based content distribution to manage how the content is sent and received between different sling instances. There are three different types of distribution in SCD which are Forward, Reverse and Sync.
While most of the use cases can be done using simple replication/reverse replication instead of SCD. Below are a few key advantages of using SCD over Agent Replication:

  1. In SCD, the distribution is done from one or more source instances to one or more target instances. In Agent Replication, we need to setup multiple replication agents.
  2. In SCD, sending and receiving ends, both needs to be configured. In Agent Replication, for replication, only the author agent needs to be configured.
  3. In SCD, sync distribution helps sync content across many publishers which is controlled by author instance. This type of use case where we need to sync data across multiple publishers may not be easily achieved using the Agent Replication.

As defined in #3, this is the major benefit of using SCD over Agent Replication.

To set up reverse replication (publisher to author) please refer this guide: https://www.cqtutorial.com/courses/cq-admin/cq-admin-lessons/configure-cq-replication/cq-reverse-rep...

 

For more details on SCD, please refer these links:
https://sling.apache.org/documentation/bundles/content-distribution.html
https://www.albinsblog.com/2020/08/sling-content-distribution-in-aem-sync-content-between-publish-in...

 

- Jineet

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

Hi @shikhasoni1, SCD (Sling Content Distribution) is an API based content distribution to manage how the content is sent and received between different sling instances. There are three different types of distribution in SCD which are Forward, Reverse and Sync.
While most of the use cases can be done using simple replication/reverse replication instead of SCD. Below are a few key advantages of using SCD over Agent Replication:

  1. In SCD, the distribution is done from one or more source instances to one or more target instances. In Agent Replication, we need to setup multiple replication agents.
  2. In SCD, sending and receiving ends, both needs to be configured. In Agent Replication, for replication, only the author agent needs to be configured.
  3. In SCD, sync distribution helps sync content across many publishers which is controlled by author instance. This type of use case where we need to sync data across multiple publishers may not be easily achieved using the Agent Replication.

As defined in #3, this is the major benefit of using SCD over Agent Replication.

To set up reverse replication (publisher to author) please refer this guide: https://www.cqtutorial.com/courses/cq-admin/cq-admin-lessons/configure-cq-replication/cq-reverse-rep...

 

For more details on SCD, please refer these links:
https://sling.apache.org/documentation/bundles/content-distribution.html
https://www.albinsblog.com/2020/08/sling-content-distribution-in-aem-sync-content-between-publish-in...

 

- Jineet

Avatar

Community Advisor

Adding a point here,

reverse distribution is also possible through SCD, the action attribute would be "PULL" on your trigger.
example : 

$ curl -v -u admin:admin http://localhost:8081/libs/sling/distribution/services/agents/publish -d 'action=PULL' -d 'path=/content/sample1'

This is more important as the AEMaaCS works only through SCD and no more replication agents. However, you can still work through replication agents on local SDKs.

 

Avatar

Level 4

@B_Sravan 

Thanks sravan for the info.

 

I have one doubt here as i have not worked much on AEMaaCS, if we will do replication through agents in local SDKs then do we need to configure SCDs seperately in higher environments or it is recommended to do SCDs only in local SDKs also so that it will a part of code deployment process.