Per Bjurström
Dec 3, 2013
  3555
(2 votes)

Remote Events Providers (EPiServer 7.5)

A long time ago I wrote an article that among other things used a trick to change how Remote Events works (the system used in load balancing). The implementation switched out Windows Communication Foundation (WCF) in favor of a custom database implementation to get events flowing in synch with data (when using SQL replication).

But now we have official support for Event Providers in 7.5 – and it’s used by both Commerce and CMS. It’s a pretty easy API to implement if you want to make your own provider:

 

image_thumb9

The built-in provider, based on WCF, is the same implementation used in previous versions so it should be a smooth upgrade if you have a complex setup with TCP endpoints for example.

But we are also releasing more providers on the NuGet feed, one for Azure Service Bus and one for Amazon SQS/SNS to take advantage of the elastic scaling of cloud environments. How to configure them are available in the CMS SDK.

Anyhow, I picked up the old code from my custom implementation and rewrote it into the new event provider system. Basically its just serializes and deserializes message to and from a table in SQL Server, more a proof of concept than anything I would put into production. It’s available on GitHub if you want to play with it.

Dec 03, 2013

Comments

per@hassle.net
per@hassle.net Dec 3, 2013 03:37 PM

Cool!

Dec 4, 2013 08:34 AM

Awesome stuff, how are the bus providers (Azure / Amazon) in terms of reliability?

The previous UDP based multicast system was a fire and forget system and If a server missed an event the server would be out of sync.

Is a message only removed once all servers have "received/acknowledged" a message it or is it still a fire and forget system in Azure as well?

Dec 4, 2013 02:11 PM

They are implemented using a publish/subscribe pattern so senders hand off the message to a topic and receivers poll their subscriptions (which are individual queues per server). So basically if UDP is as synchronous you can get the cloud providers are as asynchronous you can get with guaranteed message delivery.

Please login to comment.
Latest blogs
Opti ID overview

Opti ID allows you to log in once and switch between Optimizely products using Okta, Entra ID, or a local account. You can also manage all your use...

K Khan | Jul 26, 2024

Getting Started with Optimizely SaaS using Next.js Starter App - Extend a component - Part 3

This is the final part of our Optimizely SaaS CMS proof-of-concept (POC) blog series. In this post, we'll dive into extending a component within th...

Raghavendra Murthy | Jul 23, 2024 | Syndicated blog

Optimizely Graph – Faceting with Geta Categories

Overview As Optimizely Graph (and Content Cloud SaaS) makes its global debut, it is known that there are going to be some bugs and quirks. One of t...

Eric Markson | Jul 22, 2024 | Syndicated blog

Integration Bynder (DAM) with Optimizely

Bynder is a comprehensive digital asset management (DAM) platform that enables businesses to efficiently manage, store, organize, and share their...

Sanjay Kumar | Jul 22, 2024

Frontend Hosting for SaaS CMS Solutions

Introduction Now that CMS SaaS Core has gone into general availability, it is a good time to start discussing where to host the head. SaaS Core is...

Minesh Shah (Netcel) | Jul 20, 2024

Optimizely London Dev Meetup 11th July 2024

On 11th July 2024 in London Niteco and Netcel along with Optimizely ran the London Developer meetup. There was an great agenda of talks that we put...

Scott Reed | Jul 19, 2024