Posts Tagged ‘Publish & subscribe’

Yet another way to do publish & subscribe Part III . . . (2008-7-7)

Today, I discuss the design of what I actually implemented. Please be aware that I do not claim that it’s the perfect solution to the concept at hand. It’s what I’ve come up with to implement it, which at least for my context works very well. With that being said, let’s dive into the design.
The [...]

Yet another way to do publish & subscribe Part II . . . (2008-7-2)

As promised on the last post, this time I talk more about what I actually implemented. Let’s start with the basic API. The whole API is very simple and message centered. In order to be able to recieve messages you have to implement the ISubscriber<TMessage> interface.

public interface ISubscriber<TMessage>
{
void Handle(TMessage message);
}

The [...]

Yet another way to do publish & subscribe . . . (2008-6-30)

About 2,5 years ago I first came across the idea of combining dependency injection with loosly coupled publish & subscribe. This was when I inspected the source code of the Composite Application Block (CAB) with its underlying InversionOfControl-container ObjectBuilder from Microsoft.
What I liked about publish & subscribe in CAB:

The automatic thread marshalling. (Basically you’re able [...]