[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.remoting

TcpChannel or HttpChannel ???

Phil Jones

7/8/2004 1:28:00 AM

I'm writing a Remoting app that will (in the foreseeable future) be
communicating over a window's LAN/WAN. I'm just wondering what channel type
I should be using. Is it that the TCP channel is faster than the HTTP one?

Is there a downside to the TcpChannel. Would I be advised to use HTTP from
the start (as in firewalls blocking the TcpChannel) etc?

Thanks for any advice anyone has on this. I'm just getting into remoting
(but I'm lovin' it).
Cheers,
===
Phil
(Auckland | Aotearoa)


4 Answers

Sunny

7/8/2004 2:20:00 PM

0

Hi Phil,

TCP channel is faster that HTTP, as HTTP uses TCP for transport, thus
adding an additional level.

If your apps are going to run in firewall/proxy scenario, or over
Internet, HTTP is the right choice. Be aware that the default formatter
for HTTP is SOAP, so you have to explicitly use Binary for better
performance.

Sunny

In article <uiE9HmIZEHA.3564@TK2MSFTNGP11.phx.gbl>,
phil_newsgroup@hotmail.com says...
> I''m writing a Remoting app that will (in the foreseeable future) be
> communicating over a window''s LAN/WAN. I''m just wondering what channel type
> I should be using. Is it that the TCP channel is faster than the HTTP one?
>
> Is there a downside to the TcpChannel. Would I be advised to use HTTP from
> the start (as in firewalls blocking the TcpChannel) etc?
>
> Thanks for any advice anyone has on this. I''m just getting into remoting
> (but I''m lovin'' it).
> Cheers,
> ===
> Phil
> (Auckland | Aotearoa)
>
>
>

Allen Anderson

7/8/2004 2:41:00 PM

0

If you don''t have any special ''need'' to use the http channel then
always use the TCP channel with the binary formatter. That''s the
fastest channel combination.

Cheers,
Allen Anderson
http://www.glacialcomp...
mailto: allen@put my website base here.com

On Thu, 8 Jul 2004 13:27:58 +1200, "Phil Jones"
<phil_newsgroup@hotmail.com> wrote:

>I''m writing a Remoting app that will (in the foreseeable future) be
>communicating over a window''s LAN/WAN. I''m just wondering what channel type
>I should be using. Is it that the TCP channel is faster than the HTTP one?
>
>Is there a downside to the TcpChannel. Would I be advised to use HTTP from
>the start (as in firewalls blocking the TcpChannel) etc?
>
>Thanks for any advice anyone has on this. I''m just getting into remoting
>(but I''m lovin'' it).
>Cheers,
>===
>Phil
>(Auckland | Aotearoa)
>

Phil Jones

7/9/2004 11:29:00 PM

0

Thanks for the nod in the right (fast) direction.

Cheers,

===
Phil
(Auckland | Aotearoa)


DanClayden

8/10/2004 4:45:00 PM

0

Be careful with the TCP Channel though, its quite shoddily implemented.
Unless you send over lots of objects of the same type in quick succession,
every remoting call will involve opening a new socket on your machine and a
new socket on the receiving machine, which adds an overhead. The socket is
used, discarded, recycled after a few minutes, and hence if you're very
unlucky (as we have been) your machine can run out sockets.

Something like GenuineChannels (http://www.genuinech...) avoids many
of these (and other) issues and is worth a look.


"Phil Jones" wrote:

> Thanks for the nod in the right (fast) direction.
>
> Cheers,
>
> ===
> Phil
> (Auckland | Aotearoa)
>
>
>