任何人都可以解释这些话。演示层。业务层。例如,java EE中的集成层是什么? [英] Can anybody explain these words.Presentation Tier .Business Tier .Integration Tier in java EE with example?

查看:141
本文介绍了任何人都可以解释这些话。演示层。业务层。例如,java EE中的集成层是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这些在Java EE中是什么
。演示级别
。业务级别
。集成级别

What are these in Java EE .Presentation Tier .Business Tier .Integration Tier

我想知道什么是这些模式的例子

I like to know what are these patterns with example

推荐答案

多层架构或n层架构,是一种架构风格,其中应用程序的不同职责分为不同的层,通常:

Mulit-tier architecture, or n-tier architecture, is an architecture style in which the different responsibilities of an application are broken up into distinct tiers, typically:


  • 用于生成用户界面和轻量级验证的表示层

  • 业务层用于重量级处理,验证,业务
    规则,工作流和外部系统接口。

  • 用于数据转换和持久性服务的集成层

  • The presentation tier for user interface generation and lightweight validation.
  • The business tier for heavyweight processing, validation, business rules, workflow and interfaces to external systems.
  • The integration tier for data transformation and persistence services.

n层架构背后的理由是更好的关注点分离(SoC)和低耦合。这样可以实现更好的可扩展性,因为每个层可以分离到分配处理负载的不同计算机系统上。

The rationale behind n-tier architecture is better Separation of Concerns (SoC) and low coupling. This allows better scalability as each tier can be separated onto different computer systems distributing the processing load.

请注意,层可能对不同的人有不同的含义:一个面向硬件(物理层) ),其他面向软件(逻辑)。就个人而言,我认为确实存在差异,并且更倾向于在逻辑视图中使用术语层。维基百科上的 mulit-tier架构提醒您:

Note that tier may have different meanings for different people: one hardware oriented (physical), the other software oriented (logical). Personally, I think that there is indeed a difference and prefer to use the term "layer" for the logical view. This is reminded in mulit-tier architecture on wikipedia:


层和层的概念通常可以互换使用。然而,一个相当普遍的观点是确实存在差异,并且层是构成软件解决方案的元素的逻辑结构化机制,而层是系统基础结构的物理结构化机制。

实际上,硬件供应商已经大力推广多层架构(Sun,我在看着你)尽管对复杂性和生产率产生了影响,但更多的层数=更多的机器。所以,请不要按照核心J2EE模式来写信,除非你需要所有的模式,除非你想建立一个 Rube Goldberg机器

Actually, multi-tier architectures have been highly promoted by hardware vendors (Sun, I'm looking at you) as more tiers = more machines, despite the consequences on the complexity and the productivity. So please, don't follow the Core J2EE patterns to the letter, you don't need all the patterns unless you want to build a Rube Goldberg machine.

这篇关于任何人都可以解释这些话。演示层。业务层。例如,java EE中的集成层是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆