Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
This topic describes the event management system and event providers in Episerver. The events system provides a mechanism for distributing events between IIS applications and Episerver websites in a load-balanced environment. The event system in Episerver is provider-based, and you can either use the built-in event provider or develop your own customized one.
The built-in event provider is based on Microsoft Windows Communication Foundation (WCF) and requires some manual WCF configuration steps to enable. It uses either UDP broadcasting or TCP, which requires detailed knowledge about ports, firewalls and endpoints. To use elastic scaling (adding and removing servers on demand) with the WCF provider, you need to use UPD broadcasting becauseTCP requires you to manually configure all endpoints.
Elastic scaling in cloud environments does not work well using the built-in WCF provider since you may not have detailed control over networks and servers. An event provider optimized for Microsoft Azure is available on NuGet. The event provider for Azure uses Service Bus for distributing events and requires no configuration of servers or network details. An event provider for Amazon Web Services also is available on NuGet.
Another alternative is to develop your own custom event provider, adapted for your hosting environment.
For the built-in WCF-based event provider, it is enough to define WCF end-points (as described in Configuring events over WCF), because it is the default provider.
To use another custom event provider, add the provider configuration to the event element in the episerver.framework section of the web.config. For example:
<episerver.framework> <event defaultProvider="msmq"> <providers> <add name="msmq" type="MSMQEventProvider.MSMQEventProvider, MSMQEventProvider" /> </providers> </event> </episerver.framework>
See Using the Event API for details.
The following procedure describes the logical setup and execution of event system actions.
Examples of Episerver CMS functionality that use the events system are Cache updates. To test cache events, edit a page on one Episerver CMS site and ensure the change is reflected on the 2nd load balanced Episerver CMS website. See below for exact details:
Last updated: Sep 21, 2015