MSMQ v Database Table

后端 未结 11 845
难免孤独
难免孤独 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

    If the rate at which booking records is created is low I would have the second process periodically check the table for new bookings.

    Unless you are already using MSMQ, introducing it just gives you an extra platform component to support.

    If the database is heavily loaded, or you get a lot of lock contention with two process reading and writing to the same region of the bookings table, then consider introducing MSMQ.

提交回复
热议问题