Agent 模式血脉

Agent 设计模式的工程先祖。

Agent 模式看起来很新,是因为模型很新;但在架构层面,很多问题早就在软件工程里出现过: 缓存、队列、管道、工作流、事件日志、RBAC、Saga、隔舱、可观测性和 MapReduce。 把鼠标放到模式上,可以看到这条桥。

完整映射

模式 → 工程先祖 → 当年的工程问题

这里把 LSEG 工作坊第 34/35 页的两张表合成一张总表。先用总表定位模式, 再用下方 hover 卡片理解每个模式的设计直觉。

28 个模式

悬停地图

More:完整工程先祖表 ↓

More

工程先祖表

这里不是说每个 Agent 模式都和某个旧模式一一对应,而是帮架构师追问: 这个新的 Agent 问题,背后到底在重演哪个老的软件工程问题?

来源与延伸阅读

  1. Microsoft Azure Architecture Center: Cache-Aside pattern
  2. Microsoft Azure Architecture Center: Pipes and Filters pattern
  3. Microsoft Azure Architecture Center: Priority Queue pattern
  4. Microsoft Azure Architecture Center: Competing Consumers pattern
  5. Microsoft Azure Architecture Center: Saga distributed transactions pattern
  6. Martin Fowler: Circuit Breaker
  7. Martin Fowler: Event Sourcing
  8. OpenTelemetry documentation
  9. Apache Airflow documentation: DAGs
  10. Temporal documentation
  11. Google Research: MapReduce
  12. PostgreSQL documentation: Routine Vacuuming
  13. NIST: Role-Based Access Controls
  14. IBM: What is ETL?
  15. Apache Lucene Core
  16. Spring Framework: IoC Container
  17. Spring Framework: Aspect Oriented Programming
  18. Spring Framework: HandlerInterceptor
  19. ISO 9001:2015 Quality management systems
  20. Linux Kernel documentation: CFS Scheduler
  21. Linux Kernel documentation: Page Tables
  22. Oracle: Java HotSpot Garbage Collection
  23. Stanford IR Book: Relevance feedback and query expansion
  24. PostgreSQL documentation: Write-Ahead Logging
  25. Google SRE Book: Postmortem Culture
  26. AWS: Elastic Load Balancing documentation
  27. Martin Fowler: Test-Driven Development
  28. GitHub Docs: Pull request reviews
  29. Apache Spark documentation
  30. NIST SP 800-115: Technical Guide to Information Security Testing and Assessment
  31. Atlassian: DevOps runbook template
  32. SEC: Internal Control over Financial Reporting rules
  33. FATF: Risk-Based Approach for the Banking Sector
  34. Kubernetes: Self-Healing
  35. Kubernetes: Namespaces
  36. Netflix Hystrix
  37. Prometheus Blackbox Exporter
  38. Pirolli and Card: Information Foraging
  39. Refactoring.Guru: Chain of Responsibility
  40. Refactoring.Guru: Command pattern