MSMQ v Database Table

后端 未结 11 778
难免孤独
难免孤独 2020-12-24 07:24

An existing process changes the status field of a booking record in a table, in response to user input.

I have another process to write, that will run asynchronously

11条回答
  •  轮回少年
    2020-12-24 07:57

    There are several reasons, which were discussed on the Fog Creek forum here: http://discuss.fogcreek.com/joelonsoftware5/default.asp?cmd=show&ixPost=173704&ixReplies=5

    The main benefit is that MSMQ can still be used when there is intermittant connectivity between computers (using a store and forward mechanism on the local machine). As far as the application is concerned it delivered the message to MSMQ, even though MSMQ will possibly deliver the message later.

    You can only insert a record to a table when you can connect to the database.

    A table approach is better when a workflow approach is required, and the process will move through various stages, and these stages need persisting in the DB.

提交回复
热议问题