I’m looking for some advice on how to implement a multi-threaded document handler in IS. We have an application that receives purchase order documents over the web. Often the PO documents only contain one order but sometimes we receive documents that contain 300 or 400 individual orders. Since they come in one document they are process sequentially in a single thread.
We have a service that splits each order out and then processes them one at a time. I would like to change this to have the server process chunks of the orders concurrently in say batches of 15 or 20.
Has anyone ever had this problem before? How did you handle firing of 20 threaded invokes and then waiting for all of them to finish before starting the next batch?
Any assistance would be appreciated.