Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: .NET3.5
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
Comments
ryanb31 at 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 at 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 at 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
Rate this: bad
good
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.
 
—SA
  Permalink  
v2
Rate this: bad
good
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...
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 404
1 Nirav Prabtani 268
2 _Amy 230
3 CHill60 170
4 Sergey Alexandrovich Kryukov 166
0 OriginalGriff 8,004
1 Sergey Alexandrovich Kryukov 7,017
2 Maciej Los 4,039
3 Peter Leow 3,738
4 CHill60 2,912


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 14 Feb 2013
Copyright © CodeProject, 1999-2014
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