locked
Is MSMQ the best design to off load data that needs to be logged to a web service? RRS feed

  • Question

  • I have got a .NET 4.5 WCF web service that needs to log a bunch of data to another web service. The data it is logging is informational and used later on for diagnostics/reporting and is not critical to the response being sent back from the web service. The goal is to find the fastest way to off load the logging and return the response back from the web service to the partner.  My thoughts are to have the WCF web service drop any data it wants to log on a remote msmq and have another service pick up those messages and call the logging web service to log the data.  Is this the fastest solution or should I be looking at off loading the logging to another thread?  I don't want the speed of the logging web service to slow down the customer facing WCF service.

    Wednesday, January 13, 2016 7:24 PM

All replies

  • A messaging pattern sounds like a good idea, MSMQ is one implementation.  

    http://pauliom.wordpress.com

    Thursday, January 14, 2016 7:57 PM
  • Also might want to consider; https://azure.microsoft.com/en-gb/services/application-insights/

    Not used it from a server but might work and you might get some insights (pardon the pun) about how to implement logging yourself if you don't want to use it


    http://pauliom.wordpress.com

    Thursday, January 14, 2016 8:01 PM