Xiao Peng

My personal blog moves to xiaopeng.me , blogs about design patterns will be synced to here.
肖鹏,ThoughtWorks资深咨询师,目前关注于架构模式、敏捷软件开发等领域,并致力于软件开发最佳实践的推广和应用。
多次为国内大型企业敏捷组织转型提供咨询和培训服务,在大型团队持续集成方面具有丰富的经验。
  博客园  :: 首页  :: 联系 :: 订阅 订阅  :: 管理

《面向模式的软件架构》模式例解--Active Object

Posted on 2008-12-16 17:56  勇敢的鸵鸟  阅读(709)  评论(0编辑  收藏  举报

未完待续,本文目前仅用于跟图灵论坛上的同学交流。

参考文章可以从这里(https://files.cnblogs.com/DesignPatterns/Act-Obj.pdf)下载。

Active Object要解决的问题

举例来说,在如下图所示的系统中,我们希望Gateway两端的Supplier和Consumer通信的过程中,Gateway的进程不能阻塞(must not block waiting for flow control to abate over any one connection to a consumer.)。而且,在Supplier和Consumer增加的时候,Gateway应该能够高效地扩展。

Active Object-Intent

Active Object-seq

参考资料:

1. Active Object - An Object Behavioral Pattern for Concurrent Programming - R. Greg Lavender, Douglas C. Schmidt