What is Microsoft Message Queuing (MSMQ)? How does it work?

前端 未结 9 946
悲哀的现实
悲哀的现实 2021-01-30 04:05

I need to work with MSMQ (Microsoft Message Queuing). What is it, what is it for, how does it work? How is it different from web services?

9条回答
  •  北海茫月
    2021-01-30 04:33

    Actually there is no relation between MSMQ and WebService. Using MSMQ for interprocess communication (you can use also sockets, windows messaging, mapped memory). it is a windows service that responsible for keeping messages till someone dequeue them. you can say it is more reliable than sockets as messages are stored on a harddisk but it is slower than other IPC techniques.

    You can use MSMQ in dotnet with small lines of code, Just Declare your MessageQueue object and call Receive and Send methods. The Message itself can be normal string or binary data.

提交回复
热议问题