Is it better to use an MSMQ or a webservice for logging alerts messages to database?
Instead of direct DB access, MSMQ or a webservice is much efficient so which one would be most useful in this case?
Is it better to use an MSMQ or a webservice for logging alerts messages
Share
I would argue that logging should be local to the component in a distributed system. Then there is no dependency on a centralised resource being available.
However, assuming you want a centralised database log, I would suggest sending a message to a MSMQ queue local to the database server.
This way the database service does not even need to be available and you can still queue log entries which will be delivered and processed offline when the database server becomes available.