G
Guest
Hi all,
I'm having a slight issue with the speed of my inter-process communication
at the moment, and was wondering if anyone could either tell me either that I
won't get any more speed out of my current approach or how I can improve the
performance.
At it's simplest, the architecture of the application I'm writing will have
one "Message Handler" component and multiple other processes that will send
messages to it - it's important to note that all the other processes are
required to talk to the same message handler.
In its current incarnation the message handler is a remotable object
configured as a singleton, hosted in a windows service. When a client starts
up, it creates the message handler using Activator.GetObject across a TCP
channel to the local machine. (Is this required? Is there a better
"channel" type to use? It really seems overkill for what I need...)
The client then simply calls a method on the message handler, for arguments
sake SendMessage(int, int, string) - n.b. no complex arguments.
I'm seeing a latency of about 0.0008 seconds between message calls, which
seems like an awfully long time to effectively just call a method.
Any pointers/suggestions will be gratefully received!
Many thanks,
Mike
I'm having a slight issue with the speed of my inter-process communication
at the moment, and was wondering if anyone could either tell me either that I
won't get any more speed out of my current approach or how I can improve the
performance.
At it's simplest, the architecture of the application I'm writing will have
one "Message Handler" component and multiple other processes that will send
messages to it - it's important to note that all the other processes are
required to talk to the same message handler.
In its current incarnation the message handler is a remotable object
configured as a singleton, hosted in a windows service. When a client starts
up, it creates the message handler using Activator.GetObject across a TCP
channel to the local machine. (Is this required? Is there a better
"channel" type to use? It really seems overkill for what I need...)
The client then simply calls a method on the message handler, for arguments
sake SendMessage(int, int, string) - n.b. no complex arguments.
I'm seeing a latency of about 0.0008 seconds between message calls, which
seems like an awfully long time to effectively just call a method.
Any pointers/suggestions will be gratefully received!
Many thanks,
Mike