473,401 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

remoting events vs asynchronous (one way) calls

Hi Everyone (Happy New Year!),

If I have clients that want to tell the server that something has
happened, what would be the difference between "remoting events" and
using an asynchronous (one way) call?

If I use an event, my server would use that event to "DoSomething" on
the server.
Similarly if I used an Async one way call, that would invoke a
server-side method that would also "DoSomething".

I've just been reading up on remoting events (Advanced .Net Remoting -
Ingo Rammer) and not only does it seem more complicated, but I don't
really see the difference between these two.
What am I missing?

If someone could tell me the differences (or pros and cons) of each
method that would be really useful.
I'm finding remoting to be a bit of a struggle at the moment.
Nov 15 '05 #1
2 5843
wobbles,

If you want to tell the server something has happened, then using a
method call (optionally one-way or not), would be the best idea. The reason
for this is that if you want to have a server connected to a client through
an event, then the client has to open another channel for the server to
connect to it (the client is basically remoting itself to the server), and
that is just more overhead all around.

If anything, your method calls are events that you are firing to the
server (more or less). I think that remoting events should occur when the
server needs to tell the client something when the client does not ask. For
all other cases, the server listens and responds when the client talks
(through method calls, setting properties, etc, etc).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"wobbles" <no***************************@killspam.hotmail.co m> wrote in
message news:q4********************************@4ax.com...
Hi Everyone (Happy New Year!),

If I have clients that want to tell the server that something has
happened, what would be the difference between "remoting events" and
using an asynchronous (one way) call?

If I use an event, my server would use that event to "DoSomething" on
the server.
Similarly if I used an Async one way call, that would invoke a
server-side method that would also "DoSomething".

I've just been reading up on remoting events (Advanced .Net Remoting -
Ingo Rammer) and not only does it seem more complicated, but I don't
really see the difference between these two.
What am I missing?

If someone could tell me the differences (or pros and cons) of each
method that would be really useful.
I'm finding remoting to be a bit of a struggle at the moment.

Nov 15 '05 #2
On Mon, 5 Jan 2004 09:13:26 -0500, "Nicholas Paldino [.NET/C# MVP]"
<mv*@spam.guard.caspershouse.com> wrote:
wobbles,

If you want to tell the server something has happened, then using a
method call (optionally one-way or not), would be the best idea. The reason
for this is that if you want to have a server connected to a client through
an event, then the client has to open another channel for the server to
connect to it (the client is basically remoting itself to the server), and
that is just more overhead all around.

If anything, your method calls are events that you are firing to the
server (more or less). I think that remoting events should occur when the
server needs to tell the client something when the client does not ask. For
all other cases, the server listens and responds when the client talks
(through method calls, setting properties, etc, etc).

Hope this helps.


Hi Nicholas,

That makes a lot of sense + I hadn't thought of it that way before.
That helps a lot and was exactly the sort of answer I was looking for.

Brilliant!

Thanks,
wobbles
Nov 15 '05 #3

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

Similar topics

3
by: Dicky Cheng | last post by:
Hi, I have web client application and web server application. The client will send remoting request to the server. In a normal condition, the client app runs smoothly. But sometimes, the client...
1
by: john bailo | last post by:
Suppose I am writing a program that has to execute as series of steps, but at several of the steps, I want to wait for external events to occur. For example ( and this relates to another of my...
15
by: Sharon | last post by:
I’m trying to build a generic Publisher-Subscriber that will work over the net, so I’m using the Remoting. I wish that the subscriber user will be notify about the messages sent by the...
9
by: Michael Lindsey | last post by:
I need to write a server app to send images to client GUIs that are outside of the server's domain. The client will have the file system path to the image but can not access the file system. I am...
5
by: Mark Overstreet | last post by:
I am writing an app that needs to contain an object model that allows it to be controlled similiar to something like Word. However, I am writing this in C# and all managed code. I know that I can...
0
by: Felipe Garcia | last post by:
I've built a system in myjob that does the following: We have a page with frames one frame loads the default.aspx and the other frame loads the events.aspx. Inside events.aspx we have a loop...
15
by: Bryce K. Nielsen | last post by:
I have an object that starts a thread to do a "process". One of the steps inside this thread launches 12 other threads via a Delegate.BeginInvoke to process. After these 12 threads are launched,...
2
by: erbilkonuk | last post by:
Hi, I am very new to .NET Remoting and I try to run a simple program to subscribe to an event raised by Remoting Class. The Remoting Server initiates an instance of Remoting Class as Singleton /...
2
by: =?Utf-8?B?ZmFpcnl2b2ljZQ==?= | last post by:
in a remoting application, i set a event in the host, and let the client to book it, and in the host side i set the TypeFilterLevel to Full and open the callback port in the client side, but told...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.