5 years ago, I developed a program that used MSMQ.
At that time, I used System.Messaging.MessageQueue and System.Messaging.MessageQueueTransaction to place items on msmq.
Currently, I see people using WCF, and I'm confused to use WCF.
First of all, most code examples show how to queue items using WCF rather than getting OFF, but more importantly: when I use the WCF / MSMQ solution, I need to create an additional project, namely the wcf service.
Creating a wcf service, of course, is not a problem, but I also need to install it when I create it.
So I'm wondering: why should I use wcf to put items in the queue, and not to solve with .Net objects?
Or am I mistaken that I assume that when I use scf I need an EXTRA application for delivery, namely a wcf application?
EDIT: Scneario is: we have a site where people can unsubscribe. Instead of directly hitting the database (to unsubscribe), we put the request to unsubscribe in the queue, and another service (Windows service or console application) will receive items from the queue and perform actions with the database.
source share