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

参考文章可以从这里(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

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

参考资料:

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

相关文章:

  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
  • 2021-05-01
  • 2022-12-23
猜你喜欢
  • 2021-05-21
  • 2021-06-09
  • 2022-01-16
  • 2021-07-05
相关资源
相似解决方案