# How to replicate an event stream at a remote machine?

  1. Set replication.run to true in the stream module's conf

    replication.run=true
    
  2. Also mark the stream as readOnly to avoid any writes to the replicated stream

    readOnly=true
    
  3. Provide the replication specific parameters

    replication.autoUpdateMinInterval=5000
    replication.autoUpdateMaxInterval=60000
    replication.autoUpdateStepInterval=2000
    replication.autoUpdateReplayMax=100
    
  4. Provide the source stream's host details i.e. the stream to replicate from

    source.store.host="remote-host"
    source.store.port=27017
    source.store.dbName="lottery-event-store"
    

    Note: Ensure the eventDb's mongo port is accessible by the machine in which the remote replication is running.

  5. Test the configuration by running the replication details command.