WCF and Publisher/Subscriber Model

18 07 2007

Windows Communication Foundation (WCF) is the new service oriented programming model included in the .NET 3.0 framework. Windows Communication Foundation (WCF) is designed to offer a manageable approach to distributed computing, broad interoperability, and direct support for service orientation. To know more about WCF, please refer here

Currently am programming the Publisher/Subscriber model. Let me explain,

Subscriber is the service to which all clients subscribe and Publisher is the service which sends messages to all clients who have subscribed to Subscriber service. That is, suppose we have 10 clients and all 10 clients would subscribe to the Subscribe service to receive notifications (client programs are individual programs) and then whenever the required event occurs, the Publisher notifies all those clients registered.

Some info can be found here and here . I would explain more in the next few days when I start implementing this

This can be illustrated by the diagram below,

(Click on the picture to enlarge)

Creative Commons License Creative Commons License




4 responses

25 07 2007
PressPosts / User / djcolonel / Submitted


Submited post on PressPosts.com – “WCF and Publisher/Subscriber Model”

30 07 2007
Adding a WCF Service to your Application « C h a k s’ C o r n e r

[…] a WCF Service to your Application 30 07 2007 As told earlier, Windows Communication Foundation is the new Service Oriented programming model introduced and […]

30 07 2007
Coding WCF Publisher/Susbcriber Model « Chaks’ Corner

[…] going through this post, please have a look here and here to get familiar with Publisher/Subscriber […]

10 01 2009

I want Pub/Sub model application in WCF. I have created Service and then i need to create Subcriber Application and then i need to create Client application. After publish service Client application can communicate with published server VIA SUBCRIBER. Now i need Two Proxy. One proxy (ABC.CS ) For Subcriber and One for Client (XYZ.CS). How can i create two Proxy after published service. There is utility (svcutil.exe) use to generate proxy but that proxy will be use for Client or Subcriber. How can i generate another proxy. The second thing how can i test my Subcriber is working ok. I know there is one way when client application communicate with Service but is there any other way i can test in each step.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: