【正文】
L Server Architecture of Data Access Technologies 重新考慮軟件構(gòu)架中的因素 性能 吞吐量 容量 功能性 可用性 恢復(fù)力 失效安全 容錯能力 Have an architecture that makes sense before you write million lines of code. 技術(shù)因素 區(qū)別 沒有運動的部分 可以創(chuàng)建新材料 可以改變物理現(xiàn)象 避免失敗 將關(guān)鍵部分分散開來 語義上的一致性 職責(zé)分散 在超市里排隊 ? 在機(jī)場里排隊 ? 異步消息隊列的使用場景 股票交易系統(tǒng)中的結(jié)算活動 訂單輸入系統(tǒng)中的發(fā)貨信息 旅行預(yù)訂系統(tǒng)在客戶填寫完路線后再進(jìn)行實際的預(yù)訂 ,并在預(yù)訂完成后發(fā)達(dá)確認(rèn)電子郵件 Q2: Services Broker是什么? 為什么排隊?wèi)?yīng)用程序難以編寫? 消息的完整性 分布 事務(wù)性消息傳送 The Architecture of SQL Server 2020 SQL Server 2020 Database Engine Replication FullText Search Service Broker Analysis Services Integration Services Reporting Services Notification Services SQL Server Agent Service Broker 是什么 ? Platform for building asynchronous queued database applications Queues as first class database objects Queue manipulation built into TSQL Transactional message processing Reliable distributed queuing Use Service Broker when you need to: Scale out the system Improve reliability and availability Improve application response time Build an auditing system Maintain uptodate cached data Factors to consider Large messages Reliable messaging Heterogeneous data Security 考慮使用 Service Broker的因素 Service Broker 消息處理事務(wù)的步驟 1. 開始事務(wù)。 4. 處理消息并根據(jù)消息內(nèi)容對應(yīng)用程序數(shù)據(jù)進(jìn)行一項或多項更新。 8. 提交事務(wù) Q3: 為什么要在數(shù)據(jù)庫中處理消息 ? 為什么要在數(shù)據(jù)庫中進(jìn)行消息傳送? 消息和數(shù)據(jù)的單客戶端連接。//39。