I am building an application in C# that will manage many thousands of incomming messages. This will be managed with MSMQ - message queues.
I would like to know whether its better to create a new instance of the main process (component) for every message received or whether to have just one instance that will spawn new threads as soon as messages are recieved to process a particular message.
Assuming that hundreds of thousands of messages could ce received and processed, just trying to understand whether single instance, multiple threads is a better route than multiple instances.
Thoughts?
I would like to know whether its better to create a new instance of the main process (component) for every message received or whether to have just one instance that will spawn new threads as soon as messages are recieved to process a particular message.
Assuming that hundreds of thousands of messages could ce received and processed, just trying to understand whether single instance, multiple threads is a better route than multiple instances.
Thoughts?