Two-way MSMQ for WCF

We are creating a common WCF service that is used by two different types of clients that will use the normal two-way http binding, while the others will use the MSMQ binding, since the MSMQ binding means that we can only make One Way messages according to this scenario my questions:

  • What is the likelihood of using the same contract for both clients, while the contract will have messages with two-way communication.

  • Is there a way we can achieve two-way communication on MSMQ.

  • What to do if MSMQ is used only for guaranteed delivery, which can be an alternative for guaranteed delivery, where the Server and clients can have a branched connection between them.

+4
source share
1 answer
  • There is no way. You need two service contracts: one for MSMQ and one for HTTP.
  • No. Two MSMQ paths = one queue for service and one queue for each client, where the client provides its own MSMQ service to read messages from its queue.
  • Guaranteed delivery is available only for MSMQ, because this guarantee applies not only to a weak connection, but also to a non-starting service (messages are kept in a queue until the service is started and started). If you need to deal with a hinged connection over HTTP, you need WS-Reliable messaging (available for user bindings or wsHttpBinding ), but this is not the same as guaranteed delivery, since it only works if it works as a server, so is the client.
+3
source

All Articles