Service as Mediator in SOA

戏子无情 提交于 2019-12-06 06:04:26

Restating what you just mentioned above, the central idea of the mediator pattern is to remove the coupling between objects. One of the reasons for this is to encapsulate the complexity of interacting with an object by limiting it to a class instead of spreading it around the entire program. IMHO the class is meant for delegation.

The publish-subscribe problem that you talk about here is more the realm of the Observer pattern - http://en.wikipedia.org/wiki/Observer_pattern

This is described well here : http://en.wikipedia.org/wiki/Event-driven_SOA This article also addresses the issues of the data structure for the message.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!