Dan,
Remoting does NOT do the following out of the box (all of which WCF
supports or has more options than remoting):
- Authentication/authorization.
- Only three channels with fixed formats for those channels (tcp, http,
pipes) (WCF supports MSMQ out of the box as well and the format of messages
on channels is extremely extensible)
- Supports only two encodings (binary and soap) (WCF supports soap, POX,
binary encoding and can be extended for almost any wire format)
- Transactions
- Dials for scaling (throttling, message size, etc, etc)
Oh, yeah, you have to share assemblies with callers as well with
remoting, and thats a HUGE PITA.
The list goes on, the big one for most people is the first one, lack of
authentication/authorization support. It just isn't there in remoting.
Also, with WCF, the model allows you to switch easily between bindings
and transports, assuming that your service semantics don't change. So if
you had an internal app which used a TCP transport and binary encoding, it's
not going to take much to move it to a web service (using the Basic Web
Services profile, or something more, and assuming you wrote your service as
stateless to begin with).
Finally, the number of extensibility points, for almost every single
aspect of the WCF stack (security, transport, message
inspection/transformation, encoding, the ability to inject services into the
stack) blows remoting out of the water.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Dan Holmes" <da*******@bigfoot.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Nicholas Paldino [.NET/C# MVP] wrote:
>Chris,
I have two questions. First, what is the impetus to use remoting?
Why do you feel you have to have the layers on two different machines?
Just because you have a logical boundary between these two tiers, doesn't
mean you have to have a process or machine boundary between the two of
them. Doing this unecessarily will hamper performance.
Second, why aren't you looking at Windows Communications Foundation
(WCF)?
What makes WCF that much more compelling than remoting? I don't know
anything more about it than the name.
I have started a similar project and used remoting. WCF didn't exist when
i started.
dan