I need WCF service with 3 endpoints
- High
- Normal
- Low
Most of messages will come through Normal and Low Endpoints. If Message on High will appear it have to be processed asap.
Does anyone knows how to do it ???
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The easiest way I can think of would be to deploy your service twice: one with the low/medium endpoints and then a completely different instance with the high endpoint. As Endian said in his answer (which I voted for BTW), you could physically seperate them, but you could also have them running on the same box is you who two instances using different ports. This is the way I would do it (or REALLY push for) if I had to do it.
You’re other (unappealing) option is to create a custom channel that is capable of manipluating the messages and putting them in a seperate ‘VIP’ line, and a corresponding operation behavior that can pull from the ‘VIP’ line when the service operation is ready to recieve a message. This doesn’t really buy you anything over the first option because all you’re doing is making sure your service runs in one ‘set’ of service instances. I’m guessing that in your situation this doesn’t buy you much.
As far as stopping and re-starting the service is a higher priority request comes in, there be dragons. I would avoid it if at all possible. If not, you might want to consider creating your service as a WF workflow and using some of it’s process start/stop functionality, but you’ll still need some a custom channel and some custom behavior to make that work. At this point, you might want to think about BizTalk.