全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
xxxx 大 学学生毕业设计(论文)外文译文学生姓名:xxx学号:xxxxxxxxxx专业名称:计算机科学与技术译文标题(中英文):简单浏览器/服务器三层架构(译)sample b/s 3-tier application译文出处:martin fowler;patterns of enterprise application architecture;addison-wesley professional;2003.08指导教师审阅签名:外文译文正文: 三层架构(3-tier application) 定义:通常意义上的三层架构就是将整个业务应用划分为:表现层(ui)、业务逻辑层(bll)、数据访问层(dal)。区分层次的目的即为了“高内聚,低耦合”的思想。、表现层(ui):通俗讲就是展现给用户的界面,即用户在使用一个系统的时候他的所见所得。、业务逻辑层(bll):针对具体问题的操作,也可以说是对数据层的操作,对数据业务逻辑处理。、数据访问层(dal):该层所做事务直接操作数据库,针对数据的增添、删除、修改、更新、查找等。在软件体系架构设计中,分层式结构是最常见,也是最重要的一种结构。微软推荐的分层式结构一般分为三层,从下至上分别为:数据访问层、业务逻辑层(又或成为领域层)、表示层。三层结构原理:3个层次中,系统主要功能和业务逻辑都在业务逻辑层进行处理。所谓三层体系结构,是在客户端与数据库之间加入了一个“中间层”,也叫组件层。这里所说的三层体系,不是指物理上的三层,不是简单地放置三台机器就是三层体系结构,也不仅仅有b/s应用才是三层体系结构,三层是指逻辑上的三层,即使这三个层放置到一台机器上。三层体系的应用程序将业务规则、数据访问、合法性校验等工作放到了中间层进行处理。通常情况下,客户端不直接与数据库进行交互,而是通过com/dcom通讯与中间层建立连接,再经由中间层与数据库进行交互。表示层位于最外层(最上层),离用户最近。用于显示数据和接收用户输入的数据,为用户提供一种交互式操作的界面。业务逻辑层业务逻辑层(business logic layer)无疑是系统架构中体现核心价值的部分。它的关注点主要集中在业务规则的制定、业务流程的实现等与业务需求有关的系统设计,也即是说它是与系统所应对的领域(domain)逻辑有关,很多时候,也将业务逻辑层称为领域层。例如martin fowler在patterns of enterprise application architecture一书中,将整个架构分为三个主要的层:表示层、领域层和数据源层。作为领域驱动设计的先驱eric evans,对业务逻辑层作了更细致地划分,细分为应用层与领域层,通过分层进一步将领域逻辑与领域逻辑的解决方案分离。业务逻辑层在体系架构中的位置很关键,它处于数据访问层与表示层中间,起到了数据交换中承上启下的作用。由于层是一种弱耦合结构,层与层之间的依赖是向下的,底层对于上层而言是“无知”的,改变上层的设计对于其调用的底层而言没有任何影响。如果在分层设计时,遵循了面向接口设计的思想,那么这种向下的依赖也应该是一种弱依赖关系。因而在不改变接口定义的前提下,理想的分层式架构,应该是一个支持可抽取、可替换的“抽屉”式架构。正因为如此,业务逻辑层的设计对于一个支持可扩展的架构尤为关键,因为它扮演了两个不同的角色。对于数据访问层而言,它是调用者;对于表示层而言,它却是被调用者。依赖与被依赖的关系都纠结在业务逻辑层上,如何实现依赖关系的解耦,则是除了实现业务逻辑之外留给设计师的任务。数据层数据访问层:有时候也称为是持久层,其功能主要是负责数据库的访问,可以访问数据库系统、二进制文件、文本文档或是xml文档。简单的说法就是实现对数据表的select,insert,update,delete的操作。如果要加入orm的元素,那么就会包括对象和数据表之间的mapping,以及对象实体的持久化。(正文页面请加页;从教务处主页下载,统一用a4纸单面激光打印)外文正文:the definition of the 3-tier application:normally,3-tier application is that the entire business is divided into:user interface(ui)、business logic layer(bll)、data access layer(dal).the purpose of the distinction between the level of that in order to high cohesion, low coupling thinking.1、user interface(ui):popular talk is to show to the user interface, that is, users in the use of a system when seen from him.2、business logic layer(bll):issue-specific operation, it can be said that the operation of the data layer, business logic for data processing.3、data access layer(dal):layer made of the direct operation of the database services for data to add, delete, modify, update, search and so on.in terms of software architecture design, hierarchical structure is the most common, and most importantly a structure. microsoft recommended hierarchical structure will generally be divided into three tiers, from bottom to top are: data access layer, business logic tier (or even a field of layer), indicating that the layer.the principle of the 3-tier application:three levels, the system functionality and business logic to deal with in the business logic tier. the so-called three-tier architecture, is in between the client and the database by adding a middle layer, also known as layer components. three-tier system mentioned here are not referring to the three physical, rather than simply place the three machines is the three-tier architecture, it not only b / s application is a three-tier architecture is the logical three-tier three-tier, even if the three layers placed on a single machine.3-tier application system business rules, data access, so check on the legality of the middle layer for processing. under normal circumstances, the client does not directly interact with the database, but through com / dcom communication to establish a connection with the middle layer, middle layer and then interact with the database.user interface(ui):user interface(ui) is located in the outermost layer (the top), from the user recently. used to display data and receive data entered by the user, to provide users with an interactive interface to operate.business logic layer(bll):business logic layer system architecture is reflected in some of the core values. it concerns mainly concentrated in the formulation of business rules, business processes and business needs to achieve, such as the system design, in other words it is to deal with the areas of systems (domain) logic, and most of the time, the area known as the business logic tier layer. martin fowler ivided the whole structure into three main layers: the presentation layer, the field layer and the data source layer. as a pioneer in the field-driven design eric evans, of the business logic tier division made a more detailed breakdown for the application layer and the field level, through the stratification to further the field of logic and the area of separation logic solutions.business logic tier structure in the system the location of a key, it is data access layer and said intermediate layer, the data exchange has played a role in connecting. as the layer is a weak-coupling structure between the three levels down the dependence on the bottom to the top is ignorant and change the design for the top of the bottom in terms of their call has no effect. if the stratified design, interface design to follow for the idea, then this dependence should be down is a weak dependence. without changing the interface and thus the premise of the definition of an ideal layered structure should be a support can be taken to replace the drawer style architecture. for this reason, the business logic tier design for a scalable architecture to support is particularly crucial, since it plays two different roles. it is the caller for the data access layer, it is by the caller for that layer is concerned. dependence and the relationship was dependent on entangled in th
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 大学大学应用概率与统计课件
- 机械制图模拟题+答案
- 介绍河南的英文课件演讲
- 养老院老人生活照顾标准制度
- 养老院老人健康监测人员福利待遇制度
- 托管中心个体工商户劳务合同范本(2篇)
- 拆除施工承包协议书(2篇)
- 《药膳常用的中药》课件
- 对数的运算性质及其应用课件
- 2024年会议室场地出租协议3篇
- 商业物业消防控制室操作规程
- 江苏开放大学本科财务管理专业060111马克思主义基本原理期末试卷
- 2024年4月自考00155中级财务会计试题及答案
- 商务英语写作1(山东联盟)智慧树知到期末考试答案章节答案2024年山东管理学院
- 2024年辽宁农业职业技术学院单招职业适应性测试题库审定版
- 遇见朗读者智慧树知到期末考试答案章节答案2024年哈尔滨师范大学
- 中班音乐《小看戏》课件
- 电大财务大数据分析编程作业2
- 葡萄糖醛酸在药物开发中的应用
- 体温表水银泄露的应急预案
- 导尿管相关尿路感染预防与控制技术指南(试行)-解读
评论
0/150
提交评论