Hi,
My RemoteServer is a singleton remote object hosted by windows service and
accessed by ASP.NET application
using remoting,server activated
Basically my RemoteServer need to send several email message types,and it
have a single method
Send(string To,string Body,int type)
the implementation is as follows
RemoteServer:
void Send(string To,string Body,int type)
{
IMessageProcessor processor=CreareMessageProcessor(this,to,body,type )
processor.Execute();
}
all messages placed in a shared Queue and a thread is than popping the
messages and send them.
I wonder what should I do in order to adjust the server to be used by a web
site with 2-3 thousand users per day
as I understand the Send method will be run in a different thread for each
remote invocation.
How many threads available for remoting?
should I register the processor as a polled COM+ remote object so a request
will not be streamed throw the singleton
rather it will directly create the processor?
from ASP.NET instead of
SrvActObj = (RemoteServer)Activator.GetObject(.....
SrvActObj.Send(...
i will do
processorObject=new MessageProcessor(...)
processorObject.Execute(...) 2 1637
Hi Julia,
I'd rather have the Send method put the notifications to be sent to a MSMQ
queue (or any other kind of queue with sufficient reliability), and then I'd
have a ThreadPool-based message processor picking notification requests from
the queue and sending them out.
--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today! http://www.x-unity.net/teststudio.aspx
"Julia" <co********@012.net.il> wrote in message
news:OC**************@TK2MSFTNGP12.phx.gbl...
Hi,
My RemoteServer is a singleton remote object hosted by windows service and accessed by ASP.NET application using remoting,server activated
Basically my RemoteServer need to send several email message types,and it have a single method
Send(string To,string Body,int type)
the implementation is as follows
RemoteServer: void Send(string To,string Body,int type) { IMessageProcessor processor=CreareMessageProcessor(this,to,body,type ) processor.Execute(); }
all messages placed in a shared Queue and a thread is than popping the messages and send them.
I wonder what should I do in order to adjust the server to be used by a web site with 2-3 thousand users per day
as I understand the Send method will be run in a different thread for each remote invocation. How many threads available for remoting?
should I register the processor as a polled COM+ remote object so a request will not be streamed throw the singleton rather it will directly create the processor?
from ASP.NET instead of
SrvActObj = (RemoteServer)Activator.GetObject(..... SrvActObj.Send(...
i will do
processorObject=new MessageProcessor(...) processorObject.Execute(...)
Haaaaa.....i didn't think about it,good idea.
"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote
in message news:uy**************@tk2msftngp13.phx.gbl... Hi Julia,
I'd rather have the Send method put the notifications to be sent to a MSMQ queue (or any other kind of queue with sufficient reliability), and then
I'd have a ThreadPool-based message processor picking notification requests
from the queue and sending them out.
-- Sincerely, Dmitriy Lapshin [C# / .NET MVP] Bring the power of unit testing to the VS .NET IDE today! http://www.x-unity.net/teststudio.aspx
"Julia" <co********@012.net.il> wrote in message news:OC**************@TK2MSFTNGP12.phx.gbl...
Hi,
My RemoteServer is a singleton remote object hosted by windows service
and accessed by ASP.NET application using remoting,server activated
Basically my RemoteServer need to send several email message types,and
it have a single method
Send(string To,string Body,int type)
the implementation is as follows
RemoteServer: void Send(string To,string Body,int type) { IMessageProcessor processor=CreareMessageProcessor(this,to,body,type ) processor.Execute(); }
all messages placed in a shared Queue and a thread is than popping the messages and send them.
I wonder what should I do in order to adjust the server to be used by a web site with 2-3 thousand users per day
as I understand the Send method will be run in a different thread for
each remote invocation. How many threads available for remoting?
should I register the processor as a polled COM+ remote object so a request will not be streamed throw the singleton rather it will directly create the processor?
from ASP.NET instead of
SrvActObj = (RemoteServer)Activator.GetObject(..... SrvActObj.Send(...
i will do
processorObject=new MessageProcessor(...) processorObject.Execute(...)
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: lawrence |
last post by:
To call I would do something like:
$headline = McSelectJustOneField::callDatastore("cbHeadline");
Is this the correct use of the static keyword, to implement a
Singleton design?
|
by: Sudesh Sawant |
last post by:
Hello,
We have an application which communicates using remoting. There is a server
which is a Windows Service. The server exposes an object which is a
singleton. The client is a Web Application...
|
by: Robert Zurer |
last post by:
I have a server application that makes a MarshalByReferenceObject available
via remoting. It's lifetime is set to never expire and it is implemented as
a Singleton.
Are calls to this object...
|
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...
|
by: Steve K. |
last post by:
I'm working on my first remoting project. It's going well and I have one
(that I know of!) bug left to work out.
I understand how remote objects have leases and those leases expire. I
fixed a...
|
by: =?Utf-8?B?QU1lcmNlcg==?= |
last post by:
Sorry this is so long winded, but here goes. Following the model of
http://msdn2.microsoft.com/en-us/library/system.runtime.remoting.channels.ipc.ipcchannel.aspx
I made a remote object using the...
|
by: stevewilliams2004 |
last post by:
I am attempting to create a singleton, and was wondering if someone
could give me a sanity check on the design - does it accomplish my
constraints, and/or am I over complicating things. My design...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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...
|
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,...
|
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...
|
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...
|
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,...
| |