Two websites with different Master/Web database share the same Core database?

Architecture of Application and Infrastructure are the first step in all projects that need to be designed properly. Different companies have different ways of implementing their architecture. During this post, I will explain an infrastructure design for Sitecore where 2 or more websites have different Master and Web Databases but using a single Core Databases.

The use of the Scalability setting is recommended for this Infrastructure design. The below diagram shows how the architecture will be setup:

Architecture.png

You will require to have 2 publishing instances, one for each website since you are hosting it on different servers and IIS instance. Moreover, cache will be cleared based on the Instance Name of the Publishing Server. For example, if the publishing instance CM1 publishes an item, cache will only be cleared on the CM1 and not CM2. Then you will have to set your scalability setting as follows:

1. Website One

– Publishing Instance Scalability Setting

<setting name="InstanceName">
   <patch:attribute name="value">CM1</patch:attribute>
</setting>
 
<setting name="Publishing.PublishingInstance">
   <patch:attribute name="value"></patch:attribute>
</setting>

– Other Nodes

<setting name="InstanceName">
   <patch:attribute name="value"></patch:attribute>
</setting>
 
<setting name="Publishing.PublishingInstance">
   <patch:attribute name="value">CM1</patch:attribute>
</setting>

 

2. Website Two

– Publishing Instance Scalability Setting

<setting name="InstanceName">
   <patch:attribute name="value">CM2</patch:attribute>
</setting>
 
<setting name="Publishing.PublishingInstance">
   <patch:attribute name="value"></patch:attribute>
</setting>

– Other Nodes Scalability Settings

<setting name="InstanceName">
   <patch:attribute name="value"></patch:attribute>
</setting>
 
<setting name="Publishing.PublishingInstance">
   <patch:attribute name="value">CM2</patch:attribute>
</setting>

Please comment below for any improvement / thoughts. They are most appreciated 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s