Configuring the Links Database in a scaled environment with the Publishing Service

  • Description

    For a scaled Sitecore XP environment, you must store the Links database in the Web database instead of the Core. In this case, you must also apply additional configuration to the Publishing Service.

  • Configuration

    To apply additional configuration to the Publishing Service, apply the following configuration patch:

    <Settings>
      <Sitecore>
        <Publishing>
          <Services>
            <DefaultConnectionFactory>
              <Options>
                <Connections>
                  <Links>
                    <Type>Sitecore.Framework.Publishing.Data.AdoNet.SqlDatabaseConnection, Sitecore.Framework.Publishing.Data</Type>
                    <LifeTime>Transient</LifeTime>
                    <Options>
                      <ConnectionString>${Sitecore:Publishing:ConnectionStrings:Web}</ConnectionString>
                      <DefaultCommandTimeout>120</DefaultCommandTimeout>
                      <Behaviours>
                        <backend>sql-backend-default</backend>
                        <api>sql-api-default</api>
                      </Behaviours>
                    </Options>
                  </Links>
                </Connections>
              </Options>
            </DefaultConnectionFactory>
          </Services>
        </Publishing>
      </Sitecore>
    </Settings>

Applies to:

Publishing Service 1+

August 07, 2017
August 07, 2017

Keywords: 

  • Publishing
  • ,
  • Scaling