472,951 Members | 2,025 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,951 software developers and data experts.

Server sending events to multiple clients

Hello.

In the early stages of developing a server application that will be required to send events to multiple client applications that will be running on different PC's.

I'm wondering what the best technology for doing this is. At the moment, I'm looking at MSMQ.

The server PC and client PC's will be running Windows 2000 (most likely in a Workgroup configuration). No, I can't upgrade the PC's to WinXP.

I was thinking of writing the events to a single MSMQ Queue on the server PC, and having the clients monitor this queue, but can see problems with this. Mainly, how to manage multiple clients peeking at the same queue, and when to remove the message.

Would .NET Remoting be a better alternative?

Any thoughts?

Thanks in advance.

Regards,
Frank

Nov 20 '05 #1
4 2087
On 2004-04-19, Frank <> wrote:
Hello.

In the early stages of developing a server application that will be required to send events to multiple client applications that will be running on different PC's.

I'm wondering what the best technology for doing this is. At the moment, I'm looking at MSMQ.

The server PC and client PC's will be running Windows 2000 (most likely in a Workgroup configuration). No, I can't upgrade the PC's to WinXP.

I was thinking of writing the events to a single MSMQ Queue on the server PC, and having the clients monitor this queue, but can see problems with this. Mainly, how to manage multiple clients peeking at the same queue, and when to remove the message.

Would .NET Remoting be a better alternative?

Any thoughts?

Thanks in advance.

Regards,
Frank


I would suggest remoting. If you need more information on the subject,
I would suggest Ingo Rammer's book - "Advanced .NET Remoting". It is
well written, and covers most of the in's and out's you need to know to
get your distributed app working - including event handling with
multiple clients :) There are two versions of the book - one for C# and
one for VB.NET, so make sure you get the one that fits your needs the
best.

--
Tom Shelton [MVP]
Powered By Gentoo Linux 1.4
Ah, but a man's grasp should exceed his reach,
Or what's a heaven for ?
-- Robert Browning, "Andrea del Sarto"
Nov 20 '05 #2
I would suggest remoting. If you need more information on the subject,
I would suggest Ingo Rammer's book - "Advanced .NET Remoting". It is
well written, and covers most of the in's and out's you need to know to
get your distributed app working - including event handling with
multiple clients :) There are two versions of the book - one for C# and
one for VB.NET, so make sure you get the one that fits your needs the
best.


I found his website, but in his article ".NET Remoting Use Cases and Best Practices" he states that you should NOT use Remoting for events over a LAN. Am I reading this completely wrong???

Regards,
Frank

Nov 20 '05 #3
In article <ua**************@TK2MSFTNGP09.phx.gbl>, Frank wrote:
I would suggest remoting. If you need more information on the subject,
I would suggest Ingo Rammer's book - "Advanced .NET Remoting". It is
well written, and covers most of the in's and out's you need to know to
get your distributed app working - including event handling with
multiple clients :) There are two versions of the book - one for C# and
one for VB.NET, so make sure you get the one that fits your needs the
best.


I found his website, but in his article ".NET Remoting Use Cases and Best Practices" he states that you should NOT use Remoting for events over a LAN. Am I reading this completely wrong???

Regards,
Frank


Good article... And you are correct. He does seem to suggest that
events over a lan can be bad for scalabilty - and it does make sense
.... In light of that, I'll have to reverse my previous opinion and
suggest that you got the MSMQ route. But, that only works in an NT
based environment - but didn't you say that all your clients were going
to be W2k? If that's the case - MSMQ is not all that difficult. You'll
want to look in the System.Messaging namespace for information...

I still recommend the book. It's been a while ago that I read it - but
I did find it useful at the time ;)

Sorry that I almost steard you wrong...

--
Tom Shelton [MVP]
Nov 20 '05 #4

I found his website, but in his article ".NET Remoting Use Cases and Best Practices" he states that you should NOT use Remoting for events over a LAN. Am I reading this completely wrong???
Good article... And you are correct. He does seem to suggest that
events over a lan can be bad for scalabilty - and it does make sense
... In light of that, I'll have to reverse my previous opinion and
suggest that you got the MSMQ route.


After some more hunting aournd the web, I've decided to go down the MSMQ path.
But, that only works in an NT
based environment - but didn't you say that all your clients were going
to be W2k? If that's the case - MSMQ is not all that difficult. You'll
want to look in the System.Messaging namespace for information...
Yep, all running W2K.
I still recommend the book. It's been a while ago that I read it - but
I did find it useful at the time ;)
I might keep a look out for it anyway.
Sorry that I almost steard you wrong...


I think I can forgive you for that <grin>

Regards,
Frank

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Michael Rybak | last post by:
hi, everyone. I'm writing a 2-players game that should support network mode. I'm now testing it on 1 PC since I don't have 2. I directly use sockets, and both client and server do...
8
by: swell | last post by:
I would like to write a server with the low level API of python ( socket+select and/or socket+thread ) that allow me to register client and update them every X seconds ( could be the time, the...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
13
by: Josť Joye | last post by:
Hello, What is the best way to stop a remoting server (Singleton SAO) that has been started with RemotingConfiguration.Configure(). For sure, I want to do this without quitting the application...
7
by: David | last post by:
i think i just realized i'm an idiot. again. (not syntactically correct code... just pieces to illustrate) class StateObject { members like socket, receiveBuffer, receiveBufferSize,...
0
by: Laszlo Nagy | last post by:
Hi, I would like to have a strage XML RPC server. It should use one main thread for all connections. I have some code like this (using a custom RPC server class): server_address =...
1
by: JamesB | last post by:
OK, after lots of faffing I have finally gotten remoting working - basically I have a windows service (the "server") and a forms app (the "client"). The forms app can call methods in the server,...
11
by: Krzysztof Retel | last post by:
Hi guys, I am struggling writing fast UDP server. It has to handle around 10000 UDP packets per second. I started building that with non blocking socket and threads. Unfortunately my approach...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.