Reverse Replication
Overview:
Reverse Replication is process of replicating user data back to author instance from publish instance. This may include any user related data, comments, form data etc.
Architecture:
In reverse replication, Publish instance reverse replication agent puts user data in "outbox" (An repository location where data is temporarily hold). Author instance have another agent matching agent which polls data from publish at regular interval. If data is found in outbox of publish instance, it is sync in author instance. This way synchronisation of data between publish to author is controlled.
Configure Reverse Replication:
Reverse Replication Error Log Message
03.06.2013 15:51:37.635 *INFO* [Reverse Replication Processor] com.day.cq.replication.Agent.publish_reverse Sending message to localhost:4503
03.06.2013 15:51:37.635 *INFO* [Reverse Replication Processor] com.day.cq.replication.Agent.publish_reverse >> GET /bin/receive?sling:authRequestLogin=1 HTTP/1.0
03.06.2013 15:51:37.635 *INFO* [Reverse Replication Processor] com.day.cq.replication.Agent.publish_reverse >> Action: Internal Poll
03.06.2013 15:51:37.635 *INFO* [Reverse Replication Processor] com.day.cq.replication.Agent.publish_reverse >> Path:
03.06.2013 15:51:37.635 *INFO* [Reverse Replication Processor] com.day.cq.replication.Agent.publish_reverse >> Handle:
03.06.2013 15:51:37.635 *INFO* [Reverse Replication Processor] com.day.cq.replication.Agent.publish_reverse --
03.06.2013 15:51:37.635 *INFO* [Reverse Replication Processor] com.day.cq.replication.Agent.publish_reverse << HTTP/1.1 200 OK
03.06.2013 15:51:37.635 *INFO* [Reverse Replication Processor] com.day.cq.replication.Agent.publish_reverse << Connection: Keep-Alive
03.06.2013 15:51:37.635 *INFO* [Reverse Replication Processor] com.day.cq.replication.Agent.publish_reverse << Server: Day-Servlet-Engine/4.1.24
03.06.2013 15:51:37.635 *INFO* [Reverse Replication Processor] com.day.cq.replication.Agent.publish_reverse << Content-Type: application/octet-stream
03.06.2013 15:51:37.636 *INFO* [Reverse Replication Processor] com.day.cq.replication.Agent.publish_reverse << Content-Length: 32
03.06.2013 15:51:37.636 *INFO* [Reverse Replication Processor] com.day.cq.replication.Agent.publish_reverse << Date: Mon, 03 Jun 2013 22:51:37 GMT
03.06.2013 15:51:37.636 *INFO* [Reverse Replication Processor] com.day.cq.replication.Agent.publish_reverse Message sent.
03.06.2013 15:51:37.636 *INFO* [Reverse Replication Processor] com.day.cq.replication.Agent.publish_reverse ------------------------------------------------
03.06.2013 15:51:37.636 *INFO* [Reverse Replication Processor] com.day.cq.replication.Agent.publish_reverse Reverse replication successful.
03.06.2013 15:51:37.636 *INFO* [Reverse Replication Processor] com.day.cq.replication.Agent.publish_reverse Fetched 0 pages from http://localhost:4503/bin/receive?sling:authRequestLogin=1
Note that not all node type / Events is subjected reverse replication. You might have to do some custom setting to get your custom data reverse replicated (That is not in scope of this tutorial). More information about reverse replication can be obtained from here