Home > DeveloperSection > Interviews > How can we use MSMQ bindings in WCF?

Posted on    March-17-2011 12:00 AM

 WCF WCF 
Ratings:
 1 Answer(s)
  1788  View(s)
Rate this:

Amit Singh

Total Post:565

Points:2825
Posted on    March-17-2011 12:00 AM

First let us understand why MSMQ came in to picture and then rest will follow. Let us take a scenario where your client needs to upload data to a central server. If everything will works fine and the server is available 24 hours to client then there are no issues. In case the server is not available, the clients will fail and the data will not be delivered. There is where MSMQ comes in to picture. It eliminates the need of persistent connection to a server. Therefore, what you do is deploy a MSMQ server and let the clients post message to this MSMQ server. When your actual server runs, it just picks up the message from the queue. In short, neither the client nor the server needs to be up and running on the same time. In WCF we have a client and service model and in real world it is very much practical possible that both the entities will not be available at one time.

Don't want to miss updates? Please click the below button!

Follow MindStick