最近在拜读Martin Fowler的Enterprise Integration Pattern,对于基于消息系统的应用集成了解了不少。虽然以前的工作也涉及IBM MQ但体会总是不是很深。在不同应用,分布式环境中,的集成中,消息中间件在可靠性方面是优势。这跟我的第一印象是刚好相反的,以前总以为消息总会如同发出的信件一下,也许会石沉大海吧?哪有同步方式,比如打电话,可靠?仔细一想,其实不然。同步方式在分布式应用中依赖太多,通讯双方同时在线,网络可靠,load安全(不要被太多的Request压死了)等。这些方面消息中间件却是优势。同时消息中间件解耦了消息生产者和消费者。发送消息和接收消息的系统只要跟消息中间件打交道。
记得以前有个项目中自己实现了个消息系统,J2SE中多个应用之间通过消息通讯。主要是通过RMI和Observer模式实现。回想起来也算是分布式消息系统吧?不同的是发送方和接受方是耦合的。比如发送方(subject)维护了一个接受方的listener list(RMI 回调接口),发送消息时轮询list并RMI回调接口。
再回想起以前被面的时候,一个经理跟我谈到SOA时,不停的challenge我项目中SOA框架有啥好处。他的意思是他现在项目中用JSP,Servlet分层用的很好啊。然后我就从loosely coupling, reuse等角度来讲这个问题。SOA框架给我们解耦了Service的集成(通过ESB )。如同Spring封装了对象的创建和维护消除我们在自己程序中通过Factory,Singleton来创建对象,框架帮我们做了这部分工作。
分享到:
相关推荐
《企业集成模式》是马丁·福勒(Martin Fowler)撰写的一本经典著作,它深入探讨了在企业级系统中如何有效地实现不同应用之间的通信和集成。这本书为软件开发者提供了丰富的设计模式,帮助他们构建可扩展、灵活且...
### Apache Camel与企业集成模式(Enterprise Integration Patterns, EIP) #### 概述 Apache Camel 是一个强大而灵活的开源框架,用于简化企业级应用程序中的消息传递和数据处理流程。它支持大量的企业集成模式 ...
The document contains several chapters, each focusing on a different integration pattern. Here’s a detailed look at some of these patterns: ##### Chapter 2: Remote Process Invocation – Request and ...
Architectural challenges using microservices with service integration and API management are presented and you learn how to eliminate the use of centralized integration products such as the enterprise...
In addition, you’ll discover the new Spring Integration DSL and use it with Spring Cloud Stream to build integration solutions using every enterprise integration pattern. Finally, you’ll see Spring...
thus allowing the assembly of Service Oriented Integration (SOI) frameworks following the Enterprise Service Bus (ESB) pattern. JBI is based on JSR 208, which is an extension of Java 2 Enterprise ...
Architectural challenges using microservices with service integration and API management are presented and you learn how to eliminate the use of centralized integration products such as the enterprise...
内容包含基于JBI与Apache ServiceMix之企业服务汇流排架构、基于JBI及OSGi之云端服务元件模型之设计、ESB针对各式异质端点(Endpoints)的整合技术、讯息结构及讯息处理之架构设计规范、基于企业整合样式(Enterprise ...
Abstract—Based on demands in proxy pattern, this article proposes informatization solution of proxy pattern which includes enterprise management, proxy management, franchisee management and supply ...
Discover the Create, Read, Update, Delete (CRUD) pattern for manipulating resources Build RESTful services that use hypermedia to model state transitions and describe business protocols Learn how to ...
6.1.3 Enterprise Integration Patterns and User-Defined Templates 6.2 Basics of Creating and Configuring an Integration Flow 6.2.1 Creating an iFlow 6.2.2 Configuring an iFlow 6.3 iFlow Example ...
An Enterprise Service Bus (ESB) is an architectural pattern and a key enabler in implementing the infrastructure for a service-oriented architecture (SOA). Real-world experience has demonstrated that ...
2. **Aggregate 示例**:展示的是Camel 2.3中的改进版聚合EIP(Enterprise Integration Pattern),支持持久化存储,用于处理和合并消息流。 3. **BAM 示例**:演示了如何利用Camel作为业务活动监控(BAM)框架,...
–Phil Wilkins, Enterprise Integration Architect, Specsavers “Thomas Erl’s text provides a unique and comprehensive perspective on cloud design patterns that is clearly and concisely explained for ...
ASP.NET Core: Cloud-ready, Enterprise Web Application Development by Mugilan T. S. Ragupathi English | 9 Jun. 2017 | ASIN: B072KDVHCS | 1414 Pages | AZW3 | 36.34 MB Create fast, scalable, and high-...
Apache Camel 是一个强大的开源集成框架,基于广泛认可的企业集成模式(Enterprise Integration Patterns,简称 EIP)。它提供了一种智能的 Bean 集成方式,允许开发者在 Java 基于的领域特定语言(Domain Specific ...