【文章內(nèi)容簡介】
程序端的格式與符合總線標(biāo)準(zhǔn)的格式之間轉(zhuǎn)換。因此,對(duì)于每一個(gè)應(yīng)用程序,都需要單獨(dú)為其開發(fā) 符合應(yīng)用程序自身要求的適配器,而由于沒有遵循統(tǒng)一的標(biāo)準(zhǔn),這些適配器是無法通用的。當(dāng)某個(gè)應(yīng)用系統(tǒng)進(jìn)行比較大的改動(dòng)時(shí),則有可能存在對(duì)適配器的改造已經(jīng) 不能滿足系統(tǒng)變更需求的情況,此時(shí)甚至有可能會(huì)牽涉到對(duì) BUS總線的修改,給企業(yè)信息架構(gòu)帶來很大的風(fēng)險(xiǎn)。 ? 從 ESB和 EAI的總線工作過程上的區(qū)別可以看出 ESB承擔(dān)了更多的責(zé)任,做了更多的事情,為集成后的系統(tǒng)提供了完善、堅(jiān)固的底層支持。而 EAI的總線,只是一個(gè)消息的分發(fā)器。功能上的差別導(dǎo)致了系統(tǒng)集成到總線上的代價(jià)的巨大差異。 20 Discovering the Value of the Advanced Enterprise Service Bus WebSphere Message Broker 169。 2023 IBM Corporation WebSphere 從項(xiàng)目開發(fā)設(shè)計(jì)的角度去看區(qū)別 ? 傳統(tǒng) EAI ?SOI ? ESB 21 Discovering the Value of the Advanced Enterprise Service Bus WebSphere Message Broker 169。 2023 IBM Corporation WebSphere 什么是 SOI ServiceOriented Integration ? 是一個(gè)具有服務(wù)提供者 ,服務(wù)請(qǐng)求者 ,服務(wù)描述的架構(gòu)樣式 ? 一系列架構(gòu)原則 ,模式 ,和標(biāo)準(zhǔn) ,模塊性 ,封裝 ,松耦合 ,關(guān)注分離 ,重用 ,組件化 ? 是一編程模式 , ? 標(biāo)準(zhǔn)的 ? 工具化的 ? 技術(shù)的 (Web Service) Application of serviceoriented architecture principles to build a serviceoriented integration layer: Implementing an SOI style integration layer provides a foundation for implementing an SOA. 22 Discovering the Value of the Advanced Enterprise Service Bus WebSphere Message Broker 169。 2023 IBM Corporation WebSphere Integration Services ? Integration Services implement mon mediation patterns. ? The above group, from a recent developerWorks174。 article*, are potential Integration Services. ? There are additional established and emerging mediation patterns which also could bee integration services. ? Integration Services implement the same canonical message model and share the mon message semantics. ? Integration Services will not make design time assumptions about sequencing. ? Integration Services should be stateless. ? Some services may persist data. Additional information can be found in reference 4 on chart 31. Protocol switch Transform Enrich Route Distribute Monitor Correlate 23 Discovering the Value of the Advanced Enterprise Service Bus WebSphere Message Broker 169。 2023 IBM Corporation WebSphere SOI ? SOI is a good way to get started toward an SOA. ? SOI 的好處 : ? 定義良好而又基于標(biāo)準(zhǔn)的接口 服務(wù)的描述易于理解,而且標(biāo)準(zhǔn)一致 ? 實(shí)現(xiàn)技術(shù)和位置的透明 提供服務(wù)功能的應(yīng)用,它的位置以及所使用的實(shí)現(xiàn)技術(shù)被接口所屏蔽,事實(shí)上,不需要一個(gè)固定的服務(wù)提供者 ? 靈活性 只要服務(wù)的接口不變,服務(wù)的提供者和服務(wù)的使用者都可以變化而不影響彼此,從而將變化帶來的影響減少到了最少 ? 重用能力 ? 漸進(jìn)式集成 24 Discovering the Value of the Advanced Enterprise Service Bus WebSphere Message Broker 169。 2023 IBM Corporation WebSphere Message Models Mediation Flows Communication Protocols Enterprise Service Bus Interaction Patterns Mediation Patterns Meta models 25 Discovering the Value of the Advanced Enterprise Service Bus WebSphere Message Broker 169。 2023 IBM Corporation WebSphere ESB 核心原則示例 ? 某 銀行有一個(gè)必須檢查信用記錄的現(xiàn)有應(yīng)用程序。該銀行正在自動(dòng)化其信用檢查流程,并將使用一個(gè)業(yè)務(wù)合作伙伴的信貸審批 Web 服務(wù)。該現(xiàn)有的應(yīng)用程序使用一個(gè)通過 MQ 的文本消息和一個(gè)相關(guān)聯(lián)的響應(yīng),從而與當(dāng)前信用檢查系統(tǒng)進(jìn)行交互??紤]該銀行的 ESB 中的一個(gè)能夠完成以下任務(wù)的中介: ? 偵聽 MQ 隊(duì)列并將相關(guān)聯(lián)的響應(yīng)發(fā)送到 MQ 隊(duì)列 ? 將現(xiàn)有應(yīng)用程序中的文本消息轉(zhuǎn)換為與合作伙伴的信貸審批模式兼容的消息,并執(zhí)行反向轉(zhuǎn)換。 ? 與安全基礎(chǔ)設(shè)施交互以插入必要的安全信息 ? 調(diào)用業(yè)務(wù)合作伙伴的 Web 服務(wù)并留下已做的審核跟蹤 ? 作為該銀行的面向服務(wù)的體系結(jié)構(gòu)的一部分實(shí)現(xiàn) ESB 可以提供以下好處: ? 現(xiàn)有的應(yīng)用程序邏輯不會(huì)更改。如果 ESB 可以使用該應(yīng)用程序原先使用的相同 MQ 隊(duì)列,則配置也不需要更改。 ? 審核跟蹤支持與合作伙伴之間的業(yè)務(wù)協(xié)議的協(xié)調(diào)。 ? 如果業(yè)務(wù)合作伙伴的服務(wù)不滿足其服務(wù)級(jí)別協(xié)議,該銀行可以通過在 ESB 中修改路由和轉(zhuǎn)換以切換到新的服務(wù)提供者,而不會(huì)干擾使用該服務(wù)的客戶端應(yīng)用程序。 26 Discovering the Value of the Advanced Enterprise Service Bus WebSphere Message Broker 169。 2023 IBM Corporation WebSphere Managing Multiple ESBs – Federated ESB Topologies WebSphere Services Registry and Repository Tivoli Composite Application Management for SOA ?A single enterprisewide ESB is rarely attainable – most businesses will have multiple ESBs across business units Vendor A Vendor B Business Unit Business Unit Business Unit Corporate Shared Services Federated Security 27 Discovering the Value of the Advanced Enterprise Service Bus WebSphere Message Broker 169。 2023 IBM Corporation WebSphere 28 Discovering the Value of the Advanced Enterprise Service Bus WebSphere Message Broker 169。 2023 IBM Corporation WebSphere ? ESB 29 Discovering the Value of the Advanced Enterprise Service Bus WebSphere Message Broker 169。 2023 IBM Corporation WebSphere SOI Uses a Layered Architecture Low coupling, hi