SITECORE CMS: PUBLISHING SERVICE WITH SITECORE 9.2

Sitecore publishing service (SPS) 1.1 has been launched with Sitecore 8.2, it is an optional replacement of existing Sitecore publishing. Sitecore publishing service module reduces the time spend on publishing large volumes of items also improves the user experience.


SPS runs outside of the Content Management worker process as it SPS runs separate services and move data from master to web database.





When Content Editor does any changes, the CM server sends a signal to SPS that what changes had been done, then SPS will calculate a manifest of what needs to be published. After publishing, SPS will send the signal to CM servers that what has been written so that they can update search indexes and clear the affected cache, etc.

The module has 2 parts.

  • Sitecore Publishing Service Module Package
  • Publishing Host Service

Prerequisite

Installation

Follow the below steps:
  • Exact Sitecore Publishing Service folder inside C:\inetpub\wwwroot\
  • Fill in details as mentioned in the below image.
  • Now we need to set up the website in IIS, so for that open IIS and add a new website.

  • Fill in details as mentioned in the below image.

  • Now go to Application pool and right-click on your application pool, then select Basic Settings and changed the .NET  CLR version to “No Managed Code

    .
  • Add domain into the host file127.0.0.1 Sitecore publishing service.
    127.0.0.1     sitecorepublishingservice  
      
  • Now we need to update the connection string of the Sitecore instance which you want to use, so for that go to this location C:\inetpub\wwwroot\XXX\config\global and create sc.global.xml file from sc.global.xml.example and paste the below code.
<Settings>   
  <Sitecore>  
   <Publishing>  
    <ConnectionStrings>  
         <Master>Data Source=XXX;Initial Catalog=XX_Master;User ID=XX;Password=XX</Master>  
         <Core>Data Source=XXX;Initial Catalog=XX_Core;User ID=XX;Password=XX</Core>  
         <Web>Data Source=XXX;Initial Catalog=XX_Web;User ID=XX;Password=XX</Web>  
        </ConnectionStrings>  
   </Publishing>  
  </Sitecore>  
 </Settings>  
  • Now open the command prompt and go to this location C:\inetpub\wwwroot\xxx and run this command “Sitecore.Framework.Publishing.Host schema upgrade --force


  • Now hit this URL http://{site url}/api/publishing/operations/status, it should display {“status”:0}




 <setting name="PublishingService.UrlRoot" value="http://URL/"></setting>  


  • When you will publish an individual item, you will see the below popup.





  • Also, you can see Publishing Icon in the dashboard where you can see active jobs, queued jobs and recent jobs in the dashboard.




  • Comments