最近在看MOM的資料
http://en.wikipedia.org/wiki/Message_Oriented_Middleware在一個架構環境中,MOM通常會用在哪裡呢?我想應該是用在不需要即時response的系統上,但是又要確實的往後端傳遞的資訊吧。
電子商務中,會用在訂單資料上嗎?
我想應該不會,除非是用在沒有庫存限制的地方。
要不然message經過遞送萬一在過程中發生庫存數不足的情況就糟了。
有庫存的行為應該是在同步的狀態下進行。
正如同wiki頁面說的
參照:
In addition, many inter-application communications have an intrinsically synchronous aspect, with the sender specifically wanting to wait for a reply before continuing (see real-time computing and near-real-time for extreme cases). Because message-based communication inherently functions asynchronously, it may not fit well in such situations. That said, most MOM systems have facilities to group a request and a response as a single pseudo-synchronous transaction
雖然可以搞很多MOM system來讓系統接近同步,但畢竟是假的XD
所以這種非同步的東西也許用在log或是mining data collection應該是不錯的選擇,嗯嗯。