Groups | Blog | Home
all groups > dotnet remoting > february 2007 >

dotnet remoting : Bidirectional Remoting Chat Application


Oliver Sturm
2/14/2007 8:19:28 PM
Hello Vishal,

[quoted text, click to view]

Well... I guess it's advisable in the way that it can certainly work, but
it would seem to me that some more interoperable standard like XML
WebServices could serve you better for the purpose you describe, as it
could easily be used from arbitrary clients as opposed to only those that
you write yourself.

[quoted text, click to view]

I wouldn't necessarily think you'd need any bidirectional channel at all.
If you're going to use one, make sure it works, that's all - I've used
GenuineChannels myself in the past and I know that it's a great product.
I'm not familiar with TCPEx, but I'd use it any time as soon as the tests
I'd obviously perform first (and myself!) say it fulfils my requirements.


Oliver Sturm
--
Oliver Sturm
2/14/2007 9:05:26 PM
Hello Vishal,

[quoted text, click to view]

That's a question of the architecture, as I said. You are probably talking
about an "event-driven" type of architecture, but you could just as well
rely on polling.... or you could work in a similar way to those browser
based HTML chat systems, where one single stream (resulting from one
single client->server call) is used the whole time to receive current data
from the server, while additional requests are sent in parallel (once more
client->server). In both of the latter cases you never call server->client
and so you wouldn't need a bidirectional channel.

[quoted text, click to view]

I'm not an expert on that, but I believe that one of the WS-* extensions
does this, yes.



Oliver Sturm
--
Oliver Sturm
2/14/2007 9:24:25 PM
Hello Vishal,

[quoted text, click to view]

True enough, I wouldn't favor the polling architecture myself. But I'd
look hard at that third option I suggested... there's lots of potential
trouble with event driven systems and .NET Remoting. It can work, but it
can be hard. Ingo thinks it's a bad idea as soon as you actually cross a
network with Remoting:

http://www.thinktecture.com/resourcearchive/net-remoting-faq/remotingusecases

In any case, if I were you I'd do a number of tests tailored to my use
cases to see what's what and whether things work given my precise
requirements.


Oliver Sturm
--
Vishal
2/14/2007 9:29:26 PM
Hi All,

I am creating a remoting chat server and client application with
bidirectional message passing.

Is .NET remoting with Binary Formatting a advisable platform to create chat
server application?

If yes do i need to buy the commercial bidirection channel(Genuin Channels)
or i can use any open source available like TCPEx?

Thank You
Vishal

Spam Catcher
2/15/2007 12:00:00 AM
"Vishal" <vishal.dalsania@rigelnetworks.com> wrote in
news:#gq#JlHUHHA.1208@TK2MSFTNGP03.phx.gbl:

[quoted text, click to view]

Perhaps sockets? That would provide the best performance.

Otherwise I saw recently there are other communication/remoting frameworks
out there that maybe faster. i.e. RemObjects, SocketPro, and of course
Geniune Channels (which is .NET Remoting Compatible).


[quoted text, click to view]

Vishal
2/15/2007 2:17:01 AM
Thank you for the reply.

I would need bidirectional message passing because whenever any chat client
sends any message i have to send it to the one or many other clients.

Does web service have feature like callback to client?

Main problem arise when the client is behind some router/firewall/NAT.

Thank You
Vishal

[quoted text, click to view]

Vishal
2/15/2007 2:43:56 AM
Correct, i am talking about the event driven architecture.

Polling is a good idea as long as the clients are less in number but in a
scenario where there are more then 200-500 concurrent clients it will have
much load on server.
While in event driven system we do not need any un necessary polling of
server.

Thanks
Vishal

[quoted text, click to view]

Mr Gimper
2/18/2007 11:02:29 PM
[quoted text, click to view]

WCF ?
AddThis Social Bookmark Button