2
Answers

Asynchronous Methord call is better?

Praveen K

Praveen K

16y
6.1k
1

Hi Everyone,

I have a requirement to process a huge number of data from a database.  Currently we designed a multi-threaded architecture which will make use of the ThreadPool class and we are using ThreadPool.QueueUserWorkItem method to add the processing request to the queue so that the free thread from the ThreadPool will pick the same for processing.

I am thinking of another way to implement the same.  I am planning to use Asynchronous Method calls.  I’m planning to call the method which will do the processing asynchronously using BeginInvoke and EndInvoke methrods.  I’m planning to call EndInvoke method using a delegate.

Please advise me with the best approach.

Thanks,

Answers (2)