Re: remote events
From: Allen Anderson (allen_at_sparkysystems.com)
Date: 05/24/04
- Next message: Allen Anderson: "Re: Remoting Object Instance Variable overwritten"
- Previous message: Allen Anderson: "Re: MBR on Server is not garbage collected"
- In reply to: jm: "remote events"
- Next in thread: jm: "Re: remote events"
- Reply: jm: "Re: remote events"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 24 May 2004 09:21:41 -0600
I usually don't like to recommend third party solutions but in this
case I think your best bet is probably to go with genuine channels and
use their bi-directional remoting channel. I personally believe
microsoft made a huge mistake not making the built in channels go
bi-directional (but thats just my opinion).
Polling is not a good way to go as you start putting more and more
load on the server as things scale up. And as you said, configuring
the firewall is yet another hassle.
Allen Anderson
http://www.glacialcomponents.com
mailto: allen@put my website url here.com
On Sun, 23 May 2004 14:47:50 +0200, jm <news@pro-martens.de> wrote:
>Hi,
>
>my question is more theoretical.
>If I like to develop let's say a chat server with sockets, all my
>clients can stay connected with the server as long the client runs. If
>there's a new text message for all clients, the server can send this
>message to all the clients over the established tcp/ip connection. In
>this scenario I have only minor problems cofiguring firewalls or routers.
>
>If I develop a remote server, how can I inform my clients that there is
>a new message for them. If the server sends a message from the WAN I
>need to configure the firewalls and routers. Due to the resulting
>security risk I dont like to go this way.
>I can imagine a client that polls every 10 sec. for new messages. But
>this is not the best way.
>Another way could be to invoke a CheckForNewMessage method on the server
>which will be answered by a thread that sleeps until there is realy a
>new message available. But with tis method I get (too) many threads on
>my server.
>
>Now there is my question: Is there a good way to implement this kind of
>application with remoting or should I rather write my application with
>good old sockets.
>
>Thanks a lot
>jmrtns
- Next message: Allen Anderson: "Re: Remoting Object Instance Variable overwritten"
- Previous message: Allen Anderson: "Re: MBR on Server is not garbage collected"
- In reply to: jm: "remote events"
- Next in thread: jm: "Re: remote events"
- Reply: jm: "Re: remote events"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|