I have seen many socket application in which there is use of MSMQ. But when I go in details I think that we can do it without MSMQ also, so I want to know what is key benefit of MSMQ. Why should someone use MSMQ in his own application.
Share
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.
MSMQ is a great piece of Windows. It is basically a message-oriented middleware that helps a lot in some software architectures.
This mainly addresses the common use case of asynchronous message processing: you have a service
Service1that communicates (send messages) with another part of your software architecture, sayService2.Main problem: what if
Service2becomes suddenly unavailable? Will messages be lost?If you use MSMQ it won’t:
Service1will send messages into a queue, andService2will dequeue when it is available.MSMQ will resolve following common issues:
Service2won’t die under the heavy load, it’ll just dequeue and process messages, one after onePros of MSMQ vs another message-oriented middleware:
System.Messagingnamespace in .Net to deal with MSMQ)