Configure Sitecore roles for separate EventQueue, Properties, and Tasks tables
You can configure Sitecore roles to use EventQueue, Properties, and Tasks tables stored in a database separate from their local Web database. This can be necessary in several scenarios including when replicating the Web database using Azure active geo-replication.
To configure Sitecore roles for separate EventQueue, Properties, and Tasks tables:
-
In the
App_Config/ConnectionStrings.configfile, add an additional connection string for the new database: -
In the
App_Config/Include/folder, create a folder and name it, for example,MyPatchFiles/. -
In the
App_Config/Include/MyPatchFiles/folder, create a configuration patch file and name it, for example,DedicatedEventQueueProvider.config. -
In the
DedicatedEventQueueProvider.configfile, insert the following code and configureEventQueueto use the new database connection string by changing theparam1attribute: -
In the
App_Config/Include/MyPatchFiles/folder, create a configuration patch file and name it, for example,DedicatedPropertyStoreProvider.config. -
In the
DedicatedPropertyStoreProvider.configfile, insert the following code and configurePropertyStoreto use the new database connection string by changing theparam1attribute: -
In the
App_Config/Include/MyPatchFiles/folder, create a configuration patch file and name it, for example,DedicatedTaskDatabase.config. -
In the
DedicatedTaskDatabase.configfile, insert the following code to configureTaskDatabaseto use the new database connection string by changing theconnectionStringNameattribute:
You must repeat this procedure on every Sitecore instance.