Sunny
7/19/2004 4:14:00 PM
Hi Bob,
In article <ug2vDLabEHA.3508@TK2MSFTNGP09.phx.gbl>, rundle@rundle.com
says...
> Perhaps you are right that I should have read Ingo Rammer before starting
> the .NET Remoting prototype. However I have heard Ingo Rammer speak and he
> is very hard to listen to. I wasn't looking forward to wading through his
> book. Also the reviews on Amazon are not stellar.
I found the book easy to read, and it builds a strong base for further
understanding. You don't have to consider the book alone, there are some
articles on Ingo Rammer's site as well. The worst review at Amazon (when
I bought the book) was that "advanced" is not so advanced. Which is good
as far as it creates the base :). And not true, as it indeed shows some
advanced techniques.
And ... as I said, I also bought the book when I already have spend some
time in fights :)
>
> The biggest trap I fell into was that I already attended a training class in
> .NET Remoting (one of those guerilla type things -- we spent an hour on
> remoting) and so I thought I had all the info I needed. .NET is so easy
> anyway...the code practically writes itself.
Kids, don't do this at home :). The bad part is that the idea of
remoting is very good, but maybe MS have hurried to ship the framework,
so they left out many many things.
>
> Well of course silly classroom examples are one thing and a piece of real
> code is entirely different. I kept running into things that were not
> recommended: for example I want to both serialize and remote my objects:
> this seems to me a very natural thing, but the docs say "no one does this."
Yes, I know what you mean :) It happens all the time. One way or
another, if I remember properly from another post of yours, you need to
marshal and serialize the objects in order that you can save them. If
this is the case, I'd rather put all the data you need to serialize and
save in another class, and reference it from my MBR. Your MBR should be
only like an interface (or wrapper) for the remoting - i.e. accept
connections from the clients and serve the requests. The internals
should be only for the server.
But there is a lot of unexplored space in remoting, I agree. And until
enough applications are written, and experience exchanged, there will be
a lot of pain :). For sure the official docs are not complete.
Cheers
Sunny