Click here to Skip to main content
13,141,838 members (65,018 online)
Rate this:
 
Please Sign up or sign in to vote.
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 26-Feb-15 0:16am
aayzz213
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web03 | 2.8.170915.1 | Last Updated 26 Feb 2015
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100