Click here to Skip to main content
15,881,455 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I work on a real WCF/MSMQ project to handle concurrency/queued!! calls from different clients, and I choose InstanceContextMode.PerSession and ConcurrencyMode.Multiple for WCF Intancing and Concurrency modes, and MessageQueueTransaction.

This the requirement of the project:
- Clients send XMLRequest and expecting an XMLRequest from WCF server.
- The WCF server receive a request and insert it on the DB and generate a requestId.
- The requestID must be queued in MSMQ before handling it, because the next step can take about 5s to process.
- If things goes bad the client receive an exception message in XMLResponse.

The current version of the project has tree principal methods:
FirstOne() : Insert the request on DB, generate requestID and queued it in MSMQ.
SecndOne() : Reads from MSMQ, handle exceptions and return an object could take about 5s to proccess(because of external WebServices).
ThirdOne() : Take the object and generate an XMLResponse.

I want to know :
What is best messaging pattern/process that fits this project?
What is the best choose for concurrency and instancing modes for this type of project?
What is the things that i must be aware of it when working with this Technologies/Patterns/Modes?

Merci beaucoup pour l'aide :).
Posted
Updated 26-Feb-15 2:55am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900