Re: .NET and multithread networks server application
- From: Ciaran O''''Donnell <CiaranODonnell@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 2 Jan 2007 02:15:01 -0800
Remoting isnt as fast as real raw sockets but you do get a lot with it.
Remoting isnt just about sending an object down a wire but about getting
remote object references so you can grab a reference to an object that is
running on another machine and you can call methods on it will run on the
remote machine and return the results to the client.
The fastest way to communicate I believe is to setup a tcpclient and
tcplistner to get a socket to socket connection. Then spit bytes down the
wire by serializing things writing raw bytes.
Also, WCF with binary serialization is faster than remoting as the protocal
has been streamlined.
--
Ciaran O'Donnell
http://wannabedeveloper.spaces.live.com
"David Browne" wrote:
.
"Cube" <SiliconJaltz05@xxxxxxxxx> wrote in message
news:1166591494.747347.29570@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
The best and most robust of these is the new Windows Communication
Foundation (WCF) in .NET 3.0.
Windows Communication Foundation
http://msdn2.microsoft.com/en-us/library/ms735119.aspx
isnt that vista only?
Windows XP SP2, Windows Server 2003 and Vista. The .NET 3.0 Runtime ships
on vista, and is available as a free download for XP SP2 and Server 2003.
Other good options are Web Services
http://msdn.microsoft.com/webservices/default.aspx
and .NET Remoting.
http://msdn.microsoft.com/webservices/remoting/default.aspx
Remoting may be interesting we have just had a play with it, security
looks like an issue.
Why?
All of these are substantially simpler than coding TCP/IP and provide
simple
mechanisms to call methods and marshal objects across networks. Of
course
.NET also has easy access to TCP/IP sockets so if you really want to
write
code at that level, you can.
We may just do that, it what we did in win32, however if Remoting will
handle alot of the plumbing we need we will use it.
Remoting is much easier and basically as fast as raw sockets. But using
Binary Serialization together with TCP/IP sockets in .NET is not really
difficult. It's just that Web Services, Remoting and WCF are all easier and
more interoperable.
David
- Next by Date: Re: C# System.String Memory Usage
- Next by thread: Re: C# System.String Memory Usage
- Index(es):
Relevant Pages
|
Loading