Re: .Net Remoting TCP or HTTP?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: John Puopolo (john.puopolo_at_fastsearch.com.nospam)
Date: 01/25/05


Date: Tue, 25 Jan 2005 17:52:19 -0500

Andre:

In terms of using TCP directly or HTTP, the choice really revolves around
the source system, the target system and what's in between. If the client
and server are both .NET and you do not need to worry about firewalls in
between them, use the TCP channel with a binary formatter (the default).
This scheme will not work, however, if one of the endpoints is not .NET or
if there are firewalls in between the endpoints. The firewalls (or some
routers) will reject traffic not originating or destined to port 80.

In these cases, you still have an "efficiency" option. You can send
binarized data over the HTTP channel. This won't be quite as efficient as
sending the information over the TCP channel directly, but it does offer a
nice balance of speed and flexibility.

I have not hsed the genuine channels product, but I have seen mention of it
around the remoting newsgroups. I believe it is a set of classes that
simplifies using remoting channels, and implements "difficult to implement"
functionality such as remoting callbacks, etc. I am interested to see other
repsonses to this part of you question as a way of learning a little bit
more about what it does and perhaps how it works.

Hope this helps,
John Puopolo

"André" <Andr@discussions.microsoft.com> wrote in message
news:A80ED776-BE75-4AC9-B232-772E0F2F3D25@microsoft.com...
> Hi,
>
> I'm new to .Net Remoting, I am wondering what should I use for my channel,
> TCP or HTTP.
>
> Can someone tell me why I would use one over the other? And in what cases
> will I use TCP over HTTP and vice versa
>
> I am using C# .net. I am behind a firewall; this app will be for a few
> hundred users over a WAN, internal only. Better performance is what I'm
> looking for.
>
> What I'm trying to build is a middle ware for my windows app's to connect
> to, and the remoting server will talk to Oracle database and return the
data
> to the client.
>
> And. does anyone know about http://www.genuinechannels.com/ what is this?
> And why would I need this?
>



Relevant Pages

  • Re: .Net Remoting TCP or HTTP?
    ... In terms of using TCP directly or HTTP, ... use the TCP channel with a binary formatter. ... around the remoting newsgroups. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Are Remoting and Web Services equivalent?
    ... Remoting on .NET 2.0 will include channel encryption right out of the box, ... i dont know how the http encrypted channel will be ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Is tcp so much faster?
    ... HTTP and TCP are apples and oranges in a way. ... >Remoting. ... Using the TCP channel it takes 1 second, ...
    (microsoft.public.dotnet.framework.remoting)
  • .Net Remoting TCP or HTTP?
    ... I’m new to .Net Remoting, I am wondering what should I use for my channel, ... TCP or HTTP. ...
    (microsoft.public.dotnet.framework.remoting)
  • .Net Remoting TCP or HTTP?
    ... I’m new to .Net Remoting, I am wondering what should I use for my channel, ... TCP or HTTP. ...
    (microsoft.public.dotnet.framework)