Queuing in OneWay WCF Messages using Windows Service and SQL Server

后端 未结 4 852
面向向阳花
面向向阳花 2020-11-27 23:17

I need to implement a queuing mechanism for WCF service requests. The service will be called by clients in a one-way manner. These request messages should be stored in a SQL

4条回答
  •  半阙折子戏
    2020-11-27 23:57

    It sounds like what you want to do is similar to this:

    enter image description here

    In this case you can use netMsmqBinding between your service and your service consumers.

    The only thing you won't get out of the box is the retrying. However if you make the queue transactional then this functionality can be implemented in your service code.

    If there is a failure in your dequeue operation the message will not be removed from the queue. It will therefore be available for further dequeue attempts.

    However, you would need to implement retry attempt threshold code which fails a message after a certain number of attempts.

提交回复
热议问题