I know this question has been asked a bit before. But looking around I still cant make my mind up which route I should go down. Here's my scenario, hopefully you can help out:
We will have a series of web services that will be hit on a scheduled basis by hundreds of mobile applications. These services will data on the device with new information both going to the devices and coming back from them. The data returned from the devices will need to update a single central SQL server database that also feeds several desktop applications and a website.
In order to reduce the amount of time for the request/response of these services we have decided to process data coming in from the devices after the fact by either sticking them in an MSMQ instance or storing the serialized objects in a temporary data store and having a windows service process them later.
So there's my choices, but aside from this here's a few more things that might help you guys advise me:
With this information, do you think it is worth me looking into learning MSMQ or should I stick with the simpler solution?
Chris.
MSMQ isn't a bad choice and is definitely not difficult to learn, but keep in mind that there are some constraints that you should be aware of.
Cons:
Pros:
Another approach you might want to consider is writing your data to a staging table. This might be a good idea since you want to have a message back log.
It's difficult giving advice when I don't know the rest of the system's architecture, but I hope this answer will help a little.
Useful links
Programming MSMQ in .NET - Part 1
Using MSMQ with WCF
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With