473,769 Members | 2,102 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 "DoSomethin g" on
the server.
Similarly if I used an Async one way call, that would invoke a
server-side method that would also "DoSomethin g".

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 5860
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.co m

"wobbles" <no************ *************** @killspam.hotma il.com> wrote in
message news:q4******** *************** *********@4ax.c om...
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 "DoSomethin g" on
the server.
Similarly if I used an Async one way call, that would invoke a
server-side method that would also "DoSomethin g".

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.c om> 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
278
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 will request queue up due to too many requests from users, and that requests will trigger remoting server. At the very beginning, the client still can handle the requests as the queue will goes down, and the remoting response will return from the...
1
1561
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 posts ), say I want to execute a method, then wait for a flag file. Ok, someone suggested using FileSystemWatcher. So then, say I do that, how do I make an internal event halt execution on the main method, wait for the event
15
5753
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 remote publisher, so I used delegate that the user will be able to set on it his own function for that purpuse. The trouble is that this delegate must not be static because there may be many subscribers, and each subscriber may have different...
9
8675
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 trying to decide if I should use remoting vs. writing a server that uses networkstreams. I have read that networkstreams\tcp programming should be faster than remoting and is a better choice for what I am doing but that it is difficult to code.
5
2135
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 use remoting to talk to the UI components but I need an example of how to create an event when something happens on the UI (e.g. text box receives focus) and fire that via my object model back to any remote client. I also need the ability to...
0
973
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 that exists while IsClientConnected == true, inside this loop we have a try/catch block, that catches exceptions of type ThreadInterruptedException and inside the Try block we have only a Thread.Sleep(SOME_INTERVAL). When the page events.aspx is...
15
2609
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, the main thread waits. At the completion of each subthread, the mainthread checks all 12 thread objects to see if they are done. If they are, raise an event that says we're done. So, it's kinda like this: ProcessThread - Creates a ProcessObject
2
3058
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 / Server activated mode on startup. The Remoting Client accesses the Remoting Class through the interface of the Class and subscribes to an event of the Remoting Class that will be fired upon the private member value change.
2
3513
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 that these was an exception on the invoked object. can anyone tell my why? It is a very simple application just to test, and here is the code, i am using vs2008, thanx in advaned. ----------server side---------------------- using...
0
9579
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9422
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,...
1
9987
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
9857
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7404
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
6662
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
5294
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3558
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.