473,770 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2121
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.Messagin g 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.Messagin g 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
4491
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 computations, the only data transfered is user mouse/kbd input. It works synchronously, but somehow, when I play in client window, both client and server have 17 fps, while when playing in server window, server has 44 fps while client ...
8
3226
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 temperature, a stock quote, a message , ... ). How to write the server that keep hot connections with clients and update them when events are trigerred. I don't know how to begin this , i look at the python doc but the doc is more related to client...
2
6967
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 attending interviews. If you own a company best way to judge if the candidate is worth of it. http://www.questpond.com/InterviewRatingSheet.zip
13
1900
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 :-) In fact, at a given time based on an internal event, I would like to stop the remoting functionality within my process. Many thanks,
7
1957
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, StringBuilder etc.. }
0
1001
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 = (LISTEN_HOST, LISTEN_PORT) # (address, port) server = mess.SecureXMLRPCServer.SecureXMLRPCServer(
1
3720
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, and I can get events fired on the server to be picked up and acted on in the client app, so all is well. I can even get two client apps on different machines talking to the same server instance and the events pop up on both. This is all good...
11
12471
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 does not work at all. I wrote a simple case test: client and server. The client sends 2200 packets within 0.137447118759 secs. The tcpdump received 2189 packets, which is not bad at all. But the server only handles 700 -- 870 packets, when it is...
0
9453
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10099
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10036
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8929
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7451
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5481
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3607
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.