Search code examples
wcfqueuemsmq

Queue implementation for WCF Service


I need a suggestion on queue design for my WCF service. So, i have a wcf service and a lot of clients. Clients generate messages and puts them into queue for my service to process. Service process them async and clients do not need callback or response on putting message to queue.

My service needs to dequeue message from queue for processing with multi threads. But if my service will stop or failed, or server shutdown immediate - this service has to reprocess message, that did not conitues processing.

So, i consider msmq queue implementation. Msmq lets me make good queue, but how to implement this requirement: reprocess message, that was not processed to the end?

May be somebody wiil give me another betted suggestion. Thanks for any help.


Solution

  • So, finally I choose transactions in MSMQ and pass transaction object to thread for thread safe working with MSMQ. It is quite fast.