Reputation: 174
I am developing a system under WCF services which contain two modules and this service is self hosted. One of the module has to handle multiple clients whereas another module has to handle one request at a time for direct file download. Other request on this module is set on a queue.
System should hold other request if it for module two but it should handle requests for module
I am trying to get this done by using MySQL to hold up the queue but I am not able to hold current request that is for module 2. Is it possible to hold user request and process it after current process is completed?
Upvotes: 2
Views: 130
Reputation: 174
The best possible way to obtain the two throttling under one host is to separate the interface service and define individual endpoints. This allowed me to use two throttling under one host but under two different ports (which is no problem ;)).
About counting the number of pending request, I think I need to implement the performance counter by taking some support from these links:
I will update if I am able to implement pending request count in WCF service.
Upvotes: 1