<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    kukooBlog

    look to the master, follow the master, walk with the master, see through the master, become the master.

      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
      213 隨筆 :: 0 文章 :: 285 評論 :: 0 Trackbacks

    今天在閱讀Martin Fowler的《Patterns of Enterprise Application Architecture》時,終于讓我``澄清"了tier和layer的關系。 Martin的原話是:

    ``When people discuss layering, there's often some confusion over the terms layer and tier. Often the two are used as synonyms, but most people see tier as implying a physical separation. Client-server systems are often described as two-tier systems, and the separation is physical: The client is a desktop and the server is a server. I use layer to stress that you don't have to run the layers on different machines. A distinct layer of domain logic often runs on either a desktop or the database server. In this situation you have two nodes but three distinct layers. With a local database I can run all three layers on a single laptop, but there will still be three distinct layers.

    我們平時一直說``多層"結構,常?;煜褂胻ier或者layer這個詞( N-tier或者N-layer一般是摻和著用的),Matin則非常清楚的區分了這兩個詞的用法: tier更多的是指物理上的層次關系,比如說Client/Server結構,是two-tier的,因為客戶端在桌面機上,服務器則在遠端的數據庫服務器上。 layer則更多的指邏輯上的層,我們通常說的Java EE,應該是N-layer的,因為從邏輯上,Java EE里面有表現層,業務邏輯層和數據永久層,在物理上,這三層可以在不同的tier上(表現層在PC上,業務邏輯層在應用服務器上,數據永久層則在數據庫服務器上),也可以在一個tier上,比如Martin說的,如果把數據庫,應用服務器和瀏覽器都裝在一臺筆記本電腦上,那么,3-layer就是在1-tier上了。

    因此,當我們以后談論Java EE的多層體系時,應該更精確的使用layer這個詞。

    【關于Martin Fowler】
    http://en.wikipedia.org/wiki/Martin_Fowler
    http://martinfowler.com/

    posted on 2006-08-31 15:20 kukooBlog 閱讀(2318) 評論(0)  編輯  收藏 所屬分類: Others
    主站蜘蛛池模板: 日韩中文无码有码免费视频| 成人免费视频77777| 亚洲乱亚洲乱少妇无码| 亚洲第一街区偷拍街拍| 三年片在线观看免费观看高清电影| 亚洲国产精品第一区二区| 午夜免费啪视频在线观看| 亚洲国产精品lv| 免费福利网站在线观看| 亚洲av一本岛在线播放| 国产免费av片在线看| 亚洲AV性色在线观看| 免费在线观看中文字幕| 五月天婷婷精品免费视频| 亚洲尤码不卡AV麻豆| 亚在线观看免费视频入口| 亚洲国产综合人成综合网站00| 久久福利资源网站免费看| 亚洲人成人77777网站不卡| 24小时免费直播在线观看| 色偷偷亚洲第一综合| 亚洲精品国产精品乱码不卞| 中国一级特黄的片子免费| 亚洲一区免费观看| 亚洲人成电影网站免费| 亚洲AV色欲色欲WWW| 亚洲国产三级在线观看| 巨波霸乳在线永久免费视频| 亚洲av无码日韩av无码网站冲| 国产亚洲日韩一区二区三区| 无人在线观看免费高清| 亚洲乱理伦片在线观看中字| 久久影院亚洲一区| 18禁男女爽爽爽午夜网站免费| 亚洲高清乱码午夜电影网| 亚洲爆乳无码专区| 97无码免费人妻超级碰碰夜夜| 黄床大片免费30分钟国产精品| 亚洲成无码人在线观看| mm1313亚洲国产精品美女| 最好看的中文字幕2019免费|