Click here to Skip to main content
13,198,325 members (64,699 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I need to know about different ways for communication between two processes (windows services). I am working with WCF but, if any body can suggest better way other than WCF than it would be appriciable...
Posted 11-Jan-13 0:53am
ryanb31 11-Jan-13 7:56am
It depends on a lot of things. Are the processes on the same server? Same domain? Different parts of the world? "Best" always depends on your circumstances.
Sergey Alexandrovich Kryukov 11-Jan-13 12:13pm
You are absolutely right. I would say, many IPC facilities will do it, the only problem is to pick one which is good for a job: not too much ad-hoc, not too much complicated. And it totally depends on the detail of the goal.
Sergey Alexandrovich Kryukov 11-Jan-13 12:22pm
I also gave some arguments in favor of WCF in my answer, but they should not be considered as finally decisive — please see...
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Please see my comment to the question above. You can use very different IPC, and I cannot advise what to prefer, because I don't know your goal in sufficient detail.

But I can explain some of the reasons to prefer WCF, even though you should not consider them as decisive. 1) you are already familiar with WCF, 2) self-hosted WCF is pretty simple to use; and development is also pretty simple; 3) you can easily can switch the same WCF to use a different channel if you later need it. For example, if today you use IPC channel (in WCF jargon, this is more specialized word: a channel based on named pipes) later you can easily switch to TCP, or to some messaging system like MSMQ — you name it.

So, if you don't have extremely sophisticated requirements for customization of communication, if you don't have super extra critical performance requirements (yes, WCF has its overhead), nothing very special, it can be a sure way to go. Or one of such ways.

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Thank u all for ur comments...

I have found a solution... m using a windows service inside which a wcf service is hosted.
And also came to know that one wcf service can directly call other wcf service if service reference of that service is provided...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.171020.1 | Last Updated 14 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100