Search code examples
c#wcfqueuemsmq

Using MSMQ without installing MSMQ on client machines


I use WCF to execute some code on a server (takes a long time). The request to execute that code is send from several client machines within the local network (TCP).

Since the code takes a while to execute and there are a bunch of clients, I need to somehow queue the requests.

I thought about using MSMQ as queueing mechanism. As far as I understood, MSMQ has to be installed on the client machines as well, not just the server.

Is it possible to not have to install MSMQ on all clients? Are there any alternatives to MSMQ, or simpler ways to have a queue in between the clients and the WCF-service?


Solution

  • Is it possible to not have to install MSMQ on all clients?

    No. You must have msmq installed on all machines which want to participate in the sending and receiving of messages.

    Are there any alternatives to MSMQ

    Yes, many.

    or simpler ways to have a queue in between the clients and the WCF-service?

    WCF uses msmq for queued transport on-premise. However, it is possible to use WCF with Azure Service Bus if you want to run in Azure. Link