Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Comments
ZurdoDev 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.
—SA
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...
—SA

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.

—SA
 
Share this answer
 
v2
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...
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900