EPiWiki.se  - EPiServer notes shared with others
 

Remote events

[Edit]
Remote events in EPiServer can send text strings between machines, the most common case is that the CMS and community removes items in the cache to keep the cache consistent.

UDP brodcast


The best (and most tested) transport layer for remote events is UDP broadcast.

Several sites on the same machine


When have several sites on one machine used several ports for all sites (if not multi site). Sense all clients will listen on all broadcast events on the given port, and the sites needs to be resolved in the code.

Multi site


When using remote events over UDP broadcast on a multi site installation, only one WCF server endpoint and one client endpoint address needs to be configured (without any site specification). This is because all sites will read their own configuration when it starts up.

<configuration>
  <system.serviceModel>
    <services>
      <service name="EPiServer.Events.Remote.EventReplication">
        <endpoint name=" MultiSite"
                  address="soap.udp://239.255.255.19:5001/RemoteEventService"
                  binding="customBinding"
                  bindingConfiguration="RemoteEventsBinding"
                  contract="EPiServer.Events.ServiceModel.IEventReplication" />

    <client>
      <endpoint name="MultiSite"
                address="soap.udp://239.255.255.19:5001/RemoteEventService"
                binding="customBinding"
                bindingConfiguration="RemoteEventsBinding"
                contract="EPiServer.Events.ServiceModel.IEventReplication" />
    


Specify what NIC to use



<udpTransport multicast="True" nicToUseName="Local Area Connection 2" />
Version author:
Mattias Lövström

EPiServer version

'CMS 5 R1' 'CMS 5 R2' 'EPiServer CMS 6'