Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Handle events listener in a load balanced environment?

Vote:
 

Hi!

In CMS 11 you configured event listeners to make sure all servers in a load balances environment where up to date. This was configured in web.config:

<system.serviceModel>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
    <services>
      <service name="EPiServer.Events.Remote.EventReplication">
        <endpoint name="RemoteEventServiceEndPoint" contract="EPiServer.Events.ServiceModel.IEventReplication" binding="netTcpBinding" bindingConfiguration="RemoteEventsBinding" address="net.tcp://10.14.86.40:5000/RemoteEventService" />
      </service>
    </services>
    <client>
      <endpoint name="10.14.86.41" contract="EPiServer.Events.ServiceModel.IEventReplication" binding="netTcpBinding" bindingConfiguration="RemoteEventsBinding" address="net.tcp://10.14.86.41:5000/RemoteEventService" />
    </client>
    <behaviors>
      <serviceBehaviors>
        <behavior name="DebugServiceBehaviour">
          <serviceDebug includeExceptionDetailInFaults="true" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <bindings>
      <netTcpBinding>
        <binding name="RemoteEventsBinding" portSharingEnabled="true">
          <security mode="None" />
        </binding>
      </netTcpBinding>
    </bindings>
  </system.serviceModel>

Is it possible to do something similiar in CMS 12? We havw two servers and if I update content on one of them the other still shows the old content?
I have been trying to find some documentaion how this is done in CMS 12 but with no luck. 

If not, how do we make sure that the cache is invalidated in a load balanced environment?

Thanks!

/Kristoffer

#290711
Oct 28, 2022 0:12
Vote:
 

Full documenation around this topic for CMS 12 can be found here : Event management (optimizely.com) 

#290713
Oct 28, 2022 1:17
Vote:
 

Thanks! Stefans example worked just fine after some firewall fixes.

#290734
Oct 28, 2022 16:56
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.