Expert one on one development without ejb读书笔记

第三章 架构

  • ❑  Business services layer. This is central to successful applications.

  • ❑  Presentation layer. This may be a UI or a remoting facade.

  • ❑  Data access layer. Objects accessing a persistence store—usually, one or more relational databases.

业务服务层

表现层

数据访问层

业务服务层:

无状态or有状态对象 

设计感悟:关于无状态、有状态服务

如果可以,应用程序应该这样设计即:服务层无状态。把状态保存在web层,好过在业务层保存。

原文地址:https://www.cnblogs.com/aquariusm/p/10018645.html