Can both CM and CD servers point to the same MongoDB instance of Sitecore xDB?

382 views Asked by At

For my DEV and TEST I have both a CM server and a CD server. I have one SQL instance for DEV and another one for TEST. DEV's CM and CD point to the DEV's SQL instance and TEST's CM and CD point to the TEST's SQL instance.

Will there be any problem if I use MongoDB in the same manner? I want to use only one instance for DEV and one for TEST, where both CM and CD of DEV point to the DEV's MongoDB and both CM and CD of TEST will point to the TEST's MongoDB.

For Example:

DEV CM and CD connection string:

<add name="tracking.live" connectionString="mongodb://UserName:Password@mongodbServerDEV/tracking_live" />

TEST CM and CD connection string:

<add name="tracking.live" connectionString="mongodb://UserName:Password@mongodbServerTEST/tracking_live" />
2

There are 2 answers

2
Gatogordo On BEST ANSWER

Your CM and CD environment need to point to the same Mongo environment. So yes, it is no problem.

3
Sagar Kulkarni On

Technically that should not be a problem. Before using the information/data from Mongodb, just keep in mind that it will contain tracking details of both CM & CD environment.